Tools Need Not Speak in Text: Latent Context Compression for Agents

Large language model (LLM) agents typically append raw tool outputs to their context. Over multi-step interactions, long and noisy observations incur substantial context overhead and dilute the agent's attention to task-relevant information. Existing token pruning and summarization methods remain constrained by discrete text representations, limiting the achievable compression ratios. In this work, we challenge the prevailing assumption that agents must consume tool observations as explicit text tokens. To this end, we propose Coca-Cola, a continuous latent context compression model for LLM agents. Coca-Cola compresses tool observations into latent tokens and embeds them into the input embedding space of the agent. We further introduce Action-Preserving Training, which aligns the agent's next-action distributions under full and compressed observations. This trains the compression model to learn action-sufficient latent tokens that retain decision-critical information. Experiments with web-search agents on four QA benchmarks and two model families show that Coca-Cola reduces the agent's token consumption by 70.01%-89.24% and end-to-end runtime by 24.45%-55.97%, while consistently improving task performance. These results suggest that Coca-Cola offers a promising approach for context compression in agents. Our code is available at https://github.com/THU-Agent/Coca-cola.

Link
https://www.semanticscholar.org/paper/8ad30080bc5995afb119b2919d1a92bab00d6540
Found by
Semantic Scholar
Authors
Yue-Tong Liu, Zhe-Hao Zhou, Yi-Tong Zhang, Hao-Rui Chen, Jia Li
Categories
benchmark, agentic
Published
2026-11-04
Last seen by the radar
2026-11-06
Citations
0
Influential citations
0
Radar score
35.50 / 100 (how it is scored)
Why it scored so
Matched: agents~benchmarks, benchmark; Primary record: Semantic Scholar
Related links
https://arxiv.org/abs/2611.06500
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar