Coca-Cola: compressing agent tool outputs into latent tokens
Coca-Cola compresses tool observations into continuous latent tokens injected into the agent's embedding space instead of raw text. 'Action-Preserving Training' aligns the agent's next-action distribution under full and compressed observations. With…
Why it matters
Tool-output bloat is a major agent cost, and this approach could shrink it dramatically.
What happened
1 min readCoca-Cola compresses tool observations into continuous latent tokens injected into the agent's embedding space instead of raw text. 'Action-Preserving Training' aligns the agent's next-action distribution under full and compressed observations. With web-search agents on four QA benchmarks, it cut token use by 70-89% and runtime by 24-56% while improving task performance.
Our analysis
Dropping text for tool observations is a bold idea with striking results. It needs access to the model's embedding layer, so it does not apply to closed APIs. Tests cover only web-search QA; it is unclear how it handles outputs like code or logs. Code is public and worth trying for teams running agents on open models.