跳到正文
Rohan Paul· @rohanpaul_ai · X·AI 评分42
AI 导读

论文提出 CROCODIL,针对编码模型互改代码时过度编辑的问题,对 Olmo3 7B 进行后训练,同时优化“最小编辑”与“构建并通过测试”两个信号。该方法将各模型实现的编辑距离约减半,并提升了所有外部实现者的构建与测试通过率。研究仅限 Rust 函数编辑,建议混合模型团队应衡量跨模型编辑的冗余差异。

正文 · 原文

When coding models edit each other’s work, they tend to over-edit, and this paper shows that training for minimal correct diffs works better than stricter prompts.

A stricter prompt telling the model to make only minimal edits did not fix this consistently.

The researchers instead post-trained Olmo3 7B with 2 signals: keep the edit small, but still build and pass tests. CROCODIL roughly halved its edit distance across implementations from every model, while improving build and all-test pass rates on every foreign implementor tested.

The study is limited to Rust function edits. Still, if a team mixes coding models, it should benchmark cross-model editing and measure unnecessary diff size, not just whether the final code passes.

– arxiv. org/abs/2609.03894

Title: "CROCODIL: Cross-Model Code Editing with LLMs"

来源:Rohan Paul · x.com