Embedding Recycling for Language Models
Not on the map. Why?
Abstract (arXiv)
Real-world applications of neural language models often involve running many different models over the same corpus. The high computational cost of these runs has led to interest in techniques that can reuse the contextualized embeddings produced in previous runs to speed training and inference of future ones. We refer to this approach as embedding recycling (ER). While multiple ER techniques have been proposed, their practical effectiveness is still unknown because existing evaluations consider very few models and do not adequately account for overhead costs. We perform an extensive evaluation of ER across eight different models (17 to 900 million parameters) and fourteen tasks in English. We show how a simple ER technique that caches activations from an intermediate layer of a pretrained model, and learns task-specific adapters on the later layers, is broadly effective. For the best-performing baseline in our experiments (DeBERTa-v2 XL), adding a precomputed cache results in a >90% speedup during training and 87-91% speedup for inference, with negligible impact on accuracy. Our analysis reveals important areas of future work.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 52 of its 67 references that are in the map. First posted on arXiv 11 Jul 2022.
Builds on
52 of 67 references.
References · 52
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2016Layer Normalizationcited by 5,669
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
38 more
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,414
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
- 2017Supervised Learning of Universal Sentence Representations from Natural Language Inference Datacited by 432
- 2020SPECTER: Document-level Representation Learning using Citation-informed Transformerscited by 430
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 332
- 2018Insights on representational similarity in neural networks with canonical correlationcited by 324
- 2018Multi-Task Identification of Entities, Relations, and Coreference for Scientific Knowledge Graph Constructioncited by 322
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 245
- 2022Memorizing Transformerscited by 226
- 2020AdapterDrop: On the Efficiency of Adapters in Transformerscited by 224
- 2022LinkBERT: Pretraining Language Models with Document Linkscited by 211
- 2019Assessing BERT's Syntactic Abilitiescited by 192
- 2022Delta Tuning: A Comprehensive Study of Parameter Efficient Methods for Pre-trained Language Modelscited by 180
- 2019Structural Scaffolds for Citation Intent Classification in Scientific Publicationscited by 130
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2022Measuring the Carbon Intensity of AI in Cloud Instancescited by 111
- 2019What Would Elsa Do? Freezing Layers During Transformer Fine-Tuningcited by 89
- 2016Improving Neural Language Models with a Continuous Cachecited by 82
- 2019Does BERT Make Any Sense? Interpretable Word Sense Disambiguation with Contextualized Embeddingscited by 56
- 2017FreezeOut: Accelerate Training by Progressively Freezing Layerscited by 54
- 2021AutoFreeze: Automatically Freezing Model Blocks to Accelerate Fine-tuningcited by 48
- 2022PERFECT: Prompt-free and Efficient Few-shot Learning with Language Modelscited by 40
- 2020Do Transformers Need Deep Long-Range Memorycited by 24
- 2021PipeTransformer: Automated Elastic Pipelining for Distributed Training of Transformerscited by 23
- 2020Accelerating Deep Learning Inference via Freezingcited by 10
- 2020General Purpose Text Embeddings from Pre-trained Language Models for Scalable Inferencecited by 9
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2023: 3; 2024: 0; 2025: 0; 2026: 2.
5 papers.
- 2023On Optimal Caching and Model Multiplexing for Large Model Inferencecited by 20
- 2023LAIT: Efficient Multi-Segment Encoding in Transformers with Layer-Adjustable Interactioncited by 7
- 2023Plug-and-Play Document Modules for Pre-trained Modelscited by 6
- 2026From Exact Hits to Close Enough: Semantic Caching for LLM Embeddingscited by 1
- 2026CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residualscited by 1
- 2026CoMem: Reusing Transformer Depth across Queries with Persistent Intermediate Residuals30 Jul 2026
- 2026From Exact Hits to Close Enough: Semantic Caching for LLM Embeddings7 Feb 2026
- 2023On Optimal Caching and Model Multiplexing for Large Model Inference3 Jun 2023
- 2023LAIT: Efficient Multi-Segment Encoding in Transformers with Layer-Adjustable Interaction31 May 2023
- 2023Plug-and-Play Document Modules for Pre-trained Models28 May 2023