Metraipolis › archive › dc_b28c116bacb4

No One-Size-Fits-All: Adaptive Code Editing with Feature-Based Strategy Selection — arXiv:2610.22881

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.22881
License (as archived)
CC0-1.0
Archived
2026-10-19T09:37:10.465Z
SHA-256 of the archived text
bafdc9d3ffba17c7de151329d657cf91b42ae7bdad72335653912db88cf80562
Stable URL of this page
https://metraipolis.com/documento/dc_b28c116bacb4

How to cite

No One-Size-Fits-All: Adaptive Code Editing with Feature-Based Strategy Selection — arXiv:2610.22881 — arXiv (en), https://arxiv.org/abs/2610.22881 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b28c116bacb4 (Metraipolis archive dc_b28c116bacb4, sha256 bafdc9d3ffba17c7de151329d657cf91b42ae7bdad72335653912db88cf80562)
BibTeX
@misc{dcb28c116bacb4,
  title = {No One-Size-Fits-All: Adaptive Code Editing with Feature-Based Strategy Selection — arXiv:2610.22881},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.22881},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b28c116bacb4; sha256 bafdc9d3ffba17c7de151329d657cf91b42ae7bdad72335653912db88cf80562},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.22881. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large language models have shown strong potential in automating code editing (CE) tasks, yet most existing systems rely on a fixed CE strategy (i.e., one-step, search-replace, and plan-apply) across diverse scenarios. In practice, CE tasks vary widely in code context, edit locality, and semantic complexity, causing no single strategy to perform consistently well. Moreover, systematic studies on the relationship between strategies and CE tasks remain scarce, limiting further optimization of LLM-based code editing strategies. To address this gap, we construct CEBench, comprising 500 real-world CE tasks curated from SWE-bench. Then we compare three representative CE strategies (one-step, search-replace, plan-apply). Our study reveals two key findings: (1) each strategy exhibits distinct advantages for specific CE tasks, with no universal optimality; (2) strategy effectiveness is significantly influenced by four core task features: total lines of code, modification type, modification scope, and task type. Motivated by these findings, we propose Ace, an adaptive code editing framework that dynamically selects optimal CE strategies based on task features. Unlike classifier-based or instruction-prompting approaches, Ace employs a fine-tuned LLM that learns feature-strategy mappings from empirical data to recommend strategies with interpretable rationales. Extensive experiments on our CEBench-verified show that Ace outperforms state-of-the-art baselines: it boosts Pass@1 by 21.7% while reducing token consumption by 27.3% compared to the best baseline (AutoCodeRover). Our strategy selector achieves 72.6% selection accuracy with 69.9% rationale accuracy (Cohen's Kappa = 0.807), providing transparent and trustworthy decision-making for developers.

Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.SE, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2610.22881 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T09:31:59.699Z dalla pagina https://arxiv.org/list/cs.SE/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).