Rethinking Agent Trajectory Compression: A Workflow-Aware Perspective
Qijia Zhuang, Rui Liu, Yuxiang Ren
Key points
From the paper's conclusion- These results demonstrate the effectiveness of workflow-aware trajectory compression in improving task performance and cost efficiency for long-horizon agents.
Abstract
As long-horizon agents increasingly rely on multi-step tool interactions to accomplish complex tasks, their execution trajectories continuously accumulate structured outputs and intermediate artifacts, leading to growing context overhead. Existing compression methods primarily rely on text importance or fixed truncation rules, often overlooking cross-step dependencies within workflows and potentially discarding critical information required for subsequent task execution. To address this challenge, we propose WAAC, a workflow-aware framework for agent trajectory compression. WAAC structurally models successful historical trajectories to extract reusable workflow compression experience and incorporates online backward dependency analysis to dynamically identify information retention requirements. By combining current dependency constraints with historical experience, WAAC selects appropriate compression strategies for different types of historical information. Experiments on PinchBench and Odysseys demonstrate that WAAC achieves an overall score of 87.6 and a perfect completion rate of 19.0%, respectively, while reducing execution costs by 19.7% and 29.1% compared with the strongest baseline methods. These results demonstrate the effectiveness of workflow-aware trajectory compression in improving task performance and cost efficiency for long-horizon agents. Code and resources are available at https://anonymous.4open.science/r/waac-6527/.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- DMC-5: Dual-Model Collaboration with Cache-aware Context Compression for Long-horizon AgentsarXiv · 2026
- TRACER: Per-Tool Context Retention for LLM Agents via Consequence-Attributed Reinforcement LearningarXiv · 2026
- ContextRender: From Execution Dependencies to Agent ContextarXiv · 2026
- Folio: Recoverable Multi-Resolution Context Folding for Long-Horizon Language AgentsarXiv · 2026
- CarryOn: Learning What to Keep in Context for Long-Horizon LLM AgentsarXiv · 2026
- CompAct-Bench: A Benchmark for Working-Context Compaction in Long-Horizon Agent TasksarXiv · 2026