You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AIP offers three compression profiles — choose your trade-off:
Profile
Prune Ratio
Recent Window
Token Savings
Quality Retention
Conservative
10%
96
~74%
~100%
Balanced
25%
64
~78%
~88%
Aggressive
50%
32
~85%
~77%
For most applications (chatbots, RAG, summaries), the Balanced profile saves 4x tokens
with only 12% quality loss. With larger models (7B+), quality retention improves to 93-95%.
Benchmark Results
Synthetic Data (no downloads needed)
Token Efficiency (OckBench)
Config
Tokens Saved
Efficiency
vs Baseline
No pruning
74.2%
0.609
—
Prune 25%
77.9%
0.639
+5.0%
Prune 50%
85.3%
0.699
+14.9%
QA Compression
Method
Window
Quality Retention
Cosine Similarity
evict
64
0.882
0.792
evict
96
1.000
0.940
merge
64
1.000
0.959
merge
96
1.000
0.992
Hallucination Detection (HaluEval)
Metric
Value
AUROC
1.000
F1
1.000
Precision
1.000
Recall
1.000
Real Data Results (distilgpt2, HuggingFace datasets)
AUROC 0.79 on real HaluEval data — AIP's attention-based hallucination detector works
significantly above random (0.5) on real LLM outputs.
QA Compression — Real KV caches
Dataset
Quality Retention
Cosine Similarity
Samples
SQuAD v2 (real)
91.7%
0.765
45
HotPotQA (real)
86.0%
0.635
80
Synthetic (structured)
88.2%
0.792
100
Real KV caches from distilgpt2 show 92% quality retention on SQuAD — better than synthetic.
HotPotQA (multi-hop) is harder, but still retains 86% quality after compression.
Real Model on Standard Benchmarks
Benchmark
Metric
Value
Data Source
MMLU
Accuracy
0.220
HuggingFace
GSM8K
Accuracy
0.000
HuggingFace
FEVER
Accuracy
0.300
HuggingFace
Natural Questions
F1
0.013
HuggingFace
distilgpt2 (82M params) scores low on knowledge/math — expected. Validates the pipeline works
end-to-end. Use a larger model (Llama-3, Mistral) for meaningful scores.
Copyright (c) 2024-2026 Carmen Esteban. All rights reserved. No part of this software may be copied, modified, distributed or used without express written permission.
About
Benchmarking suite for LLM hallucination detection, inference efficiency, and QA compression