arXiv:2604.21950cs.SEcs.AI2026-04被引 1

1-3B代码模型靠执行反馈提升性能,比复杂流水线更重要

Feedback Over Form: Why Execution Feedback Matters More Than Pipeline Topology in 1-3B Code Generation

  • 用执行反馈驱动的生成-执行-修正循环提升代码生成效果
  • 在HumanEval和MBPP上性能提升超4个标准差,主要修复运行时错误
  • 模型专业化比流水线结构更关键,简单循环已最优

小规模语言模型(1-3B)虽适合本地部署,但在复杂代码生成任务中能力有限。本文研究由1-3B模型构成的流水线是否能恢复部分能力,采用受NEAT启发的进化搜索测试更复杂的流水线结构是否优于简单修正循环。在HumanEval(164题)和清洗后的MBPP(427题)上评估,均在单台笔记本电脑上进行本地推理。带有执行反馈的自修正使代码生成性能在两个基准上均提升超过4个标准差。改进机制有限:修正主要解决运行时错误(尤其是NameError和SyntaxError),对逻辑错误(如AssertionError)改善甚微。在测试的通用模型池中,生成器身份影响小于修正器能力:1.5B生成器搭配3B修正器表现与3B模型独立完成相当。早期停止至关重要;无此机制时每轮迭代均为负向收益。专用代码模型性能超越所有通用流水线配置,表明模型专业化比流水线架构更关键。初步的纯文本流水线实验未在该规模下展现增益。在受限搜索空间内,进化搜索多数重新发现手动设计的生成-执行-修正循环,未见拓扑复杂性带来的显著提升。单次评估适应度使结果虚高5-7个百分点,偏向运气好而非真正优秀个体。在1-3B规模下,执行反馈的重要性超过流水线复杂性。

原文摘要 · Abstract (English)

Small language models (1-3B) are practical to run locally, but individually limited on harder code generation tasks. We ask whether composing them into pipelines can recover some of that lost capability. We study code generation pipelines built from 1-3B models with execution feedback, and use a NEAT-inspired evolutionary search to test whether more complex pipeline structure helps beyond a simple refinement loop. We evaluate on HumanEval (164 problems) and sanitized MBPP (427 problems), all with local inference on a single laptop. Self-refinement with execution feedback improves code generation by more than 4 standard deviations on both benchmarks. The gains are narrow in mechanism: refinement fixes many runtime errors (especially NameError and SyntaxError), but rarely fixes logic errors such as AssertionError. Within our tested general-purpose model pool, generator identity mattered less than refiner capability: a 1.5B generator paired with a 3B refiner matched a 3B model doing both roles. Early stopping is essential; without it, every iteration is net-negative. The code-specialized models outperform every general-purpose pipeline configuration, suggesting model specialization matters more than pipeline architecture. Preliminary text-only pipeline experiments without execution feedback did not show gains at this scale. In our constrained search space, evolutionary search mostly rediscovered the same simple generate-execute-refine loop we found manually, with no clearly significant gain from added topology. Single-evaluation fitness inflates results by 5-7 percent, selecting lucky genomes over good ones. On these benchmarks at 1-3B scale, execution feedback mattered more than added pipeline complexity in determining whether composition helped.

代码生成执行反馈小模型流水线

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。