Sparse Autoencoders enable Robust and Interpretable Fine-tuning of CLIP models

Fabian Morelli, Arnas Uselis, Ankit Sonthalia, Seong Joon OharXiv 2026

TL;DR

SAE-FT is a novel fine-tuning strategy for CLIP models that uses Sparse Autoencoders (SAEs) to keep the model's representations "on the rails." By constraining updates to the semantic vocabulary of the original pre-trained model, it achieves state-of-the-art robustness against distribution shifts while making the fine-tuning process mechanistically interpretable.

What Problem Does This Paper Address?

Contrastive Language-Image Pre-training (CLIP) models are famous for their "zero-shot" capabilities—they can classify images they've never seen during training by aligning them with text descriptions. However, when researchers fine-tune CLIP on specific downstream datasets to squeeze out more accuracy, they often run into a major problem: representational drift.

Standard fine-tuning tends to "cripple" the model's pre-trained features. While accuracy on the specific training set (In-Distribution) goes up, the model's ability to handle variations like sketches, adversarial examples, or different lighting (Out-of-Distribution) plummets. Existing solutions often rely on complex text-side engineering or expensive data augmentations. The authors of this paper ask: Can we regularize the vision encoder directly by forcing it to stick to the semantically meaningful features it already knows?

Methods

The authors introduce Sparse Autoencoder Fine-Tuning (SAE-FT). The core idea is to use an SAE to define the "interpretable feature span" of the pre-trained CLIP model.

  1. Unsupervised SAE Training: First, they train a Top-K Sparse Autoencoder on the representations of the frozen, zero-shot CLIP vision encoder. This SAE learns to decompose dense vectors into a sparse set of human-understandable features (e.g., "wheels," "fur," "ladder").
  2. Span Restriction: During fine-tuning, they introduce a residual alignment penalty. This forces any changes in the model's representations to be expressible as a linear combination of the features found by the SAE.
  3. Feature Preservation: They add a second penalty that specifically discourages the model from activating new features that were inactive in the zero-shot model.

Instead of the model learning to rely on arbitrary noise to solve a task, SAE-FT forces it to re-weight its existing vocabulary. For example, to better identify a fire truck, the model is encouraged to amplify the "ladder" feature and dampen the "red paint" feature (which might be shared with a pickup truck), rather than overwriting its internal logic entirely.

Figure 1: Intuition behind SAE-FT. A Sparse Autoencoder trained on the zero-shot model decomposes CLIP’s vision representations into semantically meaningful feature directions (blue), while the target class embedding (red) defines the direction used for classification. Line thickness indicates each feature’s activation strength. The zero-shot model (left) spreads activation across many visual concepts and misclassifies a fire truck as a pickup truck. SAE-FT (right) adapts by re-weighting these existing features. It amplifies discriminative ones like “ladder” and reduces shared ones like “red paint” rather than overwriting the pre-trained feature vocabulary. This preserves the model’s general knowledge while sharpening task-relevant distinctions.

Datasets

The authors evaluated SAE-FT across a rigorous suite of benchmarks:

  • ImageNet (IN): The primary training and In-Distribution (ID) evaluation set.
  • Robustness Benchmarks (OOD): ImageNet-R (Renditions), ImageNet-A (Adversarial), ImageNet-Sketch, and ImageNet-V2.
  • Transfer Learning: Evaluation on CIFAR-10, CIFAR-100, Caltech-101, and STL-10 without further fine-tuning.
  • Real-world Shifts: The iWilds benchmark, including iWildCam (camera trap images) and FMoW (satellite imagery).

Key Insights and Ideas

  • Dictionary Collapse: The authors show that standard fine-tuning causes the original feature dictionary to "collapse." The Fraction of Variance Unexplained (FVU) by the original SAE rises above 1.0, meaning the fine-tuned representations have drifted so far that the original semantic vocabulary is essentially useless for describing them.
  • Geometric vs. Semantic Constraints: While simple $L_2$ regularization helps limit the amount of geometric drift, it treats all directions in the representation space equally. SAE-FT is "semantically aware"—it knows which directions correspond to meaningful concepts and specifically protects them.
  • Mechanistic Interpretability: Because the SAE features are interpretable, researchers can look under the hood. The paper demonstrates this by showing how the model corrects a misclassification of a "pirate ship" by up-weighting the specific "pirate ship" feature while retaining the "schooner" feature with reduced importance.
Figure 3: Schematic overview of SAE-FT. Changes compared to the zero-shot model are encouraged to remain inside the span of the fixed SAE and the addition of new SAE features is penalized.

Key Results

  • State-of-the-Art Robustness: On ImageNet distribution shifts, SAE-FT achieved an average OOD accuracy of 64.6%, outperforming other vision-encoder-only methods like WiSE-FT (64.4%) and matching complex text-guided methods like StarFT.
  • Superior Generalization: SAE-FT representations transferred better to downstream tasks, achieving an average accuracy of 87.8% across transfer datasets, compared to 86.5% for WiSE-FT.
  • Efficiency: The computational overhead is negligible. Training the SAE is a one-time cost, and during fine-tuning, the per-step time increase is only about 0.4%.

Limitations and Future Work

  • Architecture Sensitivity: The method is sensitive to the SAE's hyperparameters, such as the dictionary size and the number of active features ($K$). A dictionary that is too small lacks capacity, while one that is too large might introduce redundant noise.
  • Vision-Only: Currently, the method only regularizes the vision encoder. The authors suggest that future work could extend this to the text encoder, potentially improving results for methods that fine-tune both modalities (like FLYP).
  • SAE Quality: The effectiveness of the regularization is inherently tied to how well the SAE captures the model's internal concepts. Improvements in SAE training techniques would likely directly translate to better fine-tuning performance.

Summary updated

BibTeX
@misc{morelli2026sparse,
  author = {Fabian Morelli and Arnas Uselis and Ankit Sonthalia and Seong Joon Oh},
  title = {{Sparse Autoencoders enable Robust and Interpretable Fine-tuning of CLIP models}},
  year = {2026},
  eprint = {2605.15961},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.15961},
}
Figure