Corrective Explanation for Interactive Constraint Satisfaction

Barry O'Sullivan, Barry O'Callaghan, Eugene C. FreuderIJCAI 2005

Introduction: Beyond Conflict Identification

In interactive Constraint Satisfaction Problems (CSPs), such as online product configurators, users often encounter states where their cumulative choices become incompatible with the underlying constraints. Traditionally, systems respond to such "domain wipeouts" with conflict-based explanations, identifying the specific set of variables responsible for the failure.

However, identifying a conflict is often insufficient for a user to proceed. A conflict-based explanation identifies the "culprits" but does not necessarily offer a viable path forward; changing a culprit variable might lead to another immediate dead end. This paper introduces the concept of corrective explanations: actionable modifications to a user's prior decisions that guarantee the restoration of a desired value or return the system to a solvable state.

Conceptual illustration of a constraint network where conflict and corrective explanations differ.

Methodology: Heuristic Search for Minimal Corrections

The primary challenge in providing corrective explanations is maintaining real-time responsiveness while ensuring the explanation is "minimal" (i.e., requires the fewest changes to user choices). The authors evaluate two main search strategies:

  1. Branch-and-Bound (B&B): A rigorous search intended to find the absolute shortest (optimal) explanation.
  2. Greedy Search: A heuristic approach that finds a valid solution similar to the user's current state and returns the delta as the explanation.

To optimize the greedy search, the authors employed specific ordering heuristics. Value ordering prioritized values previously selected by the user to minimize the "distance" from the current state. Variable ordering was tested using three heuristics: minimum ratio of domain over forward degree (min dom/deg), maximum degree to user variables, and random. Additionally, they compared a "1-pass" greedy search against a "10-pass" version to evaluate if marginal increases in computation could significantly improve explanation quality.

Experimental Evaluation

The proposed methods were benchmarked using the Renault Megane Configuration dataset, a complex real-world problem featuring 101 variables, non-binary constraints, and a solution space exceeding $1.4 \times 10^{12}$ configurations.

Key Results: Efficiency and Quality

The experimental results demonstrate a clear trade-off between computational cost and explanation optimality. While Branch-and-Bound guarantees minimal explanations, its computational overhead (measured in constraint checks) makes it unsuitable for interactive environments.

Performance comparison of search heuristics across cost (constraint checks) and explanation length.

As shown in the performance metrics above:

  • Efficiency: The greedy approach using the min dom/deg heuristic was exceptionally efficient, requiring approximately 2,142 constraint checks—orders of magnitude fewer than B&B.
  • Explanation Length: For inconsistency explanations, the optimal length was 1.32 variables. The 1-pass greedy search achieved an average length of 2.15, which improved to 1.60 in the 10-pass version.
  • Value Recovery: In scenarios requiring the restoration of a specific filtered value, the greedy approach remained near-optimal, with the 10-pass version (7.16 variables) closely matching the optimal length (7.03 variables).

Discussion and Future Directions

The core insight of this work is that "good enough" explanations found via heuristic search are preferable to optimal ones that cannot be computed in real-time. By prioritizing user-centric search, the system naturally identifies small, actionable changes.

Future work aims to incorporate user preferences into the relaxation process. Currently, the model treats all user choices as equally flexible. A preference-oriented approach would recognize that certain choices (e.g., a specific engine type) may be non-negotiable compared to others (e.g., paint color), further enhancing the utility of corrective explanations in practical applications.

Summary updated

BibTeX
@inproceedings{osullivan2005corrective,
  author = {Barry O'Sullivan and Barry O'Callaghan and Eugene C. Freuder},
  title = {{Corrective Explanation for Interactive Constraint Satisfaction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
}
Figure