mlsanityData to 24 Nov 2026

FrontierRefactor: Benchmarking Multi-Scale Performance-Oriented Codebase Refactoring

arXiv 2610.25834 ↗Submitted 19 Oct 2026cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Autonomous codebase refactoring requires coding agents to restructure working software while strictly preserving externally observable behavior and prioritizing execution performance and compute efficiency over stylistic preference. Existing benchmarks: refactoring benchmarks assess functional correctness while overlooking runtime regressions, whereas code performance benchmarks target isolated micro-kernels that ignore codebase-scale complexity. We observe that refactoring scale is governed by the scope of the observable contract, the caller-visible interface fixing behavioral invariants while freeing private implementations for optimization. Building on this insight, we introduce FrontierRefactor, a benchmark of 60 qualified engineering tasks spanning four scales, from computational kernels to full repositories, across in-place optimization and cross-language rewriting. Evaluating frontier coding agents through a reference-free cascaded protocol across 1,080 execution runs reveals that correctness and speedup are largely decoupled: 41.2% of submissions satisfy functional equivalence yet fail to deliver verified performance improvements, with 19.3% suffering performance regressions and 21.9% trapped in measurement noise. Refactoring paradigms reveal orthogonal engineering bottlenecks: while cross-language rewrites gain speedups from native compilation after passing functional checks, agents struggle with contract fidelity, with pass rates dropping from 65.0% on modules to 32.6% at package scale; conversely, in-place optimization reliably preserves behavioral contracts at 86.5% but rarely achieves acceleration without physical performance profiling. Trajectory analysis shows that agents fall victim to uncalibrated micro-benchmarking illusions, an operational blind spot that multi-turn execution-timing feedback directly resolves, raising strict success from 16.0% to 40.0%.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 30 of its 42 references that are in the map. Submitted 19 Oct 2026.

Builds on

30 of 42 references.

Closest ancestors · 9

Same direction, newest first

  1. 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?24 Aug
  2. 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring10 Aug
  3. 2026PERFOPT-Bench: Evaluating Coding Agents on Software Performance Optimization8 Jul
  4. 2026Are Performance-Optimization Benchmarks Reliably Measuring Coding Agents?1 Jul
  5. 2026Hardening Agent Benchmarks with Adversarial Hacker-Fixer Loops8 Jun
  6. 2026TensorBench: Benchmarking Coding Agents on a Compiler-Based Tensor Framework4 Jun
  7. 2026SpecBench: Measuring Reward Hacking in Long-Horizon Coding Agents20 May
  8. 2026ISO-Bench: Can Coding Agents Optimize Real-World Inference Workloads?23 Feb
  9. 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents29 May

Other references · 21

  1. 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 1,124
  2. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 279
  3. 2025ShinkaEvolve: Towards Open-Ended And Sample-Efficient Program Evolutioncited by 222
  4. 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compressioncited by 220
  5. 2023Learning Performance-Improving Code Editscited by 122
  6. 2025SWE-bench Goes Live!cited by 100
  7. 2025SWE-Perf: Can Language Models Optimize Code Performance on Real-World Repositories?cited by 52
  8. 2025AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?cited by 35
  9. 2025SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?cited by 33
  10. 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 30
  11. 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 18
  12. 2026SWE-Refactor: A Repository-Level Benchmark for Real-World LLM-Based Code Refactoringcited by 17
9 more
  1. 2025MatchFixAgent: Language-Agnostic Autonomous Repository-Level Code Translation Validation and Repaircited by 5
  2. 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 5
  3. 2025SemOpt: LLM-Driven Code Optimization via Rule-Based Analysiscited by 4
  4. 2026PerfCodeBench: Benchmarking LLMs for System-Level High-Performance Code Optimizationcited by 4
  5. 2026Multi-Source and Cross-Scenario Strategy-Guided Code Optimizationcited by 2
  6. 2026T-LLM Compiler: Trusted LLM-based Code Optimization and Verification Frameworkcited by 2
  7. 2024230,439 Test Failures Later: An Empirical Evaluation of Flaky Failure Classifierscited by 1
  8. 2025When Should I Run My Application Benchmark?: Studying Cloud Performance Variability for the Case of Stream Processing Applicationscited by 1
  9. 2026Effect of Abstractions and Prompting Strategies on LLM-Guided High-Performance Optimizationscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Tasks
  2. 2026RefactorPlatform: An Open-Source Harness for Controlled Evaluation of Repository-Scale Refactoring Agents
  3. 2026Accelerate Bench: Evaluating Agents for Application-Level Program Optimization
  4. 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?
  5. 2026LoopsBench: From Harness Engineering to Loop Engineering in Coding Agent Evaluation
  6. 2026RepoMod-Bench: A Benchmark for Code Repository Modernization via Implementation-Agnostic Testing
  7. 2026REFINE: A Multi-Agent LLM Approach for Evidence-Guided Code Refactoring
  8. 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration