Cited by 61Advanced Neural Network ApplicationsNeural Networks and ApplicationsTopic Modeling

The DOI matches its Crossref record.

Jump to Conclusions: Short-Cutting Transformers with Linear Transformations

Open access
Yom Din, Alexander, Karidi, Taelin, Choshen, Leshem, Geva, Mor·2024·Proceedings of the Language Resources and Evaluation Conference

Abstract

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.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.63317/5griomztwyxs

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.

A few free checks a day · papers already verified open instantly · results are public

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

  1. 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.
  2. 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
  3. Jimmy Lei Ba, Jamie Ryan Kiros, and Geof- frey E. Hinton. 2016. Layer normalization. arXiv:1607.06450v1. · arXiv
  4. 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
  5. 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
  6. Guy Dar, Mor Geva, Ankit Gupta, and Jonathan Be- rant. 2022. Analyzing transformers in embedding space. arXiv:2209.02535v2. · arXiv
  7. 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
  8. 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.
  9. 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.
  10. 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.
  11. 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
  12. 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).
  13. 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
  14. Max Lamparth and Anka Reuel. 2023. Analyzing and editing inner mechanisms of backdoored language models. arXiv:2302.12461v1. · arXiv
  15. Yaniv Leviathan, Matan Kalman, and Yossi Matias. 2022. Fast inference from transformers via spec- ulative decoding. arXiv:2211.17192v1. · arXiv
  16. 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
  17. 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
  18. 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
  19. 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.
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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.
  25. 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
  26. 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
  27. 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
  28. Jingjing Xu, Wangchunshu Zhou, Zhiyi Fu, Hao Zhou, and Lei Li. 2021. A survey on green deep learning. arXiv:2111.05193v2. · arXiv
  29. 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

Metadata

Authors
Yom Din, A., Karidi, T., Choshen, L., & Geva, M.
Affiliations
  • Hebrew University of Jerusalem (IL)
  • Tel Aviv University (IL)
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
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