When Does Optical Context Compression Pay Off? A Decode-Aware Cost Analysis of Reasoning VLMs
Organizations: Bitdeer Technologies Group
Abstract
Rendering long text as images lets a vision-language model (VLM) read a document with fewer input tokens, and evaluations often count mainly these prefill tokens. We show that for reasoning models this accounting is incomplete. Across five models and two long-context benchmarks, reading the rendered document makes the model think longer: decode length grows by 1.5-3.5x on the four general-purpose VLMs tested, and under typical output pricing this decode tax makes image input more expensive than text for two of the five models on QuALITY. Unrecoverable information loss is not sufficient to explain the tax at moderate compression: Qwen's OCR of the same images recovers 98.7% of words, and feeding Kimi-K3 its own transcription as text restores text-mode reasoning length and accuracy. Whether compression pays off reduces to an exchange rate, (1-1/c)/(r-1), that must exceed the workload's price-weighted ratio of output to input tokens; this accounting decomposition shows why Kimi-K3 and DeepSeek-V4.1-Flash can benefit and Qwen and GLM cannot. None of the training-free signals we test predicts the tax before generation. As a practical heuristic, an image-first policy that sends only inputs with a per-input compression ratio of at least 1.6 to images and falls back to text once image-mode reasoning costs as much as the input's prefill saving cuts the bill by 6-14% on Kimi-K3 and DeepSeek-V4.1-Flash at an accuracy cost of 0.3-1.2 points; on QuALITY, asking for a reasoning budget on both paths is a stronger lever.
Figures & tables
| Model | Image setting | Acc. text | Acc. image | Prefill comp. | Decode img/text | Bill ( ) |
|---|---|---|---|---|---|---|
| Qwen | 19px/1750 | 92.65 | 88.22 | 1.36 | 2.14 | 1.256 (0.884) |
| Qwen | 14px/1500 | 92.65 | 80.90 | 2.41 | 3.48 | 1.554 (0.739) |
| GLM | 18px/1500 | 91.66 | 87.04 | 1.13 | 1.53 | 1.171 (0.973) |
| GLM | 16px/1500 | 91.66 | 83.24 | 1.43 | 2.12 | 1.334 (0.896) |
| Kimi-K3 (greedy) | 14px/1500 | 95.06 | 91.95 | 1.78 | 2.06 | 0.852 (0.631) |
| Kimi-K3 (temperature 0.8, 5 samples) | 14px/1500 | 94.73 | 92.51 | 1.78 | 2.07 | 0.871 (0.636) |
| Kimi-K3 | DeepSeek | |||||
| Score t / i | Bill | Score t / i | Bill | |||
| Qasper | 60.1 / 60.4 | 2.04 | 0.889 | 58.5 / 57.8 | 1.66 | 0.796 |
| QMSum | 23.7 / 21.3 | 2.03 | 0.804 | 22.5 / 22.6 | 2.91 | 0.859 |
| GovReport | 33.6 / 33.5 | 1.43 | 1.052 | 36.3 / 34.0 | 1.59 | 1.091 |
| RULER 8k | 97.7 / 92.7 | 1.37 | 0.682 | 95.3 / 92.3 | 1.84 | 0.690 |
| RULER 32k | 96.7 / 82.0 | 3.60 | 0.680 | 94.7 / 91.3 | 1.55 | 0.631 |
| Model (setting) | Extra tok. | Pre-commit | Osc. | Verify |
|---|---|---|---|---|
| Qwen 19px | +708 | 49% | 34% | 17% |
| Qwen 14px | +1419 | 50% | 34% | 16% |
| GLM 18px | +194 | 70% | 12% | 18% |
| GLM 16px | +538 | 59% | 25% | 16% |
| Glyph | +141 | 61% | 13% | 26% |
| Kimi-K3 | +246 | 53% | 27% | 20% |
| held-out median | ||||||
|---|---|---|---|---|---|---|
| Model | add | mul | aff. | power | aff. , | (corr.) |
| Kimi-K3 | 0.40 | 0.39 | 0.40 | 0.41 | 46, 1.45 | 0.86 (1.17) |
| Qwen 19px | 0.53 | 0.51 | 0.53 | 0.52 | 347, 1.02 | 0.57 (0.65) |
| Qwen 14px | 0.79 | 0.68 | 0.78 | 0.75 | 632, 1.29 | 0.52 (0.59) |
| GLM 18px | 0.57 | 0.55 | 0.55 | 0.54 | 239, 0.58 | 0.60 (0.74) |
| GLM 16px | 0.72 | 0.68 | 0.70 | 0.71 | 312, 0.71 | 0.58 (0.73) |
| Model | (easiest 20%) | |||
|---|---|---|---|---|
| Kimi-K3 | 1.78 | 2.11 | 465 | 132 |
| Qwen | 1.36 | 3.70 | 117 | 133 |
| GLM | 1.13 | 1.76 | 180 | 286 |
| Model | Data | Cheaper? | ||||
|---|---|---|---|---|---|---|
| Kimi-K3 | QuALITY | 1.78 | 2.07 | 0.41 | 0.26 | yes |
| Kimi-K3 | LongBench | 1.77 | 2.97 | 0.22 | 0.21 | yes |
| DeepSeek 20px | QuALITY | 1.97 | 2.47 | 0.34 | 0.20 | yes |
| DeepSeek 20px | LongBench | 1.84 | 2.59 | 0.29 | 0.19 | yes |
| DeepSeek 28px | QuALITY | 1.03 | 1.55 | 0.05 | 0.20 | no |
| Qwen 19px | QuALITY | 1.36 | 2.14 | 0.23 | 0.59 | no |
| Predictor (before generation) | Bill ( 1 pt) | |
|---|---|---|
| True length, same samples | 1.00 | 0.859 |
| True length, disjoint samples | 0.79 | 0.869 |
| Random | – | 0.942 |
| Reasoning router 0.6B (doc+q) | 0.03 | 0.953 |
| Complexity classifier (q only) | 0.14 | 0.975 |
| Document / question length | 0.02 / 0.21 | 0.949 / 0.979 |
| Kimi-K3 | DeepSeek | |||
| QuALITY | LongBench | QuALITY | LongBench | |
| All image | 0.871/ 2.21 | 0.985/ 0.68 | 0.833/ 2.60 | 0.864/ 1.46 |
| MT, 4B | 0.954/ 0.57 | 1.046/ 0.80 | 0.846/ 2.43 | 0.939/ 1.05 |
| MT, 32B | 1.000/0.00 | 1.000/0.00 | 1.000/0.00 | 1.000/0.00 |
| Fallback | 0.936/ 0.78 | 0.957/ 0.13 | 0.879/ 1.20 | 0.896/ 0.69 |
| + gate | 0.935/ 0.78 | 0.908/ 0.27 | 0.879/ 1.20 | 0.860/ 0.70 |
| All image | Saving budget | |||
| Kimi-K3 | QuALITY | 0.871 / 2.21 | 0.935 / 0.78 | 0.889 / 0.90 |
| LongBench | 0.985 / 0.68 | 0.908 / 0.27 | 0.911 / 0.30 | |
| DeepSeek | QuALITY | 0.833 / 2.60 | 0.879 / 1.20 | 0.868 / 1.26 |
| LongBench | 0.864 / 1.46 | 0.860 / 0.70 | 0.860 / 0.72 | |
| GLM 16px | QuALITY | 1.334 / 8.42 | 1.004 / 0.02 | 1.001 / 0.08 |
| Qwen 19px | QuALITY | 1.256 / 4.43 | 1.000 / 0.00 | 1.000 / 0.00 |
| QuALITY: decode and text path | Method | |||||||||||
| QuALITY | LongBench | Validation (7 sets) | ||||||||||
| Model | Effort | Fallback | Text bill | same | default | same | default | same | default | |||
| Full sets, 3 samples | ||||||||||||
| DeepSeek | 75 ∗ | 290 | 716 | 2.48 | 20% | 1.000 | 0.879/ 1.20 | 0.879/ 1.20 | 0.860/ 0.70 | 0.860/ 0.70 | 0.825/ 1.67 | 0.825/ 1.67 |
| 50 | 187 | 566 | 3.04 | 16% | 0.941 | 0.843/ 1.50 | 0.793/ 1.63 | 0.827/ 0.91 | 0.807/ 1.36 | 0.822/ 2.00 | 0.798/ 1.86 | |
| Kimi-K3 | max ∗ | 300 | 628 | 2.09 | 23% | 1.000 | 0.935/ 0.88 | 0.935/ 0.88 | 0.908/ 0.27 | 0.908/ 0.27 | 0.875/ 6.22 | 0.875/ 6.22 |
| Path | TTFT mean / med (s) | TPOT (ms) | Latency mean / p90 (s) | text | ||
| Kimi-K3 | text | 2.77 / 1.53 | 24.9 | 474 | 14.5 / 36.8 | 1.00 |
| image | 2.56 / 1.26 | 24.8 | 1,160 | 31.4 / 69.1 | 2.16 | |
| fallback | 2.56 / 1.27 | – | 678 | 19.6 / 47.7 | 1.35 | |
| DeepSeek | text | 0.45 / 0.26 | 6.8 | 469 | 3.6 / 9.9 | 1.00 |
| image | 0.46 / 0.25 | 6.8 | 1,120 | 8.1 / 16.8 | 2.23 | |
| fallback | 0.45 / 0.25 | – | 630 | 4.8 / 13.9 | 1.31 |
| Intervention | Outcome |
|---|---|
| Lower compression (Qwen) | acc. rises monotonically, still 4.3 at 1.24 ; savings vanish |
| Canvas width 1000–2000 px | no effect on acc. or decode |
| Inline delimiters (“//”) for collapsed breaks | +1.1 acc. |
| Reasoning budget prompt (Qwen) | decode below unbudgeted text, but 3.5 acc. vs. plain image (gives up on hard questions) |
| Locate-then-transcribe | +0 on hard questions vs. a fresh-seed baseline, 5 on controls, decode 2 |
| Early stop at stable answer | only 14–26% of the extra tokens follow the final answer (Table 3 ) |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Font (px) | Width (px) | Comp. |
|---|---|---|---|
| Qwen | 19/14 | 1750/1500 | 1.36/2.41 |
| GLM | 18/16 | 1500 | 1.13/1.43 |
| Kimi-K3 | 14 | 1500 | 1.78 |
| DeepSeek | 20/28 | 1512 | 1.97/1.03 |
| Glyph | official | 1.79 | |
| Model | Data | All image | Saving budget | |
|---|---|---|---|---|
| Qwen 19px | QuALITY | 1.256 [1.207, 1.310] / 4.43 [ 5.61, 3.20] | 1.000 [1.000, 1.000] / 0.00 [ 0.00, 0.00] | 1.000 [1.000, 1.000] / 0.00 [ 0.00, 0.00] |
| GLM 16px | QuALITY | 1.334 [1.250, 1.425] / 8.42 [ 9.78, 7.06] | 1.004 [1.000, 1.010] / 0.02 [ 0.05, 0.00] | 1.001 [1.000, 1.004] / 0.08 [ 0.21, 0.00] |
| Kimi-K3 | QuALITY | 0.871 [0.841, 0.902] / 2.21 [ 2.97, 1.46] | 0.935 [0.914, 0.957] / 0.78 [ 1.27, 0.31] | 0.889 [0.866, 0.912] / 0.90 [ 1.46, 0.36] |
| Kimi-K3 | LongBench | 0.985 [0.964, 1.005] / 0.68 [ 1.16, 0.15] | 0.908 [0.895, 0.922] / 0.27 [ 0.59, 0.06] | 0.911 [0.897, 0.925] / 0.30 [ 0.66, 0.07] |
| DeepSeek ( ) | QuALITY | 0.833 [0.799, 0.869] / 2.60 [ 3.44, 1.75] | 0.879 [0.853, 0.906] / 1.20 [ 1.78, 0.66] | 0.868 [0.843, 0.896] / 1.26 [ 1.90, 0.70] |
| DeepSeek ( ) | LongBench | 0.864 [0.849, 0.879] / 1.46 [ 1.94, 1.00] | 0.860 [0.845, 0.874] / 0.70 [ 1.05, 0.35] | 0.860 [0.847, 0.873] / 0.72 [ 1.04, 0.39] |
| 1.00 | 1.50 | 1.55 | 1.60 | 1.65 | 1.70 | 1.80 | 2.00 | |||
| Validation | Kimi-K3 | 7 sets | 1.017/ 6.62 | 0.893/ 6.67 | 0.874/ 6.69 | 0.875/ 6.22 | 1.002/ 0.10 | 1.000/ 0.11 | 0.996/ 0.05 | 0.994/ 0.04 |
| DeepSeek | 7 sets | 0.954/ 1.69 | 0.874/ 1.68 | 0.838/ 1.69 | 0.825/ 1.67 | 0.979/ 0.30 | 0.994/+0.04 | 0.998/+0.02 | 0.996/+0.01 | |
| Test | Kimi-K3 | QuALITY | 0.936/ 0.78 | 0.935/ 0.78 | 0.935/ 0.78 | 0.935/ 0.78 | 0.935/ 0.78 | 0.935/ 0.78 | 0.946/ 0.56 | 1.000/ 0.03 |
| LongBench | 0.957/ 0.13 | 0.919/ 0.21 | 0.912/ 0.27 | 0.908/ 0.27 | 0.908/ 0.37 | 0.905/ 0.55 | 0.904/ 0.42 | 0.933/ 0.21 | ||
| DeepSeek | QuALITY | 0.879/ 1.20 | 0.879/ 1.20 | 0.879/ 1.20 | 0.879/ 1.20 | 0.879/ 1.20 | 0.879/ 1.20 | 0.883/ 1.20 | 0.936/ 0.74 | |
Efficient VLM Inference
Efficient vision-language model inference reduces the compute, memory, latency, and energy needed to process images, video, and text.
See all 547 papers