SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2302.07867 · ICLR · 2024

Learning Performance-Improving Code Edits

Amir Yazdanbakhsh, Graham Neubig, Aman Madaan, Uri Alon, Parthasarathy Ranganathan, Milad Hashemi, Jacob Gardner, Osbert Bastani, Alexander Shypula, Yimeng Zeng

arXiv · PDF · Open in the Atlas

Code that ran

8 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 5 failures of our instrument; 11 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2302.07867.json · badge: /api/ran/2302.07867.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
madaan/pie-perf marked official in Papers with Code
Papers with Code archive
8 ran · 11 no recorded run
FunctionStatusWhere it lives
get_anomalies Ran
ran; our contract draft was wrong, not the code
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("540fd96572641577")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_best_generation_per_submission Ran
ran; our contract draft was wrong, not the code
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("aef90ef51a665bd5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_input_from_prompt Ran
ran; our contract draft was wrong, not the code
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("52f66cb1672a41ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_linux Ran
ran on a synthesized input
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("4e1a10fed322555f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mean_std Ran
ran; our contract draft was wrong, not the code
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("c101803bbb9b31c7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_cmd_for_time_eval Ran
ran; our contract draft was wrong, not the code
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("7eaeae08022b7013")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_cpp_code_on_inputs Ran
ran, honoured the contract we drafted
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("773a60b768feb034")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_python_code_on_inputs Ran
ran, honoured the contract we drafted
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("b14554bb5b015337")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

EvaluationConfig Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("37991ff1b0138b16")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_prepare_for_rerun Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("ed1e7b9c5b8615ca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

compile_cpp_code Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("c72a3da727492d69")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

evaluate_generated_outputs Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("8b19025c6c05d32c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_accuracy Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("1f09a6f0ad0d135a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

limit_virtual_memory Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("3a991d80b8cbece2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

print_summary Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("77ca852b3aaaa81a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

read_inputs_and_prepare Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("7d44d630c645c37e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

run_code_on_inputs Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("973eee46109fd821")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

run_programs Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("6db030a5cc638ec1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

write_programs_read_ground_truth Not yet run
unverified (harvested, no recorded run)
madaan/pie-perf/src/codenet_eval/run_eval.py
pointer only (licence: NONE) · get_code("a177ad6c3baf7d7a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, madaan/pie-perf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 19 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

With the waning of Moore's law, optimizing program performance has become a major focus of software research. However, high-level optimizations such as API and algorithm changes remain elusive due to the difficulty of understanding the semantics of code. Simultaneously, pretrained large language models (LLMs) have demonstrated strong capabilities at solving a wide range of programming tasks. To that end, we introduce a framework for adapting LLMs to high-level program optimization. First, we curate a dataset of performance-improving edits made by human programmers of over 77 K competitive C++ programming submission pairs, accompanied by extensive unit tests. A major challenge is the significant variability of measuring performance on commodity hardware, which can lead to spurious "improvements". To isolate and reliably evaluate the impact of program optimizations, we design an environment based on the gem5 full system simulator, the de facto simulator used in academia and industry. Next, we propose a broad range of adaptation strategies for code optimization; for prompting, these include retrieval-based few-shot prompting and chain-of-thought, and for finetuning, these include performanceconditioned generation and synthetic data augmentation based on self-play. A combination of these techniques achieves a mean speedup of 6.86× with eight generations, higher than average optimizations from individual programmers (3.66×). Using our model's fastest generations, we set a new upper limit on the fastest speedup possible for our dataset at 9.64× compared to using the fastest human submissions available (9.56×). 1

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2302.07867")
get_code_for_paper("2302.07867")
have("2302.07867")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2302.07867.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2302.07867.svg)](https://syntology.ai/paper/2302.07867)

Connect an agent — have() is free.