Summary
The paper proposes Coca-Cola, a compressor for the tool observations of LLM agents. A small LM encoder (Qwen3.5-4B or GLM-Z1-9B with LoRA) reads the task, the agent's current reasoning and the raw tool output. A cross-attention adapter then maps its hidden states to continuous vectors, which are injected into the input-embedding space of a frozen agent (Qwen3.5-35B-A3B or GLM-4.7-Flash) in place of the text observation (Sec. 3.3, Eq. 7). The compressor is trained with Action-Preserving Training: a KL term between the agent's next-action distributions under the full and the compressed observation, plus cross-entropy on the recorded next action (Sec. 3.4, Eq. 9).
On four web-search QA benchmarks (NQ, TriviaQA, 2Wiki, HotpotQA), the paper reports that agent-side token consumption drops by 70.01-89.24% and runtime by 24.45-55.97% (Tables 1-2). It also reports that EM and F1 rise over the uncompressed agent in all 16 model-dataset-metric cells, and that Coca-Cola is the best of four compression baselines in 13 of 16 cells (Table 3). Ablations vary (Fig. 3) and the conditioning inputs (Table 4). A codebook-capacity argument (Sec. 3.2) and a case study (Fig. 4) round out the paper.
The idea is clear and the tables are arithmetically self-consistent. However, the released evaluation harness shows that Coca-Cola and the baselines were run under different protocols. EM values that are not attainable on a common question set point to inconsistent evaluation sets. No statistics are given. Together these mean the headline claim of consistently improved accuracy is not yet supported.
Strengths
Simple, well-motivated architecture that leaves the agent frozen
Sec. 3.3-3.5, Fig. 2, Eqs. 7-13
The design is clean: a query- and reasoning-conditioned encoder, a learned-query cross-attention adapter (
LatentAdapter, train/model.py:310) and a frozen agent. Only encoder LoRA and the adapter are trained, so the method could in principle be bolted onto an existing agent without fine-tuning it. Fig. 2 and Eqs. 7-13 describe the pipeline well enough to follow the code.Training objective targets decisions rather than reconstruction
Sec. 3.4, Eq. 9; train/model.py:800-834
Distilling the agent's own continuation distribution (KL from full to compressed observation) is a sensible objective for agent compression and differs from the reconstruction objectives of ICAE-style compressors. Check 15 confirmed that the released code implements the stated direction : code value 3.5564515049 vs. explicit 3.5564515049.
Efficiency tables are arithmetically self-consistent
Tables 1-3, Eq. 14, Sec. 5.1-5.2
All 32 Comp_rate cells in Tables 1-2 reproduce Eq. 14 within 0.01 pp, and all 24 reduction annotations reproduce within 0.05 pp. The abstract ranges (70.01-89.24%, 24.45-55.97%) and the in-text examples (87.70%, 90.52%) match (check 05). All ranking statements in Secs. 1 and 5.1-5.2 (13/16 best, 6/8 both metrics, 5/8 highest compression, lowest time 8/8) are also correct as counts (check 06).
Breadth of evaluation and informative ablations
Sec. 4.2-4.3, Sec. 5.3, Fig. 3, Table 4
The paper covers two model families, four datasets (single- and multi-hop) and four baselines spanning pruning, summarisation and latent reconstruction. Two ablations are included: the number of latent tokens (Fig. 3, F1 rising monotonically 26.34 -> 31.45, check 13) and the conditioning inputs (Table 4, drops of 2.05/3.48/5.16 EM, check 12).
Code release with candid reproduction notes
https://github.com/THU-Agent/Coca-cola; docs/METHODS.md
The repository includes the training pipeline, the Coca-Cola evaluator and three baseline runners. It also includes docs/METHODS.md, which documents frankly where the released harnesses differ. That transparency is what made the protocol checks in this review possible.
Weaknesses
Coca-Cola and baselines are evaluated under different protocols, including a raw-text answer fallback only for Coca-Cola
major · Sec. 3.5 (Eq. 13), Sec. 4.3, Table 3; train/eval_all.py:858-915; scripts/baselines/run_no_compress.py:700-780; docs/METHODS.md
In the released Coca-Cola evaluator,
_forced_finalizeruns whenever the turn limit or search limit is hit, or when no\boxed{}answer is produced (train/eval_all.py lines 1025, 1107, 1122). It re-prompts the agent with a standalone text prompt that contains the raw search snippets (top-3 per query) and allows up to 3 retries. The vLLM Vanilla, LLMSummary and LongLLMLingua runners have no equivalent; their unfinished trajectories score 0 (check 01). The authors' own docs/METHODS.md also lists different backends (vLLM vs. HF), prompt formats (plain vs. chat wrapper), length caps (32,768 vs. 16,384) and search caches, and states that results 'cannot be merged by method name'.This matters in two ways. Some Coca-Cola answers are produced from raw text, contradicting the Eq. 13 description that the agent conditions on rather than the observation. And the EM/F1 gains over Vanilla in Table 3 may be partly or wholly protocol artefacts.
Fix: rerun all methods in one harness with identical prompts, backends, length caps, cached search results and finalisation logic. Report how often the fallback fires per method. If the paper's numbers came from a different, unified harness, release it.
EM values imply different question sets across methods and between Table 4 and Table 3
major · Table 3; Table 4; Sec. 4 (test-set sizes not stated)
EM is a mean of 0/1 scores, so each value must equal . All 20 GLM EM values in Table 3 are multiples of 0.5, consistent with . The Table 4 ablation values 21.45, 20.02 and 18.34 are not attainable at and share no common below 1254, yet they are compared directly with the 'Full' row 23.50, which is copied from the main table. On Qwen, no common fits all NQ methods, and ICAE (13.72, 23.71) and LLMSummary (21.06) do not fit the that fits the other methods on 2Wiki and HotpotQA (check 03).
'Consistently improving task performance' has no statistical support
major · Abstract; Sec. 1; Sec. 5.2; Table 3
No test-set sizes, seeds, confidence intervals or significance tests are reported. Under the inferred sizes, the GLM EM gains over Vanilla are 4, 20, 3 and 6 questions out of 200 (check 02). 95% CIs for the EM difference include 0 in 5 of 8 settings (e.g. GLM 2Wiki pp). Even if every discordant pair favoured Coca-Cola, the best-case McNemar would be 0.125 (GLM NQ) and 0.25 (GLM 2Wiki). The large relative annotations (+133.64%, +105.67%; check 04) reflect a weak Qwen HotpotQA Vanilla baseline (EM 11.00). Several orderings among compressors, e.g. Observation-only 18.34 vs. 17.00 in Sec. 5.3, are within 3 questions.
Fix: report , per-question paired tests or bootstrap CIs, and results over several seeds or sampling runs. Soften 'consistently' to what is significant.
Training data provenance and supervision confound are undisclosed
major · Appendix A.1; Sec. 3.4 (Eq. 9); docs/TRAINING.md
Appendix A.1 gives counts (4,188 tasks, 4,363 pairs) but not which datasets or splits they come from, or how trajectories were selected. Per docs/TRAINING.md, teacher trajectories are sampled on a train split at , and only correct trajectories are kept; the default file is
musique_train_1k_0.jsonl(check 10). The CE term in Eq. 9 therefore distils rejection-sampled successful behaviour, which the Vanilla agent never receives. This is an alternative explanation for 'improves over Vanilla' that the paper does not discuss.Training trajectories also average 1.04 observation-action pairs per task, i.e. almost all single-search, unlike the multi-step evaluation. Overlap between training and evaluation questions cannot be ruled out.
Fix: name the sources and splits, document the correctness filter, and add a control such as a KL-only objective or unfiltered trajectories. Report deduplication against the test sets.
The key ICAE control is not released and is under-specified
major · Sec. 4.3; Sec. 5.1-5.3; scripts/run_baseline.py; docs/INSTALL.md:98
The comparison with ICAE ('same architecture, reconstruction objective') is the paper's main evidence that the gain comes from action-preserving training rather than from latent compression per se. Yet the released code has no ICAE implementation or reconstruction loss: the runner accepts only vanilla/llmsummary/llmlingua (check 16). The pre-training data, , training budget and tuning of this baseline are not stated.
Fix: release the ICAE baseline and describe its training at the same level of detail as Coca-Cola, with matched data and compute.
Efficiency accounting omits the compressor and conflates harness differences
major · Sec. 5.1; Eq. 14; Tables 1-2; Appendix A (inference setup)
Comp_rate (Eq. 14) counts only agent prompt and completion tokens. The compressor (a 4B or 9B dense model) reads the full observation, up to 4,096 tokens per call, and is never counted (eval_all.py:985-992 vs. counters at 873-891 and 1052-1053; check 07). Sec. 5.1 nevertheless speaks of 'total token consumption'. Adding a single 940-token compressor call per question already lowers the range from 70.01-89.24% to 67.60-86.37%; with 3 calls of 1,352 tokens it becomes 40.72-76.83%.
Runtime comparisons mix different backends, live vs. persisted search caches and per-question vs. batch timing, and use an extra GPU for the compressor (check 08). The runtime gain may be real, but it cannot be attributed to compression alone.
Fix: report compressor tokens and FLOPs, and time all methods in one harness on cached search results.
Novelty claim overstated and overlap with the authors' prior CoACT work not acknowledged
major · Sec. 1 (contributions); Sec. 2.2-2.3; References
Sec. 1 claims to be 'the first ... to compress tool outputs into latent tokens'. However, xRAG and COCOM (both cited in Sec. 2.3) already compress retrieved documents into one or a few embeddings fed to the LLM, and web-search results are exactly such documents. The paper also presents Action-Preserving Training as a contribution, but CoACT (arXiv 2607.02911), which shares 3 of its 4 authors with this paper, already proposes 'action-preserving observation compression' based on next-action preservation, in text space. CoACT is cited only in a list of pruning and summarisation methods (Sec. 2.2) (check 17).
Fix: narrow the 'first' claim to multi-step agent loops, and discuss CoACT explicitly, stating what is new here (latent representation, KL objective).
Case study confounds retrieval and harness differences with compression
minor · Sec. 5.4; Fig. 4
Fig. 4 itself notes 'Search returns: 5 URLs each, 3 shared'. The decisive snippet is ranked 1st in the Coca-Cola run and 3rd in the Vanilla run, and even the initial reasoning before any tool output differs (check 09). Sec. 5.4's 'The search results contain both...' therefore overstates what the case shows.
Fix: use a case where both methods receive identical cached results.
Capacity 'theoretical analysis' is vacuous
minor · Sec. 3.2, Eqs. 5-6
The counting formulas in Eqs. 5-6 are correct, but the condition holds as soon as at bf16 precision. A single latent token's nominal capacity (32,768 bits) already exceeds that of an entire 1,352-token observation (about 23-24 kbits) (check 14). The bound places no constraint on and explains none of the empirical results.
Hyper-parameter mismatches and undisclosed training tricks; $m$ selected on test data
minor · Appendix A.1; Sec. 3.4; Sec. 5.3, Fig. 3; configs/latte.example.yaml; train/trainer.py:176,321; train/model.py:823
The released configs use (paper: 0.3) and a 10% KL warm-up (paper: 20%). The code also applies several stabilisers the paper does not describe: per-sample KL clamped at 10, logits clamped to , whole batches skipped when KL > 2.0, and LoRA on only the last 8 encoder layers. The KL is averaged over the whole recorded continuation, not a single 'next-action token' (checks 11, 15). The sweep (Fig. 3) is run on the NQ test set and motivates the default .
Presentation gaps
minor · Sec. 4.2; Eq. 7; Fig. 1; References
Several details are missing or inconsistent:
- The paper never states explicitly which model in each pair is the agent and which is the compressor (Sec. 4.2).
- The test-set sizes and question sampling are not given.
- The
<latent_obs>markers in Eq. 7 are implemented as the text markers<|begin_search_result|>/<|end_search_result|>. - Fig. 1's 96.7% share (confirmed 3,767/3,895, check 18) excludes the instruction prompt and comes from a single illustrative trajectory.
- The model references (Qwen3.5, GLM-4.7-Flash, GLM-Z1-9B) have no resolvable source.
Questions for the authors
Were the numbers in Tables 1-3 produced with the released harnesses (vLLM baselines, HF Coca-Cola with
_forced_finalize) or with an unreleased unified harness? How often does the raw-text forced finalisation fire for Coca-Cola on each dataset, and what are Coca-Cola's EM/F1 when that fallback is disabled or given to every method?How many evaluation questions are there per dataset and model pair? Why are the Table 4 ablation EMs (21.45, 20.02, 18.34) and some Qwen ICAE/LLMSummary EMs not attainable with the same as the other methods?
Which datasets and splits do the 4,188 training tasks come from, are trajectories filtered by correctness, and was overlap with the NQ/TriviaQA/2Wiki/HotpotQA test questions checked?
How does a variant trained with the KL term only (no CE on correctness-filtered trajectories) compare with Vanilla?
How was the ICAE baseline pre-trained and fine-tuned (data, , steps), and was it tuned as carefully as Coca-Cola?
Were all methods run on identical, cached search results? If not, what is the variance in EM across reruns caused by live Exa retrieval alone?
What is the end-to-end compute (FLOPs or GPU-seconds) including the compressor, and how does it compare with Vanilla on a single GPU budget?
What exactly does this paper add beyond CoACT (arXiv 2607.02911), and why is CoACT discussed only as a text-summarisation method?
Verification
18 checks were run, each with a script whose log is in work/verify/: 8 confirmed, 6 discrepancies, 3 inconclusive and 1 not checkable. Every reported number in the efficiency and performance tables was re-derived. All Comp_rate cells, reduction annotations, relative-change annotations, ranking statements, ablation differences and the Fig. 1 and Fig. 3 values are arithmetically correct. The discrepancies concern what was compared rather than the arithmetic. The released Coca-Cola evaluator has a raw-text answer fallback and a different backend from the baselines (01). GRIM-style granularity tests show that EM values are inconsistent with a common question set (03). Token accounting omits the compressor (07). The case study compares runs with different search results (09). The released configs differ from Appendix A (11). The ICAE control is not released (16). The significance analysis (02) shows that most accuracy gains are within noise at the inferred test sizes. The end-to-end pipeline could not be rerun: it needs 35B/9B/4B models on GPUs, unreleased checkpoints and QA files, and an Exa API key.
At inference the agent conditions on latent tokens z_t rather than the raw observation (Eq. 12-13), and Coca-Cola vs. Vanilla EM/F1 (Table 3) are measured under a comparable protocol.DiscrepancySec. 3.5 Eq. 12-13; Sec. 4.3; Table 3; train/eval_all.py:178-205, 860-915, 1025/1107/1122; scripts/baselines/run_no_compress.py:700-780; docs/METHODS.md
In the released Coca-Cola harness, _forced_finalize is called on 3 paths (max_turn, line 1025; search limit, line 1107; no boxed answer, line 1122) with no baseline guard, and it re-prompts the agent with a standalone chat prompt containing the RAW search snippets (title, URL, snippet of top-3 results per query); the script shows the toy raw snippet appears verbatim in the final-answer prompt. So whenever the search budget is hit or no \boxed answer is produced, the answer is generated from raw text, not from z_t. The vLLM Vanilla runner (run_no_compress.py) and the LLMSummary/LongLLMLingua runners contain no such fallback (0 pattern hits; Vanilla terminates with search_limit_stalemate/max_turn/natural_stop and is scored as-is). docs/METHODS.md (authors' own table) states baselines use vLLM + plain-text prompt + 32,768 length cap while Coca-Cola uses HF + chat wrapper + agent_max_length (16,384), and that 'results cannot be merged by method name'. Unless the paper's numbers come from an unreleased unified harness, the Table 3 comparison is not like-for-like and the Eq. 13 description is incomplete.
script: 01_protocol_parity.pyAST-extracted the forced-finalization prompt builders from the released Coca-Cola harness and ran them on a toy search record; enumerated call sites; searched the released Vanilla/LLMSummary/LongLLMLingua runners for an equivalent fallback; printed the authors' reproduction-boundary table.
Coca-Cola consistently achieves higher EM and F1 than the Vanilla agent across all eight model-dataset settings ('consistently improving task performance').InconclusiveAbstract; Sec. 1; Sec. 5.2; Table 3
The direction is as reported (EM higher in 8/8 cells), but the paper gives no n, CIs, seeds or tests. Under the inferred n, the GLM EM gains are 4 (NQ, 21.50->23.50), 20 (TriviaQA), 3 (2Wiki, 26.50->28.00) and 6 (HotpotQA) questions out of 200. Unpaired Fisher p<0.05 in only 2/8 settings (Qwen 2Wiki p=0.0003, Qwen HotpotQA p<1e-4); 95% CIs for the difference include 0 in 5/8 settings (e.g. GLM 2Wiki [-7.20, +10.17] pp). Even under the best-case pairing, McNemar p = 0.125 (GLM NQ) and 0.25 (GLM 2Wiki), so those two gains cannot be significant at 5% whatever the per-question outcomes. 'Consistently improves' is therefore not statistically established for at least the small GLM gaps; reporting n, per-question paired tests or multiple seeds would settle it.
script: 02_significance.pyUsing the test-set sizes inferred by GRIM in check 03 (GLM n=200; Qwen n=1000, optimistic), converted EM gaps to question counts and computed an unpaired Fisher exact test, a 95% Newcombe CI for the EM difference, and the best-case paired exact McNemar p (all discordant pairs favour Coca-Cola).
All methods and ablation variants are evaluated on the same set of questions per dataset (implicit in Tables 3-4).DiscrepancyTable 3 (all EM cells); Table 4 (21.45, 20.02, 18.34); Sec. 4 (test-set sizes never stated)
GLM block: all 20 GLM EM values in Table 3 are multiples of 0.5 and share n=200 (chance of a random 2-dp value being attainable at n=200 is 0.019, so this is not coincidence). The Table 4 ablation rows 21.45, 20.02 and 18.34 are NOT attainable with n=200 (smallest compatible n = 275, 804, 169; the three share no n below 1254), while the 'Full' row 23.50 is the n=200 Table-3 value, so the ablation variants were scored on a different question set or aggregation than the row they are compared with. Qwen block: TriviaQA is consistent with n=1000 for all 5 methods, but on NQ no common n<=2973 exists (Vanilla 23.67 fits n=300 only among {100,200,300,500,1000}; LLMSummary 24.65, ICAE 24.38, Coca-Cola 24.78 fit none; Vanilla and Coca-Cola also fail the full NQ test size 3610); on 2Wiki n=1000 fits all but LLMSummary (21.06) and ICAE (13.72); on HotpotQA n=1000 fits all but ICAE (23.71). Possible benign explanations (averaging over runs, dropped failed items) are not described in the paper; as reported, the cross-method comparisons cannot be assumed to use identical question sets.
script: 03_grim_n.pyGRIM-style granularity test: EM is a mean of 0/1 scores, so EM% = 100k/n. For every EM cell, enumerated all n in [20, 3000] (and the official split sizes) for which an integer k reproduces the 2-decimal value; intersected per (model, dataset) block.
Table 3 relative-change annotations (e.g. +133.64% EM on Qwen HotpotQA, +38.73% EM on Qwen 2Wiki) and 'higher EM and F1 than Vanilla in all settings'.ConfirmedTable 3 (Coca-Cola row annotations); Sec. 5.2
All 16 annotations reproduce exactly (e.g. claimed 133.64, obtained 133.64; claimed 5.66, obtained 5.66); Coca-Cola > Vanilla in 16/16 cells. Note the annotations are relative changes, so the large percentages (+133.64%, +105.67%) reflect a weak Vanilla baseline on Qwen HotpotQA (EM 11.00), i.e. +14.70 EM points.
script: 04_table4_relative.pyRecomputed 100*(Coca/Vanilla - 1) for all 16 EM/F1 cells; tolerance 0.01 pp.
Compression rates per Eq. 14 and reduction annotations in Tables 1-2; abstract ranges 70.01%-89.24% (tokens) and 24.45%-55.97% (runtime); Sec. 5.1 examples 87.70%, 90.52%, 32.80%, 55.97%.ConfirmedAbstract; Sec. 5.1; Tables 1-2; Eq. 14
0/32 Comp_rate mismatches (tolerance 0.01 pp), 0/24 annotation mismatches (tolerance 0.05 pp); Coca-Cola Comp_rate range 70.01-89.24 (claimed 70.01-89.24); runtime reductions Qwen 24.45-32.80, GLM 41.61-55.97 (as claimed); in-text 87.700, 90.524, 32.800, 55.974 match 87.70, 90.52, 32.80, 55.97. The tables are arithmetically self-consistent; what they measure is examined in checks 07-08.
script: 05_efficiency_arith.pyRecomputed all 32 Comp_rate cells from I_token and O_token, the 24 blue reduction annotations (I, O, Time) for Coca-Cola, the min/max ranges and the four in-text examples.
Ranking statements: best in 13/16 dataset-metric pairs; best EM and F1 simultaneously in 6/8 (all 4 GLM); highest compression in 5/8; higher compression than ICAE in 8/8; LLMSummary compresses more in the other 3 but with lower EM and F1; lowest runtime in 8/8; exceptions compress less (66.92 vs 83.68; 41.96 vs 70.01).ConfirmedSec. 1; Sec. 5.1; Sec. 5.2; Tables 1, 2, 3
Coca-Cola best in 13/16 cells; both EM&F1 best in 6/8 (GLM 4/4); the 3 exceptions are Qwen TriviaQA EM/F1 (ICAE 61.80/69.27 vs 59.20/67.07) and Qwen 2Wiki F1 (LongLLMLingua 34.25 vs 32.34), as stated. Highest Comp_rate 5/8; > ICAE 8/8; LLMSummary compresses more on Qwen 2Wiki (71.30 vs 70.01), Qwen HotpotQA (78.90 vs 76.83), GLM NQ (74.62 vs 73.73), each with lower EM and F1; lowest Time 8/8; exception compression values 66.92 vs 83.68 and 41.96 vs 70.01 match. (Statistical robustness of these orderings: see check 02.)
script: 06_rankings.pyEncoded Tables 1, 2 and 4 and counted each statement.
Coca-Cola 'reduces total token consumption by 70.01%-89.24%'; Comp_rate (Eq. 14) measures the computational overhead saved.DiscrepancySec. 5.1 (RQ1, 2nd paragraph); Abstract; Eq. 14; train/eval_all.py:603-623, 873-891, 985-992, 1052-1053, 1132-1134
The reported prompt/completion counters are incremented only at eval_all.py:873-891 (forced finalization) and 1052-1053 (agent generation); the compressor input comp_ids (up to compressor_max_length=4096 tokens per call, lines 985-992) is never added. So Comp_rate is an agent-side figure, not 'total token consumption'. Adding even ONE compressor call of 940 tokens per question lowers the reported rates from 70.01-89.24% to 67.60-86.37% (e.g. GLM TriviaQA 74.75 -> 66.87); with 3 calls of 1352 tokens the range is 40.72-76.83%. Because the compressors (4B, 9B dense) have more active parameters per token than the ~3B-active MoE agents, an active-parameter-weighted view is lower still (GLM TriviaQA 51.09% at s=1, L=940). The exact magnitude needs the per-question search counts, which are not reported; the direction is certain.
script: 07_token_accounting.pyStatic scan of the released Coca-Cola harness for every increment of the reported token counters; sensitivity analysis adding a lower bound of compressor-side input tokens (s searches x L tokens; L=940 from Fig. 1-left per-step increments, L=1352 from the Fig. 1 p50) and an active-parameter-weighted variant (agents ~3B active MoE; compressors 4B/9B dense).
Coca-Cola consistently achieves the lowest average execution time in all eight settings, reflecting its token savings.InconclusiveSec. 5.1 (RQ1, 3rd paragraph); Tables 1-2 Time rows; Appendix A (inference setup); train/eval_all.py:773,1124-1134,1249; scripts/baselines/run_no_compress.py:461-466,793-815
The ordering itself is arithmetically correct (check 06: lowest Time in 8/8). But the released harnesses time different things: Vanilla runs on vLLM (run_no_compress.py:14,492) with a persistent on-disk search cache (./cache/search_cache.json, lines 461-466) reused across runs, and its latency is batch wall-clock / n (evaluate.py:223); Coca-Cola runs an HF token-by-token greedy loop (eval_all.py:400-409) with an in-memory per-run cache (line 1249), timed per question including live search and compressor (lines 773-1134), with the compressor on an extra GPU. The vLLM backend would normally favour Vanilla, so the runtime gain may be real, but live-search latency, caching and batching differ, so the 24.45-55.97% reductions cannot be attributed to compression alone without the run logs or a unified harness.
script: 08_runtime_protocol.pyStatic scan of the released harnesses for backend, search caching, timing aggregation and GPU allocation.
The case study shows that latent tokens let the agent identify the decision-critical evidence that Vanilla fails to distinguish within the same search results.DiscrepancySec. 5.4 (RQ4); Fig. 4 (case study, HotpotQA #377; figures/case.pdf)
The figure itself states 'Same initial query. Search returns: 5 URLs each, 3 shared', i.e. the two runs saw different result lists. In the Coca-Cola run the decisive Chairish snippet ('introduce Scandinavian design to America') is Rank 1 and the Mid-Century Modern snippet Rank 2; in the Vanilla run Mid-Century Modern is Rank 1 and the decisive snippet Rank 3. The text in Sec. 5.4 says 'The search results contain both...', implying the same evidence. In addition, the Initial reasoning generated before any tool output differs between the runs ('I need to search ... Let me start by searching...' vs 'Let me search...'), which under greedy decoding with the same model indicates different prompts/backends (consistent with docs/METHODS.md). The case therefore confounds retrieval and harness differences with the effect of compression and does not isolate the claimed mechanism.
script: 09_case_study.pyExtracted the figure text with pdftotext; parsed the search-result note, the rank of the decisive snippets in each run, and the pre-observation 'Initial reasoning' of both runs.
The compressor training set (4,188 tasks, 4,363 observation-action pairs) is disjoint from the evaluation questions, and the improvement over Vanilla stems from action-preserving training rather than extra supervision.Not checkableAppendix A.1; Sec. 3.4 (Eq. 9, 'next-action token recorded in the collected trajectory'); docs/TRAINING.md; scripts/prepare_latent_qa_sft_data.py:284; train/trainer.py:240
The paper never says which datasets or splits the 4,188 tasks come from or how trajectories were selected (appendix contains none of: NQ, HotpotQA, MuSiQue, train split, positive, correct, filter). The released pipeline collects teacher trajectories on a train split at temperature 0.3 and keeps only positive (ACC-correct) trajectories (docs/TRAINING.md); the default trajectory file is data/traces/musique_train_1k_0.jsonl. So the CE target in Eq. 9 comes from correctness-filtered (rejection-sampled) trajectories, a supervision signal the Vanilla agent never receives, which is a confound for 'improves over Vanilla'. The 10% validation split is a random split over pairs, not grouped by task (docs say so explicitly); int(4363*0.1)=436 matches 436/3927. 4,363/4,188 = 1.04 pairs per task, i.e. training trajectories almost always involve a single search, unlike the multi-step evaluation. Overlap with evaluation questions cannot be tested without the released training data.
script: 10_training_data.pyScanned the released data pipeline and docs for source datasets, splits and trajectory selection; checked the appendix for any statement of these; recomputed pairs per task and the train/val split.
Training hyper-parameters: lambda_KL=0.3, lambda_CE=1.0, KL warm-up over the first 20% of steps, lr 1.5e-4 -> 5e-5, LoRA 16/32/0.05, paged 8-bit AdamW, 3,927/436 split.DiscrepancyAppendix A.1; configs/latte.example.yaml; train/config.yaml; train/config.py:49,65,80-82; train/trainer.py:177-182,292-328; train/model.py:823
Match: LoRA 16/32/0.05, paged_adamw_8bit, lr 0.00015 -> 0.00005 (YAMLs), task weight 1.0 (YAMLs), 128 latents (YAMLs), split int(4363*0.1)=436 -> 3927/436. Mismatch: kl_weight is 0.4 in both released YAMLs (paper 0.3); the KL warm-up ratio is not set in the YAMLs, so the code default 0.1 applies (paper 20%). Undisclosed: per-sample token-level KL is clamped at 10 (model.py:823); whole batches are skipped when KL > kl_skip_threshold = 2.0 by default (trainer.py:321, config.py:49); LoRA is applied only to the last 8 encoder layers (keep_last_n_layers=8). The docs note the example config is not the fixed config of the paper's weights, so these are reproducibility gaps rather than evidence of different results.
script: 11_hparams.pyParsed the released YAML configs and dataclass defaults; searched trainer/model code for training tricks not described in the paper; recomputed the split.
Context ablation: removing the reasoning state, the task goal, and both reduces EM by 2.05, 3.48 and 5.16 points; ablated variants reach 78.38%-80.43% compression; Observation-only beats all compression baselines on GLM NQ (EM 18.34 vs at most 17.00; compression 79.94 vs at most 74.62).ConfirmedSec. 5.3 ('Different contextual inputs'); Table 4 (context ablation); Tables 2-3 (GLM NQ)
Drops 2.05/3.48/5.16 reproduce exactly; ablated compression range 78.38-80.43; best baseline EM 17.00 and compression 74.62; the Full row (23.50, 73.73) equals the main-table GLM NQ entry. Caveats from the same numbers: Observation-only (EM 18.34) is 3.16 points BELOW Vanilla (21.50), so action-preserving training without query/reasoning conditioning does not beat the uncompressed agent; the 18.34 vs 17.00 margin is under 3 questions at n=200; and three ablated EM values are not attainable at n=200 (check 03).
script: 12_ablation.pyRecomputed the differences, ranges and comparisons from the ablation, GLM efficiency and performance tables (tolerance 0.005).
Latent-token sweep on GLM NQ: F1 increases steadily from 26.34% to 31.45% for m in {8,...,128}; compression stays between 78.83% and 82.56% for m<=64 and drops to 73.73% at m=128.ConfirmedSec. 5.3 ('The number of latent tokens'); Fig. 3
F1 = 26.34, 27.79, 28.81, 29.96, 31.45 (strictly increasing); compression = 81.27, 82.56, 78.83, 80.99, 73.73 (range 78.83-82.56 for m<=64, 73.73 at m=128); the m=128 point equals the main-table GLM NQ entry (F1 31.45, Comp_rate 73.73). Observations: compression is not monotone in m (8 -> 16 rises, 16 -> 32 falls, 32 -> 64 rises), so it is driven by trajectory behaviour rather than by m itself; the 64 -> 128 drop (7.26 pp = about 1,327 agent tokens per question) exceeds the 960 tokens that 64 extra latents per search could add with 5 searches, so trajectories also got longer. The sweep is run on the NQ test set and is the basis for choosing m=128 (with 'preliminary experiments'), i.e. hyper-parameter selection on test data.
script: 13_m_sweep.pyExtracted the plotted data labels with pdftotext -bbox, assigned them to x-ticks, and tested monotonicity, ranges and consistency with Tables 2-3.
Codebook-capacity analysis: C_text(n) = n log2|V|, C_latent(m) = m d_eff log2 B; latent tokens offer more capacity per position when d_eff log2 B > log2|V|, motivating latent compression.ConfirmedSec. 3.2, Eqs. 5-6
Both counting formulas are correct (e.g. |V|=3, n=4: 81 codewords, log2 = 6.3399 = n log2|V|). But the condition holds as soon as d_eff >= 2 at bf16 precision (>= 3 at 8 bits), and the nominal capacity of ONE latent token (32,768 bits at d=2048, bf16) already exceeds the text capacity of an entire 1,352-token observation (23,267-24,230 bits); 128 latents give 173-361x the observation's capacity. The argument is therefore vacuous as a 'theoretical analysis': it places no constraint on m and cannot explain the m-dependence in Fig. 3, the gap to ICAE, or why compression helps; the paper itself concedes that usable information depends on the encoder and agent.
script: 14_capacity.pyBrute-force counted distinct codewords on tiny alphabets to verify both formulas; instantiated them with assumed realistic sizes (|V| 151,552 or 248,320; d 2048 or 4096; log2 B = 16 or 8) against the text capacity of a p50 observation (1,352 tokens, Fig. 1).
The training objective is implemented as in Eq. 9: lambda_KL * KL(p_full || p_latent) on the next action plus lambda_CE * CE on the recorded next action.ConfirmedSec. 3.4, Eq. 9; train/model.py:800-834
The code value 3.5564515049 equals the token-averaged KL(p_full || p_latent) (3.5564515049), not KL(p_latent || p_full) (3.4674562557), so the direction matches Eq. 9. Differences from the text: the KL is averaged over the whole recorded reasoning continuation (all completion tokens), not a single 'next-action token'; the per-sample KL is clamped at 10 and logits are clamped to [-30, 30]; together with the batch-skip rule (check 11) these stabilisers are not described in the paper.
script: 15_kl_direction.pyRan torch.nn.functional.kl_div with exactly the code's call pattern (log_softmax(student), softmax(teacher), reduction='batchmean') on random [L, V] logits and compared with explicit float64 KL(p||q) and KL(q||p).
The ICAE baseline, re-implemented with the same architecture but a reconstruction objective, is the key control isolating the action-preserving objective.DiscrepancySec. 4.3 (baselines); Sec. 5.1-5.3 (ICAE comparisons); README; docs/INSTALL.md:37,98; scripts/run_baseline.py; train/eval_all.py --baseline
No ICAE implementation or reconstruction loss exists in the released code: run_baseline.py accepts only vanilla/llmsummary/llmlingua; eval_all.py accepts only original_hf/latent_hf; the only 'ICAE' mentions are in docs/INSTALL.md (line 98: 'cannot use an ICAE checkpoint'). 'reconstruct' hits are unrelated prompt-reconstruction helpers (dataset.py:52). The paper's central control (ICAE vs Coca-Cola, e.g. 89.24% vs 74.12% compression on GLM 2Wiki) therefore cannot be reproduced or inspected (pre-training regime, data, m, training budget unknown).
script: 16_icae_release.pyScanned all text files of the released repository for ICAE entry points or any reconstruction/autoencoding objective; listed the method names accepted by the baseline runner and the Coca-Cola evaluator.
Sec. 1 contributions: 'To our knowledge, we are the first to recognize that tools need not convey information through explicit tokens and to compress tool outputs into latent tokens'; references resolve to the cited works and support the claims they are cited for.InconclusiveSec. 1 (contributions list); Sec. 2.2 (cites CoACT only as a token-pruning/summarization method); Sec. 2.3 (cites xRAG, COCOM, ICAE); References
References: 48/50 resolve by title on Crossref or arXiv. Two do not resolve: qwen35 (no venue, URL or id) and longcontext3 (Shi et al., ICML 2023; a well-known paper the Crossref lookup missed). data_interpreter and latent_reasoning2 passed the script's 60% word-overlap heuristic only because Crossref returned a different paper ('Your LLM Agent Can Leak Your Data...' and 'Learning When to Think in Latent Visual Space...'). latent_reasoning2 is an anonymous ACL Rolling Review submission that cannot be checked. Novelty: (1) CoACT (arXiv 2607.02911, July 2026) shares 3 of its 4 authors with this paper (Haorui Chen, Yitong Zhang, Jia Li). Its abstract already proposes 'action-preserving observation compression' built on 'next-action preservation', in text space for coding agents. The paper calls its Action-Preserving Training its own contribution and cites CoACT only in a list of 'token pruning and text summarization' methods (Sec. 2.2), with no statement of the conceptual link. The new element relative to CoACT is the latent-token representation plus a KL objective in place of filtering. (2) xRAG and COCOM already compress retrieved documents into one or a few embeddings fed to the LLM. Web-search results are exactly the tool outputs compressed here, so the 'first' claim holds only in the narrower sense of multi-step agents. (3) MemGen builds latent token sequences for agents, but from the agent's reasoning state, not from tool outputs. A bounded check cannot prove or disprove a 'first' claim, so the outcome is inconclusive. The undisclosed overlap with the authors' own CoACT is reported in ref_issues.json.
script: 17_refs_novelty.pyRan tools/check_refs.py on all 50 references (work/verify/17_check_refs.log, work/refs_checked.json). Summarised the results and fetched arXiv abstracts and author lists for the closest prior work the paper cites (CoACT 2607.02911, ACON 2510.00615, MemGen 2509.24704, xRAG 2405.13792, COCOM 2407.09252, ICAE 2307.06945) with work/verify/17_refs_novelty.py.
Tool observations account for 96.7% of total context tokens by Step 4.ConfirmedSec. 1; Fig. 1 (left)
Step 4: 3,767/3,895 = 96.71% (claimed 96.7). Steps 1-3: 92.38%, 95.20%, 96.27%. Minor caveats: this is a single illustrative trajectory; per-step observations here are about 930-960 tokens while the histogram in the same figure has p50=1352; and the non-tool context is only 79 tokens at Step 1, so the Search-o1 instruction prompt (about 159-225 words, roughly 200-290 tokens) is not counted in 'total'. Including it would give roughly 90-92%, which does not change the motivation.
script: 18_fig1_share.pyExtracted the bar labels from figures/intro.pdf, recomputed tool/total per step, and measured the Search-o1 instruction prompt from the released prompts.py (AST-extracted).
References
50 references checked
- coact: Chen, Haorui et al. CoACT: Action-Preserving Observation Compression for Coding Agents. arXiv:2607.02911 (2026)
The reference exists, but it is cited for less than it covers. Sec. 2.2 lists it only among 'token pruning and text summarization' methods. Its arXiv abstract already proposes 'action-preserving observation compression' built on 'next-action preservation', which is the core idea behind this paper's Action-Preserving Training (Sec. 3.4, claimed as a contribution in Sec. 1). CoACT shares 3 of its 4 authors with this paper (Haorui Chen, Yitong Zhang, Jia Li). The conceptual overlap and self-overlap are not acknowledged. Evidence: work/verify/17_refs_novelty.log.
- xrag: Cheng, Xin et al. xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token (NeurIPS 2024; arXiv:2405.13792)
The reference exists and is cited correctly as latent context compression (Sec. 2.3). However, its abstract shows it already maps retrieved documents into the LLM's representation space as a single embedding token, as does COCOM (arXiv:2407.09252, 'a handful of Context Embeddings'). Retrieved web/search documents are the tool outputs compressed in this paper, so these works weaken the Sec. 1 claim to be 'the first ... to compress tool outputs into latent tokens'. That claim holds only for multi-step agent loops. Evidence: work/verify/17_refs_novelty.log.
- qwen35: Qwen Team et al. Qwen3.5: Towards Native Multimodal Agents. 2026.
No venue, URL, arXiv id or DOI, and not resolved by Crossref or arXiv (check_refs.py). This reference names the main agent and compressor models (Qwen3.5-35B-A3B, Qwen3.5-4B; Sec. 4.2), so it should point to a resolvable model card or report.
- glm / chatglm: GLM Team. GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Models (2025); ChatGLM: A Family of LLMs from GLM-130B to GLM-4 All Tools
Both resolve on arXiv, but they describe GLM-4.5 and the ChatGLM/GLM-4 family. The paper uses GLM-4.7-Flash and GLM-Z1-9B (Sec. 4.2), which neither reference documents. The exact model versions have no citable source.
- latent_reasoning2: Anonymous et al. Learning When to Think Aloud in Latent Reasoning. Submitted to ACL Rolling Review - October 2026.
An anonymous, under-review submission that cannot be retrieved or verified. Crossref returned an unrelated paper ('Learning When to Think in Latent Visual Space...'). It is cited only as background in Sec. 1 (latent reasoning), so it is not load-bearing.
- longcontext3: Shi, Freda et al. Large language models can be easily distracted by irrelevant context. ICML 2023.
Not resolved by check_refs.py: Crossref returned an unrelated title and the reference has no arXiv id. This is very likely a real paper whose metadata the lookup missed. Add the arXiv id or DOI. Minor.
- data_interpreter: Hong, Sirui et al. Data interpreter: An llm agent for data science. Findings of ACL 2025.
Crossref's best match is a different paper ('Your LLM Agent Can Leak Your Data: Data Exfiltration via Backdoored Tool Use'), so the automated check did not confirm this entry. It is cited only as an example of a multi-step agent (Sec. 1). Minor; a DOI would settle it.
Suggestions
Evaluate all methods in a single harness with identical prompts, backend, length limits, cached search results and finalisation logic, and release it.
Report the number of questions per dataset, how failures are scored, per-question paired significance tests or bootstrap CIs, and results over multiple seeds.
Run every ablation (Table 4, Fig. 3) on exactly the question set used in Table 3, and select on a validation split.
Document the training data (sources, splits, correctness filtering, deduplication against test sets) and add a KL-only or unfiltered-trajectory control to separate action preservation from rejection-sampled supervision.
Release the ICAE baseline and its training details; consider adding xRAG/COCOM-style single-pass latent compressors as baselines.
Report compressor-side tokens and FLOPs alongside the agent-side Comp_rate, and rephrase 'total token consumption'.
Discuss CoACT explicitly and narrow the 'first to compress tool outputs into latent tokens' claim to multi-step agents.
Test on at least one non-search tool (e.g. code execution or file browsing) to support the claim in Sec. 4.2 that the method applies to other tools without modification.
Align Appendix A with the released configs (λ_KL, warm-up) and document the KL clamp, the batch-skip rule and last-8-layer LoRA.
Ethics and integrity
No ethical concerns about data or human subjects (public QA benchmarks, live web search). No instruction-like text aimed at reviewers was found in the paper, source or code. One integrity point: CoACT (arXiv 2607.02911), which shares 3 of its 4 authors with this paper and already introduces 'action-preserving observation compression', is cited only as a generic text-compression method, without acknowledging the conceptual overlap. This should be disclosed and discussed.
Scope of this review
The main evaluation entry points (train/eval_all.py, scripts/run_baseline.py) were not run. They require GPU-hosted Qwen3.5-35B-A3B / GLM-4.7-Flash agents and 4B/9B compressors, trained compressor checkpoints that have not been released, evaluation QA files and an Exa search API key; this environment had 2 CPUs and no GPU. Reported numbers were therefore checked by recomputation, granularity (GRIM-style) tests and static inspection of the released code; pure-Python helpers were executed in isolation. Test-set sizes were inferred, not reported, so the significance analysis is conditional on that inference. The ICAE baseline and the training trajectories are not released and could not be examined.