Compression Method Matters: Benchmark-Dependent Output Dynamics in LLM Prompt Compression
Organizations: Plexor Labs Principal Researcher
Abstract
Prompt compression is often evaluated by input-token reduction, but its real deployment impact depends on how compression changes output length and total inference cost. We present a controlled replication and extension study of benchmark-dependent output dynamics under aggressive compression, covering 5,400 API calls across three benchmarks and multiple providers. To explain conflicting prior observations, we formalize instruction survival probability (Psi), a structural metric that captures whether task-critical prompt segments remain after truncation. Results show a strong benchmark effect: under r=0.3, DeepSeek exhibits severe output expansion on MBPP (56x, Psi approx 0.15) but substantially lower expansion on HumanEval (5x, Psi approx 0.72), while GPT-4o-mini is comparatively stable across benchmarks. This reconciles the apparent discrepancy between previously reported extreme explosion and lower replication effects by identifying prompt structure, not provider identity alone, as the primary moderator. We introduce the Compression Robustness Index (CRI) for cross-benchmark evaluation and show that single-benchmark assessments can produce misleading conclusions about compression safety and efficiency. To contextualize energy claims, we incorporate companion direct NVML measurements from rented RunPod GPUs and show that token savings can overstate joule savings. These findings motivate benchmark-diverse testing and structure-aware compression policies for reliable, energy-conscious LLM deployment.
Figures & tables
| Benchmark | Mean Tokens | Std Dev | Instruction Position | ||
|---|---|---|---|---|---|
| MBPP | 500 | 30.1 | 0.96 | Mid-prompt | 0.15 |
| HumanEval | 164 | 33.2 | 10.9 | Early (code-first) | 0.72 |
| GSM8K | 100 | 78.4 | 24.3 | Distributed | 0.41 |
| Model | Architecture | RLHF Method | Parameters |
|---|---|---|---|
| DeepSeek-Chat | MoE (256 experts) | GRPO | 671B (37B active) |
| GPT-4o-mini | Dense Transformer | PPO | Undisclosed |
| Mistral-Large | MoE (8 experts) | DPO | 123B |
| Benchmark | Baseline ( ) | Compressed ( ) | Ratio | 95% CI |
|---|---|---|---|---|
| MBPP | 18.1 | 1020.4 ∗ | 56.4 | [48.2, 64.6] |
| HumanEval | 25.0 | 131.0 | 5.2 | [4.1, 6.5] |
| GSM8K | 59.9 | 684.4 | 11.4 | [8.7, 14.8] |
| Article 4 weighted † | 20.6 | 798.4 ∗ | 38.7 | [35.1, 42.3] |
| Balanced weighted | 34.3 | 611.9 | 17.8 | [14.2, 21.4] |
| Model | Output Tokens | Ratio | CV | Energy (mJ) | |
|---|---|---|---|---|---|
| Baseline | |||||
| DeepSeek-Chat | 34.3 | 611.9 | 17.8 | 0.84 | 277.5 |
| GPT-4o-mini | 28.1 | 52.4 | 1.9 | 0.31 | 25.7 |
| Mistral-Large | 41.2 | 198.7 | 4.8 | 0.56 | 91.5 |
| Model | CRI | 95% CI | Interpretation |
|---|---|---|---|
| GPT-4o-mini | 0.848 | [0.812, 0.881] | Highly robust |
| Mistral-Large | 0.424 | [0.378, 0.468] | Moderately robust |
| DeepSeek-Chat | 0.090 | [0.062, 0.116] | Compression-sensitive |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Model | Benchmark | Mean | SD | Ceiling % | Pass@1 | Energy (mJ) | |
|---|---|---|---|---|---|---|---|
| DeepSeek | MBPP | 1.0 | 18.1 | 4.2 | 0% | 0.56 | 12.7 |
| 0.7 | 45.2 | 48.2 | 0% | 0.32 | 23.5 | ||
| 0.5 | 298.4 | 187.2 | 12% | 0.08 | 136.5 | ||
| 0.3 | 1020.4 | 98.7 | 74% | 0.02 | 460.5 | ||
| HumanEval | 1.0 | 25.0 | 8.9 | 0% | 0.65 | 16.2 | |
| 0.7 | 38.1 | 18.4 | 0% | 0.52 | 20.6 |
Prompt Compression
Prompt compression reduces the tokens sent to language models while trying to preserve the information needed for accurate, efficient responses.
See all 34 papers