PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization
Not on the map. Why?
Abstract (arXiv)
Large language model (LLM) agents now perform well on correctness-oriented repository-level tasks, including SWE-Bench issue resolution and feature implementation in real codebases. However, they still struggle with repository-level code optimization, which requires preserving behavior while improving runtime performance. Passing tests is not enough in this setting; a patch must preserve behavior, implement code optimization, and approach expert speedups. Current agents often miss bottlenecks hidden behind abstraction layers and native extensions, stop after shallow speedups, or insufficiently test the code patches that thus may silently break edge cases. We present PerfAgent, a profiler-guided, verifier-in-the-loop workflow that gives an off-the-shelf coding agent the feedback needed to find real hotspots, improve beyond the first passing patch, and use profiler evidence rather than timing alone to decide what to optimize next. On two challenging optimization benchmarks, GSO and SWE-fficiency-Lite, PerfAgent more than doubles the rate of expert-matching patches over OpenHands with GPT-5.1, improving from 19.6% to 39.2% on GSO and from 26% to 74% on SWE-fficiency-Lite. It also surpasses an oracle best-of-five baseline at substantially lower cost, showing that the gains come from better feedback rather than additional test-time sampling.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 40 of its 58 references that are in the map. First posted on arXiv 22 Jul 2026.
Builds on
40 of 58 references.
References · 40
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
28 more
- 2023Learning Performance-Improving Code Editscited by 103
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scalingcited by 93
- 2024Evaluating Language Models for Efficient Code Generationcited by 69
- 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 68
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
- 2025LiveCodeBench Pro: How Do Olympiad Medalists Judge LLMs in Competitive Programming?cited by 52
- 2026ProgramBench: Can Language Models Rebuild Programs From Scratch?cited by 47
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimizationcited by 42
- 2026DeepSWE: Measuring Frontier Coding Agents on Original, Long-Horizon Engineering Taskscited by 41
- 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmarkcited by 39
- 2024Can Large Language Models Write Parallel Code?cited by 36
- 2025MultiKernelBench: A Multi-Platform Benchmark for Kernel Generationcited by 35
- 2025SWE-Perf: Can Language Models Optimize Code Performance on Real-World Repositories?cited by 33
- 2024Search-Based LLMs for Code Optimizationcited by 27
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
- 2025AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?cited by 24
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 23
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
- 2025SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?cited by 15
- 2025TritonForge: Profiling-Guided Framework for Automated Triton Kernel Optimizationcited by 15
- 2025Autocomp: A Powerful and Portable Code Optimizer for Tensor Acceleratorscited by 12
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimizationcited by 11
- 2025PEAK: A Performance Engineering AI-Assistant for GPU Kernels Powered by Natural Language Transformationscited by 5
- 2025PEACE: Towards Efficient Project-Level Efficiency Optimization via Hybrid Code Editingcited by 4
- 2025Optimizing PyTorch Inference with LLM-Based Multi-Agent Systemscited by 4
- 2025ProfilingAgent: Profiling-Guided Agentic Reasoning for Adaptive Model Optimizationcited by 3
- 2026Resolving Java Code Repository Issues with iSWE Agentcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026SkillEffect: Checked Lowering for Memory-Bounded Agent Toolscited by 0
- 2026Noise Floor Audit for Agent Benchmarkscited by 0
- 2026Noise Floor Audit for Agent Benchmarks23 Aug 2026
- 2026SkillEffect: Checked Lowering for Memory-Bounded Agent Tools17 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring
- 2026FastContext: Training Efficient Repository Explorer for Coding Agents
- 2026PERFOPT-Bench: Evaluating Coding Agents on Software Performance Optimization
- 2026RepoAtlas: Guiding Coding Agents via Evolving Multimodal Repository Views
- 2026REFINE: A Multi-Agent LLM Approach for Evidence-Guided Code Refactoring
- 2026RepoZero: Can LLMs Generate a Code Repository from Scratch?
- 2026E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch
- 2026A Unified Issue Resolution Benchmark for Requirement Clarification, Planning, and Code Generation for Coding Agents