UniCoRn: A Benchmark for Unified Compression and Reranking
arXiv ↗PDF ↗Paper ↗Website ↗Code ↗
Read first: Reranker map: pointwise, pairwise, setwise, listwise and reasoning rerankers · Q2D-Web: evaluating first-stage retrievers at web scale · RCP-nDCG@10: A more complete way to measure retrieval relevance · BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agent
Intuition. In RAG and search agents, reranking cuts how many documents reach the LLM, but each surviving document can still be thousands of noisy tokens long. Context compressors trim inside each document—yet many benchmarks only report end-task QA accuracy on standardized Wikipedia pools, hiding why a compressor broke (did it cut off a table header? delete a pronoun antecedent? wipe out its own rank-1 document? trigger extra agent searches?). UniCoRn (Cohere) structures compression evaluation like a software testing pyramid—Unit (retrieval-free), Integration (fixed pool), and System (dynamic agent loop over fixed corpora)—adds diagnostic metrics for evidence survival and ranking–compression alignment, and trains hard (Comp-H) and soft (Comp-S) baselines on the same encoder backbone and source pools.
Source: UniCoRn: A Benchmark for Unified Compression and Reranking, arXiv, submitted November 25, 2026 (HTML full text; GitHub; HF dataset; checkpoints unicorn-comp-h and unicorn-comp-s), by Grace Byun (Emory University, Cohere internship; equal contribution), Clifton Poth (Cohere; equal contribution), Carlos Lassance (Cohere), and Nils Reimers (Cohere).
First read: grasp the three-tier testing pyramid, the two diagnostic metrics (WER and M1/M2/M3 alignment), how answer structure splits hard vs. soft compression, and the sharp BrowseComp-Plus vs. OfficeQA divergence in agent loops. Skip individual prompt templates and per-language breakdowns on a first pass.
Three-tier pyramid and diagnostic metrics
Section titled “Three-tier pyramid and diagnostic metrics”UniCoRn organizes evaluation into three tiers where the compressor stays fixed and the retrieval regime changes (while datasets, generators/agents, and scoring also adapt to each tier):
| Tier | Retrieval regime | Scale | What it isolates |
|---|---|---|---|
| 1. Unit Test | Retrieval-free (1 handcrafted doc/query) | 100 queries (10 diagnostic types × 10) | Pure compressor failure modes: Multi-hop Long (128K tokens), Numerical Tables, Scattered Evidence, Info Density, Adversarial Distractor, Contextualized coreference, Union, Summarization, Ugly Formatting, Cross-lingual |
| 2. Integration Test | Retrieval-fixed (frozen Embed-4 top-50, gold guaranteed; Academic Papers uses a fixed 10-doc bge-base-en-v1.5 pool; top-5 kept) | 12,775 queries (17 datasets, 10 domains, 5 languages: En, Fr, Ja, Ko, De) | Enterprise realism (ViDoRe v3 En/Fr, FinQA, Enterprise RAG Bench, ConditionalQA, HotpotQA, new Academic Papers, JSQuAD, KorQuAD, KLUE-MRC, LegalQuAD); shared Qwen3.5-9B generator (OSCAR uses its own Qwen2-7B) & Qwen3.5-35B-A3B judge (mean softmax weight on first-token Yes) |
| 3. System Test | Retrieval-dynamic (multi-turn gpt-oss-120B agent over fixed corpora) | 1,076 queries (BrowseComp-Plus 830 + OfficeQA 246) | Closed-loop compounding errors: compressed snippets shape the agent’s next query and end-to-end token cost |
Beyond judge scores, UniCoRn adds two diagnostics:
- Weighted Evidence Recall (WER): for sentence-level hard compressors (undefined for soft models; token-level pruners use a content-weighted token survival rule), let be the gold evidence spans (on Integration: native spans with for ConditionalQA/HotpotQA/LegalQuAD, otherwise an ensemble of Claude Opus 4.6 + Gemini 2.5 Flash where consensus spans get and single-model spans get ; Unit generally uses Claude Opus 4.8; System has no span labels) and the surviving spans:
A co-author audit of 110 queries (1,057 spans, one initial reviewer per query) caught omitted table headers in FinQA (
5/12initial sufficiency; header-aware re-annotation4/8 → 8/8), reached 90.0% query sufficiency after revision, and found 3.8% irrelevance on vs. 19.9% on spans (109/113 irrelevant spans in ViDoRe). A separate double-annotated subset of 822 spans from 65 queries reached inter-annotator , weighted , Gwet’s AC1 . Across 98 Unit+Integration configuration aggregates for sentence-level compressors plus Keyword Snippet, WER correlates strongly with judge score (Pearson , partial controlling for compression ratio; Integration-only ; pooled Integration query-level , positive on all 17 datasets; token-level pruners drop to ). - Ranking–Compression Alignment (M1 / M2 / M3):
- M1 (top-1 empty rate): fraction of queries whose rank-1 document is pruned to 0 tokens.
- M2 (Spearman alignment): mean per-query Spearman correlation over top-5 documents between reranker score order and retention fraction .
- M3 (downstream impact): mean judge accuracy on queries where rank-1 is kept vs. emptied (an observational split across different query groups).
Hard (Comp-H) vs. soft (Comp-S) baselines on BidirLM-0.6B
Section titled “Hard (Comp-H) vs. soft (Comp-S) baselines on BidirLM-0.6B”Both baselines share the BidirLM-0.6B encoder backbone and identical Web+Wikipedia + parsed PDF training pools (~18h on 2×8 H100), though their pipelines still differ: Comp-H trains token-relevance (cross-entropy on sequence indices from a reasoning-enabled Qwen3.5-27B teacher with row-aware table segmentation) and reranking (margin-MSE from Cohere Rerank 4 Pro) jointly and feeds unmodified Qwen3.5-9B; Comp-S compresses every 128 tokens into 8 memory tokens (nominal 16× = 93.75% removal), relies on external bge-reranker-v2-m3 for ranking (73.0 vs. Comp-H’s 79.3 nDCG@5), and LoRA-finetunes the Qwen3.5-9B decoder on generated answers.
- Training ablation (Table 27, , compression varies 58.9%–82.9%):
XProvence(bge-reranker-v2-m3, mostly multilingual MS MARCO) scores 0.48 judge (58.9% comp, 66.22 nDCG@5). Within the authors’ recipe,Comp-H (−PDF)(BidirLM, Web+Wiki) scores 0.54 (82.9% comp, 78.11 nDCG@5),Comp-H (−model)(bge-reranker-v2-m3+ PDF) scores 0.58 (76.4% comp, 73.10 nDCG@5), and finalComp-Hreaches 0.63 (73.4% comp, 78.41 nDCG@5, 68.87% WER)—so adding PDFs adds +0.09 with BidirLM fixed and upgrading the backbone adds +0.05 with PDFs fixed. - Answer structure drives hard vs. soft trade-offs:
- At ~75% compression on Integration Test (17 datasets, Table 5 & Table 18),
Comp-Hdefines the Pareto frontier (0.63 judge vs. its 0.68 unpruned top-5 reference, winning 13/17 datasets; Semantic HL 0.57, OpenProvence 0.56, DSLR-Zerank 0.51, Provence 0.51, XProvence 0.37, LLMLingua-2 0.25). - At near-matched ~93.6% compression (Table 19:
Comp-Hat 93.3% vs.Comp-Sat 93.6%),Comp-Hstill leads overall (0.46 vs. 0.36; OSCAR 0.27) because soft compression loses exact numbers, names, and table delimiters (FinQA:Comp-H0.41 at 75% / 0.19 at 93% vs.Comp-S0.07;Academic Papers0.62 vs. 0.16 at 93%). Token-level deletion (LLMLingua-2,LongLLMLingua) collapses to 0.05 on FinQA. - Where soft compression wins: semantic aggregation and overview questions — Unit Test Summarization (
Comp-S0.75 vs. unpruned 0.35 andComp-H0.45 at / 0.62 at ; ) and Integration ViDoRe CS boolean (Comp-S0.94 vs. gold-document reference 0.82; ) as well as ViDoRe CS and Physics at ~93.6%.
- At ~75% compression on Integration Test (17 datasets, Table 5 & Table 18),
- Ranking–compression misalignment (M1/M2/M3):
XProvence() empties its rank-1 document on 33% of queries (M3 split 0.47 vs. 0.16); at ~75% compression,DSLR-Zerank() has higher mean M2 (0.61vs.Comp-H0.43) yet empties rank-1 9.9% of the time (vs.Comp-H1.2%) and scores 0.51 vs. 0.63 (at , DSLR’s M3 split is0.58 vs. 0.06;Comp-H’s is0.63 vs. 0.16).OpenProvence’s low headline M1 (1.4% at 74%) is partly masked by its defaultzero_score_when_empty=Trueflag—disabling it raises M1 from 0.4/3.3/10.3% to 1.9/7.4/17.7% at .
Dynamic search agents: BrowseComp-Plus vs. OfficeQA (author-reported)
Section titled “Dynamic search agents: BrowseComp-Plus vs. OfficeQA (author-reported)”Table 6 reports full-benchmark accuracy, recall, and compressor-only removal (830 BrowseComp-Plus / 246 OfficeQA); Tables 25–26 report end-to-end total tokens (input + output, with reasoning as a subset of output) over completed intersections (670/830 common queries on BC+ vs. 512-capped rerank-only at 168.3K tokens / 95.6% truncation reduction; 239/246 common queries on OfficeQA vs. rerank-only at 136.9K tokens):
System (gpt-oss-120B, Rerank+Compress except baselines) | BC+ Acc / Recall (Table 6) | BC+ Comp.% (T6) / ΔTotal tok (T26, ) | OfficeQA Exact (±5%) / Recall (Table 6) | OfficeQA Comp.% (T6) / ΔTotal tok (T25, ) |
|---|---|---|---|---|
| Retrieval-only (512 cap on BC+) | 40.8 / 46.0 | 0% / — | 22.2 (38.3) / 39.7 | 0% / — |
| Rerank-only (BGE, 512 cap on BC+) | 45.9 / 50.7 | 0% (95.6% cap) / ref (168.3K) | 29.4 (45.0) / 48.5 | 0% / ref (136.9K) |
Comp-H (ours) | 64.1 / 65.6 | 98.8% / −38.4% (103.7K) | 22.8 (41.9) / 59.8 | 84.6% / −43.5% (77.3K) |
OpenProvence | 56.3 / 59.0 | 97.4% / −14.5% (143.9K) | 17.5 (37.8) / 49.9 | 79.2% / −32.2% (92.8K) |
Provence | 52.5 / 58.1 | 95.7% / −25.7% (125.0K) | 16.3 (29.3) / 43.7 | 81.1% / −30.4% (95.3K) |
DSLR-Zerank | 44.6 / 53.7 | 95.8% (97.5% T26) / +17.0% (196.9K) | 22.9 (41.6) / 46.7 | 37.8% / −0.7% (135.9K) |
LLMLingua-2 | 23.1 / 32.5 | 46.0% / +116.6% (37.8% compl. subset) | 12.2 (28.6) / 46.9 | 36.6% / +8.5% (148.5K) |
LongLLMLingua | 28.3 / 43.1 | 45.7% / +49.6% (251.8K) | 1.2 (5.7) / 41.9 | 42.5% / +49.2% (204.3K) |
Three operational takeaways (including Appendix J’s 30-query single-run B200 latency & replay profiling):
- Open web vs. financial tables invert: without the 512-token cap, uncompressed pipelines overflow context on 457/830 (retrieval-only, 26.4% acc) and 622/830 (rerank-only, 18.6% acc) BrowseComp-Plus queries, whereas uncapped
Comp-Hoverflows on only 5/830 and reaches 64.1% (under a shared 512-token cap in Table 23, 120BComp-Hstill rises40.8 → 48.5 (+7.7)compress-only →64.5 (+16.0 over compress-only; +18.6 over capped BGE rerank-only)). On OfficeQA, no compressor recovers rerank-only’s 29.4% exact match because dropping a single table cell breaks arithmetic;Comp-Hmatches retrieval-only accuracy while cutting −43.5% total tokens relative to rerank-only (in Appendix J’s 30-query B200 run,Comp-HRC takes 5.29 s median E2E—slower than the plain baseline’s 4.05 s, though faster thanDSLR-Zerank’s 11.46 s—with 2.85 GiB compressor-only replay VRAM on OfficeQA / 3.02 GiB on BC+ vs.DSLR-Zerank’s 74.89 GiB, and 45.0 vs. 155.0 TFLOPs estimated uncached prefill vs. the plain baseline). - Per-search compression can increase total agent tokens—for different reasons: on OfficeQA,
LLMLingua-2adds +8.5% total tokens via +20.3% more reasoning tokens and extra searches, whileLongLLMLinguauses fewer reasoning tokens (1,835 vs. 2,184) but +49.2% total tokens from extra search turns (7.83 vs. 3.78); on BC+,DSLR-Zerankadds +17.0% via extra searches (11.40 vs. 9.39),LongLLMLinguaadds +49.6% despite fewer searches (7.94 vs. 9.39) via longer retained inputs, andLLMLingua-2reaches +116.6% on its 37.8% completed subset. - Average compression hides per-type budgets: on Unit Test Multi-hop Long (128K tokens, ), other sentence-level pruners keep fewer than 500 tokens at ~75% average compression, whereas
Sentinelremoves 68–74% across each type—keeping ~38K tokens on Multi-hop Long and scoring0.80vs.0.77unpruned.
Caveats and open questions
Section titled “Caveats and open questions”- Ecosystem & domain coupling: Qwen3.5 plays span teacher (27B), Integration generator (9B), and judge (35B-A3B); Embed-4 and Rerank 4 Pro are Cohere models; and
Comp-H’s PDF training pool (ColPali, VDR, TAT-DQA) overlaps in domain with ViDoRe v3 and FinQA. - Modality loss, unmatched thresholds & small slices: 20.4% of ViDoRe v3 queries (493/2,419) were Gemini-flagged unanswerable from parsed Markdown (charts/images dropped), vs. 7.9% elsewhere (removing flagged queries keeps rankings stable at Spearman ). System Test thresholds vary per compressor (); Unit types () and ViDoRe CS boolean () are small slices; trained
Comp-H/Comp-Scome from single runs; and languages remain English-heavy plus four high-resource languages (Fr, Ja, Ko, De).
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
An Integration Test query has 5 gold evidence spans annotated by the Claude Opus 4.6 + Gemini 2.5 Flash ensemble: 3 consensus spans (w = 2 each) and 2 single-model spans (w = 1 each). (a) Compute Weighted Evidence Recall (WER) for Compressor A (retains 2 consensus + 2 single-model spans) vs. Compressor B (retains 3 consensus + 0 single-model spans), and state whether ensemble weighting reverses or ties their unweighted ranking. (b) On the Integration Test at ~75% compression, DSLR-Zerank (τ = 0.5) achieves higher mean M2 Spearman rank–retention alignment (0.61) than Comp-H (0.43), yet empties its rank-1 document on M1 = 9.9% of queries (vs. 1.2% for Comp-H) and scores 0.51 judge accuracy (vs. 0.63). Explain why higher mean M2 can coexist with worse M1 and lower accuracy—and why M3's kept-vs-emptied gap at τ = 0.3 is observational rather than a causal proof.
What a strong answer covers
- (a) Total gold weight = 3×2 + 2×1 = 8. Compressor A gets (2×2 + 2×1)/8 = 6/8 = 0.75 (unweighted 4/5 = 0.80); Compressor B gets (3×2 + 0)/8 = 6/8 = 0.75 (unweighted 3/5 = 0.60). Weighting turns A's unweighted lead into a tie—supported qualitatively by the human audit finding 19.9% irrelevance on w = 1 spans vs. 3.8% on w = 2 spans (though the exact 2:1 ratio is a design choice, not derived from the audit).
- (b) M2 is the across-query mean of per-query Spearman correlation between reranker score and token-retention fraction kept(d)/orig(d) over top-5 documents. Emptying rank-1 pulls that single query's M2 down, but the ~90% of queries where rank-1 stays nonempty dominate the mean—and M2 does not measure whether the retained text is actually useful.
- M1 (top-1 empty rate) isolates the sharpest contradiction: discarding rank-1 completely. At τ = 0.3, M3 shows a large accuracy gap between kept-rank-1 and emptied-rank-1 queries across every model (Comp-H 0.63 vs. 0.16, DSLR-Zerank 0.58 vs. 0.06, XProvence 0.47 vs. 0.16); because those are different query groups (emptied queries may be intrinsically harder, and Comp-H empties only ~1–2%), M3 is a strong association rather than a randomized causal intervention.
- Mechanism
Trace how UniCoRn's three tiers (Unit retrieval-free, Integration retrieval-fixed, System retrieval-dynamic) expose failures invisible in single-shot RAG benchmarks—specifically (a) why matching average compression ratio (~75%) hides radically different per-query token budgets on Unit Test Multi-hop Long, and (b) why compressing retrieved text can still *increase* end-to-end agent token consumption inside a live search loop.
What a strong answer covers
- (a) On Unit Test Multi-hop Long (two gold HotpotQA paragraphs inside a 128K-token distractor document, n = 10), other sentence-level pruners remove >99.6% of tokens (fewer than 500 kept) at their ~75%-average threshold, whereas Sentinel removes a fairly uniform 68–74% across query types—keeping ~38K tokens on Multi-hop Long and scoring 0.80 (vs. 0.77 unpruned) largely via budget allocation rather than sharper selection.
- (b) In System Test (retrieval-dynamic), compressed context feeds back into the agent's next query, so poor compression can inflate end-to-end tokens through different mechanisms: on OfficeQA (Table 25, 239 common queries), LLMLingua-2 removes 36.6% of retrieved tokens yet increases total tokens +8.5% with +20.3% more reasoning tokens and more searches (5.09 vs. 3.78), while LongLLMLingua uses *fewer* reasoning tokens (1,835 vs. 2,184) yet increases total tokens +49.2% via extra search rounds (7.83 vs. 3.78).
- On BrowseComp-Plus (Table 26, 670 common queries vs. 512-capped rerank-only), DSLR-Zerank increases total tokens +17.0% via more search calls (11.40 vs. 9.39; 22.4K vs. 22.2K retrieved tokens), and LongLLMLingua increases total tokens +49.6% despite *fewer* searches (7.94 vs. 9.39) due to larger retained contexts (44.8K vs. 22.2K).
- What if…
Using Table 27's training ablation at fixed τ = 0.2 (XProvence 0.48 at 58.9% comp; Comp-H without PDF 0.54 at 82.9%; Comp-H with bge-reranker-v2-m3 + PDF 0.58 at 76.4%; final Comp-H 0.63 at 73.4%) and the near-matched ~93.6% hard-vs-soft comparison (Table 19: Comp-H 0.46 vs. Comp-S 0.36, OSCAR 0.27), explain: (1) what Table 27 cleanly shows vs. leaves confounded, and (2) which answer structures favor sentence-level hard pruning vs. latent soft compression (and why Comp-H vs. Comp-S compares pipelines, not purely compression representations).
What a strong answer covers
- (1) Within the authors' recipe, the two clean contrasts are adding the PDF pool with BidirLM fixed (+0.09: 0.54 → 0.63) and upgrading the backbone with PDF fixed (+0.05: 0.58 → 0.63). Note that lifts over XProvence (+0.06 and +0.10, summing to 0.64 vs. 0.63 observed) are NOT super-additive and are confounded by different training data/teachers and mismatched compression ratios (58.9%–82.9%) plus single training runs; rate-matched arms and a same-recipe bge-reranker-v2-m3-without-PDF arm would isolate the interaction cleanly.
- (2) Comp-H vs. Comp-S share BidirLM-0.6B and source pools, but differ in pipeline: Comp-H uses its own reranking head (79.3 nDCG@5) and unmodified Qwen3.5-9B, whereas Comp-S relies on external bge-reranker-v2-m3 (73.0 nDCG@5) and a LoRA-finetuned Qwen3.5-9B decoder (OSCAR uses its own Qwen2-7B decoder, leading Table 5 on HotpotQA at 0.69).
- By answer structure: at ~93.6% compression (Table 19), Comp-H still leads overall (0.46 vs. 0.36) because soft compression maps 128 tokens into 8 latent vectors, losing exact numbers, names, and table delimiters (FinQA: Comp-H 0.41 at 75% / 0.19 at 93% vs. Comp-S 0.07; Academic Papers 0.62 vs. 0.16; token-level LLMLingua-2/LongLLMLingua collapse to 0.05 on FinQA).
- Soft compression excels on semantic aggregation/overview tasks where no single verbatim span suffices: Unit Test Summarization (Comp-S 0.75 vs. unpruned 0.35 and Comp-H 0.45 at τ=0.4 / 0.62 at τ=0.9; n = 10) and ViDoRe CS boolean (Comp-S 0.94 vs. gold-doc reference 0.82; n = 20).
- Design
You are designing the retrieval-and-compression stage for an enterprise search agent serving both long open-web multi-hop queries (like BrowseComp-Plus) and table-heavy financial calculation queries (like OfficeQA) under strict GPU memory and latency SLAs. Specify your compression routing policy, alignment guardrails, and telemetry—and explain how you would validate that routing beats rerank-only before shipping.
What a strong answer covers
- Workload-conditional routing (untested in the paper, so validate on held-out queries first): use joint reranking + row-aware sentence-level compression (Comp-H-style) on long heterogeneous corpora where uncompressed contexts overflow (BrowseComp-Plus: 64.1% vs. 45.9% capped rerank-only, −38.4% total tokens on 670 common queries), while testing a conservative threshold or rerank-only bypass on dense numerical/tabular calculation queries (OfficeQA: no compressor matches rerank-only's 29.4% exact / 45.0% ±5%, and Comp-H RC median E2E latency on 30 queries is 5.29 s vs. 4.05 s plain baseline).
- Alignment guardrails: log pre-floor M1 top-1 empty rate alongside downstream accuracy—avoid hiding misalignment behind a score-zeroing hack like OpenProvence's zero_score_when_empty=True (which masked M1 rising from 0.4/3.3/10.3% to 1.9/7.4/17.7% at τ=0.1/0.3/0.5), and remember a forced nonempty floor makes M1 look clean by construction unless verified against WER/answer quality.
- End-to-end telemetry: track total tokens = input + output (reporting reasoning tokens separately as a subset of output, never adding them twice), search-call count, overflow/completion rate, separate compressor-process VRAM (2.85 GiB OfficeQA / 3.02 GiB BC+ for Comp-H in replay) vs. full agent GPU memory, and offline WER (aggregate r = 0.980 for sentence-level pruners + Keyword, not a per-query substitute).
- Critique
Identify the strongest methodological confounds in UniCoRn (beyond those already controlled by Table 23's shared 512-token BrowseComp-Plus check), and design one concrete follow-up experiment whose outcome would genuinely overturn or confirm UniCoRn's headline ranking.
What a strong answer covers
- Model-family & ecosystem coupling: Qwen3.5 plays every role—Comp-H span teacher (27B), shared Integration generator (9B), and judge (35B-A3B)—while Embed-4 and Rerank 4 Pro are Cohere models, and Comp-H's PDF training pool (ColPali, VDR, TAT-DQA) is domain-close to ViDoRe v3 and FinQA.
- Annotation & modality boundaries: human audit (110 queries, single initial reviewer) caught missing table headers in FinQA (5/12 initial sufficiency; re-annotation 4/8 → 8/8) and 10.7% irrelevant spans (109/113 in ViDoRe); 20.4% of ViDoRe v3 queries (493/2,419) were Gemini-flagged unanswerable from parsed Markdown (though removing flagged queries preserves rankings at ρ = 0.993).
- Unmatched operating points & single runs: System Test thresholds differ by method (τ from 0.1 to 0.55) without matched compression curves; Table 6 compares capped uncompressed baselines to uncapped compressors (Table 23 checks shared 512-token capping, where Comp-H still beats rerank-only 64.5 vs. 45.9); trained Comp-H/Comp-S come from single runs; Unit types have n = 10 and ViDoRe CS boolean has n = 20.
- Decisive follow-up experiment: re-evaluate the top 4 compressors (Comp-H, Semantic HL, OpenProvence, DSLR-Zerank) using a non-Qwen generator and non-Qwen judge (plus human spot-checks) at matched end-to-end token budgets on both System Test tasks with explicit overflow accounting (counting overflows as 0); if Comp-H's BrowseComp-Plus and Integration margins collapse outside the Qwen3.5/PDF-overlap regime, the headline Pareto claim narrows to in-family transfer.