Skip to main content
QUICK REVIEW

[Paper Review] Counterfactuals uncover the modular structure of deep generative models

Michel Besserve, Arash Mehrjou|arXiv (Cornell University)|Dec 8, 2018
Generative Adversarial Networks and Image SynthesisComputer Science39 references28 citations
TL;DR

This paper proposes a counterfactual intervention framework to uncover modular, disentangled representations in deep generative models without supervision. By manipulating internal hidden units across layers, the method identifies interpretable modules that control specific image attributes, enabling targeted image editing and robustness assessment with minimal quality degradation.

ABSTRACT

Deep generative models can emulate the perceptual properties of complex image datasets, providing a latent representation of the data. However, manipulating such representation to perform meaningful and controllable transformations in the data space remains challenging without some form of supervision. While previous work has focused on exploiting statistical independence to disentangle latent factors, we argue that such requirement is too restrictive and propose instead a non-statistical framework that relies on counterfactual manipulations to uncover a modular structure of the network composed of disentangled groups of internal variables. Experiments with a variety of generative models trained on complex image datasets show the obtained modules can be used to design targeted interventions. This opens the way to applications such as computationally efficient style transfer and the automated assessment of robustness to contextual changes in pattern recognition systems.

Motivation & Objective

  • To address the challenge of interpreting and controlling latent representations in deep generative models without supervision.
  • To overcome the limitations of statistical independence-based disentanglement, which fails when factors are statistically dependent.
  • To develop a causal framework that reveals intrinsic modularity in generative networks through intervention-based analysis.
  • To enable targeted image manipulations such as style transfer and robustness evaluation without retraining or optimization.
  • To provide a scalable, unsupervised method applicable to high-resolution models like BigGAN on ImageNet.

Proposed method

  • Define disentanglement in a causal framework using counterfactual interventions on internal variables of trained generative models.
  • Apply interventions by modifying specific hidden units (channels) in intermediate layers while keeping other components fixed.
  • Use a hybridization procedure to combine features from different samples by mixing internal representations across layers.
  • Evaluate image quality using Frechet Inception Distance (FID) to ensure minimal degradation after counterfactual edits.
  • Assess classifier robustness by measuring recognition accuracy on counterfactual images generated via module interventions.
  • Apply the method to diverse architectures including VAEs, GANs, BEGAN, and BigGAN, across datasets like CelebA and ImageNet.

Experimental results

Research questions

  • RQ1Can counterfactual interventions reveal modular, disentangled representations in deep generative models without requiring labeled or semantic supervision?
  • RQ2How do interventions on internal hidden units affect the interpretability and controllability of generated image attributes?
  • RQ3To what extent can the modular structure uncovered by counterfactuals be used to generate high-quality hybrid images (e.g., object-background swaps) without retraining?
  • RQ4How does the modular structure of generative models relate to the robustness of downstream classifiers under contextual changes?
  • RQ5Can the proposed method scale to high-resolution, complex models like BigGAN trained on ImageNet?

Key findings

  • The method successfully identifies interpretable modules in VAEs and GANs trained on CelebA and ImageNet, each responsible for distinct image attributes such as hair, facial features, or background.
  • Counterfactual edits via module interventions produce high-quality hybrid images—e.g., a teddy bear in a koala’s environment or an ostrich with a cock’s head—with minimal FID degradation compared to original samples.
  • Classifier robustness analysis shows that recognition accuracy on original classes increases when counterfactuals are generated from intermediate layers, especially in blocks 5–6 of BigGAN.
  • Different state-of-the-art classifiers exhibit varying sensitivity to counterfactual changes, suggesting they rely on different image components (e.g., object vs. background), as revealed by non-consensual classification results.
  • The framework enables computationally efficient style transfer and robustness assessment without additional optimization, demonstrating practical utility beyond interpretability.
  • The approach generalizes across architectures and datasets, including BigGAN on ImageNet, confirming scalability to complex, high-resolution generative models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.