mlsanityData to 24 Nov 2026

Constraint Reasoning and Large Language Models Join Forces: Providing Contrastive Explanations for Real-World Optimisation-Based Applications

arXiv 2610.31119 ↗Submitted 22 Oct 2026cs.AIcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code also fits: Reasoning benchmarks and evaluation

Abstract (arXiv)

We focus on optimisation-based Decision Support Systems in real-world applications. In this context, we aim to provide contrastive explanations that answer users' questions about recommendations based on the solution of an optimisation problem, specifically a Mixed-Integer Program (MIP). Addressing this endeavour is crucial to ensure human oversight of the decisions implemented, as required by international guidelines on trustworthy and responsible automated decision-making systems. We propose a novel methodology that combines constraint reasoning techniques and Large Language Models (LLMs) to generate contrastive explanations for optimisation problems encoded as MIPs. Although LLMs have shown impressive capabilities in Natural Language processing, they can produce incorrect answers due to reasoning limitations. To overcome these limitations, we leverage constraint reasoning techniques to distil the information necessary to produce an explanation, which is then passed as input to an LLM as the so-called graph of reasons. Such a graph captures the semantics and the relationships among constraints of the optimisation problem. Results on real-world scheduling domains show that incorporating constraint reasoning improves explanations generated by the LLM. In particular, using the graph of reasons enables the LLM to produce natural-language explanations that include more relevant reasons while reducing errors compared to explanations generated without this structure.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 21 of its 83 references that are in the map. Submitted 22 Oct 2026.

Builds on

21 of 83 references.

References · 21

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
  2. 2023A Survey of Large Language Modelscited by 2,758
  3. 2021Convex optimizationcited by 2,577
  4. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,457
  5. 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,228
  6. 2023Towards Understanding Sycophancy in Language Modelscited by 1,172
  7. 2022Discovering Language Model Behaviors with Model-Written Evaluationscited by 908
  8. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 613
  9. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 468
  10. 2019Explain Yourself! Leveraging Language Models for Commonsense Reasoningcited by 373
  11. 2018Contrastive Explanation: A Structural-Model Approachcited by 67
  12. 2023Large Language Models Are Not Strong Abstract Reasonerscited by 59
9 more
  1. 2022Rethinking Explainability as a Dialogue: A Practitioner's Perspectivecited by 54
  2. 2020A framework for step-wise explaining how to solve constraint satisfaction problemscited by 9
  3. 2023Hallucination Reduction in Long Input Text Summarizationcited by 7
  4. 2022Explaining Preference-driven Schedules: the EXPRES Frameworkcited by 6
  5. 2023Efficiently Explaining CSPs with Unsatisfiable Subset Optimization (extended algorithms and examples)cited by 6
  6. 2023Challenges in Domain-Specific Abstractive Summarization and How to Overcome themcited by 6
  7. 2021Causal Explanations of Structural Causal Modelscited by 5
  8. 2023Contrastive Explanations of Centralized Multi-agent Optimization Solutionscited by 5
  9. 2025Exploiting Constraint Reasoning to Build Graphical Explanations for Mixed-Integer Linear Programmingcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026ASTOR: Benchmarking and Improving Autoformulation for Soft-Constraint Optimization with a Formal Grammar
  2. 2026ConstraintBench: Benchmarking LLM Constraint Reasoning on Direct Optimization
  3. 2026OPT-Engine: Benchmarking the Limits of LLMs in Optimization Modeling via Complexity Scaling
  4. 2026Where Larger Models Excel: The Primacy of Constraint-Guided Reasoning
  5. 2024Distilling Algorithmic Reasoning from LLMs via Explaining Solution Programs
  6. 2024DeLLMa: Decision Making Under Uncertainty with Large Language Models
  7. 2023Diagnosing Infeasible Optimization Problems Using Large Language Models
  8. 2025Peering Inside the Black Box: Uncovering LLM Errors in Optimization Modelling through Component-Level Evaluation