D-Separation for Causal Self-Explanation

Wei Liu, Jun Wang, Haozhao Wang, Ruixuan Li, Zhiying Deng, YuanKai Zhang, Yang Qiu

TL;DR

Researchers have developed a new framework for "rationalization" in NLP that uses causal inference to extract better explanations. By replacing the standard Maximum Mutual Information (MMI) objective with a Minimum Conditional Dependence (MCD) criterion based on the concept of d-separation, the model is forced to identify true causal features rather than relying on spurious correlations or "degenerated" shortcuts.

The Problem with Current Rationalization

In the quest for interpretable AI, "rationalization" has emerged as a popular technique. In this setup, a model (the Explainer) selects a small, human-intelligible subset of input text (the Rationale) to pass to a Predictor. Ideally, this rationale should represent the true "reason" for the prediction.

However, most current models rely on Maximum Mutual Information (MMI) to find these rationales. While MMI is excellent at finding statistical correlations, it fails to capture true causality in two major ways:

  1. Feature Correlation: The model might pick up on "spurious" features. For example, in a beer review, "aroma" and "taste" are often highly correlated. If a model is asked to predict a "taste" label, it might incorrectly select words describing the "aroma" simply because they are statistically indicative of the taste, even if they aren't the underlying cause.
  2. Mask Correlation (Degeneration): The Explainer might learn to "cheat" by encoding the label into the pattern of the extraction mask itself (e.g., always selecting a hyphen for negative reviews). This allows the Predictor to guess the label based on the mask's shape, ignoring the actual text content entirely.
Causal graphs illustrating the two primary failure modes of MMI: feature correlation and mask correlation.

The Solution: Minimum Conditional Dependence (MCD)

To address these flaws, the authors propose the Minimum Conditional Dependence (MCD) criterion, grounded in causal graphical models and the concept of d-separation.

The core insight is elegant: If you have successfully identified all the direct causal features of a label, then the remaining unselected features should provide no additional information about that label. In causal terms, the true causal rationale d-separates the non-causal features from the target label.

To implement this practically, the researchers designed a system that minimizes the dependence between the unselected text and the target label, conditioned on the selected rationale.

The MCD architecture utilizes a dual-path predictor and minimizes KL-divergence to ensure the rationale captures all causal information.

Because true dependence is difficult to measure directly, they use KL-divergence as a proxy. The architecture employs a dual-path predictor:

  • One path processes the full text.
  • The other path processes only the rationale.

The Explainer is trained to make the predictive distributions from these two paths as similar as possible. By doing so, it effectively "squeezes" all the causal information into the rationale, forcing the model to drop spurious correlations.

Key Insights and Results

This approach represents a fundamental shift from asking "what helps me predict?" to "what explains the prediction?". By treating rationalization as a causal problem, the paper unifies the issues of degeneration and spuriousness, solving both with a single criterion. Furthermore, unlike previous Invariant Risk Minimization (IRM) methods, MCD does not require humans to pre-partition data into different environments or possess prior knowledge of which features are spurious.

The researchers evaluated MCD on two primary benchmarks: BeerAdvocate (a multi-aspect sentiment dataset notorious for highly correlated features) and HotelReviews.

The results demonstrate significant improvements over state-of-the-art MMI-based methods:

  • Massive F1 Score Boost: MCD improved the F1 score (the overlap between model-selected rationales and human-annotated ones) by up to 13.7% on the BeerAdvocate dataset.
  • Robustness to Cheating: In synthetic tests designed to induce mask degeneration, MCD remained stable and continued to extract meaningful text, whereas standard models failed completely.
  • Compatibility with Large Models: While many rationalization methods struggle when paired with large pre-trained language models, MCD showed significant gains, reaching an F1 score of 87.1% on the Beer-Appearance aspect when using BERT.

Limitations and Future Work

While MCD successfully identifies which features are causal, it does not quantitatively measure the strength of those causal effects. Additionally, the current work focuses heavily on text classification. Extending this framework to other domains, such as generative AI or computer vision, will require navigating different and potentially more complex causal structures. Finally, when using large pre-trained language models, the results can be sensitive to hyperparameter tuning, suggesting a need for further research into robust verification methods.

Summary updated

BibTeX
@inproceedings{liu2023d,
  author = {Wei Liu and Jun Wang and Haozhao Wang and Ruixuan Li and Zhiying Deng and YuanKai Zhang and Yang Qiu},
  title = {{D-Separation for Causal Self-Explanation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=sUFGPYS25Q},
}
Figure