Align-Deform-Subtract: An interventional framework for explaining object differences

Cian Eastwood, Li Nanbo, Chris Williams · DOI

Introduction

Standard computer vision metrics, such as Mean Squared Error (MSE), often fail to provide meaningful insights into why two images differ. While a single scalar value can quantify distance, it cannot explain whether the difference stems from a change in color, a shift in perspective, or a fundamental change in the object's geometry. The Align-Deform-Subtract (ADS) framework addresses this gap by treating image transformations as counterfactual interventions, allowing for the disentanglement of differences into interpretable properties: pose, shape, and appearance.

A Causal Perspective on Image Generation

The core of the ADS framework is a Structural Causal Model (SCM) that describes how an image $X$ is generated from latent properties. In this model, an object's category $Y$ influences its pose, shape, appearance, and the background. These factors then combine to produce the observed image $X$.

The Structural Causal Model (SCM) underlying the ADS framework, where latent properties like Pose, Shape (Shpe), and Appearance (App) generate the observed image X.

By adopting this causal framing, the authors can define "explanations" as the interventions required to transform one image into another. For instance, to explain why image A differs from image B, one might ask: "What would image A look like if it had the pose and shape of the object in image B?"

The ADS Pipeline

The framework decomposes the difference between a source and a target image through a sequential three-step process:

  1. Align (Pose Intervention): A pretrained affine alignment network determines the optimal scaling, translation, and rotation to map the source object onto the target. The parameters of this transformation quantify the pose difference.
  2. Deform (Shape Intervention): Following pose alignment, a Thin-Plate Spline (TPS) network accounts for non-rigid shape variations. By deforming the source to match the target's contours, the system isolates shape differences from pose.
  3. Subtract (Appearance Intervention): Once pose and shape are matched, the remaining pixel-wise differences are attributed to appearance (e.g., color and texture). The system masks the background and calculates the MSE between the aligned/deformed source and the target.

This iterative approach is crucial because geometric properties like shape cannot be accurately measured until the objects are aligned in pose.

Experimental Results

The ADS framework was validated using both synthetic and real-world datasets.

Comparing two distinct car images (a Mini Cooper and an SUV) requires disentangling differences in scale, orientation, and body shape.

Quantitative Validation

Using a synthetic Teapot Dataset with known ground truth parameters, the authors demonstrated that ADS metrics correlate far more strongly with physical changes than standard MSE. For example, ADS measures for translation achieved a Pearson correlation of 0.91, while MSE showed virtually no correlation (0.01). Similarly, the appearance metric reached a 0.84 correlation, significantly outperforming MSE's 0.33.

Qualitative Performance

On real-world data from the Proposal Flow (PF) dataset, the model successfully generated human-readable explanations. When comparing different vehicles, the system could specify that a source image needed to be scaled by a factor of 4.5 and slightly rotated to match the target, providing a much richer description than a simple error score.

Limitations and Future Outlook

While ADS represents a significant step toward interpretable computer vision, it has limitations. The framework's accuracy is tied to the performance of its underlying alignment and deformation networks; currently, shape estimation via TPS remains a challenge. Additionally, the model is primarily designed for 2D "in-plane" transformations and struggles with complex 3D pose changes or multi-object scenes. Future research may extend this causal approach to more sophisticated 3D environments and lighting conditions.

Summary updated

BibTeX
@misc{eastwood2022align,
  author = {Cian Eastwood and Li Nanbo and Chris Williams},
  title = {{Align-Deform-Subtract: An interventional framework for explaining object differences}},
  year = {2022},
  eprint = {2203.04694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.04694},
}
Figure