Tools Need Not Speak in Text: Latent Context Compression for Agents
Yuetong Liu, Zhehao Zhou, Yitong Zhang, Haorui Chen, Jia Li
- Published
- Nov 4, 2026
- Source
- Hugging Face Papers
- URL
- https://huggingface.co/papers/2611.06500
Coca-Cola replaces verbose tool observations with compressed latent tokens trained to preserve an agent's next-action distribution. Across web-search evaluations, it reduces token consumption by 70.01%–89.24% and runtime by 24.45%–55.97% while improving task performance.
This paper proposes continuous latent context compression for LLM agents, avoiding the limits of text-based pruning and summarization. Coca-Cola embeds compressed tool observations directly into the agent's input embedding space. Its Action-Preserving Training objective aligns next-action distributions under full and compressed observations, encouraging retention of decision-critical information. Experiments on four QA benchmarks and two model families report lower token consumption and end-to-end runtime alongside consistently improved task performance. The authors provide a public code repository.
Related models: Coca-Cola