Rethinking Agent Trajectory Compression: A Workflow-Aware Perspective
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/.
Create a lesson
Related papers
Tail-risk-aware Agent Safety: Constraining Tail Risks Across Multi-step LLM Agent Workflows
Shared title terminology · Shilong Pan, Zhiliang Tian, Zihan Chen et al.
Emotion-Aware and Context-Grounded Dialogue Agents for Personalized Video Game Interactions
Shared title terminology · Michael Adjeisah, Jin Zhang, Pierluigi Vito Amadori et al.
EDAGoat: An EDA-Aware Agent for Project-Level GPU Optimization
Shared title terminology · Chengxi Li, Liang Xiao, Yutao Wang et al.
From Fluent Text to Ontology-Compatible Definitions: A Quality-Control Agentic Workflow
Shared title terminology · Kun Feng, Chenchen Chu, Yan Liu et al.
Safeguarding Agentic AI in Radiology Workflows: A Multimodel Evaluation of Rule-based and Large Language Model-based Verification
Shared title terminology · Semil Eminovic, Robin Schmidt, Bogdan Levita et al.
IdealCache: Rethinking Cache Scheduling in Diffusion Transformers via Ideal Trajectories
Shared title terminology · Shang Xue, Li Zhu, Ping Chen