NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reasoning in a Combinatorial and Constrained World: Benchmarking LLMs on Natural-Language Combinatorial Optimization

Xia Jiang, Jing Chen, Cong Zhang, Jie Gao, Chengpeng Hu, Chenhao Zhang, Yaoxin Wu, Yingqian ZhangarXiv 2026

TL;DR

This paper introduces NLCO (Natural Language Combinatorial Optimization), a comprehensive benchmark designed to evaluate how well Large Language Models (LLMs) can solve complex, constrained optimization problems directly from textual descriptions. Unlike previous benchmarks that test an LLM's ability to write code or call external solvers, NLCO forces models to reason through high-dimensional solution spaces end-to-end. The findings reveal that while frontier models excel at small optimization tasks, their performance degrades sharply as problem size scales, exposing systematic failures when dealing with graph structures and bottleneck objectives.

What Problem Does This Paper Address?

Combinatorial Optimization (CO) problems—such as routing delivery vans, scheduling factory shifts, or packing containers—are notoriously difficult. They are typically NP-hard, requiring a search through massive, high-dimensional solution spaces where a single constraint violation invalidates the entire answer.

While LLMs have shown impressive capabilities in basic math and logic, their capacity for complex, deductive CO reasoning remains poorly understood. Existing benchmarks often evaluate LLMs by asking them to generate code (e.g., Python scripts that call solvers like Gurobi). However, this approach confounds the LLM's internal reasoning with the capabilities of the external tools it invokes. To truly understand if LLMs can act as autonomous decision-support agents, we need to test their ability to interpret natural language specifications and reason out discrete, feasible, and near-optimal solutions entirely on their own.

Methods

The authors developed a structured framework to systematically generate and evaluate CO tasks without tool assistance.

The Four-Layer Taxonomy

To diagnose exactly where LLMs succeed or fail, NLCO categorizes problems using a taxonomy grounded in Constraint Programming (CP) principles:

  1. Variable Sort (VarSort): The decision domain (Integer/Boolean, Set-valued, or Graph-structured).
  2. Constraint-Family Group (Family): The dominant structural constraint (Comparison, Counting, Packing, or Graph structural).
  3. Global Constraint Pattern (Global): Coarse, human-interpretable solution templates (e.g., Permutation/Tour, Budgeted Subset, Partitioning).
  4. Objective Class (ObjClass): The mathematical form of the cost function (Linear, Quadratic, or Bottleneck).

Data Generation Pipeline

The pipeline consists of four distinct steps:

  • Instance Generation & Annotation: Sub-instances are sampled from standard optimization libraries (like TSPLIB) to ensure realistic data distributions, then solved using domain-specific solvers to establish ground-truth optimal solutions.
  • Natural Language Contextualization: An LLM translates the numerical data into diverse, everyday real-world narratives (e.g., transforming a vehicle routing problem into a postal delivery story). A semantic verifier ensures the underlying mathematical structure remains perfectly intact.
  • Representation Diversification: The data presentation is varied across multiple formats (JSON, CSV, Markdown tables, free text) and indexing styles to prevent models from relying on surface-level pattern matching.
  • Evaluation Process: LLM outputs are parsed and verified via pattern-specific checking scripts. Solutions are first evaluated for feasibility (did it break any rules?) and then for optimality (how close is it to the best possible score?).
Overview of the NLCO benchmark taxonomy and evaluation process

Datasets

The authors introduced the NLCO benchmark dataset, which consists of:

  • 43 distinct CO problems spanning network design, scheduling, packing, routing, and location analysis.
  • 3 difficulty tiers (Set-S, Set-M, Set-L) scaled by problem size parameters (e.g., number of nodes or items).
  • 6,450 total instances (50 instances per tier for each task).

Key Insights and Ideas

  • The Scalability Wall: LLMs hit a hard wall when problem sizes scale. As tasks grow from small (Set-S) to large (Set-L), feasibility and optimality plummet, even though the models generate significantly more reasoning tokens.
  • Structure Dictates Success: Problem geometry matters immensely. Set-based tasks (like Set Cover) are relatively easy for LLMs. Conversely, graph-structured problems (like the Traveling Salesman Problem) are highly error-prone because they require maintaining global relational consistency rather than making local, enumerable choices.
  • The Bottleneck Blindspot: LLMs struggle severely with "bottleneck" objectives (min-max or max-min problems, like minimizing the maximum completion time of a schedule). A single local error or incomplete global verification disproportionately damages the objective value in these landscapes.
Aggregated performance showing how variable types and objective classes impact LLM accuracy and feasibility

Key Results

The authors evaluated 13 modern LLMs, including open-weight models (e.g., Qwen3, DeepSeek-V3) and proprietary models (e.g., OpenAI o4-mini, GPT-5.1, Gemini-3-Flash), spanning both standard chat and explicit reasoning variants.

  • Small Tiers are Solvable: On the easiest tier (Set-S), top-performing reasoning models achieved near-saturated feasibility (up to 98.9% Average Feasibility Rate) and high exact-optimality rates (up to 91.6% Accuracy).
  • Large Tiers Cause Collapse: On the hardest tier (Set-L), performance dropped drastically. For example, the standard Qwen3-14B model plummeted to a 48.9% Feasibility Rate and a meager 7.8% Accuracy.
  • Reasoning Models Lead the Pack: Explicit reasoning models (like DeepSeek-V3-Reasoning and GPT-5.1) consistently outperformed standard chat models, demonstrating that inference-time compute helps navigate combinatorial spaces, though it still fails to fully close the gap on large instances.
  • Code Generation vs. End-to-End: When prompted to write solver-calling code (Gurobi/Python) instead of solving the problem end-to-end, performance improved significantly (up to 83.77% accuracy on Set-L for Gemini-3-Flash). However, even with a world-class solver backend, performance did not saturate, proving that translating natural language to formal mathematical models remains a bottleneck.

Limitations and Future Work

While NLCO provides a rigorous testbed, the authors note several limitations:

  • Instance Scale: To keep end-to-end text generation tractable for current LLMs, the problem sizes are still moderate compared to massive industrial-scale problems where classical solvers are mandatory.
  • Synthetic Cleanliness: The natural language scenarios, while diverse, are generated from clean templates. Real-world user specifications are often noisy, ambiguous, or missing constraints entirely.
  • Prompting and Agentic Constraints: The benchmark evaluates models under a fixed prompting protocol to isolate intrinsic reasoning. Future work should explore how advanced agentic workflows (like multi-agent debate, tool-use, or iterative self-verification) interact with the benchmark.

Summary updated

BibTeX
@misc{jiang2026reasoning,
  author = {Xia Jiang and Jing Chen and Cong Zhang and Jie Gao and Chengpeng Hu and Chenhao Zhang and Yaoxin Wu and Yingqian Zhang},
  title = {{Reasoning in a Combinatorial and Constrained World: Benchmarking LLMs on Natural-Language Combinatorial Optimization}},
  year = {2026},
  eprint = {2602.02188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.02188},
}
Figure