Align-Deform-Subtract: An Interventional Framework for Explaining Object Differences

Cian Eastwood, Li Nanbo, Christopher K. I. Williams

TL;DR

Align-Deform-Subtract (ADS) is a novel interventional framework that explains fine-grained differences between two object images by breaking them down into distinct properties: pose, shape, and appearance. By treating image-space transformations as counterfactual interventions within a causal framework, ADS iteratively quantifies and removes these differences, providing interpretable error measures without requiring expensive manual annotations.

What Problem Does This Paper Address?

When comparing two images of objects, standard metrics like Mean Squared Error (MSE) only provide a single-number summary. This number tells us that the images differ, but completely fails to explain how or why they differ (e.g., is it a change in pose, shape, or color?).

While manually annotating thousands of image pairs with ground-truth property differences would solve this, the quadratic explosion of possible image pairings makes this approach prohibitively expensive (for instance, just 1,000 images yield nearly 1 million possible pairs). The authors tackle the challenge of automatically generating interpretable, fine-grained explanations of object differences in terms of their underlying properties.

Figure 1: (a) How do these objects differ? A single-number summary like MSE fails to answer this question. In this work, we seek more fine-grained errors or explanations of object differences. (b) In particular, we seek to explain differences in terms of pose, shape and appearance. Y denotes class, X the observed image.

Methods

The authors introduce Align-Deform-Subtract (ADS), which frames the comparison from a causal perspective: What must we do to the source object so that it looks like the target object?

Instead of using an explicit 3D object model, ADS leverages pretrained semantic alignment networks to perform a three-step sequence of image-space transformations, treating them as counterfactual interventions:

  1. Align (Pose): A Convolutional Neural Network (CNN)-based affine alignment network estimates a transformation ($T_{aff}$) to match the source object's pose to the target. The magnitude of this transformation quantifies the pose difference (decomposed into scale, translation, and rotation), and applying it removes pose errors for subsequent steps.
  2. Deform (Shape): A Thin-Plate Spline (TPS) network estimates a non-rigid deformation ($T_{tps}$) to match the source object's shape to the target. The average distance moved by the grid points quantifies the shape difference.
  3. Subtract (Appearance): After removing pose and shape differences, the remaining variation is due to appearance and background. ADS uses a pretrained instance segmentation network to mask out the background, then computes a masked MSE between the fully aligned/deformed source image and the target image to isolate the appearance difference.
Overview of the Align-Deform-Subtract framework

Datasets

The framework is evaluated on two datasets:

  • Proposal Flow (PF) Dataset: A real-world dataset containing images of various object classes (e.g., cars, cats). This is used for qualitative evaluation since ground-truth property differences are unavailable.
  • Teapot Dataset: A synthetic dataset of 2,000 teapot images generated using a parametric model. It provides precise ground-truth (GT) values for 7D object descriptors (pose, scale, shape, and texture/appearance), enabling rigorous quantitative evaluation across 1,000 randomly paired source-target images.

Key Insights and Ideas

  • Transformations as Interventions: The core "aha moment" is viewing standard geometric transformations (affine, TPS) through the lens of structural causal models. A transformation is treated as a counterfactual question: "What if the source object had the pose/shape of the target object?"
  • The Necessity of Sequential Disentanglement: Quantifying differences must happen iteratively. If you measure shape differences before aligning the pose, the shape metric becomes "entangled" and corrupted by the pose mismatch. By physically removing the pose difference first, subsequent metrics gain invariance to it.

Key Results

  • Qualitative Success: On real data (PF dataset), ADS successfully isolates relative differences. For instance, it correctly assigns higher translation or rotation metrics to image pairs that visually exhibit those mismatches.
  • Quantitative Superiority over MSE: On the synthetic Teapot dataset, the ADS metrics show remarkably high Pearson correlation coefficients with ground-truth differences, whereas standard MSE fails completely due to entanglement:
  • Horizontal Translation ($t_x$): ADS correlation of 0.91 vs. MSE of 0.01.
  • Scale ($s_y$): ADS correlation of 0.90 vs. MSE of 0.14.
  • Rotation ($\theta$): ADS correlation of 0.85 vs. MSE of 0.01.
  • Appearance ($a$): ADS correlation of 0.84 vs. MSE of 0.33.
  • The Shape Exception: The shape metric ($d$) showed a poor correlation (0.01), which the authors discovered was due to the poor performance of the underlying TPS alignment network rather than a flaw in the framework itself.

Limitations and Future Work

  • Dependence on Alignment Quality: ADS is entirely dependent on the accuracy of the underlying semantic alignment networks. As seen with the shape metric, if the alignment network performs poorly, the resulting explanation fails.
  • Simplified 2D Pose Assumption: The framework assumes that pose variations primarily occur within the 2D image plane (translation, scaling, in-plane rotation). It cannot naturally handle large 3D out-of-plane rotations without incorporating explicit 3D object models.
  • Simple Causal Model: The underlying causal graph assumes a single foreground object per image and a clean separation of properties, which may break down in complex, multi-object real-world scenes.

Summary updated

BibTeX
@misc{eastwood2022align,
  author = {Cian Eastwood and Li Nanbo and Christopher K. I. 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