No One-Size-Fits-All: Adaptive Code Editing with Feature-Based Strategy Selection
Jun WanZhongxin LiuDajun ChenWei JiangYong LiXiaoxue Ren
Jun Wan
Zhongxin Liu
Dajun Chen
Wei Jiang
Yong Li
Xiaoxue Ren
+6
This paper introduces Ace, an adaptive code editing framework that selects optimal strategies based on task features. Motivated by findings that no single strategy among one-step, search-replace, and plan-apply dominates across diverse tasks, and that four task features (total lines, modification type, scope, and task type) significantly influence effectiveness, Ace uses a fine-tuned LLM to learn feature-strategy mappings and recommends strategies with interpretable rationales. Evaluated on CEBench, Ace improves Pass@1 by 21.7% while reducing token use by 27.3%, achieving 72.6% selection accuracy.

arXiv ·
· October 16, 2026