Papers › HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization

HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization

9 Jun 2025arXiv:2506.07972archive 2025-07-28

Hongzheng Chen, Yingheng Wang, Yaohui Cai, Hins Hu, Jiajie Li, Shirley Huang, Chenhui Deng, Rongjian Liang, Shufeng Kong, Haoxing Ren, Samitha Samaranayake, Carla P. Gomes, Zhiru Zhang

While Large Language Models (LLMs) have demonstrated significant advancements in reasoning and agent-based problem-solving, current evaluation methodologies fail to adequately assess their capabilities: existing benchmarks either rely on closed-ended questions prone to saturation and memorization, or subjective comparisons that lack consistency and rigor. In this work, we introduce HeuriGym, an agentic framework designed for evaluating heuristic algorithms generated by LLMs for combinatorial optimization problems, characterized by clearly defined objectives and expansive solution spaces. HeuriGym empowers LLMs to propose heuristics, receive evaluative feedback via code execution, and iteratively refine their solutions. We evaluate nine state-of-the-art models on nine problems across domains such as computer systems, logistics, and biology, exposing persistent limitations in tool use, planning, and adaptive reasoning. To quantify performance, we propose the Quality-Yield Index (QYI), a metric that captures both solution pass rate and quality. Even top models like GPT-o4-mini-high and Gemini-2.5-Pro attain QYI scores of only 0.6, well below the expert baseline of 1. Our open-source benchmark aims to guide the development of LLMs toward more effective and realistic problem-solving in scientific and engineering domains.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2506.07972")

Code

Syntology Ran 0 of 12 code samples harvested from 1 repository linked to this paper; 12 have no recorded run.

By repository: official repository: 12 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

cornell-zhang/heurigym officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 0 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from cornell-zhang/heurigym. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calculate_cost cornell-zhang/heurigym/config.py official repository unverified Apache-2.0 (permissive) · 6fcd80e8413e9b07 · report
evaluate cornell-zhang/heurigym/global_routing/baseline/run_baseline.py official repository unverified Apache-2.0 (permissive) · 0a0b8626cedf1ab8 · report
generate_summary_table cornell-zhang/heurigym/llm_solver_agent.py official repository unverified Apache-2.0 (permissive) · 45282c499a87b003 · report
get_model_pricing cornell-zhang/heurigym/config.py official repository unverified Apache-2.0 (permissive) · 4ab4ed9eea06dabc · report
greedy cornell-zhang/heurigym/egraph_extraction/baseline/greedy_baseline.py official repository unverified Apache-2.0 (permissive) · 5bd4fd26f4dc8ebb · report
load_graph cornell-zhang/heurigym/egraph_extraction/program/verifier.py official repository unverified Apache-2.0 (permissive) · ba48fb31f2879a84 · report
load_solution cornell-zhang/heurigym/egraph_extraction/program/verifier.py official repository unverified Apache-2.0 (permissive) · f6a39d9a77e36206 · report
normalize_score cornell-zhang/heurigym/egraph_extraction/program/metric.py official repository unverified Apache-2.0 (permissive) · 0d1082ba17362e02 · report
parse_best_results cornell-zhang/heurigym/llm_solver_agent.py official repository unverified Apache-2.0 (permissive) · 9f4010a5778070cb · report
read_instance cornell-zhang/heurigym/crew_pairing/program/utils.py official repository unverified Apache-2.0 (permissive) · 77d809abe68c246b · report
run_instantgr cornell-zhang/heurigym/global_routing/baseline/run_baseline.py official repository unverified Apache-2.0 (permissive) · 94646147e106b4ed · report
verify cornell-zhang/heurigym/egraph_extraction/program/verifier.py official repository unverified Apache-2.0 (permissive) · 4fa724a25bba66d7 · report

Tasks

Combinatorial OptimizationMemorization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections