The DOI matches its Crossref record.
Jump to Conclusions: Short-Cutting Transformers with Linear Transformations
Open accessAbstract
Transformer-based language models create hidden representations of their inputs at every layer, but only use final-layer representations for prediction.This obscures the internal decision-making process of the model and the utility of its intermediate representations.One way to elucidate this is to cast the hidden representations as final representations, bypassing the transformer computation in-between.In this work, we suggest a simple method for such casting, using linear transformations.This approximation far exceeds the prevailing practice of inspecting hidden representations from all layers, in the space of the final layer.Moreover, in the context of language modeling, our method produces more accurate predictions from hidden layers, across various model scales, architectures, and data distributions.This allows "peeking" into intermediate representations, showing that GPT-2 and BERT often predict the final output already in early layers.We then demonstrate the practicality of our method to recent early exit strategies, showing that when aiming, for example, at retention of 95% accuracy, our approach saves additional 7.9% layers for GPT-2 and 5.4% layers for BERT.Last, we extend our method to linearly approximate sub-modules, finding that attention is most tolerant to this change.Our code and learned mappings are publicly available at https://github.com/sashayd/mat.
Overview
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
Verification
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?
Adding a trainable affine or linear transformation before unembedding (the tuned lens) improves decoding accuracy at the cost of less faithfully representing when the model has completed computation.
“Adding a trainable affine or linear transformation before unembedding, as also referred to as the tuned lens, improves decoding accuracy (Belrose et al., 2023a;Yom Din et al., 2024), at the cost of less faithfully representing when the model has completed computation.”
From Open Problems in Mechanistic Interpretability (2025) · cites this paper as Yom Din et al., 2024
The Introduction reports that the paper’s learned linear mappings improved prediction-estimation accuracy over naive projections. Related Work distinguishes those mappings from Belrose et al.’s affine tuned-lens method, and the cited passages do not establish that greater accuracy comes at the cost of less faithfully showing when computation is complete. (LLM, conf=0.86)
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.
Citations
Cites
No references could be resolved yet.
Research works printed but not linked: 29
- Yossi Adi, Einat Kermany, Yonatan Belinkov, Ofer Lavi, and Yoav Goldberg. 2017. Fine-grained analysis of sentence embeddings using auxiliary prediction tasks. In International Conference on Learning Representations.
- J Alammar. 2021. Ecco: An open source library for the explainability of transformer language mod- els. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: System Demon- strations, pages 249-257, Online. Association for Computational Linguistics. · DOI
- Jimmy Lei Ba, Jamie Ryan Kiros, and Geof- frey E. Hinton. 2016. Layer normalization. arXiv:1607.06450v1. · arXiv
- Charlie Chen, Sebastian Borgeaud, Geoffrey Irv- ing, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. 2023. Accelerating large lan- guage model decoding with speculative sam- pling. arXiv:2302.01318v1. · arXiv
- Alexis Conneau, German Kruszewski, Guillaume Lample, Loïc Barrault, and Marco Baroni. 2018. What you can cram into a single $&!#* vector: Probing sentence embeddings for linguistic prop- erties. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2126-2136, Melbourne, Australia. Association for Computa- tional Linguistics. · DOI · Paper page
- Guy Dar, Mor Geva, Ankit Gupta, and Jonathan Be- rant. 2022. Analyzing transformers in embedding space. arXiv:2209.02535v2. · arXiv
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Con- ference of the North American Chapter of the As- sociation for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171-4186, Minneapolis, Minnesota. Association for Computational Lin- guistics. · DOI · Paper page
- Ariel Gera, Roni Friedman, Ofir Arviv, Chulaka Gunasekara, Benjamin Sznajder, Noam Slonim, and Eyal Shnarch. 2023. The benefits of bad ad- vice: Autocontrastive decoding across model lay- ers. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10406-10420, Toronto, Canada. Association for Computational Linguistics.
- Mor Geva, Avi Caciularu, Guy Dar, Paul Roit, Shoval Sadde, Micah Shlain, Bar Tamir, and Yoav Goldberg. 2022a. LM-debugger: An in- teractive tool for inspection and intervention in transformer-based language models. In Proceed- ings of the 2022 Conference on Empirical Meth- ods in Natural Language Processing: System Demonstrations, pages 12-21, Abu Dhabi, UAE. Association for Computational Linguistics.
- Mor Geva, Avi Caciularu, Kevin Wang, and Yoav Goldberg. 2022b. Transformer feed-forward lay- ers build predictions by promoting concepts in the vocabulary space. In Proceedings of the 2022 Conference on Empirical Methods in Nat- ural Language Processing, pages 30-45, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
- Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer feed-forward lay- ers are key-value memories. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 5484- 5495, Online and Punta Cana, Dominican Re- public. Association for Computational Linguistics. · DOI · Paper page
- Dirk Goldhahn, Thomas Eckart, and Uwe Quasthoff. 2012. Building large monolingual dictionaries at the Leipzig corpora collection: From 100 to 200 languages. In Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12), pages 759-765, Istanbul, Turkey. European Language Resources Association (ELRA).
- K. He, X. Zhang, S. Ren, and J. Sun. 2016. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pat- tern Recognition (CVPR), pages 770-778, Los Alamitos, CA, USA. IEEE Computer Society. · DOI · Paper page
- Max Lamparth and Anka Reuel. 2023. Analyzing and editing inner mechanisms of backdoored language models. arXiv:2302.12461v1. · arXiv
- Yaniv Leviathan, Matan Kalman, and Yossi Matias. 2022. Fast inference from transformers via spec- ulative decoding. arXiv:2211.17192v1. · arXiv
- Nelson F. Liu, Matt Gardner, Yonatan Belinkov, Matthew E. Peters, and Noah A. Smith. 2019. Linguistic knowledge and transferability of con- textual representations. In Proceedings of the 2019 Conference of the North American Chap- ter of the Association for Computational Linguis- tics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 1073-1094, Minneapolis, Minnesota. Association for Compu- tational Linguistics. · DOI
- Timothee Mickus, Denis Paperno, and Mathieu Constant. 2022. How to dissect a Muppet: The structure of transformer embedding spaces. Transactions of the Association for Computa- tional Linguistics, 10:981-996. · DOI
- Ori Ram, Liat Bezalel, Adi Zicher, Yonatan Be- linkov, Jonathan Berant, and Amir Globerson. 2022. What are you token about? dense retrieval as distributions over the vocabulary. arXiv:2212.10380v1. · arXiv
- Tal Schuster, Adam Fisch, Jai Gupta, Mostafa De- hghani, Dara Bahri, Vinh Q. Tran, Yi Tay, and Donald Metzler. 2022. Confident adaptive lan- guage modeling. In Advances in Neural Informa- tion Processing Systems.
- Tal Schuster, Adam Fisch, Tommi Jaakkola, and Regina Barzilay. 2021. Consistent accelerated inference via confident adaptive transformers. In Proceedings of the 2021 Conference on Empir- ical Methods in Natural Language Processing, pages 4962-4979, Online and Punta Cana, Do- minican Republic. Association for Computational Linguistics. · DOI
- Roy Schwartz, Gabriel Stanovsky, Swabha Swayamdipta, Jesse Dodge, and Noah A. Smith. 2020. The right tool for the job: Matching model and instance complexities. In Proceedings of the 58th Annual Meeting of the Association for Com- putational Linguistics, pages 6640-6651, Online. Association for Computational Linguistics. · DOI
- Aviv Slobodkin, Leshem Choshen, and Omri Abend. 2021. Mediators in determining what process- ing BERT performs first. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 86-93, Online. Association for Computational Linguis- tics. · DOI
- Ian Tenney, Dipanjan Das, and Ellie Pavlick. 2019. BERT rediscovers the classical NLP pipeline. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4593-4601, Florence, Italy. Association for Com- putational Linguistics. · DOI · Paper page
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. 2017. At- tention is all you need. In Advances in Neural Information Processing Systems, volume 30. Cur- ran Associates, Inc.
- Elena Voita, Rico Sennrich, and Ivan Titov. 2019. The bottom-up evolution of representations in the transformer: A study with machine transla- tion and language modeling objectives. In Pro- ceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 4396-4406, Hong Kong, China. Association for Computational Linguistics. · DOI
- Jue Wang, Ke Chen, Gang Chen, Lidan Shou, and Julian McAuley. 2022. SkipBERT: Efficient infer- ence with shallow layer skipping. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7287-7301, Dublin, Ireland. As- sociation for Computational Linguistics. · DOI
- Ji Xin, Raphael Tang, Jaejun Lee, Yaoliang Yu, and Jimmy Lin. 2020. DeeBERT: Dynamic early exiting for accelerating BERT inference. In Pro- ceedings of the 58th Annual Meeting of the As- sociation for Computational Linguistics, pages 2246-2251, Online. Association for Computa- tional Linguistics. · DOI
- Jingjing Xu, Wangchunshu Zhou, Zhiyi Fu, Hao Zhou, and Lei Li. 2021. A survey on green deep learning. arXiv:2111.05193v2. · arXiv
- Sumu Zhao, Damian Pascual, Gino Brunner, and Roger Wattenhofer. 2021. Of Non-Linearity and Commutativity in BERT. In International Joint Conference on Neural Networks (IJCNN), Virtual- only.
Cited by
Sorted by citations
Open Problems in Mechanistic Interpretability
Sharkey, L., Chughtai, B., Batson, J., Lindsey, J., Wu, J., Bushnaq, L., Goldowsky-Dill, N., Heimersheim, S., Ortega, A., Bloom, J., et al. (2025) · arXiv · doi:10.48550/arxiv.2501.16496 · Cited by 291
Self-citationGood 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
Metadata
- Authors
- Yom Din, A., Karidi, T., Choshen, L., & Geva, M.
- Affiliations
- Hebrew University of Jerusalem (IL)
- Tel Aviv University (IL)
- ORCID
- Choshen, Leshem
- Venue
- Proceedings of the Language Resources and Evaluation Conference
- Published
- 2024-05
- Pages
- 9615-9625
- ISSN
- 2522-2686
- OpenAlex
- W7131777177
- Cited by
- 61
- References
- 0
- Citations by year
- 2026: 16 · 2025: 13 · 2024: 21
- FWCI
- 7.24
- Type
- conference paper
- Language
- en
- Open access
- bronze
- doi.org
- Locations
- Language Resources and Evaluation Conference (LREC) (publishedVersion)
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Topics
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
- Physical Sciences › Computer Science › Artificial Intelligence › Neural Networks and Applications
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Keywords
- transformer models, linear operators, short-circuiting, neural network compression, model reduction
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