mlsanityData to 14 Oct 2026

Inside-Out: Measuring Generalization in Vision Transformers Through Inner Workings

arXiv 2604.08192 ↗First posted 9 Apr 2026cs.LG cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

Reliable generalization metrics are fundamental to the evaluation of machine learning models. Especially in high-stakes applications where labeled target data are scarce, evaluation of models' generalization performance under distribution shift is a pressing need. We focus on two practical scenarios: (1) Before deployment, how to select the best model for unlabeled target data? (2) After deployment, how to monitor model performance under distribution shift? The central need in both cases is a reliable and label-free proxy metric. Yet existing proxy metrics, such as model confidence or accuracy-on-the-line, are often unreliable as they only assess model output while ignoring the internal mechanisms that produce them. We address this limitation by introducing a new perspective: using the inner workings of a model, i.e., circuits, as a predictive metric of generalization performance. Leveraging circuit discovery, we extract the causal interactions between internal representations as a circuit, from which we derive two metrics tailored to the two practical scenarios. (1) Before deployment, we introduce Dependency Depth Bias, which measures different models' generalization capability on target data. (2) After deployment, we propose Circuit Shift Score, which predicts a model's generalization under different distribution shifts. Across various tasks, both metrics demonstrate significantly improved correlation with generalization performance, outperforming existing proxies by an average of 13.4% and 34.1%, respectively. Our code is available at https://github.com/deep-real/GenCircuit.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 33 of its 81 references that are in the map. First posted on arXiv 9 Apr 2026.

Builds on

33 of 81 references.

References · 33

  1. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  2. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  3. 2013Visualizing and Understanding Convolutional Networkscited by 2,290
  4. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
  5. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  6. 2020Underspecification Presents Challenges for Credibility in Modern Machine Learningcited by 496
  7. 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 435
  8. 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
  9. 2015Understanding Neural Networks Through Deep Visualizationcited by 334
  10. 2018Failing Loudly: An Empirical Study of Methods for Detecting Dataset Shiftcited by 243
  11. 2023Attribution Patching Outperforms Automated Circuit Discoverycited by 209
  12. 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 149
21 more
  1. 2022Leveraging Unlabeled Data to Predict Out-of-Distribution Performancecited by 145
  2. 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 118
  3. 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 108
  4. 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 95
  5. 2023A Modern Look at the Relationship between Sharpness and Generalizationcited by 92
  6. 2025MIB: A Mechanistic Interpretability Benchmarkcited by 56
  7. 2023Characterizing Mechanisms for Factual Recall in Language Modelscited by 48
  8. 2024Summing Up the Facts: Additive Mechanisms Behind Factual Recall in LLMscited by 42
  9. 2025How Do LLMs Acquire New Knowledge? A Knowledge Circuits Perspective on Continual Pre-Trainingcited by 23
  10. 2024A Survey on Evaluation of Out-of-Distribution Generalizationcited by 21
  11. 2021Provably Robust Detection of Out-of-distribution Data (almost) for freecited by 18
  12. 2024Energy-based Automated Model Evaluationcited by 17
  13. 2023Label-Efficient Deep Learning in Medical Image Analysis: Challenges and Future Directionscited by 16
  14. 2023Towards Interpretable Sequence Continuation: Analyzing Shared Circuits in Large Language Modelscited by 15
  15. 2024Automatic Discovery of Visual Circuitscited by 13
  16. 2024Towards Robust Out-of-Distribution Generalization Bounds via Sharpnesscited by 11
  17. 2024Circuit Compositions: Exploring Modular Structures in Transformer-Based Language Modelscited by 11
  18. 2024Adaptive Circuit Behavior and Generalization in Mechanistic Interpretabilitycited by 7
  19. 2024Towards Understanding the Role of Sharpness-Aware Minimization Algorithms for Out-of-Distribution Generalizationcited by 3
  20. 2025Uncovering Graph Reasoning in Decoder-only Transformers with Circuit Tracingcited by 3
  21. 2024In Search of the Successful Interpolation: On the Role of Sharpness in CLIP Generalizationcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Biased Generalization in Diffusion Models
  2. 2023Beyond Statistical Similarity: Rethinking Metrics for Deep Generative Models in Engineering Design
  3. 2023Exposing flaws of generative model evaluation metrics and their unfair treatment of diffusion models
  4. 2025Specialization after Generalization: Towards Understanding Test-Time Training in Foundation Models
  5. 2024Moderating the Generalization of Score-based Generative Model
  6. 2025On the Anisotropy of Score-Based Generative Models
  7. 2026On the Dynamics & Transferability of Latent Generalization during Memorization
  8. 2026Representation Gap: Explaining the Unreasonable Effectiveness of Neural Networks from a Geometric Perspective