[Paper Review] Visual Disentangled Diffusion Autoencoders: Scalable Counterfactual Generation for Foundation Models
DiDAE is a gradient-free framework that wraps frozen foundation models with a disentangled dictionary to generate diverse, semantically disentangled counterfactuals at scale, enabling effective CFKD-based correction of spurious correlations.
Foundation models, despite their robust zero-shot capabilities, remain vulnerable to spurious correlations and 'Clever Hans' strategies. Existing mitigation methods often rely on unavailable group labels or computationally expensive gradient-based adversarial optimization. To address these limitations, we propose Visual Disentangled Diffusion Autoencoders (DiDAE), a novel framework integrating frozen foundation models with disentangled dictionary learning for efficient, gradient-free counterfactual generation directly for the foundation model. DiDAE first edits foundation model embeddings in interpretable disentangled directions of the disentangled dictionary and then decodes them via a diffusion autoencoder. This allows the generation of multiple diverse, disentangled counterfactuals for each factual, much faster than existing baselines, which generate single entangled counterfactuals. When paired with Counterfactual Knowledge Distillation, DiDAE-CFKD achieves state-of-the-art performance in mitigating shortcut learning, improving downstream performance on unbalanced datasets.
Motivation & Objective
- Motivate and address spurious correlations and Clever Hans strategies in foundation models without relying on labeled groups or gradient-based optimizers.
- Propose DiDAE to disentangle foundation model embeddings into semantic directions for fast, interpretable counterfactual edits.
- Demonstrate scalable correction of large foundation models via DiDAE-CFKD and show improved downstream performance on unbalanced data.
- Provide gradient-free generation with competitive or superior speed and quality compared to baselines.
Proposed method
- Wrap frozen foundation encoders with a learned, interpretable disentangled dictionary to decompose embeddings into semantic directions.
- Edit embeddings by perturbing along disentangled directions, then decode with a diffusion autoencoder in a single feed-forward step.
- Provide two gradient-free counterfactual algorithms: component reflection in latent space and distilled decision boundary inversion.
- Apply projection and Counterfactual Knowledge Distillation (CFKD) to mitigate spurious correlations, with a preclustered teacher for scalability.
- Evaluate across synthetic Square and CelebA datasets with poisoned training distributions, measuring NAFR, Gain, and counterfactual generation speed.
Experimental results
Research questions
- RQ1Can gradient-free, semantically disentangled counterfactuals be generated efficiently for foundation models without fine-tuning?
- RQ2Do disentangled directions enable scalable CFKD that surpasses gradient-based baselines in mitigating shortcut learning?
- RQ3What is the impact of DiDAE-derived counterfactuals on downstream robustness and average group performance under spurious correlations?
Key findings
- DiDAE achieves order-of-magnitude speedups in counterfactual generation compared to gradient-based baselines (e.g., up to ~64 counterfactuals per second).
- DiDAE-CFKD yields state-of-the-art Average Group Accuracy on Square and CelebA benchmarks, outperforming GroupDRO, DFR, P-ClArC, RR-ClArC.
- Projection-based corrections and CFKD augmentation in foundation-model probing both improve robustness, with CFKD providing superior gains in many settings.
- Disentangled components identified via Procrustes or SVD align with interpretable attributes, enabling controlled, semantic counterfactual edits.
- DiDAE maintains competitive non-adversarial flip rates (NAFR) while delivering substantially higher gains in downstream tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.