Skip to main content
QUICK REVIEW

[论文解读] Architecture-Aware Multi-Design Generation for Repository-Level Feature Addition

Mingwei Liu, Zhenxi Chen|arXiv (Cornell University)|Mar 2, 2026
Software Engineering Research被引用 0
一句话总结

RAIM 引入一个面向代码库层级、面向架构的框架,生成多种设计补丁并通过影响分析选择补丁,在 NoCode-bench Verified 上达到最先进的结果。

ABSTRACT

Implementing new features across an entire codebase presents a formidable challenge for Large Language Models (LLMs). This proactive task requires a deep understanding of the global system architecture to prevent unintended disruptions to legacy functionalities. Conventional pipeline and agentic frameworks often fall short in this area because they suffer from architectural blindness and rely on greedy single-path code generation. To overcome these limitations, we propose RAIM, a multi-design and architecture-aware framework for repository-level feature addition. This framework introduces a localization mechanism that conducts multi-round explorations over a repository-scale code graph to accurately pinpoint dispersed cross-file modification targets. Crucially, RAIM shifts away from linear patching by generating multiple diverse implementation designs. The system then employs a rigorous impact-aware selection process based on static and dynamic analysis to choose the most architecturally sound patch and avoid system regressions. Comprehensive experiments on the NoCode-bench Verified dataset demonstrate that RAIM establishes a new state-of-the-art performance with a 39.47% success rate, achieving a 36.34% relative improvement over the strongest baseline. Furthermore, the approach exhibits robust generalization across various foundation models and empowers open-weight models like DeepSeek-v3.2 to surpass baseline systems powered by leading proprietary models. Detailed ablation studies confirm that the multi-design generation and impact validation modules are critical to effectively managing complex dependencies and reducing code errors. These findings highlight the vital role of structural awareness in automated software evolution.

研究动机与目标

  • motivate automated, repository-level feature addition as a proactive software evolution task requiring architectural awareness.
  • Propose RAIM to address architectural blindness and linear generation in existing methods.
  • Develop a four-stage framework: architecture-aware localization, multi-design patch generation, and impact-aware patch selection.
  • Demonstrate RAIM's effectiveness and generalization across multiple LLMs and open-weight models on NoCode-bench Verified.

提出的方法

  • Construct a repository-level code graph to capture semantic and structural relationships.
  • Perform architecture-aware file and function localization via multi-round searches on the code graph.
  • Generate multiple diverse implementation designs and corresponding patches.
  • Evaluate candidate patches with static change impact analysis and dynamic test execution to select an optimal patch.

实验结果

研究问题

  • RQ1RAIM 在代码库层级特征添加任务上相比最先进基线的表现如何?
  • RQ2RAIM 能否跨不同大语言模型(LLM)实现泛化并有效处理跨文件特征添加?
  • RQ3每个 RAIM 组件(定位、多设计生成、影响分析)对总体性能的贡献是什么?
  • RQ4补丁选择策略在在特征正确性与架构完整性之间的平衡上有多有效?

主要发现

方法模型RT (%)FV-Micro (%)FV-Macro (%)成功率 (%)
OpenHandsQwen3-235B47.371.9614.037.89
DeepSeek-R1Qwen3-235B46.490.4710.867.02
DeepSeek-v3Qwen3-235B49.121.6818.2911.40
Gemini-2.5-Pro-61.400.010.290.00
Claude-4-Sonet-69.3011.2536.4825.44
AgentlessQwen3-235B76.328.7522.3913.16
GPT-5-Chat-82.468.5033.0118.42
DeepSeek-R1-73.6810.8735.5225.44
DeepSeek-v3-78.957.9632.8021.05
DeepSeek-v3.2-28.959.4637.4228.95
DeepSeek-v3.2-thinking-79.828.4137.0227.19
Gemini-2.5-Pro-74.566.2220.5512.28
Claude-4-Sonet-79.828.4738.4828.07
RAIMQwen3-235B79.829.7627.4516.67
GPT-5-Chat-89.4713.4332.3321.93
DeepSeek-v3-81.5815.1435.6425.44
DeepSeek-R1-77.1912.4741.7929.82
DeepSeek-v3.2-85.9616.0145.5834.21
DeepSeek-v3.2-thinking-78.0711.9341.7429.82
Gemini-2.5-Pro-82.4617.1652.0939.47
------
  • RAIM 在 NoCode-bench Verified 上使用 Gemini-2.5-Pro 达到新的最先进成功率 39.47%,相较上一最佳提升 36.34% 的相对幅度。
  • RAIM 还使 Open-weight 模型如 DeepSeek-v3.2 达到 34.21% 的成功率,超越使用更强的专有模型的若干基线。
  • 消融研究表明多设计生成与影响验证对于管理复杂依赖和减少代码错误均至关重要。
  • RAIM 展现出对 7 种 LLM 的鲁棒泛化能力,在跨文件修改等复杂任务上取得显著提升。
  • 该方法强调架构意识与变更影响分析,以防止生产级软件的回归。

更好的研究,从现在开始

从论文设计到论文写作,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。