peal.adaptors.didae¶
DiDAE: Dictionary-based Interpretable Diffusion Autoencoder Explanations.
- Implements a 9-step automated counterfactual workflow:
Distill user classifier into reference encoder space (closed-form least squares)
Sweep all SAE directions in latent space
Filter latent-space non-flips
Decode surviving counterfactuals
Filter ambient-space non-flips
Rank directions by success count
Display top-K directions via ClusterTeacher
User labels directions true/false
CFKD fine-tuning on false directions
Classes
DiDAE adaptor: discover shortcut directions in a diffusion autoencoder's latent with a sparse dictionary, have a teacher judge them, and repair the student with CFKD. |
|
Config for the DiDAE (Dictionary-based Interpretable DAE) adaptor. |
|
Linear probe on the generator's |