HPCAgent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills

arXiv:2610.20673 · cs.SE · Submitted 2026-10-14 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.

Tom: We're looking at the paper: "HPCAgent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills".

Title and authors: Tom: We started with the title of this work, "HPCAgent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills," which really tells you what we're building here.

Jane: It points out that the whole point is to build a sound way to benchmark these agents and their tools across different settings so we can actually understand the results.

Lu: The authors are a group from ETH Zurich and A*STAR Singapore, involving ten researchers who cover model training, HPC, and high performance computing areas.

Meng: That’s a lot of expertise packed into one framework; I'm curious how they balanced the needs of training models with the needs of running actual code optimizations.

Lalam: The authors are focused on creating a tool that lets us break down agentic optimization into measurable parts instead of just getting one big, confusing result.

Tom: So they are aiming to provide a transparent way to see how much each part—the agent, the tools—is actually helping the performance and what that effort costs.

Jane: It’s about moving away from opaque testing methods where you can't tell if a speedup is real optimization or just some lucky guess by the agent.

Lu: They are establishing a way to test these agents across different hardware and programming models, which is crucial because if it only works on one setup, it doesn't really mean anything for real-world application.

The paper's summary: Tom: To go into the summary of "HPCAgent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills," they introduce a comprehensive benchmark covering everything from loop kernels on CPUs to scientific codes and distributed machine learning models running on GPUs.

Jane: The core idea is that previous benchmarks were too narrow because they fix one accelerator or programming model so they can't isolate what each component—the agent, the tools, the harness—is actually contributing to the performance gain.

Lu: To achieve this, they specify each kernel once in NumPy, then derive C and Fortran references for it and let submissions come through a shared C ABI or Python interface before running them on CPUs or GPUs on one node or multiple nodes.

Meng: That whole setup is orchestrated by an orchestrator that schedules episodes which means you can choose the tasks and lock in the optimizer, letting you decide between an LLM agent with its tools and skills, or a framework like Pluto to see how those different architectures perform against each other.

Lalam: The corpus they use has six hundred eighty nine representative kernels drawn from three tracks: loop-level reasoning challenges, scientific computing kernels from HPC codes, and machine learning models.

The paper's improvements: Tom: The authors point out several ways they improved this framework, starting with intervention efficacy scoring which lets you attribute changes in success rate, speedup, and token count to one intervention like adding a tool or skill.

Jane: That’s a big deal because it moves us beyond just seeing a single speedup number; we can now determine if adding that new skill actually improves the agent's optimization capabilities or if it just adds overhead.

Lu: They also state they provide transparent cost metrics by releasing every token count under explicit weightings like billed, billed, and total, which standardizes how we measure the economic impact of agentic optimization.

Meng: That standardization of costs is what makes it viable for real engineering use. When I look at my pipeline, I need to know if the token cost is worth the potential performance gain we're seeing before I commit resources to testing that agent.

Lalam: They also implemented robust validity checks using external judges that check correctness on hidden fuzzed inputs and timing submissions against a secret seed, which prevents agents from reporting their own times or cheating.

Tom: And they confirmed portability testing by grading the final answer on a second machine, showing that ninety-three to ninety-nine percent of answers without device-dependent code remain correct across those setups.

Jane: Plus, they have controlled comparison tests where you fix all other aspects and compare speedup and token count with an unchanged setup to isolate the effect of a single change, like a particular skill packet or harness.

Lu: That controlled comparison approach lets you systematically identify which component—like a skill packet or harness—is driving performance improvements by fixing everything else in the run.

Conclusion: Tom: So wrapping up the paper "HPCAgent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills," it provides a way to make agentic optimization measurable end to end across kernels, architectures, interventions, and distributed systems.

Jane: The implication is that we can finally get transparent cost metrics and know if adding a tool actually improves the agent's performance or just adds complexity. We also have much better confidence in the results because of those validity checks and portability tests.

Lu: It gives us a general benchmark that runs the same kernels in several languages and on several devices, extending past single-node HPC, which makes it more applicable to real-world scenarios beyond a single lab setup.

Meng: For me, this means having a systematic way to test deployment readiness before we even think about putting an agent into production where scale and cost are major concerns.

Lalam: So the HPCAgent-Bench framework is released under github at spcl slash HPCAgent-Bench, with all material released in one zip file, which includes the benchmark at the release tagged paper experiments and a reproducibility folder with every judge observation.

Tom: It’s a comprehensive way to measure performance critical code optimization reliably by checking five properties end to end: across kernels, architectures, interventions, and distributed systems. That's what we're hearing about this paper on HPCAgent-Bench.

Jane: It’s a powerful tool for anyone working with AI agents trying to make sure their tools are actually helping the optimization process in a measurable way.

Department of Computer Science, ETH Zurich, Switzerland · Institute of High Performance Computing (IHPC), A*STAR, Singapore

cs.SE

Submitted: 2026-10-14

Updated: 2026-11-23

Comments: 23 pages, 9 figures, 21 tables

Code: https://github.com/spcl/HPCAgent-Ben

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 100/100

The gist: Coding agents are increasingly used to optimize code, but existing benchmarks fix one accelerator, programming model or harness so they cannot isolate what each component contributes or show whether…

Key concepts

Intervention Efficacy
This metric measures how much an agent's success rate, speedup, and token cost change after making a specific modification, such as adding a new tool or skill. It helps researchers determine if an added capability actually leads to better performance or efficiency.
Transparent Cost Metrics
The framework reports every token count with explicit weightings (billed, effective, total). This allows users to directly compare the economic impact of different agent optimizations, showing how much speedup is achieved for a given cost.
Validity Checks
These are rigorous tests ensuring result trust. They use external judges and secret seeds to check if agents are cheating by hard-coding answers or reporting fabricated times, guaranteeing that reported speedups are genuine.
Portability Testing
This verifies if an agent's optimization skills work on different hardware. By running the final answer on a second machine, the benchmark confirms that improvements aren't tied to specific devices, showing real-world applicability.

Terminology

Summary

Coding agents are increasingly used to optimize code, but existing benchmarks fix one accelerator, programming model or harness so they cannot isolate what each component contributes or show whether added skills and tools repay their cost. p. 0 The framework specifies each kernel once in NumPy, derives C and Fortran references, accepts submissions through a common C ABI or Python interface, and runs them on CPUs or GPUs, on one or multiple nodes. p. 0 We introduce two metrics for reporting results: intervention efficacy measures an intervention, such as adding a tool, through paired runs on speedup, success rate and cost Agents reach up to 4. p. 02× speedup over automatic parallelizers, and their optimizations transfer to another machine. p. 0 Because token weighting decides whether a saving is significant, we state the weights and release every token count as a standard for cost reporting. p. 0 We provide the first comprehensive, broad and hardened benchmark for the sound evaluation of agentic optimization, with transparent cost metrics. p. 0

Framework Design and Scope

HPCAgent-Bench features 689 kernels organized into three tracks: loop-level optimization challenges, kernels extracted from HPC codes, and machine-learning models. The framework specifies each kernel once in NumPy, derives C and Fortran references, accepts submissions through a common C ABI or Python interface, and runs them on CPUs or GPUs on one or multiple nodes. p. 0 A run’s config. p. 1yaml selects the kernels and fixes the language mode (e. p. 1g., C or any), the submission mode, the floating-point precision, the array residency (host or device) and the optimizer: an LLM agent with its harness, skills and tools, or a framework such as Pluto. p. 1 The orchestrator schedules episodes, runs one agent per task. p. 2

Scoring Metrics and Validity Checks

The scoring system includes the speedup score, which is credited if a one-sided Mann–Whitney U test in the direction of the medians gives p < α, with α = 0.1. The scaling score measures parallel efficiency ηi(P) against Bi, where ηi(P) is thus the speedup over the baseline divided by P. p. 2 The intervention efficacy score compares success rates, speedup scores, and token costs using ratios like ρR, ρS, and ρC Correctness is all-or-nothing where integer and boolean outputs must match exactly. p. 2

Experimental Setup and Results

The experiments were conducted on a single-node grade run on one AMD Instinct MI300A APU, while the MLScale experiment uses 16 GPUs on four nodes Agents reach up to 4.2× speedup over automatic parallelizers, and their optimizations transfer to another machine with 93–99% of answers without device-specific code remain correct Across 40 matched setups, interventions significantly change speedup only twice but token cost by up to 3. p. 00×.

Generality and Transparency

A general benchmark runs the same kernels in several languages and on several devices, and extends past single-node HPC. The framework is released under https://github. p. 0com/spcl/HPCAgent-Bench. p. 8 p. 8 A transparent benchmark lets a reader check each speedup against the code behind it, and the judge stores every candidate and answer Repeated runs of one agent submit different programs, with speedups on one kernel spanning two orders of magnitude. p. 7

Conclusion

Coding agents consistently optimize performance-critical code across a wide range of settings: from loop kernels on CPUs to scientific codes and distributed ML models on GPUs Measuring this reliably takes a benchmark with five properties HPCAgent-Bench makes agentic optimization measurable end to end: across kernels, architectures, interventions and distributed systems.

AI use statement

In this work, we used generative AI tools to implement methods: as a coding assistant for the benchmark framework, the judge, and the pipeline that extracts the measurements from the judge databases and runs the analysis. We have not used generative AI tools to generate synthetic data, to develop theoretical models or conceptual frameworks, to formulate or prove mathematical claims, to propose or refine hypotheses, to design the research methodology or experiments, to clean or reformat datasets, or to interpret results; translation and qualitative or thematic data analysis are not applicable to this work Additionally, we used generative AI tools to create and edit code and scientific figures, to search for and summarize related work, to draft parts of the paper from the authors’ results and outlines, and to edit it for readability. p. 7

Reproducibility statement

HPCAgent-Bench is released under https://github.com/spcl/HPCAgent-Bench. All material is released as one anonymized Zenodo zip (https://doi. p. 8org/10.5281/zenodo. p. 822974128) with two folders: hpcagent-bench/, the benchmark at the release tagged paper-experiments, and reproducibility/, the analysis pipeline with every judge observation, the submitted sources of the case studies and every version of the skill packets. p. 8 From reproducibility/, one command (. p. 8/run all.sh) regenerates every figure, table and number from the released observations without a GPU or model access and checks each output against a recorded checksum. p. 8

ACKNOWLEDGMENT

This work received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement PSAP No. 101002047 and DGPT No. p. 8 101334478). p. 8 The authors also thank the Swiss National Supercomputing Center (CSCS) for supporting this project. p. 8

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Intervention Efficacy Scoring allows for precise attribution of performance changes to specific agent modifications, reporting metrics like intervention efficacy score that attributes changes in success, speedup and token cost to one intervention. This enables researchers to determine whether adding a tool or skill truly improves an agent's optimization capabilities.

  2. Transparent Cost Metrics provide a standardized way to evaluate the economic impact of agentic optimization by releasing every token count under explicit weightings like billed, effective, and total. This allows for direct comparison of how different costs affect speedup across various agents and setups.

  3. Robust Validity Checks ensure trust in reported results by using external judges that check correctness on hidden fuzzed inputs and timing submissions against a secret submission seed. These checks prevent agents from hard-coding answers or report[ing] their own times and detect cheating, which is crucial for reliable speedup measurement.

  4. Portability Testing confirms that optimizations are not device-specific by grading the final LLR answer on a second machine, with 93–99% of answers without device-specific code remain correct. This verifies that an agent's optimization skill transfers to other hardware, which is vital for real-world applicability.

  5. Controlled Comparison allows for isolating the effect of a single change by fixing all other aspects and comparing speedup and token cost with the unchanged setup. This systematic approach identifies which specific component—like a skill packet or harness—drives performance improvements.

Sources

Related papers