Models Can Model, But Can’t Bind: Structured Grounding in Text-to-Optimization

Zhiqi Gao, Albert Ge, Alexander Michael Berenbeim, Nathaniel D. Bastian, Frederic Sala

TL;DR

Large Language Models (LLMs) are surprisingly good at understanding the mathematical structure of optimization problems, but they fail miserably at "binding"—the process of correctly extracting and placing numerical data into that structure. This paper introduces Text2Opt-Bench, a scalable benchmark that reveals a sharp "accuracy cliff" as problem data grows, and proposes BIND, a technique that offloads data to structured files to bypass the transcription bottleneck.

What Problem Does This Paper Address?

Solving operations research (OR) tasks from natural language—known as text-to-optimization—requires two distinct skills:

  1. Modeling: Choosing the correct mathematical structure (e.g., "this is a linear program with these specific constraints").
  2. Binding: Grounding that structure in concrete data (e.g., "the cost coefficient for variable $x_1$ is 7.12").

While LLMs have made massive strides in reasoning (modeling), they struggle with the high-fidelity transcription required for binding. Existing benchmarks often use small, "textbook" problems where this isn't an issue. However, real-world industrial problems involve hundreds or thousands of variables. The authors identify an effective binding limit: even when a model knows exactly how to formulate a problem, its accuracy collapses as the amount of numerical data in the prompt increases.

Methods

The authors propose two primary ways to mitigate binding failures:

  • BIND (Binding-aware Data Offloading): Instead of forcing the model to transcribe numbers from a long prompt, the numerical data is externalized to a structured JSON file. The LLM is then prompted to write code that programmatically loads this data (e.g., using json.load()). This allows the model to focus on the mathematical logic while the code handles the data ingestion.
  • Binding Specialists: The authors found that training a model exclusively on the binding task (extracting data into JSON) is more effective than end-to-end training. They used Supervised Fine-Tuning (SFT) to create these specialists, noting that SFT's dense supervision is better suited for transcription than Reinforcement Learning's (RL) sparse rewards.
  • Forward-Engineering Pipeline: To build their benchmark, they developed a pipeline that starts with a verified optimization model and then generates a natural language description. This ensures every problem is feasible by construction, allowing failures to be clearly attributed to the model rather than the data.
Figure 3: Text2Opt-Bench generation pipeline. Problems are constructed via forward engineering with solver verification, then described in natural language. Template-based insertion decouples linguistic complexity from data scale.

Datasets

The paper introduces Text2Opt-Bench, a scalable benchmark of solver-verified optimization problems.

  • Scope: 12 categories including Linear Programs (LP), Mixed-Integer Linear Programs (MILP), and nonlinear formulations.
  • Scale: Problems range from small textbook examples to large-scale instances with over 1,000 variables and ~30k tokens of data.
  • Comparison: Unlike previous benchmarks like NL4Opt or OptiBench, Text2Opt-Bench offers controllable difficulty and industrially-motivated formulations (e.g., stochastic programs and multi-objective targets).

Key Insights and Ideas

  • The Accuracy Cliff: As models scale up in parameters, their failure modes shift. Small models fail because they can't "model" (understand the math). Large models (like GPT-5 or DeepSeek-R1) understand the math perfectly but fail because they can't "bind" the data.
  • Binding as a Retrieval Failure: By testing models on RULER (a long-context retrieval benchmark), the authors confirmed that binding failures in optimization mirror general retrieval degradation in LLMs. Transcription errors compound multiplicatively as the number of parameters to bind grows.
  • Efficiency of Decomposition: Separating binding from modeling allows for much smaller, more efficient models. A 1.5B parameter "binding specialist" can match the performance of a 7B parameter end-to-end model.
As model size increases, binding errors become the dominant failure mode

Key Results

  • Binding Recovery: Using BIND with an oracle for data extraction recovered between 12 and 27 accuracy points across various models.
  • Token Efficiency: BIND achieves near-ceiling accuracy (e.g., 95.8% for GPT-5) at a significantly lower token cost than standard iterative repair methods.
  • Specialist Performance: A 7B binding specialist outperformed end-to-end SFT across three distinct categories: 58.1% vs. 51.2% in resource allocation and 100% vs. 96% in job-shop scheduling.
  • Reasoning Models: Interestingly, specialized reasoning models like DeepSeek-R1 and o4-mini did not significantly outperform standard models on binding, suggesting that "thinking" steps don't solve the transcription bottleneck.
BIND matches or exceeds oracle repair methods at a fraction of the token cost

Limitations and Future Work

  • Solver Scope: The benchmark currently focuses on mathematical programming solvable by Gurobi, excluding combinatorial problems that require custom heuristics.
  • Data Formats: The study primarily uses clean, structured text or tables. Real-world "messy" data—such as PDFs, handwritten notes, or complex spreadsheets—remains a challenge for future work.
  • Generalization: While binding specialists generalize well within a fixed schema, "free-form" categories still require training data that closely matches the target distribution. Expanding to a truly "universal" binder is a goal for the future.

Summary updated

BibTeX
@inproceedings{gao2026models,
  author = {Zhiqi Gao and Albert Ge and Alexander Michael Berenbeim and Nathaniel D. Bastian and Frederic Sala},
  title = {{Models Can Model, But Can’t Bind: Structured Grounding in Text-to-Optimization}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=WKKFUZcatQ},
}
Figure