分析与内化 LLM 智能体的复杂策略文档
Analyzing and Internalizing Complex Policy Documents for LLM Agents
AI总结:
提出 CC-Gen 基准生成器评估智能体策略内化,并设计 CAP-CPT 方法通过分类解析和自回归预训练,显著降低计算开销并提升复杂策略下的推理性能。
摘要:
基于大语言模型(LLM)的智能体系统依赖上下文中的策略文档来编码各种业务规则。随着需求增长,这些文档迅速扩展,导致高昂的计算开销。这促使开发内化方法,将策略文档嵌入模型先验中,同时保持性能。先前的提示压缩工作针对通用提示,但智能体策略文档跨越多个复杂度级别并需要更深入的推理,使内化更加困难。我们引入 CC-Gen,一个具有四级可控复杂度的智能体基准生成器,能够系统评估智能体处理复杂度的能力,并为评估策略内化提供统一框架。我们的分析表明,控制工作流的复杂策略规范带来重大推理挑战。通过监督微调(SFT)支持内化,使用包含思维链(CoT)标注的黄金用户智能体交互轨迹,是数据密集型的,并且随着策略复杂度增加性能急剧下降。为减轻数据和推理负担,我们提出类别感知策略持续预训练(CAP-CPT)。我们的自动化流水线解析策略文档以提取关键规范,将其分组为事实、行为和条件类别,并隔离驱动工作流复杂度的复杂条件。这指导有针对性的数据合成,并使智能体能够通过自回归预训练损失内化策略信息。实验表明,CAP-CPT 在所有设置中改进了 SFT 基线,在 Qwen-3-32B 上获得高达 41% 和 22% 的提升,在 CC-Gen 上实现 97.3% 的提示长度减少,并进一步以最少的 SFT 数据增强 tau-Bench。
英文摘要:
Large Language Model (LLM)-based agentic systems rely on in-context policy documents encoding diverse business rules. As requirements grow, these documents expand rapidly, causing high computational overhead. This motivates developing internalization methods that embed policy documents into model priors while preserving performance. Prior prompt compression work targets generic prompts, but agentic policy documents span multiple complexity levels and require deeper reasoning, making internalization harder. We introduce CC-Gen, an agentic benchmark generator with Controllable Complexity across four levels, enabling systematic evaluation of agents' ability to handle complexity and offering a unified framework for assessing policy internalization. Our analysis shows that complex policy specifications governing workflows pose major reasoning challenges. Supporting internalization with gold user agent interaction trajectories containing chain-of-thought (CoT) annotations via supervised fine-tuning (SFT) is data-intensive and degrades sharply as policy complexity increases. To mitigate data and reasoning burdens, we propose Category-Aware Policy Continued Pretraining (CAP-CPT). Our automated pipeline parses policy documents to extract key specifications, grouping them into factual, behavioral, and conditional categories, and isolating complex conditions that drive workflow complexity. This guides targeted data synthesis and enables agents to internalize policy information through an autoregressive pretraining loss. Experiments show CAP-CPT improves SFT baselines in all settings, with up to 41% and 22% gains on Qwen-3-32B, achieving 97.3% prompt length reduction on CC-Gen and further enhancing tau-Bench with minimal SFT data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。