Work / WhoPays
WhoPays
A preregistered audit of who pays when LLM inference is made cheaper: it measures how quantization, KV-cache compression and speculative decoding change quality and speed differently across 11 languages.
The problem
Compression is reported as one accuracy number averaged over languages. A model can lose almost nothing on average and still lose most of its ability in the language with the longest tokenisation, and the average hides who is carrying the cost.
Audit
Three inference optimisations, weight quantization, KV-cache compression and speculative decoding, are applied to Qwen2.5-Instruct at 1.5 billion and 3 billion parameters and scored on Belebele in eleven languages across 858 preregistered runs. The chart reports the loss in the worst-off language, in Belebele points. 8-bit weights and a 4-bit KV cache cost every language under one point. 4-bit GPTQ costs the worst-off language 9.4 points at 1.5 billion parameters and 4.0 at 3 billion. 3-bit GPTQ costs 52 and 36. Losses track each language's token premium, with Spearman correlations of 0.51 to 0.94 across nine settings. Each configuration gets a disparity card of per-language quality change, token premium and worst-language loss.
How it works
- 01
Write the hypotheses before running anything
The study is preregistered: the questions, the configurations and the tests are fixed up front, so a finding cannot be chosen after the fact.
- 02
Run the grid
858 GPU runs across Qwen2.5-Instruct 1.5B and 3B, eleven languages, and the three inference optimisations at several settings, scored on Belebele.
- 03
Attribute the gap to a layer
Each language's loss is traced to the layer that causes it, using Shapley attribution and an Oaxaca–Blinder decomposition, and compared with the language's token premium.
- 04
Report the worst-off language
Every configuration gets a disparity card: per-language quality change, token premium and worst-language loss, so the cost sits in the output where a deployer can see it.
Engineering notes
- Own PyTorch implementations of RTN and GPTQ weight quantization and fake-quant layers on Hugging Face transformers; GPTQ is calibrated on 128 × 2048 Wikipedia tokens and checked against the GPTQModel reference.
- A job-list harness hashes every configuration into a run id, so runs resume across Colab and Kaggle sessions and the 858 results are traceable one by one.
- Findings: 8-bit weights and a 4-bit KV cache cost every language under one Belebele point. 4-bit GPTQ costs the worst-off language 9.4 points at 1.5B and 4.0 at 3B; 3-bit costs 52 and 36. Losses track the token premium (Spearman ρ 0.51–0.94 across nine settings).
- ParityQuant, a mixed-precision quantizer that minimises the worst language's loss at a fixed memory budget, is under way. Exploratory CPU tests on a 0.5B model show English-only calibration leaves the worst language about six times worse than an equal multilingual mix.
- Open harness under Apache-2.0, with the statistics (inequality, attribution, decomposition) and the result tables kept in the repository.
Trade-offs
Preregistration
instead of exploring the grid and reporting what looks interesting
With eleven languages and several optimisations, some comparison will always look striking. Fixing the tests first makes a result mean something.
Worst-off language as the headline
instead of the average across languages
The average is what the optimisation papers report and it is exactly what hides the disparity this study is about.
Own GPTQ checked against a reference
instead of a library call used as a black box
Per-language calibration needs access to the Hessians. Implementing the method, then matching it to GPTQModel, gives both the access and the confidence.
Evidence
858
GPU runs, preregistered
11
languages
<1 pt
worst-language loss at 8-bit weights
9.4 pts
worst-language loss, 4-bit GPTQ at 1.5B