# CompressionBench: How can your coding agents compress LLMs?

Coding agents delivered 29 of 36 verified compressed LLMs under storage limits

Xinrui Zhong, Zhifeng Li, Zhiming Wang, Yongqi Liu, Shanglin Yang, Yang Zhou and 3 more · arXiv · 2026-11-4

- **Problem** No single compression method gives a useful model at every storage limit and hardware target. Storage, precision and pruning compete for the same budget, so a choice that helps one part can hurt another.
- **Method** CompressionBench gives a coding agent a BF16 checkpoint, a storage limit and a time budget. The agent builds compressed weights and inference code, using perplexity feedback during search and a separate container for final verification.
- **Results** Per-task best agent artifacts scored 77.33% accuracy, compared to 79.56% for remeasured BF16.

## Why storage limits make compression hard for agents

Yet no single compression method gives a useful model at every storage limit and hardware target.

A storage budget couples representation, precision and pruning, so bits given to one part are unavailable to the rest. Even at the same nominal bit width, clipping, rounding, calibration and metadata change how good a representation is. Local error measures and complete-model likelihood can disagree, so the agent has to decide which evidence to trust.

Compression saves memory only if unpacking and reconstruction don't cancel the reduction in memory traffic.

## Compression as a terminal task

The benchmark hands a coding agent a BF16 source checkpoint, a storage limit C, a runtime, and a time budget T, then scores only the artifact it submits. A candidate pairs compressed weights and metadata W with an inference implementation I, and together they define the executable model q\_a. The agent can mix quantization formats, component-specific precision, pruning, low-rank forms and distillation, and it may need to change I for each change.

The storage allowance checks two quantities: S\_pkg, the saved package with code and tokenizer, and S\_res, the model storage kept on the GPU. S\_res counts scales, codebooks, padding and persistent dequantized weights, so a small saved file can't hide a full-precision copy at run time. KV caches, recurrent states and temporary workspace fall outside the count, and shared allocations count once.

During search, the likelihood signal is the empirical excess cross-entropy, the candidate's average negative log-likelihood minus the source's on the same positions. Its expectation equals the next-token KL divergence from the source, averaged over the scored histories. The evaluator converts that excess into the PPL ratio F(a), so equal likelihood gives F of 1.

The search reward is 10 times F when execution succeeds and both storage limits hold, and 0 otherwise. Timing comes back separately and never enters this reward.

Evaluations spend the same wall-clock budget as construction, so the agent must decide when a measurement is worth its cost. At time T the submitted candidate is frozen, and a separate container runs final verification on it. Verification uses disjoint contexts and measures F\_v on verification continuations, so search and final scoring use different data.

## What counts as a delivered model

A submitted artifact must clear an independent acceptance gate before it receives any score.

The answer gate averages accuracy over GSM8K, HumanEval, and TriviaQA, and the compressed and source models get the same questions and generation settings. Mean accuracy must reach 0.8 times the BF16 reference, which the authors fix before search begins. The threshold is withheld from the agents, and held-out answer scores don't enter the search-time reward.

Automated checks and an independent review test compliance with the construction and inference rules.

The reported batch-one decode speed is 127/L tokens/s, since 128 tokens span 127 inter-token intervals. Speed doesn't enter the reward, which keeps compression quality separate from execution efficiency.

## Delivered models against BF16 and released quantizations

Six coding agents built models for three source checkpoints, each at two storage limits, giving 36 models. Of these, 29 passed final verification, and all 18 models built under the looser limits passed. At the tighter limits, six models missed the answer-accuracy requirement and one timed out during answer generation. Table 1 lists the verified models and marks the rejected ones as Not passed.

Taking the lowest-PPL agent artifact for each task, the average PPL increase over BF16 is 3.4%. So the best picks stay close to BF16 on both likelihood and answers, though the per-task spread is wide. The fresh BF16 measurements matter here, because they supply the 79.56% comparison rather than the original references.

The storage limit matters, but it doesn't fully explain quality. Sonnet's 8 GiB dense model still has lower PPL than three agents' 12 GiB models. A better representation can therefore outweigh extra storage in these comparisons. Uniform GPTQ passes the answer threshold only on the looser MoE tasks and fails in the other settings.

PPL and answer accuracy can therefore point to different artifacts as the preferred pick.

## Where complete-model feedback changes the choice

Local error and complete-model PPL don't always agree, because a small error in a strongly activated direction can matter more than a larger error elsewhere. On dense Qwen3.8, a k-means codebook improves weight reconstruction MSE over clipped uniform levels but increases PPL. GPTQ rounding shows the opposite pattern, with larger weight MSE and lower PPL, while calibration-activation output error tracks PPL more closely.

So a local criterion can favor a different revision than the full model does at similar encoded size.

When local likelihood and feedback disagree, Opus doesn't always revert: it revised its local validation in one search and reverted the candidate in the other. On the tighter task, Opus spent 1.7 hours exploring a one-bit expert tier, which local likelihood favored but feedback did not.

That change reduced feedback PPL from 3.738 to 3.132. So at nearly fixed storage, the gains came from the quantizer or from redistributing precision. In a paired dense-model ablation, GLM's MSE-selected clipping ranges replaced min–max ranges while precision allocation, calibration, and inference code stayed fixed. The selected ranges gave lower verification PPL and higher answer accuracy, and all three answer benchmarks favored them at the same saved and resident storage.

Likelihood alone doesn't settle which version is better, because PPL and generated answers can move in different directions. Sonnet's versions v3, v4, and v5 reached PPL 3.2572, 3.2531, and 3.2525, yet answered 111, 104, and 115 of 150 questions correctly. Opus's Qwen3.5 version v4 had PPL 2.8172 with 120 correct answers, while v5 to v8 had PPL 2.8178 with 124 correct answers.

These tests used final verification inputs, so nearly unchanged likelihood came with different generated answers. In Opus's tighter dense-model run, GSM8K accuracy fell from 88% to 72% across trained versions while PPL improved. HumanEval and TriviaQA improved over the same versions, so a single scalar hid which capabilities survived.

Repairing that bug reduced the feedback PPL increase over BF16 from about 11% to 4.5%. Here the agent fixed execution while keeping the representation fixed.

## What limits the evidence

Each agent ran once on each task, so the results contain one run per agent–task pair. The study covers two MoE checkpoints and one dense checkpoint, each at two storage limits. Answer accuracy rests on fifty held-out questions per benchmark, so small accuracy gaps carry limited weight. The answer tests draw on GSM8K, HumanEval, and TriviaQA, while MATH-500 supplied only the agents' local answer tests.

Decode speed is reported but not scored, and it reflects the submitted kernels and dequantization overhead. Sonnet's dense artifact beat the released GSQ-RCO artifact on quality, but it decoded at 16.7 tokens/s versus 74.6 tokens/s at batch size one. So a storage gain doesn't by itself establish a speedup. Uniform GPTQ passes the answer threshold only on the looser MoE tasks.

Pilot measurements on Qwen3.8 guided the storage allowances for all three checkpoints.

The controlled diagnostic that varies levels, clipping, rotation, and rounding uses only dense Qwen3.8. The paired clipping ablation also covers only the dense model, with GLM's MSE-selected ranges compared to min–max ranges. Released quantizations serve as references in five comparisons, so the baseline set stays small.

## Paper info

- **Authors**: Xinrui Zhong, Zhifeng Li, Zhiming Wang, Yongqi Liu, Shanglin Yang, Yang Zhou, Zikun Li, Zhuoming Chen, Beidi Chen
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-4
- **Added**: 2026-11-6
- **Updated**: 2026-11-4
- **Version**: v1
- **arXiv**: 2611.06858
- **Category**: cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.06858v1) · [PDF ↗](https://arxiv.org/pdf/2611.06858v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Recursive self-improvement requires AI systems to improve the models and infrastructure used by subsequent systems. LLM compression offers a concrete efficiency objective: retain a pretrained model's behavior within a smaller model storage budget. We study whether coding agents can carry out this step autonomously. We formulate compression as a terminal task in which an agent receives a source checkpoint, storage limit, inference environment, and time budget, then constructs compressed weights and executable inference code. The agent controls its algorithm and experiments; perplexity feedback guides search, and independent verification checks the final model. Across six agents and six model--size settings, 29 of 36 submissions pass verification. Selecting the lowest-perplexity agent design per task yields an average 3.4% perplexity increase over BF16 and 77.33% downstream accuracy, compared with 79.56% for BF16. Recorded experiments reveal how agents achieve these outcomes and where improvement breaks down. Agents lower PPL in 21 of 24 revisions at nearly fixed storage; complete-model feedback reverses 17 of 79 prior local rankings; and generation and inference tests expose failures that likelihood alone misses. The results identify representation design, experimental judgment, and capability validation as central to agent-driven model compression, a measurable component of efficiency-oriented self-improvement.

## Quote from the paper

Xinrui Zhong, Zhifeng Li, Zhiming Wang, Yongqi Liu, Shanglin Yang, Yang Zhou, Zikun Li, Zhuoming Chen, Beidi Chen (2026). CompressionBench: How can your coding agents compress LLMs?. arXiv:2611.06858v1. https://arxiv.org/abs/2611.06858v1

**BibTeX**

```
@misc{zhong2026compressionbench,
  title = {{CompressionBench: How can your coding agents compress LLMs?}},
  author = {Xinrui Zhong and Zhifeng Li and Zhiming Wang and Yongqi Liu and Shanglin Yang and Yang Zhou and Zikun Li and Zhuoming Chen and Beidi Chen},
  year = {2026},
  eprint = {2611.06858},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06858v1}
}
```

## Related papers

- [LLaMA: Open and Efficient Foundation Language Models](https://refivu.com/en/papers/e01f8551-7797-458a-9c65-5b2b892f2bd8-llama-open-and-efficient-foundation-language-models.md)
- [A Lattice-Based HMM Approach to Aruz Scansion of Ottoman Poetry](https://refivu.com/en/papers/81004ad8-5641-430f-b487-3d295b983eee-a-lattice-based-hmm-approach-to-aruz-scansion.md)
- [Multi-step SWE: Can Coding Agents Keep Building on Their Own Code Over Long Horizons?](https://refivu.com/en/papers/511fe30c-d341-4cb6-8e73-d0dbbbec3008-multi-step-swe-can-coding-agents-keep-building.md)
- [The Curious Case of Neural Text Degeneration](https://refivu.com/en/papers/71a193c3-9d38-4eb3-b0de-39d943c746b0-the-curious-case-of-neural-text-degeneration.md)
- [Effective Approaches to Attention-based Neural Machine Translation](https://refivu.com/en/papers/58ab56a7-1cd5-4c5e-be62-69ff9c1387c7-effective-approaches-to-attention-based-neural-machine.md)
- [Pointer Sentinel Mixture Models](https://refivu.com/en/papers/8f7d0844-f517-4c18-ba24-8cd7dc616a74-pointer-sentinel-mixture-models.md)

## Other paper commentary

- [ServerBench: How can your coding agents design specialized LLM serving systems?](https://refivu.com/en/papers/08bfcdf2-e2ef-4a8a-a94e-0ae43f956fef-serverbench-how-can-your-coding-agents-design-specialized.md)
- [InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning](https://refivu.com/en/papers/a16f8bfe-f6f1-4e2b-a409-c76d2ed97fc3-instructblip-towards-general-purpose-vision-language-models.md)
- [Benchmarking Large Language Models for News Summarization](https://refivu.com/en/papers/403ef5da-5a1a-4165-8e2b-85961d56009c-benchmarking-large-language-models-for-news-summarization.md)
- [Are LLM Assistants Regulatory Ready? Answers from regenold's 2026 EU AI Act Q&A Challenge](https://refivu.com/en/papers/9b6889ca-15e2-465e-a64c-a042438c119c-are-llm-assistants-regulatory-ready-answers-from-regenold.md)
- [PianoBench: Evaluating Musical Perception and Reasoning in Language Models](https://refivu.com/en/papers/303d2599-ed54-4e1e-92e2-9ef775204ad7-pianobench-evaluating-musical-perception-and-reasoning-in.md)
- [MIMIC-Note-Extract: A Large-Scale Structured Dataset Extracted from MIMIC-IV-Note Discharge Summaries](https://refivu.com/en/papers/c3134221-3727-4425-a2de-b05c03c5f21c-mimic-note-extract-a-large-scale-structured-dataset.md)
- [From Certified Pairs to a Certified Hub: Reasoner-Checked Crosswalks for the Information Exchange Standard](https://refivu.com/en/papers/2223debf-80ef-4fb4-9106-ea557331d908-from-certified-pairs-to-a-certified-hub-reasoner.md)
- [Learning to Track Cells from Sparse Annotations in 3D Time-Lapse Microscopy](https://refivu.com/en/papers/e77751e9-675b-4c55-a7c2-c29622d19d5d-learning-to-track-cells-from-sparse-annotations-in.md)
- [Dimension-Free Private Mean Estimation is Impossible Without the Covariance](https://refivu.com/en/papers/cf9843a6-a907-4014-971a-5c2ba187bba6-dimension-free-private-mean-estimation-is-impossible-without.md)
- [Where Is VLA Inference Time Spent? Bottlenecks and Optimization Interactions Across GPUs](https://refivu.com/en/papers/854119e9-3cbb-49ef-a431-78511985c237-where-is-vla-inference-time-spent-bottlenecks-and.md)
- [ALTO: African and Levantine Tech-Facilitated Gender-Based Violence Corpus](https://refivu.com/en/papers/286497c9-5b20-4fa4-a316-0a1a03c9e22c-alto-african-and-levantine-tech-facilitated-gender-based.md)
- [Do unlearning algorithms learn the right features?](https://refivu.com/en/papers/8c15f6e1-5f54-4e95-93e6-7f609fd89e59-do-unlearning-algorithms-learn-the-right-features.md)

## Terms in this paper

- [GSM8K](https://refivu.com/en/terms/e48f0e01064d-gsm8k)
- [HumanEval](https://refivu.com/en/terms/3c3dbcadfdda-humaneval)
- [KL divergence](https://refivu.com/en/terms/5f1dbea73907-kl-divergence)
- [vLLM](https://refivu.com/en/terms/fe3c96648564-vllm)
- [MATH-500](https://refivu.com/en/terms/7e6fbbc4b736-math-500)
- [Pruning](https://refivu.com/en/terms/143c3e7dde1f-pruning)
- [distillation](https://refivu.com/en/terms/6f4f52fc9c49-distillation)
- [recursive self-improvement](https://refivu.com/en/terms/bbf0655d934a-recursive-self-improvement)
- [Answer accuracy](https://refivu.com/en/terms/eb75e99ead02-answer-accuracy)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/943d8a97-633d-4d07-9efd-15168ede4d74-compressionbench-how-can-your-coding-agents-compress-llms)
