Eliciting Latent Predictions from Transformers with the Tuned Lens
Open accessAbstract
We analyze transformers from the perspective of iterative inference, seeking to understand how model predictions are refined layer by layer. To do so, we train an affine probe for each block in a frozen pretrained model, making it possible to decode every hidden state into a distribution over the vocabulary. Our method, the tuned lens, is a refinement of the earlier "logit lens" technique, which yielded useful insights but is often brittle. We test our method on various autoregressive language models with up to 20B parameters, showing it to be more predictive, reliable and unbiased than the logit lens. With causal experiments, we show the tuned lens uses similar features to the model itself. We also find the trajectory of latent predictions can be used to detect malicious inputs with high accuracy. All code needed to reproduce our results can be found at https://github.com/AlignmentResearch/tuned-lens.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
OthelloGPT exhibits iterative inference, or iterative refinement of features.
“Multiple evidence of iterative refinements are provided in the Appendix.”
From Emergent Linear Representations in World Models of Self-Supervised Sequence Models (2023) · cites this paper as Belrose et al., 2023
The Introduction (page unavailable) describes iterative inference as incremental updates to a transformer language model’s latent next-token prediction, and points to Appendix C for evidence. This supports the general idea of layer-by-layer refinement, but our copy does not identify OthelloGPT or show that its features are iteratively refined. (LLM, conf=0.84)
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 1× · see citing works
“7B prompted with an except from the abstract of Vaswani et al. (2017).”
BackgroundLanguage Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 2× · see citing works
“The impressive performance of transformers in natural language processing (Brown et al., 2020) and computer vision (Dosovitskiy et al.”
BackgroundAn Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al. (2020) · arXiv · doi:10.48550/arxiv.2010.11929 · Cited by 21,793 · cited 1× · see citing works
“The impressive performance of transformers in natural language processing (Brown et al., 2020) and computer vision (Dosovitskiy et al., 2020) suggests that their internal representations have rich structure worthy of scientific investigation.”
BackgroundEnriching Word Vectors with Subword Information
Bojanowski, P., Grave, E., Joulin, A., & Mikolov, T. (2017) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00051 · Cited by 9,645 · see citing works
Scikit-learn: Machine Learning in Python
(2011) · Journal of Machine Learning Research · doi:10.5555/1953048.2078195 · Cited by 8,539 · cited 1× · see citing works
“…flatten these trajectories into feature vectors and feed them into two standard outlier detection algorithms: isolation forest (iForest) (Liu et al., 2008) and local outlier factor (LOF) (Breunig et al., 2000), both implemented in scikit-learn (Pedregosa et al., 2011) with default hyperparameters.”
MethodThe Statistical Analysis of Compositional Data
Jones, M. C., & Aitchison, J. (1986) · Journal of the Royal Statistical Society Series A (General) · doi:10.2307/2982045 · Cited by 7,696 · cited 1× · see citing works
“We can operationalize this with the Aitchison geometry (Aitchison, 1982), which turns the probability simplex into a vector space equipped with an inner product.”
MethodLiu, F. T., Ting, K. M., & Zhou, Z.-H. (2008) · 2008 Eighth IEEE International Conference on Data Mining · doi:10.1109/icdm.2008.17 · Cited by 6,601 · cited 2× · see citing works
“6 We then flatten these trajectories into feature vectors and feed them into two standard outlier detection algorithms: isolation forest (iForest) (Liu et al., 2008) and local outlier factor (LOF) (Breunig et al., 2000), both implemented in scikit-learn (Pedregosa et al., 2011) with default…”
MethodDistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019) · arXiv · doi:10.48550/arxiv.1910.01108 · Cited by 4,653 · cited 1× · see citing works
“This can be viewed as a distillation loss, using the final layer distribution as a soft label (Sanh et al., 2019).”
MethodLOF: identifying density-based local outliers
Breunig, M. M., Kriegel, H.-P., Ng, R. T., & Sander, J. (2000) · Proceedings of the 2000 ACM SIGMOD international conference on Management of data · doi:10.1145/342009.335388 · Cited by 4,149 · cited 2× · see citing works
“, 2008) and local outlier factor (LOF) (Breunig et al., 2000), both implemented in scikit-learn (Pedregosa et al.”
BackgroundDeep Networks with Stochastic Depth
Huang, G., Sun, Y., Liu, Z., Sedra, D., & Weinberger, K. Q. (2016) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-46493-0_39 · Cited by 2,104 · cited 1× · see citing works
“Stochastic depth (Huang et al., 2016), also known as LayerDrop (Fan et al., 2019), is a regularization technique which randomly drops layers during training, and can be applied to both ResNets and transformers.”
BackgroundA Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial AttacksPreprint
Lee, K., Lee, K., Lee, H., & Shin, J. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1807.03888 · Cited by 1,166 · cited 1× · see citing works
“One simple technique is to fit a multivariate Gaussian to the model’s final layer hidden states on the training set, and flag inputs as OOD if a new hidden state is unusually far from the training distribution as measured by the Mahalanobis distance (Lee et al., 2018; Mahalanobis, 1936).”
MethodForesight: Its Logical Laws, Its Subjective Sources
de Finetti, B. (1992) · Springer series in statistics · doi:10.1007/978-1-4612-0919-5_10 · Cited by 959 · cited 1× · see citing works
“The beliefs of a rational agent should not update in an easily predictable direction over time (Yudkowsky, 2007), since predictable updates can be exploited via Dutch books (Ramsey, 1926; De Finetti et al., 1937; Hacking, 1967; Garrabrant et al., 2016).”
BackgroundRamsey, F. P. (2016) · doi:10.1007/978-3-319-20451-2_3 · Cited by 954 · cited 2× · see citing works
“Even when the logit lens is useful, we find that it is a biased estimator of the model’s final output: it systematically puts more probability mass on certain vocabulary items than the final layer does.”
RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
Gehman, S., Gururangan, S., Sap, M., Choi, Y., & Smith, N. A. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.301 · Cited by 693 · cited 2× · see citing works
“They then sampled from the vectors that scored < 0.1 toxicity (where a score > 0.5 is classified as toxic), set each value vector’s respective coefficient to 3 (because 3 was a higher than average activation), and ran the newly edited model through a subset of REALTOXICPROMPTS (Gehman et al., 2020) to measure the chan…”
MethodInfluential(2019) · doi:10.18653/v1/n19-1419 · Cited by 601 · cited 1× · see citing works
“One common approach is to train classifiers to extract specific concepts from hidden states, like part-of-speech and syntactic structure (Hewitt and Manning, 2019; Tucker et al., 2021; Li et al., 2022).”
BackgroundUnderstanding intermediate layers using linear classifier probes
Alain, G., & Bengio, Y. (2016) · arXiv · doi:10.48550/arxiv.1610.01644 · Cited by 581 · cited 1× · see citing works
“Composing a translator with the pretrained unembedding yields a probe (Alain and Bengio, 2016) that maps a hidden state to a distribution over the vocabulary.”
The Pile: An 800GB Dataset of Diverse Text for Language Modeling
Gao, L., Biderman, S., Black, S., Golding, L., Hoppe, T., Foster, C., Phang, J., He, H., Thite, A., Nabeshima, N., et al. (2021) · arXiv · doi:10.48550/arxiv.2101.00027 · Cited by 492 · cited 1× · see citing works
“Since BLOOM and GPT-2 do not have publicly available validation sets, we use the Pile validation set (Gao et al., 2020; Biderman et al., 2022).”
MethodSelf-citationTraining a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback
Bai, Y., Jones, A., Ndousse, K., Askell, A., Chen, A., DasSarma, N., Drain, D., Fort, S., Ganguli, D., Henighan, T., et al. (2022) · arXiv · doi:10.48550/arxiv.2204.05862 · Cited by 442 · cited 1× · see citing works
“The performance of both lenses was then evaluated on the test set of Anthropic’s Helpful Harmless (Bai et al., 2022) conversation dataset and the RedPajama Dataset.”
MethodAn Empirical Study of Example Forgetting during Deep Neural Network LearningPreprint
Toneva, M., Sordoni, A., Combes, R. T. D., Trischler, A., Bengio, Y., & Gordon, G. J. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1812.05159 · Cited by 421 · cited 2× · see citing works
“The iteration learned is defined as the earliest training step τ where the model’s top-1 prediction for a datapoint x is fixed (Toneva et al., 2018).”
BackgroundConfident Adaptive Language ModelingPreprint
Schuster, T., Fisch, A., Gupta, J., et al. (2022) · Neural Information Processing Systems · doi:10.48550/arxiv.2207.07061 · Cited by 419 · see citing works
Designing and Interpreting Probes with Control Tasks
Hewitt, J., & Liang, P. (2019) · Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · doi:10.18653/v1/d19-1275 · Cited by 393 · cited 3× · see citing works
“This is especially important for probing techniques, since it’s known that probes can learn to rely on spurious features unrelated to the model’s performance (Hewitt and Liang, 2019; Be-linkov, 2022).”
BackgroundReducing Transformer Depth on Demand with Structured Dropout
Fan, A., Grave, E., & Joulin, A. (2019) · arXiv · doi:10.48550/arxiv.1909.11556 · Cited by 387 · cited 1× · see citing works
“Stochastic depth (Huang et al., 2016), also known as LayerDrop (Fan et al., 2019), is a regularization technique which randomly drops layers during training, and can be applied to both ResNets and transformers.”
BackgroundMalaba, M. (2012) · doi:10.1080/10131752.2012.730185 · Cited by 370 · cited 1×
“An affine transform suffices to stitch together independently trained models with minimal performance loss (Bansal et al., 2021; Csiszárik et al., 2021).”
Transformer Feed-Forward Layers Are Key-Value Memories
Geva, M., Schuster, R., Berant, J., & Levy, O. (2021) · Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.446 · Cited by 353 · cited 3× · see citing works
“…that “write" (in the sense of Elhage et al. (2021)) to intermediate hidden states of a language model (Millidge and Black, 2022; Dar et al., 2022; Geva et al., 2022; 2020), and even use this analysis to successfully edit model behavior (Geva et al., 2022; Millidge and Black, 2022; Dai et al.,…”
BackgroundMethodDeeBERT: Dynamic Early Exiting for Accelerating BERT Inference
Xin, J., Tang, R., Lee, J., Yu, Y., & Lin, J. (2020) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2020.acl-main.204 · Cited by 353 · cited 2× · see citing works
“, 2022) and DeeBERT (Xin et al., 2020) are based on the observation that “easy” examples require less computation to classify than “difficult” examples.”
BackgroundGPT-Neo: Large Scale Autoregressive Language Modeling with Mesh-Tensorflow
Black, S., Leo, G., Wang, P., Leahy, C., & Biderman, S. (2021) · Zenodo · doi:10.5281/zenodo.5297715 · Cited by 324 · see citing works
Self-citationProbing Classifiers: Promises, Shortcomings, and Advances
Belinkov, Y. (2021) · Computational Linguistics · doi:10.1162/coli_a_00422 · Cited by 311 · cited 1× · see citing works
“This is especially important for probing techniques, since it’s known that probes can learn to rely on spurious features unrelated to the model’s performance (Hewitt and Liang, 2019; Belinkov, 2022).”
BackgroundZoom In: An Introduction to Circuits
Olah, C., Cammarata, N., Schubert, L., Goh, G., Petrov, M., & Carter, S. (2020) · Distill · doi:10.23915/distill.00024.001 · Cited by 288 · cited 1× · see citing works
“Prior work has argued that interpretability hypotheses should be tested with causal experiments: an interpretation of a neural network should make predictions about what will happen when we intervene on its weights or activations (Olah et al., 2020; Chan et al., 2022).”
BackgroundDeep Learning Through the Lens of Example Difficulty
Baldock, R., Maennel, H., & Neyshabur, B. (2021) · Neural Information Processing Systems · doi:10.48550/arxiv.2106.09647 · Cited by 205 · cited 1×
“Following Baldock et al. (2021)’s work on computer vision models, we define the prediction depth of a prompt x to be the number of layers after which a model’s top-1 prediction for x stops changing.”
BPEmb: Tokenization-free Pre-trained Subword Embeddings in 275 Languages
Heinzerling, B., & Strube, M. (2018) · Language Resources and Evaluation Conference (LREC) · doi:10.63317/3eqtu58tsqay · Cited by 196 · cited 2× · see citing works
“In particular, we use the pretrained BPEmb encoder (Heinzerling and Strube, 2018) 9 .”
MethodKnowledge Neurons in Pretrained Transformers
Dai, D., Dong, L., Hao, Y., Sui, Z., Chang, B., & Wei, F. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2022.acl-long.581 · Cited by 187 · cited 3× · see citing works
“One common approach is to train classifiers to extract specific concepts from hidden states, like part-of-speech and syntactic structure (Hewitt and Manning, 2019; Tucker et al., 2021; Li et al., 2022).”
BackgroundHighway and Residual Networks learn Unrolled Iterative EstimationPreprint
Greff, K., Srivastava, R. K., & Schmidhuber, J. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1612.07771 · Cited by 169 · cited 1× · see citing works
“These results strongly support the idea that adjacent layers in a ResNet encode fundamentally similar representations (Greff et al., 2016).”
ResultAnalyzing Transformers in Embedding SpacePreprint
Dar, G., Geva, M., Gupta, A., et al. (2022) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2209.02535 · Cited by 158 · cited 7× · see citing works
“…that “write" (in the sense of Elhage et al. (2021)) to intermediate hidden states of a language model (Millidge and Black, 2022; Dar et al., 2022; Geva et al., 2022; 2020), and even use this analysis to successfully edit model behavior (Geva et al., 2022; Millidge and Black, 2022; Dai et al.,…”
BackgroundMethodInfluentialThe Effective Rank: A Measure Of Effective Dimensionality
Roy, O., & Vetterli, M. (2007) · Infoscience (Ecole Polytechnique Fédérale de Lausanne) · doi:10.5281/zenodo.40328 · Cited by 152 · cited 1× · see citing works
“We find that the tuned lens resolves the problems with the logit lens discussed in Section 2: it has significantly lower 3 Pythia and GPT-NeoX-20B were trained using the same architecture, data, and codebase (Andonian et al., 2021).”
Amnesic Probing: Behavioral Explanation with Amnesic Counterfactuals
Elazar, Y., Ravfogel, S., Jacovi, A., & Goldberg, Y. (2021) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00359 · Cited by 126 · cited 1× · see citing works
“Amnesic probing (Elazar et al., 2021) provides one way to do this—it seeks a direction whose erasure maximally degrades a model’s accuracy.”
BackgroundA framework for few-shot language model evaluation
Sutawika, L., Gao, L., Schoelkopf, H., Biderman, S., Tow, J., Abbasi, B., fattori, B., Lovering, C., farzanehnakhaee70, Phang, J., et al. (2021) · Zenodo (CERN European Organization for Nuclear Research) · doi:10.5281/zenodo.5371628 · Cited by 124 · see citing works
Self-citationTransformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space
Geva, M., Caciularu, A., Wang, K. R., & Goldberg, Y. (2022) · arXiv · doi:10.48550/arxiv.2203.14680 · Cited by 123 · cited 1× · see citing works
“But recent work has pointed out that setting activations to zero may inadvertently push a network out of distribution, making the experimental results hard to interpret (Wang et al., 2022; Chan et al., 2022).”
BackgroundA Comparison of Semantic Similarity Methods for Maximum Human Interpretability
Sitikhu, P., Pahi, K., Thapa, P., & Shakya, S. (2019) · 2019 Artificial Intelligence for Transforming Business and Society (AITB) · doi:10.1109/aitb48515.2019.8947433 · Cited by 116 · cited 1× · see citing works
“Then, the mutual similarity of words can easily be measured by their cosine similarity under a word embedding (Sitikhu et al., 2019).”
BackgroundIgnore Previous Prompt: Attack Techniques For Language Models
Perez, F., & Ribeiro, I. (2022) · arXiv · doi:10.48550/arxiv.2211.09527 · Cited by 110 · cited 2× · see citing works
“1), we find that tuned lens prediction trajectories can be used to detect prompt injection attacks (Perez and Ribeiro, 2022) often with near-perfect accuracy (Section 5.”
BackgroundSimilarity and Matching of Neural Network Representations
Csiszárik, A., Kőrösi-Szabó, P., Matszangosz, Á. K., et al. (2021) · Neural Information Processing Systems · doi:10.48550/arxiv.2110.14633 · Cited by 107 · cited 1× · see citing works
“An affine transform suffices to stitch together independently trained models with minimal performance loss (Bansal et al., 2021; Csiszárik et al., 2021).”
MethodJump to Conclusions: Short-Cutting Transformers with Linear Transformations
Din, A. Y., Karidi, T., Choshen, L., et al. (2023) · International Conference on Language Resources and Evaluation · doi:10.48550/arxiv.2303.09435 · Cited by 106 · cited 1×
“To address the shortcomings of the logit lens, we introduce the tuned lens .”
Understanding Image Representations by Measuring Their Equivariance and Equivalence
Lenc, K., & Vedaldi, A. (2019) · International Journal of Computer Vision · doi:10.1007/s11263-018-1098-y · Cited by 98 · cited 1× · see citing works
“The idea of model stitching was introduced by Lenc and Vedaldi (2015), who form a composite model out of two frozen pretrained models A and B , by connecting the bottom layers of A to the top layers of B .”
MethodResidual Connections Encourage Iterative InferencePreprint
Jastrzȩbski, S., Arpit, D., Ballas, N., Verma, V., Che, T., & Bengio, Y. (2017) · arXiv (Cornell University) · doi:10.48550/arxiv.1710.04773 · Cited by 77 · cited 4× · see citing works
“Jastrz˛ebski et al. (2017) argue that skip connections encourage neural networks to perform “iterative inference” in the following sense: each layer reliably updates the hidden state in a direction of decreasing loss.”
BackgroundMethodInfluentialTimkey, W., & van Schijndel, M. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.372 · Cited by 75 · cited 1× · see citing works
“Another issue with the logit lens is that transformer hidden states often contain a small number of very high variance dimensions, and these “rogue dimensions” (Timkey and van Schijndel, 2021) tend to be distributed unevenly across layers; see Figure 6 (top) for an example.”
BackgroundGPT-NeoX-20B: An Open-Source Autoregressive Language Model
Black, S., Biderman, S., Hallahan, E., Anthony, Q., Gao, L., Golding, L., He, H., Leahy, C., McDonell, K., Phang, J., et al. (2022) · arXiv · doi:10.48550/arxiv.2204.06745 · Cited by 67 · cited 4× · see citing works
“We leave out the final transformer layer for GPT-2 (Radford et al., 2019), GPT-NeoX-20B (Black et al., 2022), OPT (Zhang et al., 2022), and Pythia (Biderman et al., 2023), and include it for GPT-Neo (Black et al., 2021).”
InfluentialSelf-citationEmergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task
Li, K., Hopkins, A. K., Bau, D., Viégas, F., Pfister, H., & Wattenberg, M. (2022) · arXiv · doi:10.48550/arxiv.2210.13382 · Cited by 61 · cited 1× · see citing works
“One common approach is to train classifiers to extract specific concepts from hidden states, like part-of-speech and syntactic structure (Hewitt and Manning, 2019; Tucker et al., 2021; Li et al., 2022).”
BackgroundInterpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 small
Wang, K., Variengien, A., Conmy, A., Shlegeris, B., & Steinhardt, J. (2022) · arXiv · doi:10.48550/arxiv.2211.00593 · Cited by 52 · see citing works
Self-citationElhage, N., Hume, T., Olsson, C., Schiefer, N., Henighan, T., Kravec, S., Hatfield-Dodds, Z., Lasenby, R., Drain, D., Chen, C., et al. (2022) · arXiv · doi:10.48550/arxiv.2209.10652 · Cited by 51 · cited 1× · see citing works
“However, this only elicits a single important direction, (4)For simplicity we assume the “features as directions” hypothesis (Elhage et al., 2022), which defines a “feature” to be the one-dimensional subspace spanned by a unit vector v.”
BackgroundAccelerating Training of Transformer-Based Language Models with Progressive Layer DroppingPreprint
Zhang, M., & He, Y. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2010.13369 · Cited by 47 · see citing works
BERT Busters: Outlier Dimensions that Disrupt Transformers
Kovaleva, O., Kulshreshtha, S., Rogers, A., & Rumshisky, A. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.300 · Cited by 41 · cited 1× · see citing works
“Ablating an outlier direction can drastically harm performance (Kovaleva et al., 2021), so if LogitLens relies on the presence or absence of particular outlier dimensions, the perplexity of logit lens predictions might be spuriously high.”
BackgroundChanging the reference measure in the simplex and its weighting effects
Egozcue, J., & Pawlowsky-Glahn, V. (2016) · Austrian Journal of Statistics · doi:10.17713/ajs.v45i4.126 · Cited by 35 · cited 1× · see citing works
“In order to downweight the influence of rare tokens, we use the weighted Aitchison inner product introduced by Egozcue and Pawlowsky-Glahn (2016), defined as where w is a vector of positive weights, and g w ( p ) is the weighted geometric mean of the entries of p .”
MethodEliciting Secret Knowledge from Language Models
Cywi'nski, B., Ryd, E., Wang, R., et al. (2025) · arXiv.org · doi:10.48550/arxiv.2510.01070 · Cited by 29 · cited 1×
“We start by extending a recent use case of the logit lens.”
Revisiting Model Stitching to Compare Neural Representations
Bansal, Y., Nakkiran, P., & Barak, B. (2021) · arXiv · doi:10.48550/arxiv.2106.07682 · Cited by 26 · cited 1× · see citing works
“An affine transform suffices to stitch together independently trained models with minimal performance loss (Bansal et al., 2021; Csiszárik et al., 2021).”
MethodLogical InductionPreprint
Garrabrant, S., Benson-Tilsen, T., Critch, A., Soares, N., & Taylor, J. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1609.03543 · Cited by 20 · cited 2× · see citing works
“Even when the logit lens is useful, we find that it is a biased estimator of the model’s final output: it systematically puts more probability mass on certain vocabulary items than the final layer does.”
What if This Modified That? Syntactic Interventions with Counterfactual Embeddings
Tucker, M., Qian, P., & Levy, R. (2021) · Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021 · doi:10.18653/v1/2021.findings-acl.76 · Cited by 16 · cited 1× · see citing works
“One common approach is to train classifiers to extract specific concepts from hidden states, like part-of-speech and syntactic structure (Hewitt and Manning, 2019; Tucker et al., 2021; Li et al., 2022).”
Biderman, S., Bicheno, K., & Gao, L. (2022) · arXiv · doi:10.48550/arxiv.2201.07311 · Cited by 12 · cited 1× · see citing works
“Since BLOOM and GPT-2 do not have publicly available validation sets, we use the Pile validation set (Gao et al., 2020; Biderman et al., 2022).”
MethodSelf-citationOverthinking the Truth: Understanding how Language Models Process False Demonstrations
Halawi, D., Denain, J.-S., & Steinhardt, J. (2023) · arXiv · doi:10.48550/arxiv.2307.09476 · Cited by 7 · cited 6× · see citing works
“Halawi et al. (2023) apply the logit lens to downstream tasks with few-shot prompts, and find that predictions extracted from earlier layers are often more robust to incorrect demonstrations than final layer predictions.”
BackgroundMethodResultInfluentialSelf-citationMuon is scalable for llm training
Liu, J., Su, J., Yao, X., Jiang, Z., Lai, G., Du, Y., Qin, Y., Xu, W., Lu, E., Yan, J., et al. (2025) · arXiv · doi:10.48550/arxiv.2502.16982 · Cited by 2 · cited 1× · see citing works
“While they’re not officially the same model suite, they’re more consistent than the OPT models. bias (Figure 3), and much lower perplexity than the logit lens across the board (Figure 5, Appendix A).”
BLOOM: A 176B-Parameter Open-Access Multilingual Language Model
Workshop, B., :, Scao, T. L., Fan, A., Akiki, C., Pavlick, E., Ilić, S., Hesslow, D., Castagné, R., Luccioni, A. S., et al. (2022) · arXiv · doi:10.48550/arxiv.2211.05100
Self-citationOPT: Open Pre-trained Transformer Language Models
Zhang, S., Roller, S., Goyal, N., Artetxe, M., Chen, M., Chen, S., Dewan, C., Diab, M., Li, X., Lin, X. V., et al. (2022) · arXiv · doi:10.48550/arxiv.2205.01068 · cited 6×
“We leave out the final transformer layer for GPT-2 (Radford et al., 2019), GPT-NeoX-20B (Black et al., 2022), OPT (Zhang et al., 2022), and Pythia (Biderman et al., 2023), and include it for GPT-Neo (Black et al., 2021).”
MethodInfluential
Flagged first, then by citations
17 of the 77 references couldn’t be matched to a known paper.
Research works printed but not linked: 5
- Ian Hacking. Slightly more realistic personal probability. Philosophy of Science, 34(4):311-325, 1967.
- Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen- Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al. Lora: Low-rank adaptation of large language mod- els. ICLR, 1(2):3, 2022.
- Karel Lenc and Andrea Vedaldi. Understanding image rep- resentations by measuring their equivariance and equiv- alence. In Proceedings of the IEEE conference on com- puter vision and pattern recognition, pages 991-999, 2015.
- PC Mahalanobis. On the generalized distances in statistics: Mahalanobis distance. Journal Soc. Bengal, 26:541-588, 1936.
- Andreas Veit, Michael J Wilber, and Serge Belongie. Resid- ual networks behave like ensembles of relatively shallow networks. Advances in neural information processing systems, 29, 2016.
Cited by
Sorted by citations
Adversarial machine learning :
Vassilev, A., Oprea, A., Fordyce, A. J., & Anderson, H. S. (2024) · doi:10.6028/nist.ai.100-2e2023 · Cited by 194 · see citing works
Yampolskiy, R. V. (2024) · AI and Ethics · doi:10.1007/s43681-024-00420-x · Cited by 53 · see citing works
Future Shock: Generative AI and the International AI Policy and Governance Crisis
Leslie, D., & Perini, A. M. (2024) · Harvard Data Science Review · doi:10.1162/99608f92.88b4cc98 · Cited by 33 · see citing works
Emergent Linear Representations in World Models of Self-Supervised Sequence Models
Nanda, N., Lee, A., & Wattenberg, M. (2023) · Proceedings of the 6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP · doi:10.18653/v1/2023.blackboxnlp-1.2 · Cited by 55 · see citing works
Self-Detoxifying Language Models via Toxification Reversal
Leong, C. T., Cheng, Y., Wang, J., Wang, J., & Li, W. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.269 · Cited by 19 · see citing works
Stolfo, A., Belinkov, Y., & Sachan, M. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.435 · Cited by 14 · see citing works
“We trace the flow of numerical information within Transformer-based LMs: given an input query, the model processes the representations of numbers and operators with early layers (A).”
BackgroundInfluentialGet My Drift? Catching LLM Task Drift with Activation Deltas
Abdelnabi, S., Fay, A., Cherubin, G., Salem, A., Fritz, M., & Paverd, A. (2025) · IEEE Conference on Secure and Trustworthy Machine Learning (SaTML) · doi:10.1109/satml64287.2025.00011 · Cited by 20 · see citing works
“Unlike fixed injection templates used in [30] (e.g., “ignore previous prompts”), our method adapts to diverse scenarios of injection forms.”
Yager, K. G. (2024) · Digital Discovery · doi:10.1039/d4dd00178h · Cited by 12 · see citing works
Layered Bias: Interpreting Bias in Pretrained Large Language Models
Prakash, N., & Lee, R. K.-W. (2023) · BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP) · doi:10.18653/v1/2023.blackboxnlp-1.22 · Cited by 11 · see citing works
“We also aim to test newer probing techniques like the tuned lens (Belrose et al., 2023) in future research.”
BackgroundFuture Lens: Anticipating Subsequent Tokens from a Single Hidden State
Pal, K., Sun, J., Yuan, A., Wallace, B., & Bau, D. (2023) · Conference on Computational Natural Language Learning · doi:10.18653/v1/2023.conll-1.37 · Cited by 19 · see citing works
“Other related efforts have passed hidden intermediate states directly to the decoder head (skipping in-between layers) to “verbalize” such embeddings (Din et al., 2023; Belrose et al., 2023; nostalge-braist, 2020).”
BackgroundMethodInfluentialTrillion Parameter AI Serving Infrastructure for Scientific Discovery: A Survey and Vision
Hudson, N., Pauloski, J. G., Baughman, M., Kamatar, A., Sakarvadia, M., Ward, L. T., Chard, R., Bauer, A., Levental, M., Wang, W., et al. (2023) · IEEE/ACM International Conference on Big Data Computing, Applications and Technologies (BDCAT) · doi:10.1145/3632366.3632396 · Cited by 11 · see citing works
“A critical tool in these interpretability workflows is the ability to hook the output of intermediate layers to understand what the model may be “thinking” as it refines the final output [3, 40, 51].”
Hi-ToM: A Benchmark for Evaluating Higher-Order Theory of Mind Reasoning in Large Language Models
Wu, Y., He, Y., Jia, Y., Mihalcea, R. F., Chen, Y., & Deng, N. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.717 · Cited by 8 · see citing works
Characterizing Mechanisms for Factual Recall in Language Models
Yu, Q., Merullo, J., & Pavlick, E. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.615 · Cited by 9 · see citing works
On the limits of LLM surprisal as a functional explanation of the N400 and P600
Krieger, B., Brouwer, H., Aurnhammer, C., & Crocker, M. W. (2025) · Brain Research · doi:10.1016/j.brainres.2025.149841 · Cited by 7 · see citing works
“This hypothesis could, for instance, be tested by applying the tuned lens method (Belrose et al., 2023), which reveals model predictions about upcoming input at different LLM layers, other than just the output layer.”
Rambelli, G., Chersoni, E., Senaldi, M. S. G., Blache, P., & Lenci, A. (2023) · Workshop on Multiword Expressions (MWE) · doi:10.18653/v1/2023.mwe-1.13 · Cited by 5 · see citing works
“…computational exper-iment, we just analyzed the probability output of a target word through the Surprisal scores, but in the future, it would be useful to adopt interpretability techniques to get more insights on the hidden representations of the NLMs (Yin and Neubig, 2022; Belrose et al., 2023).”
MethodSakarvadia, M., Ajith, A., Khan, A., Grzenda, D., Hudson, N., Bauer, A., Chard, K., & Foster, I. T. (2023) · BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP) · doi:10.18653/v1/2023.blackboxnlp-1.26 · Cited by 4 · see citing works
Understanding the Dark Side of LLMs' Intrinsic Self-Correction
Zhang, Q., Wang, D., Qian, H., Li, Y., Zhang, T., Huang, M., Xu, K., Li, H., Yan, L., & Qiu, H. (2025) · Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2025.acl-long.1314 · Cited by 4 · see citing works
Pan-microalgal dark proteome mapping via interpretable deep learning and synthetic chimeras
Nelson, D. R., Jaiswal, A. K., Ismail, N. S., Mystikou, A., & Salehi‐Ashtiani, K. (2025) · Patterns · doi:10.1016/j.patter.2025.101373 · Cited by 2 · see citing works
“Adapting interpretability techniques from Tuned Lens, 22 Captum, 23 DeepLift, 24 and SHAP, 25 we systematically decoded how specific amino acid residues, their patterns, and positional relationships influence model decisions (Figures 3, 4, 5, 6, 7, and S4–S6).”
Kowalska, B., & Kwaśnicka, H. (2026) · Machine Learning · doi:10.1007/s10994-026-07129-4 · Cited by 5 · see citing works
“Similarly, the tuned lens (Belrose et al., 2023) learns affine transformations that translate representations from an internal layer to the final layer.”
Understanding the Inner-workings of Language Models Through Representation Dissimilarity
Brown, D., Godfrey, C., Konz, N., Tu, J. H., & Kvinge, H. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.403 · Cited by 2 · see citing works
CRaSh: Clustering, Removing, and Sharing Enhance Fine-tuning without Full Large Language Model
Zhang, K., Ding, N., Qi, B., Zhu, X., Long, X., & Zhou, B. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.597 · Cited by 2 · see citing works
Good Arguments Against the People Pleasers: How Reasoning Mitigates (Yet Masks) LLM Sycophancy
Feng, Z., Chen, Z., Ma, J., Po, Y. T., Chersoni, E., & Li, B. (2026) · Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2026.acl-long.1126 · Cited by 2 · see citing works
Uncovering the Interpretation of Large Language Models
Akter, M. S., Shahriar, H., Cuzzocrea, A., & Wu, F. (2024) · IEEE Annual International Computer Software and Applications Conference (COMPSAC) · doi:10.1109/compsac61105.2024.00143 · Cited by 1 · see citing works
“While not exclusively mechanistic, several other recent researches have explored the hidden representations and the functioning of the inner components of large Language Models [20, 21].”
BackgroundHI-TOM: A Benchmark for Evaluating Higher-Order Theory of Mind Reasoning in Large Language Models
He, Y., Wu, Y., Jia, Y., Mihalcea, R., Chen, Y., & Deng, N. (2023) · arXiv · doi:10.48550/arxiv.2310.16755 · Cited by 1 · see citing works
A Glitch in the Matrix? Locating and Detecting Language Model Grounding with FakepediaPreprint
Monea, G., Peyrard, M., Josifoski, M., Chaudhary, V., Eisner, J. M., Kıcıman, E., Palangi, H., Patra, B., & West, R. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2312.02073
“Targeted interventions on the computation are then applied to estimate the impact of individual components on model behavior (Modarressi et al., 2022; Mohebbi et al., 2023; Wang et al., 2022; Nanda et al., 2023; Merullo et al., 2023; Belrose et al., 2023; Meng et al., 2023a; Vig et al., 2020).”
MethodBhattacharya, S., & Bojar, O. (2023) · BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP) · doi:10.18653/v1/2023.blackboxnlp-1.9
Do Llamas understand the periodic table?
Lei, G., & Cooper, S. J. (2025) · Digital Discovery · doi:10.1039/d5dd00374a
CommonSense to DomainSense: Distilling Commonsense Reasoning to Domain-specific Knowledge Graphs
Narotam, N., Kaif, M., Yadav, N., Mutharaju, R., & Akhtar, M. S. (2025) · International Conference on Knowledge Capture · doi:10.1145/3731443.3771360
“…have shown interesting insights into how LLMs learn new concepts throughout their training and how different layers learn differently [2], which can be used for proposing meta frameworks such as ours by observing which layers of a model might focus on which domain of knowledge…”
A Road Map for Tamed Interactions with Large Language Models
Scotti, V., Keim, J., Hey, T., Metzger, A., Koziolek, A., & Mirandola, R. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3832776 · Cited by 1 · see citing works
“…for GenAIware (Section 3.1), then, we focus on the existing frameworks designed to manage the interaction with LLMs (Section 3.2), and on the known challenges arising from GenAIware development, and, finally, we position the proposed LSL framework with respect to the state-of-the-art (Section 3.4).”
InfluentialConditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models
Cheng, X., Zeng, W., Dai, D., Chen, Q., Wang, B., Xie, Z., Huang, K., Yu, X., Hao, Z., Zhang, H., et al. (2026) · Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2026.acl-long.226 · Cited by 3 · see citing works
- Authors
- Belrose, N., Ostrovsky, I., McKinney, L., Furman, Z., Smith, L., Halawi, D., Biderman, S., & Steinhardt, J.
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2023
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2303.08112
- OpenAlex
- W4327526719
- Semantic Scholar
- 762ca2711eb167f19b79e39c175708ca15e1f5d7
- Cited by
- 27
- References
- 77
- Citations by year
- 2026: 2 · 2025: 5 · 2024: 5 · 2023: 15
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- Locations
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Explainable Artificial Intelligence (XAI)
- Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Keywords
- logit lens, transformer interpretability, iterative inference, autoregressive language models, model interpretability
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review