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

Abstract

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 various 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.

Cite

Text

Chen et al. "HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization." International Conference on Learning Representations, 2026.

Markdown

[Chen et al. "HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization." International Conference on Learning Representations, 2026.](https://mlanthology.org/iclr/2026/chen2026iclr-heurigym/)

BibTeX

@inproceedings{chen2026iclr-heurigym,
  title     = {{HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization}},
  author    = {Chen, Hongzheng and Wang, Yingheng and Cai, Yaohui and Hu, Hins and Li, Jiajie and Huang, Shirley and Deng, Chenhui and Liang, Rongjian and Kong, Shufeng and Ren, Haoxing and Samaranayake, Samitha and Gomes, Carla P and Zhang, Zhiru},
  booktitle = {International Conference on Learning Representations},
  year      = {2026},
  url       = {https://mlanthology.org/iclr/2026/chen2026iclr-heurigym/}
}