CombEval: A Framework for Evaluating Combinatorial Counting in Large Language Models

Yuxu Zhou, Ondřej Kuželka, Yuyi Wang, Yuanhong Wang, Yi ChangarXiv 2026

TL;DR

CombEval is a dynamic benchmark framework that uses a formal logic backend to generate diverse, solver-verified combinatorial counting problems for LLMs. It reveals that while state-of-the-art models like GPT-5.5 excel at basic counting, they remain surprisingly brittle when faced with ordered structures, indistinguishable elements, and deep reasoning chains.

What Problem Does This Paper Address?

Combinatorial counting (CO)—the art of determining the number of ways to arrange or select objects—is a cornerstone of mathematical reasoning and probability. While Large Language Models (LLMs) have shown impressive results on general math benchmarks like MATH or GSM8K, these static datasets suffer from two major flaws: data contamination (models memorizing training examples) and superficiality (models exploiting textual patterns rather than performing logical abstraction).

Furthermore, static benchmarks don't allow researchers to "turn the knobs" on difficulty. We don't just want to know if a model fails; we want to know why—is it the number of entities, the complexity of the constraints, or the depth of the reasoning steps? CombEval addresses this by moving from a fixed question bank to a dynamic generation engine.

Methods

The core of CombEval is Cofola, a typed declarative language designed for combinatorial counting. The framework treats every problem as a triple $\langle D, O, C \rangle$:

  • D (Domain): The set of entities (e.g., 10 distinct students).
  • O (Objects): The structures being built (e.g., sets, sequences, circular arrangements, or partitions).
  • C (Constraints): The rules governing these objects (e.g., "Student A must be next to Student B").
Figure 1: Overview of the CombEval generation framework with the current Cofola backend. The generator samples a typed object DAG P = ⟨D, O, C⟩, attaches compatible constraints, verbalizes the resulting formal specification with templates, and verifies the exact answer using the Cofola solver.

As shown in Figure 1, the system generates a Directed Acyclic Graph (DAG) of object dependencies, attaches compatible constraints, and then uses a Weighted First-Order Model Counting (WFOMC) solver to calculate the exact ground-truth answer. Finally, it translates these formal specifications into natural language using templates. To ensure the models aren't just reacting to the templates, the authors also implemented a closed-loop verification pipeline to rewrite problems into "MATH-style" prose while preserving the underlying logic.

Datasets

The authors introduced the CombEval suite, a dynamically generated benchmark. For their primary evaluation (RQ1), they constructed a high-quality set of 1,500 problems across four main operation groups: CHOOSE, GROUP, SEQUENCE, and TUPLE.

Unlike static datasets, CombEval allows for the creation of "difficulty-controlled" subsets, varying parameters like entity size ($n$), constraint count ($k$), and reasoning depth ($d$).

Key Insights and Ideas

  • The "Sequence" Wall: Models perform significantly worse on SEQUENCE problems (ordered arrangements with relative positions) compared to CHOOSE problems (simple selections). This suggests LLMs struggle with precise state tracking in ordered domains.
  • Reasoning Drift: Accuracy degrades monotonically as the nesting depth of operations increases. Even without complex constraints, each successive operation forces the model to track extended intermediate states, leading to error accumulation.
  • Indistinguishable Elements: A common failure mode involves "multisets" (bags). Models often fail to account for the symmetry of indistinguishable items, leading to classic combinatorial slips like missing the rotational quotient in circular arrangements.
  • Robustness vs. Capability: The strongest models (e.g., GPT-5.5) show high robustness to how a problem is phrased. In contrast, slightly weaker (but still capable) models like DeepSeek-V3.2 show significant performance fluctuations when the surface wording changes, even if the logic remains identical.

Key Results

The authors evaluated 11 LLMs, including math-specialized and reasoning-enhanced models.

Figure 2: Overall accuracy comparison of evaluated LLMs on CombEval. Models were tested using stan- dard natural language reasoning (Zero-shot) and code- augmented reasoning (Python). Due to the exceedingly weak coding capabilities of smaller models, which fre- quently fail to return compliant and executable code, they were not evaluated under the Python setting.
  • Leaderboard: GPT-5.5 emerged as the clear leader with ~86% accuracy in zero-shot settings, followed by Gemini-3-flash-preview-thinking (~78%). Among open-source models, DeepSeek-V3.2 performed best (~63.5%).
  • Difficulty Scaling: As shown in Figure 3, accuracy drops sharply as the number of constraints ($k$) increases. For SEQUENCE tasks, even the best models see accuracy plummet when moving from zero to three constraints.
  • Depth Impact: Figure 4 illustrates the impact of reasoning depth. While frontier models show more resilience, all models exhibit a downward trend as the chain of operations grows longer.
Figure 4: Impact of reasoning depth on model perfor- mance.

Limitations and Future Work

The authors acknowledge several limitations:

  1. Language: The framework currently only supports English templates.
  2. Solver Complexity: The Cofola solver is constrained by computational time/memory, limiting the generation of extremely complex, large-scale problems.
  3. Scope: The current version focuses on basic combinatorial objects.

Future directions include scaling the suite to include graph objects, grid placements, and numeric attributes. The authors also suggest exploring "agentic techniques"—pairing LLMs with symbolic verifiers—to mitigate the combinatorial slips identified in their error analysis.

Summary updated

BibTeX
@misc{zhou2026combeval,
  author = {Yuxu Zhou and Ondřej Kuželka and Yuyi Wang and Yuanhong Wang and Yi Chang},
  title = {{CombEval: A Framework for Evaluating Combinatorial Counting in Large Language Models}},
  year = {2026},
  eprint = {2606.19788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.19788},
}
Figure