Sparse Autoencoders enable Robust and Interpretable Fine-tuning of CLIP models
About
Large-scale pre-trained vision-language models like CLIP demonstrate remarkable zero-shot performance across diverse tasks. However, fine-tuning these models to improve downstream performance often degrades robustness against distribution shifts. Recent approaches have attempted to mitigate this trade-off, but often rely on computationally expensive text-guidance. We propose a novel method for robust fine-tuning, SAE-FT, which operates only on the model's visual representations. SAE-FT regularizes changes to these representations by penalizing the addition and removal of semantically meaningful features identified by a Sparse Autoencoder trained on the pre-trained model. This constraint prevents catastrophic forgetting and makes the fine-tuning process interpretable, enabling direct analysis of semantic changes. SAE-FT is both mechanistically transparent and computationally efficient, matching or exceeding state-of-the-art performance on ImageNet and its associated distribution shift benchmarks. Code is publicly available at: https://github.com/Fabian-Mor/sae-ft.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | ImageNet V2 (test) | Top-1 Accuracy73.9 | 232 | |
| Image Classification | CIFAR-100 | Accuracy71.2 | 204 | |
| Image Classification | ImageNet-A (test) | -- | 177 | |
| Image Classification | ImageNet-R (test) | Accuracy78.5 | 170 | |
| Image Classification | ImageNet-Sketch (test) | -- | 153 | |
| Image Classification | DTD (Describable Textures Dataset) | Accuracy79.2 | 80 | |
| Image Classification | ImageNet and derived distribution shifts standard suite (test val) | IN Accuracy (ref.)86.5 | 32 | |
| Image Classification | STL-10 | Top-1 Accuracy98.7 | 28 | |
| Image Classification | iWildCam OOD (test) | F1-macro38.1 | 10 | |
| Image Classification | iWildCam ID (test) | F1-macro49.6 | 10 |