Additive Class Distinction Maps using Branched-GANs

Elnatan Kadar, Jonathan Brokman, Guy GilboaarXiv 2023 · DOI

Introduction: Visualizing the "Why"

Computer vision models excel at classification—determining that an image belongs to a certain category. However, explaining where and how classes differ at a pixel level remains a significant challenge in Explainable AI (XAI). Traditional methods for generating precise distinction maps often rely on expensive, human-annotated "ground truth" labels. This paper introduces a novel "Branched-GAN" architecture designed to identify these unique class characteristics using only image-level labels.

The Problem of Pixel-Level Attribution

Identifying the specific features that distinguish one class from another is difficult when differences are subtle or non-localized. For instance, in medical imaging, the difference between a "healthy" and "tumor" scan might be a small cluster of pixels.

Synthetic data demonstrating the challenge of identifying class-specific features (the white dot in Class 1).

As shown in the synthetic examples above, the goal is to isolate the feature (the white dot) that defines Class 1 without being told its location during training.

Methods: The Branched-GAN Architecture

The core innovation is the shift from a single generator to a multi-branch system. Built upon the StarGAN-v2 framework, the model decomposes an image into $N$ additive sub-components.

The Branched-GAN architecture featuring multiple sub-generators and a dedicated distinction map branch.

The final output is the mathematical sum of these branches ($\hat{x} = \sum \psi_i$). Key technical components include:

  • The Dedicated Branch ($\psi_1$): This branch is architecturally constrained to capture unique class features (the "Distinction Map"), while other branches capture common background information.
  • $\alpha$-Blended Generation: A novel mechanism that mixes components from different classes during training, forcing the network to isolate class-identifying information into the first branch to satisfy the discriminator.
  • Specialization Loss ($L_{sqr}$): This loss function encourages pixel-level sparsity, promoting a "winner-take-all" scenario where one branch dominates a specific pixel, preventing redundant information overlap.
  • U-Net Style Skip Connections: Integrated to preserve fine-grained details in high resolution.

Datasets and Evaluation

The model was evaluated across several diverse modalities:

  1. Synthetic "Toy" Data: Used to verify if the model could distinguish between basic shapes and internal features.
  2. BraTS (Brain Tumor Segmentation): MRI scans of brains with and without tumors.
  3. DOTA: High-resolution aerial photography used to identify cars and planes.
  4. CelebA: A large-scale face attributes dataset used to isolate gender-specific features (e.g., makeup vs. facial hair).

Key Insights and Results

The research demonstrates that additive decomposition—treating an image as $Common + Unique$—makes the underlying "math" of the image interpretable.

  • Self-Supervised Segmentation: In aerial imagery, the model effectively "found" objects in the distinction map without manual tagging, suggesting potential for bootstrapping object detection and segmentation.
  • Mixture of Experts: Splitting tasks among multiple branches improved reconstruction quality (PSNR). Ablation studies confirmed that a 5-branch configuration significantly outperformed simpler setups, and that the branched architecture itself is superior to a single large branch with equivalent parameters.
  • Interpretability: In medical scans, the $\psi_1$ branch successfully isolated tumors, providing a clear visual explanation for the classification.

Conclusion and Future Directions

While the Branched-GAN approach shows great promise for unsupervised pixel-level attribution, the authors describe this as a preliminary report. Future work includes scaling the method to multi-class environments and adapting the branched logic to more modern architectures like Diffusion Models or Transformers to mitigate the training complexities inherent in GANs.

Summary updated

BibTeX
@misc{kadar2023additive,
  author = {Elnatan Kadar and Jonathan Brokman and Guy Gilboa},
  title = {{Additive Class Distinction Maps using Branched-GANs}},
  year = {2023},
  eprint = {2305.02899},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.02899},
}
Figure