TACIT: Optimization Models that Learn from Their Mistakes

Maxime Bouscary, Marco Molinaro, Sirui Li, Saurabh Amin, Ishai Menache, Konstantina MellouarXiv 2026

TL;DR

TACIT (Templates And Cuts for Interpretable Transformations) is a new framework that automatically fixes "broken" optimization models by learning from user overrides. By combining the semantic reasoning of Large Language Models (LLMs) with the mathematical rigor of classical optimization, it can recover missing constraints and variables that traditional data-driven methods miss, achieving a 78.9% success rate in repairing complex model errors.

What Problem Does This Paper Address?

Mathematical optimization is the backbone of modern logistics, scheduling, and resource allocation. However, these models are only as good as their formulations. In the real world, there is often a "translation gap": domain experts have tacit knowledge (implicit rules or preferences) that they fail to communicate to the optimization experts building the model.

This leads to misspecified models—formulations with missing constraints, incorrect objective weights, or omitted variables. When these models are deployed, users often have to manually override the "optimal" solutions because they violate unstated operational realities. Traditional ways to fix this, like inverse optimization or constraint learning, often produce "black-box" mathematical fixes that are hard for humans to interpret and prone to overfitting sparse data.

Methods

TACIT introduces a hybrid, iterative search loop that combines two complementary paradigms:

  1. Bottom-up (Cuts and Contextualization): The system uses optimization (specifically a Mixed-Integer Linear Program) to find the simplest linear inequalities ("cuts") that separate the rejected model solutions from the user-accepted target solutions. An LLM agent then "contextualizes" these raw numerical cuts. For example, it might take a messy cut like $0.98x_1 + 1.03x_2 \le 0.97$ and realize it represents a logical constraint like $x_1 + x_2 \le 1$, generalizing it across the entire model.
  2. Top-down (Templates and Calibration): The LLM acts as a "modeling architect," proposing structural hypotheses for what might be missing (e.g., "we need an auxiliary variable to track route penalties"). It provides a template with placeholders for numerical values. The system then uses optimization to calibrate these parameters so they perfectly fit the observed user data.

Finally, an Objective Calibration step ensures that the new constraints and variables are balanced with the right costs in the objective function, making the user's preferred solution truly optimal in the repaired model.

Figure 1: TACIT framework overview.

Datasets

The authors introduced a comprehensive new benchmark consisting of 38 misspecification scenarios across nine classes of optimization problems, including:

  • Classical problems: Capacitated Facility Location (CFL), Maximum Independent Set (MIS), and Vehicle Routing (CVRP).
  • Real-world applications: GPU allocation in data centers and workforce assignment.
  • Error types: The benchmark specifically tests for missing/miscalibrated objectives, constraints, variables, and domains.

Key Insights and Ideas

  • The Power of Hybridity: Optimization provides the "ground truth" for feasibility, while LLMs provide the "semantic prior"—the intuition of what a reasonable modeling rule looks like. Neither is as effective alone.
  • Structural vs. Parametric Repair: Most existing methods only tune numbers (parameters). TACIT can perform structural repair, such as adding entirely new auxiliary variables and linking constraints, which the authors prove is mathematically necessary to fix certain types of errors (Theorem 1).
  • Interpretability as a Constraint: By forcing the LLM to translate mathematical cuts into indexed constraint families, the resulting model remains human-readable. A practitioner can inspect the repair and say, "Yes, that is exactly the rule I was following."

Key Results

TACIT significantly outperforms both traditional data-driven baselines and LLM-only approaches:

  • Recovery Rate: TACIT recovered the ground-truth formulation in 78.9% of scenarios, compared to only 60.5% for a strong LLM-only baseline.
  • Structural Demands: The gains were most pronounced in "hard" categories like missing variables and global constraints, where LLM-only approaches often struggle to maintain mathematical consistency.
  • Data Efficiency: The framework is remarkably robust, maintaining high performance even with as few as 32 training instances.
  • Robustness: It remains effective even when user feedback is slightly suboptimal (e.g., the user's "fix" is within 5% of the true optimum rather than perfect).
Table 1: TACIT against LLM baselines under different LLM backbone models.

Limitations and Future Work

While powerful, TACIT has a few notable limitations:

  • Computational Overhead: The full hybrid loop is significantly slower than a simple LLM prompt, with median runtimes around 2 hours for complex repairs.
  • LLM Dependency: The quality of the repair is still tied to the reasoning capabilities of the underlying LLM; weaker models lead to lower recovery rates.
  • Scope: The current work focuses on Linear and Mixed-Integer Linear Programs. Extending this to non-linear or black-box optimization problems remains an open challenge.

Future work could involve making the process more interactive, allowing a human-in-the-loop to choose between multiple semantically plausible repairs proposed by the LLM.

Summary updated

BibTeX
@misc{bouscary2026tacit,
  author = {Maxime Bouscary and Marco Molinaro and Sirui Li and Saurabh Amin and Ishai Menache and Konstantina Mellou},
  title = {{TACIT: Optimization Models that Learn from Their Mistakes}},
  year = {2026},
  eprint = {2609.38434},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38434},
}
Figure