NLData2Opt: Benchmarking Parameter Derivation and Prediction for Modeling Optimization Problems from Natural Language and Data

Lijia Liu, Kyohei Atarashi, Jiyi Li, Koh Takeuchi, Shunji Umetani, Hisashi KashimaarXiv 2026

TL;DR

NLData2Opt is a new benchmark designed to move Large Language Model (LLM) evaluation for optimization modeling away from "clean" textbook examples toward messy, real-world scenarios. It requires models to not only write math but also extract parameters from noisy data, derive missing values, and predict future trends—revealing that even top-tier models like GPT-4o and Claude 3.5 struggle significantly when data and descriptions are separated.

What Problem Does This Paper Address?

In the real world, an operations researcher doesn't just get a perfectly phrased paragraph containing every number needed for a model. Instead, they get a high-level problem description ("maximize profit on sandwiches") and a pile of messy CSV files.

Existing benchmarks (like NL4Opt or Mamo) simplify this by embedding all necessary parameters directly into the natural language prompt. This creates an "idealized" environment where the LLM's task is mostly pattern matching. The authors of this paper argue that this overestimates LLM capabilities. In practice, modeling requires data-centric reasoning: identifying which data is relevant, calculating intermediate values (derivation), and forecasting missing future values (prediction).

Methods

The authors introduce a multi-stage framework to transform existing optimization problems into more realistic tasks. The core of their approach is the separation of the Problem Description (the logic) from the Data (the numbers).

As shown in the task breakdown below, they evaluate models across several increasingly difficult cases:

  • NL Case: The traditional "clean" prompt.
  • NL + Data Case: Description and data are provided separately.
  • Derivation Case: Models must calculate a parameter (e.g., Profit = Selling Price - Cost) before formulating the model.
  • Prediction Case: Models must forecast a value from a historical time series.
  • Irrelevant Attributes (+ Irr): Adding "distractor" data columns that look relevant but aren't needed for the specific task.
Figure 1: An optimization task in NLData2Opt with its components.

To ensure high-quality ground truths, the authors use AMPL (A Mathematical Programming Language), which natively enforces the separation of model logic (.mod files) and data (.dat files). They also developed an automated pipeline using a "Committee of Experts" (CoE) framework to generate and verify these complex tasks.

Datasets

The benchmark, NLData2Opt, is constructed by augmenting two well-known datasets:

  1. NLP4LP: 269 linear and mixed-integer programming tasks from textbooks.
  2. Mamo: Over 800 tasks ranging from high school to undergraduate level.

The resulting benchmark includes nine distinct prompt settings for each task, totaling thousands of evaluation instances.

Key Insights and Ideas

  • The "Separation Anxiety" of LLMs: Simply moving numbers from the text into a separate CSV table causes a noticeable drop in performance. LLMs struggle to maintain the mapping between a declared variable in the math and its corresponding value in a table.
  • Distractors Work: Adding semantically similar but irrelevant data (like "Protein Content" when the goal is "Profit") significantly increases "undefined entity" errors. The models get distracted and try to incorporate the irrelevant data into the constraints.
  • Forecasting isn't the Bottleneck: Interestingly, the authors found that even when they gave models the "Oracle" (perfect) predictions, the models still failed. This suggests the primary failure point isn't the math or the forecasting itself, but the integration of those predicted values into a valid optimization formulation.
  • Structural vs. Functional Correctness: A model might produce a formulation that looks like math (high Entity F1 score) but is functionally broken (low Execution-Based Correctness).

Key Results

The researchers evaluated 10 different LLMs, including proprietary giants like GPT-4o and Claude 3.5, and open-weight models like Llama 3.3.

The results, visualized in the heatmap below, show a clear trend: as tasks move from the base "NL" case to "Derivation" or "Prediction" with irrelevant attributes, performance craters.

Figure 5: Average EBC scores across task cases. The heatmap illustrates functional correctness achieved on the nine task cases of NLData2Opt (rows, cases with irrelevant attributes are marked with "+ Irr"), when evaluated with an LLM model or baseline method (columns). The columns are ranked to reflect the worst to best performing models. Higher saturation represents a higher EBC score. While models with smaller capacity did not generate executable code, stronger models only reached scores as high as 0.77, highlighting the challenges of the tasks.
  • Top Performers: Claude 3.5 Opus and GPT-4o were the most robust, but even they only reached scores around 0.77 on the base case and dropped as low as 0.42 on complex derivation tasks.
  • Open-Weight Struggle: Smaller models (8B parameters) often failed to generate executable code entirely, resulting in scores near zero for complex cases.
  • The Gap: There is a massive gap between a model's ability to "write math" and its ability to "model a problem from data."

Limitations and Future Work

The authors acknowledge that NLData2Opt relies on LLM-based transformations to build the benchmark, which could theoretically introduce hallucinations (though they used rigorous automated verifiers to mitigate this).

Currently, the benchmark is limited to Linear Programming (LP) and Mixed-Integer Linear Programming (MILP). Future work could extend this to non-linear problems or stochastic programming. Additionally, the authors suggest that future benchmarks should evaluate "conceptual reasoning"—checking if the LLM actually understands why a parameter affects the feasible region, rather than just where to plug the number in.

Summary updated

BibTeX
@misc{liu2026nldata,
  author = {Lijia Liu and Kyohei Atarashi and Jiyi Li and Koh Takeuchi and Shunji Umetani and Hisashi Kashima},
  title = {{NLData2Opt: Benchmarking Parameter Derivation and Prediction for Modeling Optimization Problems from Natural Language and Data}},
  year = {2026},
  eprint = {2610.22889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.22889},
}
Figure