Research Papers 论文研究 3h ago Updated 1h ago 更新于 1小时前 47

CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agents CORVUS:基于底层同步的LLM编码代理上下文优化与缩减

CORVUS introduces a novel trajectory architecture for LLM coding agents that decouples file-read actions from observations by maintaining a synchronized registry of relevant files. This approach eliminates redundant file copies and stale snapshots, resulting in lighter-weight trajectories that remain synchronized with the actual codebase state. Evaluation on SWE-POLYBENCH_VERIFIED and SWE-BENCH PRO across four LLMs shows significant reductions in input tokens, prompt length, and reasoning cycles 提出CORVUS架构,通过解耦文件读取动作与观测值,维护同步注册表注入当前内容,解决传统轨迹中快照过时问题。 在SWE-POLYBENCH_VERIFIED和SWE-BENCH PRO基准上实现9-50%输入token减少、15-32%提示长度缩短及最多37%推理周期减少,同时保持相当通过率。 消除冗余文件副本和过时快照,使轻量级轨迹与代码库状态保持构造级同步,提升LLM编码agent效率。 针对多步决策场景优化轨迹管理,为agent系统提供可扩展的上下文优化方案。 验证了四种LLM模型上的有效性,证明技术通用性与行业适配潜力。

65
Hot 热度
70
Quality 质量
68
Impact 影响力

Analysis 深度分析

TL;DR

  • CORVUS introduces a novel trajectory architecture for LLM coding agents that decouples file-read actions from observations by maintaining a synchronized registry of relevant files.
  • This approach eliminates redundant file copies and stale snapshots, resulting in lighter-weight trajectories that remain synchronized with the actual codebase state.
  • Evaluation on SWE-POLYBENCH_VERIFIED and SWE-BENCH PRO across four LLMs shows significant reductions in input tokens, prompt length, and reasoning cycles while maintaining comparable pass rates.

Why It Matters

This research addresses a critical inefficiency in LLM coding agents where conventional append-only trajectory architectures lead to bloated and outdated context, causing reasoning errors and redundant computations. By proposing a more dynamic and synchronized approach, CORVUS enhances the efficiency and accuracy of LLM-based coding agents, which is crucial for practical applications in software development and automated coding tasks.

Technical Details

  • Decoupled File-Read Actions: CORVUS separates file-read actions from their observations, using a synchronized registry to inject only the current contents of relevant files at each reasoning cycle.
  • Synchronized Registry: This registry ensures that the agent always has access to the most up-to-date file contents, reducing the need for repeated reads and avoiding stale data.
  • Lighter-Weight Trajectories: The new architecture significantly reduces the size of the trajectory by eliminating redundant file copies and snapshots, leading to more efficient processing.
  • Performance Metrics: The study reports a 9-50% reduction in average input tokens per task, 15-32% shorter final prompts, and up to 37% fewer reasoning cycles, all while maintaining similar performance levels as measured by pass rates.

Industry Insight

  • Efficiency Improvements: Implementing CORVUS can lead to substantial improvements in the efficiency of LLM coding agents, making them more scalable and cost-effective for large-scale software projects.
  • Enhanced Accuracy: By keeping the context synchronized with the actual codebase, CORVUS reduces the likelihood of reasoning errors caused by outdated information, thereby improving the reliability of automated coding solutions.
  • Adoption Potential: The demonstrated benefits of CORVUS suggest that it could be widely adopted in both academic research and industrial applications, potentially setting a new standard for trajectory management in LLM coding agents.

TL;DR

  • 提出CORVUS架构,通过解耦文件读取动作与观测值,维护同步注册表注入当前内容,解决传统轨迹中快照过时问题。
  • 在SWE-POLYBENCH_VERIFIED和SWE-BENCH PRO基准上实现9-50%输入token减少、15-32%提示长度缩短及最多37%推理周期减少,同时保持相当通过率。
  • 消除冗余文件副本和过时快照,使轻量级轨迹与代码库状态保持构造级同步,提升LLM编码agent效率。
  • 针对多步决策场景优化轨迹管理,为agent系统提供可扩展的上下文优化方案。
  • 验证了四种LLM模型上的有效性,证明技术通用性与行业适配潜力。

为什么值得看

该研究直接解决LLM coding agents在实际应用中因文件变更导致推理错误和冗余计算的核心痛点,为构建高效、低成本的智能体系统提供可落地的架构范式,对AI工程化落地具有显著指导意义。其提出的同步机制不仅优化资源消耗,还提升了agent在多轮交互中的可靠性,是Agent领域的重要技术突破。

技术解析

  • CORVUS采用非追加式轨迹设计,将文件读操作与观测结果分离,通过动态注册表追踪文件状态,每次推理仅注入最新内容而非历史快照,从根本上避免陈旧数据干扰。
  • 评估覆盖两个权威基准(SWE-POLYBENCH_VERIFIED和SWE-BENCH PRO),在四个不同LLM上测试,确保结果普适性;指标包括输入token数、最终提示长度、推理周期数和任务通过率。
  • 实验显示平均输入token减少9-50%,提示长度缩短15-32%,推理周期最多减少37%,且通过率与传统方法持平,证明优化未牺牲准确性。
  • 架构核心在于“同步注册表”机制,实时感知文件变化并自动更新上下文,无需人工干预或额外重读步骤,实现上下文管理的自动化与轻量化。
  • 技术贡献在于重新定义agent轨迹结构,从静态累积转向动态同步,为后续研究提供新方向:如扩展至多模态agent或复杂协作场景。

行业启示

  • LLM agent开发应优先关注上下文管理机制的动态优化,而非单纯扩大模型规模,CORVUS证明架构创新可带来显著成本降低与性能提升。
  • 企业部署coding agent时,可集成类似同步注册表策略,减少云端存储开销和延迟,尤其适用于高频迭代的软件开发环境。
  • 未来研究方向应聚焦于跨平台同步协议标准化及与主流IDE工具的无缝对接,推动该技术成为agent基础设施的标准组件。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Agent Agent Code Generation 代码生成 Research 科学研究