Efficiently Explaining CSPs with Unsatisfiable Subset Optimization

Emilio Gamba, Bart Bogaerts, Tias Guns
5/25/2021
cs.AIcs.LO

Official code: ML-KULeuven/ocus-explain (4 stars, Jupyter Notebook, last commit 2025-07-02).

Abstract

We build on a recently proposed method for explaining solutions of constraint satisfaction problems. An explanation here is a sequence of simple inference steps, where the simplicity of an inference step is measured by the number and types of constraints and facts used, and where the sequence explains all logical consequences of the problem.

Show full abstract

We build on these formal foundations and tackle two emerging questions, namely how to generate explanations that are provably optimal (with respect to the given cost metric) and how to generate them efficiently. To answer these questions, we develop 1) an implicit hitting set algorithm for finding optimal unsatisfiable subsets; 2) a method to reduce multiple calls for (optimal) unsatisfiable subsets to a single call that takes constraints on the subset into account, and 3) a method for re-using relevant information over multiple calls to these algorithms. The method is also applicable to other problems that require finding cost-optimal unsatiable subsets. We specifically show that this approach can be used to effectively find sequences of optimal explanation steps for constraint satisfaction problems like logic grid puzzles.

View on arXivView PDF

Code Implementations(1)

Efficient Explaining CSPs with Unsatisfiable Subset Optimization

41Jupyter Notebook, PythonMay 19, 20211 years ago
constraint-satisfaction-problemexplainabilityexplanationssatisfiabilityunsat

Similar Papers

Cite this paper

@article{gamba2021efficiently,
  title  = {Efficiently Explaining CSPs with Unsatisfiable Subset Optimization},
  author = {Emilio Gamba and Bart Bogaerts and Tias Guns},
  year   = {2021},
  eprint = {2105.11763},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.11763}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.11763.svg)](https://codeofpaper.com/paper/2105.11763)

Discussion