Teaching Humans Subtle Differences with DIFFusion

Mia Chiquier, Orr Avrech, Yossi Gandelsman, Berthy Feng, Katherine L. Bouman, Carl Vondrick · DOI

TL;DR

This paper introduces DIFFUSION, a novel method that uses generative diffusion models to automatically discover and visualize subtle, discriminative visual features between categories. This is crucial for scientific domains where experts struggle to articulate these differences, and it significantly improves human ability to differentiate fine-grained classes, even with limited or unpaired data.

What Problem Does This Paper Address?

In many scientific fields, distinguishing between similar categories relies on subtle visual cues that are difficult for even domain experts to articulate or even identify. This poses a significant challenge for training and knowledge transfer. Traditional methods for explaining visual differences often rely on clear, verbalizable features or require large amounts of paired data, which are not always available. The paper aims to bridge this gap by automatically identifying and visualizing these elusive differences, making them accessible for learning and understanding.

Methods

The core of the DIFFUSION method involves a four-part process:

  1. Inversion: The input image is inverted into a sequence of noise maps using a DDPM-EF inversion scheme. This allows for manipulation in the diffusion model's latent space.
  2. Conditioning Space Arithmetic: CLIP image embeddings of the source and target classes are used to compute a direction of change ($\Delta c$). This direction is then used to manipulate the conditioning vector of the original image, creating a new conditioning vector ($\hat{c}$) that steers towards the target class.
  3. Generation via Diffusion Sampling: The diffusion model generates a counterfactual image by sampling from the noise maps obtained in step 1, conditioned on the manipulated vector $\hat{c}$. This process is designed to preserve the identity of the original image while flipping its class.
  4. Optional Domain Tuning: For specific datasets (like Butterfly and Retina), the pre-trained diffusion model is fine-tuned using LoRA to improve performance.

The key novelty lies in using generative models to discover these subtle features without explicit human annotation or prior knowledge, and then visualizing them through identity-preserving counterfactuals.

Datasets

The paper evaluates DIFFUSION on a variety of datasets, including:

  • Non-scientific: AFHQ, KikiBouba, CelebA-HQ.
  • Scientific:
    • Retina (medical imaging of retina cross-sections).
  • Black Holes (simulations of accretion flows).
  • Butterfly (taxonomy, distinguishing between Monarch and Viceroy).

Key Insights and Ideas

  • Generative models as discovery tools: DIFFUSION demonstrates that generative models can go beyond synthesis and actively discover subtle, previously unarticulated discriminative features in scientific domains.
  • Visualizing the "unknown unknown": The method is particularly powerful in domains where experts themselves haven't fully identified or verbalized the distinguishing characteristics (e.g., black hole simulations).
  • Identity preservation is key for learning: By generating counterfactuals that maintain instance identity, the method creates more effective learning aids than simple class-swapped images.
  • Subtle features matter: The user studies show that visualizing these minimal, subtle differences significantly boosts human ability to differentiate classes, even when traditional methods fail.
  • Dataset bias visualization: The method can inadvertently reveal dataset biases by shifting features that are correlated with the class but not intrinsically part of the definition (e.g., environmental backgrounds in plant datasets).

Key Results

  • Quantitative: DIFFUSION achieves the highest Success Ratio (SR) across most datasets compared to baselines, indicating its effectiveness in flipping classifier predictions. It also shows significant improvements in LPIPS (perceptual similarity) on datasets where language struggles to capture visual details.
  • Qualitative: Visualizations show DIFFUSION successfully highlighting subtle differences, such as the amplification of wisps in black hole simulations or the addition of a cross-sectional line on a butterfly's wing, which were missed by other methods.
  • User Studies: Participants trained with DIFFUSION counterfactuals significantly outperformed those using unpaired images or baseline counterfactuals in differentiating classes, achieving up to a 19.2% improvement in accuracy for the Butterfly dataset.

Limitations and Future Work

  • Dataset Bias: The method's reliance on class mean embeddings can lead to shifts in unintended features if those features are correlated with the class in the training data. This limits precise control and can be seen as a visualization of dataset bias.
  • Simple Arithmetic: The current method uses a simple difference of means for conditioning space arithmetic, which might not capture complex relationships.
  • Future Work: The authors suggest exploring disentanglement or more sophisticated guidance mechanisms to enhance edit precision and control. They also highlight the potential for this approach to advance visual learning and scientific research.

Summary updated

BibTeX
@misc{chiquier2025teaching,
  author = {Mia Chiquier and Orr Avrech and Yossi Gandelsman and Berthy Feng and Katherine L. Bouman and Carl Vondrick},
  title = {{Teaching Humans Subtle Differences with DIFFusion}},
  year = {2025},
  eprint = {2504.08046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.08046},
}
Figure