Visual Causal Feature Learning

Krzysztof Chalupka, Pietro Perona, Frederick Eberhardt

Abstract

Standard computer vision models rely on statistical correlations, often failing when spurious features predict labels. We present a framework for "Visual Causal Feature Learning" that identifies high-level features that causally influence behavior. By proving the Causal Coarsening Theorem, we demonstrate that causal features can be identified from observational data with minimal experimental intervention. We further introduce manipulator functions to automatically alter an image's causal effect, providing a rigorous method for explainable and robust AI.

Introduction

In machine learning, the adage "correlation does not imply causation" is frequently cited but rarely addressed in model architecture. Most computer vision (CV) systems are purely correlational; for instance, a model might correctly identify a "husky" based on the presence of "snow" in the background. If the snow is removed, the prediction fails. This research by Chalupka et al. (Caltech) moves beyond identifying predictive pixels to identifying the high-level macro-variables—visual features—that actually cause a specific behavior or classification.

The Causal Coarsening Theorem (CCT)

The primary challenge in visual causation is that raw pixels are "micro-variables" that do not individually cause behavior. Instead, complex functions of these pixels (e.g., symmetry, shape) act as "macro-variables." The authors bridge this gap with the Causal Coarsening Theorem (CCT).

The CCT proves that the "causal partition" of an image space is a coarsening of the "observational partition." In practice, this means that if a standard classifier groups images into classes that predict the same outcome, those images likely share the same causal properties. This theoretical insight allows researchers to identify causal features without performing experiments on every single image; one only needs to test representative images from each observational class to determine the causal effect for the entire group.

The Causal Coarsening Theorem: Observational partitions (grey boundaries) are refined into causal partitions (red boundaries) based on their actual effect on behavior T.

Methodology: Training and Manipulation

The framework consists of two main algorithmic components:

  1. Causal Predictor Training: Utilizing the CCT, the authors train models to ignore spurious correlates by validating observational classes through targeted experiments.
  2. Manipulator Function Learning: An active learning scheme that learns a function $M_C$. This function takes an image and a target causal effect, then generates the "closest" possible image that achieves that effect. This serves as a generative proof that the model has captured the true causal features.

Experimental Results

The framework was evaluated on synthetic and real-world datasets:

  • GRATING (Synthetic): Images contained horizontal bars (the true cause) and vertical bars (a spurious correlate). While standard classifiers were easily fooled, the causal training reduced error from 40% to 6% by learning to ignore the vertical bars.
  • MNIST on MTurk: Using human observers to define "behavior" (e.g., "Does this image contain a 7?"), the manipulator function successfully transformed digits by adding or removing essential "causal strokes" while minimizing pixel-level changes.
Training progress and manipulator results: The top graphs show the reduction in Mean Error (MErr) and Mean Distance (MDist) over iterations. Below, the manipulator function demonstrates the transition of causal features between classes.

Conclusion

This research provides a rigorous theoretical foundation for causal discovery in high-dimensional visual data. By distinguishing between constitutive pixels and causal features, the authors offer a path toward models that are not only more accurate but also more robust to distribution shifts and more interpretable through automated manipulation. Future work will focus on extending this theory to continuous behaviors and more complex perceptual similarity metrics.

Summary updated

BibTeX
@inproceedings{chalupka2015visual,
  author = {Krzysztof Chalupka and Pietro Perona and Frederick Eberhardt},
  title = {{Visual Causal Feature Learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2015},
}
Figure