Skip to content

FailSAE: Interpretable Failure Prediction for Vision-Language Models with Sparse AutoencodersFailSAE: Towards Interpretable Failure Prediction for Vision-Language Models via Sparse Autoencoders

arXiv: Interpretability· arXiv:2609.04276· Jie Ma, Zongxi Liu, Yi ZhuWayne State UniversityIndexed by this site · 2026-10-01· Originally publishedAlignment

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

The authors propose FailSAE, which uses sparse autoencoder (SAE) latent directions for interpretable failure prediction of VLMs such as CLIP; the authors claim it outperforms four baselines on three datasets.

Questions
Deploying VLMs in high-risk scenarios requires predicting whether their outputs will be erroneous, but the authors argue that existing failure prediction methods rely on confidence or auxiliary classifiers and lack interpretability regarding how the model's internal representations change upon failure.
Methods
Failure prediction is modeled as a four-class classification problem on SAE sparse latent activations (Correct/Error-ID/Error-OOD/Error-ADV), and three-stage failure-aware training is proposed: SAE pretraining, training the prediction head with the SAE frozen, and joint fine-tuning.
Experiments and results
On CLIP-B/16, the authors report that FailSAE outperforms SSL, ORCA-B/R, and SuperMentor on both fine-grained and binary metrics on CIFAR-10/100 and ImageNet-1K; the analysis states that upon failure class-exclusive concepts decrease and ambiguous or style concepts increase.
Limitations and future work
The paper does not specifically discuss limitations. The experiments cover four VLMs and three image classification datasets; failure types are ID misclassification, OOD caused by four corruptions, and PGD/Patch attacks; learning-based methods are run three times and averaged; the paper does not report the specific sample size for each FailPred label.
Experimental setupCLIP-B/16、CLIP-B/32 et al. · FailPred dataset(基于 ImageNet-1K、CIFAR-10、CIFAR-100 构建) · Acc、Macro F1 et al.
Evaluated models
CLIP-B/16CLIP-B/32CLIP-L/14SigLIP-B/16
Benchmarks
FailPred dataset(基于 ImageNet-1K、CIFAR-10、CIFAR-100 构建)
Metrics
AccMacro F1Macro RecallAUROCFPR@95
AI summaryThe study proposes FailSAE, which uses sparse autoencoders (SAEs) to perform interpretable failure prediction for vision-language models such as CLIP, framing failure prediction as a classification task on sparse SAE latent activations, and designs a three-stage failure-aware training pipeline. Experiments show the framework outperforms the evaluated baselines on failure prediction, and failure-aware training makes SAE latent directions capture more class-specific concepts. Analysis also finds that when models fail, representations shift from class-specific concepts to more vague or style-related concepts, and explores using learned SAE latent directions to support runtime failure recovery.

The study proposes FailSAE, which uses sparse autoencoders (SAEs) to perform interpretable failure prediction for vision-language models such as CLIP, framing failure prediction as a classification task on sparse SAE latent activations, and designs a three-stage failure-aware training pipeline. Experiments show the framework outperforms the evaluated baselines on failure prediction, and failure-aware training makes SAE latent directions capture more class-specific concepts. Analysis also finds that when models fail, representations shift from class-specific concepts to more vague or style-related concepts, and explores using learned SAE latent directions to support runtime failure recovery.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Interpretable failure prediction for VLMs: using SAE latent directions to both predict failure and explain changes in internal representations upon failure.

    Core problem: how to do interpretable failure prediction for vision-language models (VLMs)—both judging whether the model's output will be wrong and explaining what changes in the internal representation at failure.

    • Problem setting: VLMs such as CLIP are used in high-risk domains, and failure prediction (predicting whether the model's output for a given input is correct) can provide a mechanism for risk-aware deployment and human intervention (the authors cite Geifman and El-Yaniv 2017).
    • Shortcomings of existing methods: the authors say existing methods fall into two categories—confidence-based methods and training-based auxiliary classifier methods; the former are limited by model overconfidence, and the latter perform better but have limited interpretability, especially being unable to explain how the internal representation changes at failure. The authors also point out that the concept-level method of Nguyen, Li, and Peng (2025) relies on a manually defined concept set, is hard to scale, and may not reflect the model's internal features.
    • Core observation: SAEs can decompose high-dimensional hidden representations into sparse latent directions that often correspond to human-interpretable concepts; the authors believe existing SAE work mostly stops at visualization and qualitative analysis, and how to make it serve failure prediction has not yet been explored.
    • What the paper proposes: modeling failure prediction as a classification task over SAE latent activations (four classes: Correct, Error-ID, Error-OOD, Error-ADV), proposing a three-stage failure-aware training pipeline FailSAE, and using the trained SAE for concept-level failure analysis and runtime failure recovery.
    • Difference from OOD detection: the authors emphasize that OOD detection judges whether a sample comes from a different distribution, whereas failure prediction directly targets whether the model will be wrong; the failures considered in this paper include ID misclassification, errors caused by OOD, and errors caused by adversarial attacks.
  2. What related research exists?

    Related work is divided into three groups: failure prediction, OOD detection, and SAE interpretability; the baselines are SSL, ORCA-B, ORCA-R, SuperMentor.

    Failure prediction

    • Confidence methods (Ming et al. 2022; Granese et al. 2021; Sensoy et al. 2018, etc.): use uncertainty indicators such as softmax probability or entropy with a threshold to judge whether an error occurred. The paper points out that models may be overconfident on wrong predictions, which limits such methods (citing Kull et al. 2019; Guo et al. 2017; Jaeger et al. 2022).
    • Training-based methods (Lafon et al. 2025; Han and Zhang 2024; Luo et al. 2021, etc.): train a separate failure prediction model on intermediate activations or raw images. The paper states that such methods perform better but have limited interpretability.
    • ORCA (Nguyen, Li, and Peng 2025): defines confidence scores over manually defined concepts for interpretable failure detection. The paper points out that it relies on a manual concept set, is hard to scale, and may not reflect the model's internal representation, thereby limiting prediction accuracy.

    OOD detection

    • Liang et al. 2017, Hendrycks and Gimpel 2016, Wang et al. 2022, etc.: judge whether a test sample comes from a distribution different from the training set. The paper points out that OOD detection is related to but essentially different from failure prediction—OOD samples do not necessarily lead to wrong predictions.

    SAEs and interpretability

    • SAEs in language models (Bricken et al. 2023; Cunningham et al. 2023; Deng et al. 2025): use SAEs to discover semantic directions in hidden activations.
    • SAEs in VLMs (Zaigrajew et al. 2025; Lim et al. 2024; Pach et al. 2025; Lou et al. 2025, etc.): the authors say these works show that SAEs can extract meaningful concepts from VLM representations such as CLIP, but mostly stop at visualization and qualitative analysis.

    Baselines and benchmarks: the comparison baselines are SSL (Luo et al. 2021), ORCA-B and ORCA-R (Nguyen, Li, and Peng 2025), and SuperMentor (Han and Zhang 2024); evaluation is conducted on the FailPred dataset constructed by the authors following the setup of Han and Zhang (2024), based on ImageNet-1K, CIFAR-10, and CIFAR-100.

    Authors' positioning: this paper uses SAE latent directions learned directly from model representations for interpretable failure prediction, without needing a manually curated concept set; the authors claim this is the first study of SAEs for VLM failure prediction.

  3. How does the paper address this problem?

    Failure prediction is modeled as four-class classification on SAE latent activations, and three-stage failure-aware training makes the latent directions both interpretable and discriminative for failure.

    Overall approach: token embeddings from the VLM vision encoder are decomposed by an SAE into sparse latent activations, a failure prediction head is trained on the latent activations, and three-stage failure-aware training makes the latent directions both interpretable and discriminative for failure types.

    SAE architecture and failure prediction formalization

    • SAE structure: A linear encoder f maps token embeddings z ∈ R^D to an M-dimensional latent space, h = f(z) = \phi(W_E^\intercal z), where ϕ is ReLU; the decoder g(h) = W_D^⊺ h reconstructs the embedding. This paper sets M = 49,152; the encoder column vectors are called SAE latent directions, each corresponding to a candidate concept.
    • Task formalization: CLIP performs zero-shot image classification, and failures fall into three classes (following Han and Zhang 2024): ID misclassification, failures caused by OOD, and failures caused by adversarial attacks; together with Correct this forms four-class classification.
    • Prediction head: Token embeddings from the penultimate layer of the vision encoder are taken, latent activations for each token are obtained via the SAE, then averaged over T tokens to get h̄, followed by top-K masking (keeping the K directions with the largest activation values, K = 300 in this paper); the masked activations ĥ are fed into a 5-layer fully connected network Mθ that outputs four-class logits.

    Three-stage failure-aware training

    1. Stage one: SAE pretraining. Trained with the SAE loss LSAE = |SAE(z) − z|22 + λ|f(z)|1, i.e., reconstruction error plus L1 sparsity regularization; conducted on the ImageNet-1K training set.
    2. Stage two: training the prediction head. The SAE is frozen, and the prediction head is trained with the cross-entropy loss L_head = CE(ŷ, y), where y is the image's failure label.
    3. Stage three: joint fine-tuning. The SAE and prediction head are fine-tuned together with cross-entropy plus the SAE loss; the authors state that this makes the SAE learn latent directions that better distinguish failure modes.
    • Gradient handling for top-K masking: The mask b is generated from discrete top-K indices and is non-differentiable; the authors treat it as a constant and detach it from the computation graph, so selected activations receive gradients and unselected ones have zero gradient (following Makhzani and Frey 2013).

    Training details

    • Resources and hyperparameters: Two 48GB NVIDIA A6000 GPUs; stage two randomly takes 5% of the FailPred training data, and stage three takes another 5%; the prediction head learning rate is 3×10⁻⁴, and joint fine-tuning uses a learning rate of 1×10⁻⁴ for 5 epochs.

    Analysis and runtime recovery methods

    • SAE analysis metrics: Reconstruction error (MSE), decoder orthogonality (pairwise cosine similarity of W_D rows), activation frequency, average activation value, label entropy (entropy of the class distribution of reference images; low entropy corresponds to class-exclusive concepts); reference images are the top-k_ref images with the strongest activation, k_ref = 10.
    • Concept-level failure analysis: Directions above an activation threshold τ are counted; the top 1000 directions by class-level or dataset-level activation count are taken and divided by label entropy into class-exclusive and ambiguous/style-related groups for comparison.
    • Runtime recovery: For patch-type local corruption, a sliding rectangular mask occludes candidate regions; if after occlusion the prediction head's confidence for the Correct class exceeds a threshold of 0.85, the region is judged to contain corruption, and reclassification is performed after occlusion; SAE latent intervention zeroes the activations of latent directions related to the incorrectly predicted class, reconstructs the embedding via the decoder and reclassifies, and if it is still predicted as erroneous, more directions are iteratively ablated.
  4. What experiments did the paper conduct?

    Comparing four baselines on four VLMs including CLIP-B/16 and three datasets, the authors report that FailSAE is best on all metrics, and conduct ablations, a K value sweep, and concept-level analysis.

    Experimental setup

    • Models tested: CLIP-B/16, CLIP-B/32, CLIP-L/14 (Radford et al. 2021b), SigLIP-B/16 (Zhai et al. 2023); the main table uses CLIP-B/16.
    • Datasets: The FailPred dataset constructed by the authors—Error-ID takes images from the ImageNet-1K/CIFAR-10/CIFAR-100 training sets that are misclassified by the target VLM; Error-OOD uses images misclassified after four corruptions (speckle noise, Gaussian blur, spatter, saturate); Error-ADV uses images misclassified after PGD and Patch attacks; the remaining correctly classified images are labeled Correct; the test sets are constructed in the same way from the validation sets of the three datasets. The paper does not report the specific sample size for each label.
    • Baselines: SSL, ORCA-B, ORCA-R, SuperMentor; ORCA-B/R can only do binary classification, so the fine-grained columns have no values.
    • Metrics: Fine-grained four-class classification reports Acc, Macro F1, Macro Recall; binary classification (the three failure classes merged into Error) reports Acc, AUROC, FPR@95.
    • Number of repetitions: Learning-based methods are run with 3 random seeds and report mean and standard deviation; ORCA-B/R are rule-based methods with no variance.

    Main results

    Table 1 (CLIP-B/16 as the target model, mean ± standard deviation):

    Swipe horizontally to read the table

    DatasetMethodFine-grained AccFine-grained Macro F1Binary AccBinary AUROCFPR@95 ↓
    CIFAR-10SuperMentor86.4 ± 0.565.2 ± 0.790.1 ± 0.491.7 ± 0.538.6 ± 1.2
    CIFAR-10FailSAE88.0 ± 0.766.6 ± 0.692.4 ± 0.693.9 ± 0.132.0 ± 0.9
    CIFAR-100SuperMentor74.7 ± 0.566.5 ± 0.782.1 ± 0.480.6 ± 0.661.6 ± 1.5
    CIFAR-100FailSAE76.3 ± 0.569.5 ± 0.682.9 ± 0.485.6 ± 0.355.5 ± 1.0
    ImageNet-1KSuperMentor72.5 ± 0.366.4 ± 0.479.4 ± 0.377.6 ± 0.470.4 ± 1.2
    ImageNet-1KFailSAE73.0 ± 0.368.8 ± 0.480.5 ± 0.281.4 ± 0.364.6 ± 0.9

    (SSL and ORCA-B/R rows omitted; SSL is lower than FailSAE across the board, and ORCA-B/R are binary-only and the lowest in the table, e.g., on ImageNet-1K ORCA-B has binary Acc 50.7 and AUROC 59.3.)

    • The authors state that FailSAE outperforms all baselines on all metrics across the three datasets, consistent with Table 1.
    • The authors believe that under the binary setting all methods improve in performance due to the reduced granularity, and FailSAE still remains best.
    • The authors believe that the sparse representations learned by the failure-aware SAE enhance separability between different failure types and between correct and incorrect samples.

    Ablation and top-K masking

    • Three-stage ablation (Table 2, Acc/AUROC): Using raw token embeddings (Embeddings) directly is worst (CIFAR-10 80.7/77.6); removing stage three causes the largest drop (CIFAR-10 85.8/82.1); removing stage two gives 87.0/90.8; full FailSAE is 88.0/93.9. The authors state that the two stages are complementary: stage two provides initialization for stage three, and stage three improves the usability of sparse features.
    • K value sweep (Figure 2): As K increases from 50 to 300, Acc on the three datasets rises to 88.1%, 76.8%, 73.0%; at K = 500 it drops to 87.9%, 74.9%, 72.0%; at K = 49,152 (all latent directions) it is 87.7%, 74.5%, 72.1%. The authors state that discriminative power is concentrated in a few latent directions, and K = 300 is the choice balancing performance and a lightweight prediction head.

    Cross-VLM and the effect of failure-aware training

    • Cross-VLM (Table 3, Acc/AUROC): CLIP-B/32 is 85.9/87.9 (CIFAR-10), 69.0/78.9 (CIFAR-100), 66.8/75.0 (ImageNet-1K); SigLIP-B/16 is 84.4/87.7, 70.3/79.6, 64.4/70.5; CLIP-L/14 is 85.7/84.1, 65.8/75.5, 65.3/70.9; CLIP-B/16 is 88.1/94.0, 76.8/85.8, 73.0/81.5. The authors state that the method does not depend on VLM architecture and achieves high Acc and AUROC on every VLM; in the table, CLIP-B/16 has the highest numbers on every dataset.
    • Effect on SAE properties: The reconstruction error of Failure-aware SAE versus Standard SAE is 0.0019 versus 0.0015, and decoder orthogonality is 0.38 versus 0.39; the authors state that failure-aware training has little effect on reconstruction and orthogonality; average label entropy drops from 2.598 to 1.955, and Figure 3a shows that incidentally activated directions shift toward lower frequency; the authors state that this represents concepts becoming more class-exclusive.
    • Manual qualitative evaluation: Taking the top 5% by average activation value (2,458 directions) and manually judging whether the reference images share a class-consistent concept, 627 (25.5%) of Failure-aware SAE directions qualify, versus 457 (18.6%) for Standard SAE; among the top 1% (492 directions), 217 (44.1%) versus 117 (23.8%).

    Concept-level failure analysis and runtime recovery

    • Concept changes upon failure (Table 4, dataset-level top 1000 activated directions, target model CLIP-B/16): Correct contains 703 class-exclusive and 297 ambiguous concepts; Error-ID has 16.6% fewer class-exclusive and 39.4% more ambiguous concepts; Error-OOD is -12.4% / +29.3%; Error-ADV is -10.8% / +25.6%. The authors state that failure is associated with class-exclusive concepts being suppressed and ambiguous or style-related concepts increasing. Figure 5 gives examples for the Triumphal Arch and Sports Car classes under OOD failure where class-exclusive directions exit and style directions enter the top activated set.
    • Runtime recovery: For failures caused by patch attacks, a sliding mask locates and occludes the corrupted region before reclassification; the authors report successfully recovering 81.2% of patch attack failures on ImageNet-1K; SAE latent intervention corrects predictions by zeroing the latent directions related to the incorrect class; Figure 6 gives a single example where a Truck misclassified as Automobile is changed back to the correct label after intervention; the paper does not report a quantitative success rate for latent intervention.

    Other ablations and analyses

    • No other independent ablations; K values, training stages, and SAE property metrics are as above.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the experiments cover four VLMs, three datasets, and three types of failure, and some sample sizes and evaluation details are not reported.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations; there is no Limitations or Future Work section in the main text or conclusion, nor any sentence explicitly saying "this is a limitation / this could be done in the future."

    Scope of the experiments

    • Models tested: CLIP-B/16, CLIP-B/32, CLIP-L/14, SigLIP-B/16, 4 VLMs in total; the main results table (Table 1) and the concept-level analysis use only CLIP-B/16.
    • Data and failure types: three image classification datasets, ImageNet-1K, CIFAR-10, CIFAR-100; OOD failures are constructed by four corruptions (speckle noise, Gaussian blur, spatter, saturate), and ADV failures are constructed by PGD and Patch attacks.
    • Baselines: SSL, ORCA-B, ORCA-R, SuperMentor, 4 in total, of which ORCA-B/R are evaluated only on binary classification.
    • Repeats and sample sizes: learning-based methods report the mean and standard deviation over 3 random seeds; the paper does not report the sample size for each FailPred label, the absolute number corresponding to the 5% of training data used in stages two/three, or the number of evaluators and the agreement for the manual qualitative evaluation.
    • Runtime recovery: patch corruption localization recovery reports an 81.2% success rate on ImageNet-1K; SAE latent intervention is given only as a single example in Figure 6, and the paper does not report its quantitative success rate; the specific value of the activation threshold τ in the concept analysis is not stated in the paper.
  6. Summarize the main content of the paper

    FailSAE uses SAE latent directions for interpretable failure prediction of VLMs; the authors report that it outperforms four baselines and can explain the concept changes at failure.

    An analysis-type work that uses sparse autoencoders for interpretable failure prediction in VLMs.

    • Problem: High-risk deployment of VLMs requires predicting whether outputs will be erroneous; the authors argue that existing confidence-based and auxiliary-classifier methods lack interpretability regarding changes in internal representations upon failure.
    • Method: Token embeddings from the penultimate layer of the CLIP vision encoder are decomposed by an SAE (latent dimension 49,152) into sparse latent activations, averaged, top-300 masked, and fed into a 5-layer prediction head for four-class classification (Correct/Error-ID/Error-OOD/Error-ADV); training has three stages—SAE reconstruction pretraining, freezing the SAE to train the head, and joint fine-tuning.
    • Main results: With CLIP-B/16 as the target model, the authors report that FailSAE outperforms SSL, ORCA-B/R, and SuperMentor on all metrics on CIFAR-10/100 and ImageNet-1K, e.g., fine-grained Acc 88.0%/76.3%/73.0% and binary AUROC 93.9%/85.6%/81.4% (Table 1); results are likewise reported on CLIP-B/32, CLIP-L/14, and SigLIP-B/16 (Table 3).
    • Analysis findings: Failure-aware training reduces average label entropy from 2.598 to 1.955, and the authors state that latent directions become more class-exclusive; during failure prediction, class-exclusive concepts decrease by 10.8%–16.6% and ambiguous or style concepts increase by 25.6%–39.4% (Table 4), and the authors state that failure corresponds to degradation of class-discriminative concepts.
    • Extended applications: A sliding mask locates patch-corrupted regions, and the authors report recovering 81.2% of patch attack failures on ImageNet-1K; SAE latent intervention for error correction is given only as a single example.
    • Authors' conclusion: The authors state that the framework can both accurately predict VLM failures and explain, at the concept level, the representation changes associated with failure.
Read originalarxiv.org