Benchmarking Prompt Optimization of Large Language Models With Chess

Timothée Lesort, Alejandra López de Aberasturi Gómez, Tristan Karch, Tom Veniat, Philippe Modard +2 more
9/30/2026
cs.AIcs.LG
benchmark-dataset

Official code: imec-ailabs/Automatic-Prompt-Optimization-with-Chess (5 stars, Python, Apache-2.0, last commit 2026-10-06).

Abstract

Evaluating large language models becomes increasingly challenging as their capabilities advance: benchmarks can saturate, public test sets risk contamination, and assessing harder tasks can require expensive grading or execution infrastructure. These challenges are amplified in automatic prompt optimization (APO), where evaluation is repeated throughout the search for better prompts.

Show full abstract

Studying APO therefore requires a benchmark that is cheap and deterministic to score, hard enough to leave room for improvement, and renewable as models evolve. We introduce a chess benchmark built from 1,118 Lichess puzzles to study APO for frozen LLMs: we optimize their prompts without updating their model weights. Chess combines inexpensive exact-match scoring, engine-based evaluation of alternative moves, and a renewable supply of problems with adjustable difficulty. Unlike evaluations that report only success on isolated test items, the benchmark also connects puzzle-solving gains to short game-play rollouts within the same domain. We use it to evaluate six APO algorithms on eight target models, measuring not only baseline strength but also how much each model responds to optimization and whether optimized prompts transfer across models and to game play. Chess is thus a well-suited benchmark for APO: it is (i) challenging, as even the strongest evaluated model, Gemini 3.5 Flash (used as the meta-model), solves only about 55\% of puzzles; (ii) discriminative, revealing gains, unchanged performance, and regressions across methods and models; (iii) renewable, with fresh puzzles to reduce contamination risk and adjustable difficulty to maintain headroom as models improve; and (iv) affordable, as the complete study runs for around \$800. We release the puzzles, optimization and evaluation code, and dataset-renewal scripts (https://github.com/imec-ailabs/Automatic-Prompt-Optimization-with-Chess).

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Benchmark Repository for Automatic Prompt Optimization (APO) with Chess

50Python, JavaScriptSep 30, 20261 months agoApache-2.0
ai-agentsllmspropmt-engineeringresearch-paper

Similar Papers

Cite this paper

@article{lesort2026benchmarking,
  title  = {Benchmarking Prompt Optimization of Large Language Models With Chess},
  author = {Timothée Lesort and Alejandra López de Aberasturi Gómez and Tristan Karch and Tom Veniat and Philippe Modard and Karl Tuyls and Ludovic Denoyer},
  year   = {2026},
  eprint = {2610.00416},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.00416v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.00416.svg)](https://codeofpaper.com/paper/2610.00416)

Discussion