Right for the Right Concept: Revising Neuro-Symbolic Concepts by Interacting With Their Explanations

Wolfgang Stammer, Patrick Schramowski, Kristian Kersting · DOI

Abstract

Deep learning models often rely on spurious correlations (confounders) rather than true underlying concepts, a phenomenon known as "Clever Hans" behavior. While traditional Explainable AI (XAI) provides visual heatmaps, these are often too ambiguous for effective human intervention. We present Neuro-Symbolic Explanatory Interactive Learning (NeSy XIL), a framework that enables users to correct a model's reasoning at a symbolic level. By decomposing images into objects and attributes, NeSy XIL allows for precise feedback—such as "ignore color when classifying"—ensuring models are right for the right reasons.

Introduction: The "Clever Hans" Problem in Deep Learning

Modern deep learning models frequently achieve high accuracy by latching onto irrelevant shortcuts in training data. For instance, a model might classify a "husky" based on the presence of snow in the background rather than the dog's features. While visual XAI methods like saliency maps can indicate where a model is looking, they fail to explain why. A heatmap over a gray cube doesn't specify if the model is prioritizing its shape, size, or color. This ambiguity prevents humans from providing meaningful corrections. NeSy XIL addresses this by moving interaction from the pixel level to a semantic, symbolic level.

Methods: A Modular Neuro-Symbolic Architecture

The NeSy XIL framework utilizes a modular design to separate perception from reasoning, facilitating transparent debugging and interaction.

The NeSy XIL architecture consists of a Concept Embedding module for perception and a Reasoning Module for symbolic classification, integrated with an explanatory feedback loop.
  1. Concept Embedding Module: This module uses Slot Attention to segment an input image into individual "slots," each representing a distinct object. These slots are then mapped via an MLP to a symbolic representation consisting of attributes like shape, color, size, and material.
  2. Reasoning Module: A Set Transformer processes these symbolic representations to produce a final classification. Because the input is a set of discrete symbols, the model's decision-making process is inherently interpretable.
  3. Dual Explanations: The system generates both Visual Explanations (attention maps over pixels) and Semantic Explanations (attribute-level importance scores derived via Integrated Gradients).
  4. Explanatory Interactive Learning (XIL): When a model relies on a confounder, a human provides feedback in the form of symbolic rules (e.g., "ignore gray"). This feedback is integrated into the training process as an explanatory loss term, penalizing the model for utilizing incorrect features.

Evaluation and Results

The authors evaluated NeSy XIL on two primary benchmarks designed to test confounded reasoning: ColorMNIST and the newly introduced CLEVR-Hans.

In CLEVR-Hans3, a specific class is always associated with a "large gray cube" during training. Standard CNNs achieve high validation accuracy but fail on test sets where the cube's color is randomized, dropping to roughly 70.3% accuracy. In contrast, NeSy XIL allows a user to identify that the model is focusing on the "gray" attribute and provide a corrective rule.

Comparison of Default and Revised explanations. After receiving feedback to ignore the 'gray' attribute, the model shifts its focus to the correct symbolic features (Cube, Cylinder, Large).

As shown in the figure above, the "Default" model's symbolic explanation highlights "Gray" as a primary factor. After applying the feedback rule $\forall obj. \Rightarrow \neg(color(obj, gray))$, the "Revised" model correctly prioritizes the "Large," "Cube," and "Cylinder" attributes. This intervention boosted test accuracy on CLEVR-Hans3 to 91.3%. On the more complex CLEVR-Hans7 benchmark, NeSy XIL reached 94.9% accuracy, significantly outperforming standard visual-only XIL methods.

Key Insights

  • Symbolic Bridging: Visual heatmaps are often ambiguous; symbolic representations provide the necessary vocabulary for precise human-to-model communication.
  • Global Rule Efficiency: NeSy XIL supports global feedback. A single rule like "never focus on color for this task" can update the entire reasoning engine, a task that is difficult and inefficient for standard black-box models.
  • Modular Debugging: The separation of perception and reasoning allows researchers to determine if a failure is due to poor object detection (perception) or flawed logic (reasoning).

Conclusion and Future Directions

NeSy XIL demonstrates that interacting with symbolic explanations is a powerful way to mitigate shortcut learning. While currently tested on synthetic datasets like CLEVR, future work aims to scale this to "in-the-wild" natural images where object segmentation is more challenging. Additionally, integrating natural language interfaces could make providing symbolic feedback even more accessible to non-expert users.

Summary updated

BibTeX
@inproceedings{stammer2020right,
  author = {Wolfgang Stammer and Patrick Schramowski and Kristian Kersting},
  title = {{Right for the Right Concept: Revising Neuro-Symbolic Concepts by Interacting With Their Explanations}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr46437.2021.00362},
}
Figure