FindStatBench: Evaluating Large Language Models on Combinatorial Code Synthesis
Abstract
We introduce FindStatBench, an execution benchmark for combinatorial code synthesis built from FindStat. It contains 2,329 tasks across 24 collections and 5,517,046 evaluation instances held out from model prompts. Given a mathematical description and up to five examples, the model must produce a Python function that computes an integer statistic or maps one combinatorial object to another. We evaluate four closed-source production models and seven open-weight models with the same tasks and scorer, using provider-specific inference configurations. In the full-corpus comparison, no system solves half the tasks perfectly, and each scores lower on maps than on statistics. An eleven-model oracle solves 60.54% of tasks. On a separate subset, five samples from one model yield a gain of similar size over one sample. Targeted output-budget increases and one turn of public-example feedback improve scores but leave many tasks unsolved. Additional examples can improve aggregate accuracy while hurting individual model–task pairs. Semantic rescoring accepts some equivalent outputs but leaves set partitions and binary trees among the hardest collections. These results distinguish failure to produce code from failure to produce a program that generalizes to held-out objects.