Visual token compression often treats salience or similarity as a proxy for transcription importance. Complete document OCR breaks this assumption: small symbols and repeated entries can be indispensable to the transcript despite being visually inconspicuous. We present Select and Compensate, a two-stage framework built on a simple idea: choosing where to retain a token need not determine all the evidence it carries. Selection combines adaptive encoding resolution with global importance and local contrast to choose which tokens to retain as anchors. Compensation enriches these anchors with nearby discarded content and its relative position, without adding tokens. The OCR backbone remains frozen, and native coordinates and structural tokens are preserved. We evaluate complete page transcription across five backbones on OmniDocBench and document reconstruction on MPDocBench. With half the original visual tokens, our input-adapted configuration reaches 95.42 OmniDocBench Overall on Ovis versus 96.09 for the uncompressed model, and paired evaluations show gains over simply reducing the input resolution on both benchmarks. With the original input grid, our method stays within 0.17 points of the uncompressed model at 75% retention and exceeds a learned global selector by 4.70 points at 25%. On a fixed 200-page Ovis workload at the same 50% visual-token budget, only 3 of its outputs hit the length limit, versus 30-34 for the evaluated RTPrune, DivPrune, and HiPrune adaptations, and it finishes the batch 35-40% sooner. Code will be made publicly available.
Figures & tables
Figure 1: Small on the page, essential to the transcript. Schematic examples illustrate why small symbols and repeated entries cannot be judged by occupied area or appearance alone. Our design separates the locations retained by selection from the nearby content and relative-position evidence carried through compensation.
Figure 2: Allocate addresses, carry nearby evidence. Selection adjusts the input before the frozen encoder/merger, then ranks content features to retain Kc=K−S′ anchors. Compensation turns discarded content–position evidence into an anchor-gated residual. The S′ structural slots of the processed grid bypass ranking and compensation, giving exactly K decoder slots, the original total budget. Native coordinates refer to the processed grid. A real-page input example and geometry are in Supplement S13.
Method
Visual tokens (%)
Overall ↑
Text edit ↓
CDM ↑
TEDS ↑
Order edit ↓
Capped pages ↓
Uncompressed
100.0
96.085
0.0251
95.972
94.797
0.1105
10
RTPrune
50.0
73.132
0.4359
80.235
82.747
0.2776
347
DivPrune
50.0
77.219
0.2192
78.324
75.255
0.2091
186
HiPrune
50.0
90.900
0.1142
94.426
89.696
0.1665
134
LayoutLite
52.1
92.500
0.0748
94.261
90.721
0.1557
115
LIS
50.0
94.073
0.0552
94.746
92.992
0.1375
65
Table 1: Complete-method comparison on OvisOCR2, 1,651 pages, original 50% decoder budget. Ours is the complete method with input adaptation; baselines keep their own preprocessing and runtime. The uncompressed model and Ours keep the state of the decoder’s state-space (SSM) layers in FP32, the other methods in BF16. LayoutLite matches mean-page retention, and reduced resolution approximates the budget with a smaller dense grid. Visual tokens are decoder slots relative to the original ∑N ; capped pages reach the output-length limit and remain scored. Bold/underline: best/second-best compressed result in each column.
Retention
LIS
RTPrune
Ours
25%
82.745
36.466
87.448
50%
94.073
73.132
94.566
75%
95.887
93.512
95.918
100%
96.085 (uncompressed)
Table 2: Ovis quality at 25%, 50%, and 75% retention, all 1,651 pages. Overall on original-grid inputs. The Ours scorer is fixed across rates, with compensation trained per rate. Compressed arms keep BF16 SSM state, unlike the input-adapted FP32 configuration in Tab. 1 . Bold/underline: best/second-best token-selection method in each row.
Backbone
Visual interface
Pages
Uncompressed
RTPrune
DivPrune
HiPrune
LIS
Ours
Rel. (%)
Ovis
Single grid
1,651
96.085
73.132
77.219
90.900
94.073
95.417
99.3
Logics-V3
Single grid
1,651
94.729
64.645
68.511
88.348
91.516
92.708
97.9
HunyuanOCR
Grid + row slots
1,651
95.092
75.252
86.671
90.667
91.654
91.070
95.8
Unlimited-OCR
Global + tiles
384
94.483
77.149
44.335
51.983
89.409
89.892
95.1
Qwen-HF
Single grid
384
76.184
58.414
61.045
68.556
58.925
62.285
81.8
Table 3: Complete-method comparison across five backbones, original retention .50 . Ours includes input adaptation; baselines keep their own preprocessing and runtime. Qwen-HF runs all arms through one common Hugging Face implementation; Unlimited-OCR and Qwen-HF use Omni384. Rel. is Ours as a percentage of the same backbone’s uncompressed Overall. LayoutLite, which requires layout training for each backbone, is compared on Ovis in Tab. 1 ; the VisCo adaptation is in Supplement S14. Bold/underline: best/second-best compressed score in each row.
Backbone
Ours
Global scorer
Δ
Ovis
95.417
95.524
−0.107
Logics-V3
92.708
92.981
−0.273
HunyuanOCR
91.070
91.312
−0.242
Unlimited-OCR (384)
89.892
89.556
+0.336
Qwen-HF (384)
62.285
65.136
−2.851
Table 4: Matched-input configurations, original .50 budget. Global scorer: the inherited global scorer without learned contrast or compensation. Both columns share processed pixels, actual K , and runtime; Δ is Ours − Global in points.
Configuration
Selection
Comp.
Overall
Complete
Budget-aware
✓
95.417
Comp. only
Uniform anchors
✓
91.663
Ranking only
Learned only
—
94.672
Table 5: Configuration ablations on Ovis, original 50% retention. Comp.: local compensation. Comp. only applies the same frozen compensation to fixed equally spaced anchors at the original K . Ranking only uses the learned ranking without input adaptation or compensation, with BF16 SSM state versus FP32 for the complete method.
Backbone
Method
Overall
X-text
X-TEDS
Original-grid input
Ovis
LIS
67.522
71.704
64.616
Ovis
RTPrune
49.725
40.126
56.510
Ovis
Ours
68.116
72.484
64.663
Logics
LIS
70.188
80.256
77.195
Logics
RTPrune
41.782
36.775
58.787
Table 6: Document quality on MPDocBench, 409 documents. Overall averages all eight official columns; X-text and X-TEDS are the cross-page text and table columns. Original-grid rows follow each backbone’s request format; both input-adapted Ovis arms keep FP32 SSM state. Bold/underline: best/second-best within each backbone and block. All eight columns are in Supplement S7, S14.
Visual
Omni
TTFT
E2E
Capped
Burst
Used KV
GPU
Method
tokens (%)
Overall ↑
p50
p50
p95
pages
p50
wall
(MiB)
(MiB)
Uncompressed
100
96.085
.147
2.94
8.40
0
52.9
71
9,788
26,758
LIS
50
94.073
.157
3.03
8.86
1
43.2
121
5,229
27,940
RTPrune
50
73.132
.171
2.63
74.83
30
43.3
191
6,282
27,944
DivPrune
50
77.219
.238
2.43
74.85
31
54.7
206
6,491
27,950
HiPrune
50
90.900
.216
2.90
75.18
34
53.3
204
6,484
27,474
Table 7: Ovis costs at a 50% visual budget, original-grid inputs, 200 pages. Omni Overall is the quality of the same original-grid configurations on all 1,651 OmniDocBench pages ( Tabs. 1 and 2 ); the 200 timing pages are not quality-scored. TTFT: time to first token; E2E: end-to-end request latency; times in seconds. Capped: length endings in batch-1 runs. Burst: all 200 requests submitted at once, with request-completion p50 and whole-batch wall time. Used KV and GPU: sampled burst peaks of used key–value (KV) cache and of total allocated memory, which is dominated by the preallocated cache. Compressed arms keep BF16 SSM state, the uncompressed model FP32. One RTX 4080 SUPER. Bold/underline: best/second-best among compressed methods; ties share a mark.
Visual token compression reduces image and video representations to lower inference, memory, storage, or communication costs while retaining task-relevant information.