cs.CVApr 12, 2026

LogitDynamics: Reliable ViT Error Detection from Layerwise Logit Trajectories

Authors: Ido Beigelman, Moti Freiman

Organizations: Technion - Israel Institute of Technology, Israel

Abstract

Reliable confidence estimation is critical when deploying vision models. We study error prediction: determining whether an image classifier's output is correct using only signals from a single forward pass. Motivated by internal-signal hallucination detection in large language models, we investigate whether similar depth-wise signals exist in Vision Transformers (ViTs). We propose a simple method that models how class evidence evolves across layers. By attaching lightweight linear heads to intermediate layers, we extract features from the last L layers that capture both the logits of the predicted class and its top-K competitors, as well as statistics describing instability of top-ranked classes across depth. A linear probe trained on these features predicts the error indicator. Across datasets, our method improves or matches AUCPR over baselines and shows stronger cross-dataset generalization while requiring minimal additional computation.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Vertical Fusion: Condensing Internal Representations for Robust ViT Classification

    Jul 11, 2026Francesco Di Salvo, Shyam Nandan Rai, Hamed Damirchi +4Vision TransformerImage Classification

  2. HiLRP: Toward One Trustworthy Explanation for Vision Transformer: Conservation-Valid Attribution via Attention Primitives

    Sep 1, 2026Sathiyamohan Nishankar, Pubudu Sanjeewani, Asanka Perera +1Transformer InterpretabilityVision Transformer