CUE Vectors: Modular Training of Language Models Conditioned on Diverse Contextual Signals
Not on the map. Why?
Abstract (arXiv)
We propose a framework to modularize the training of neural language models that use diverse forms of sentence-external context (including metadata) by eliminating the need to jointly train sentence-external and within-sentence encoders. Our approach, contextual universal embeddings (CUE), trains LMs on one set of context, such as date and author, and adapts to novel metadata types, such as article title, or previous sentence. The model consists of a pretrained neural sentence LM, a BERT-based context encoder, and a masked transformer decoder that estimates LM probabilities using sentence-internal and sentence-external information. When context or metadata are unavailable, our model learns to combine contextual and sentence-internal information using noisy oracle unigram embeddings as a proxy. Real contextual information can be introduced later and used to adapt a small number of parameters that map contextual data into the decoder's embedding space. We validate the CUE framework on a NYTimes text corpus with multiple metadata types, for which the LM perplexity can be lowered from 36.6 to 27.4 by conditioning on context. Bootstrapping a contextual LM with only a subset of the context/metadata during training retains 85% of the achievable gain. Training the model initially with proxy context retains 67% of the perplexity gain after adapting to real context. Furthermore, we can swap one type of pretrained sentence LM for another without retraining the context encoders, by only adapting the decoder model. Overall, we obtain a modular framework that allows incremental, scalable training of context-enhanced LMs.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 22 of its 34 references that are in the map. First posted on arXiv 16 Mar 2022.
Builds on
22 of 34 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2014Distributed Representations of Sentences and Documentscited by 677
- 2017Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Ratescited by 196
- 2020Contextual RNN-T For Open Domain ASRcited by 85
- 2018Improving the Transformer Translation Model with Document-Level Contextcited by 74
- 2018Dialog-context aware end-to-end speech recognitioncited by 27
- 2018Personalized Language Model for Query Auto-Completioncited by 25
- 2021Fast Contextual Adaptation with Neural Associative Memory for On-Device Personalized Speech Recognitioncited by 25
10 more
- 2015Larger-Context Language Modellingcited by 10
- 2015Document Context Language Modelscited by 10
- 2018Personalized neural language models for real-world query auto completioncited by 10
- 2017Low-Rank RNN Adaptation for Context-Aware Language Modelingcited by 8
- 2017Dialog Context Language Modeling with Recurrent Neural Networkscited by 6
- 2020Context-aware Decoder for Neural Machine Translation using a Target-side Document-Level Language Modelcited by 4
- 2020Contextual BERT: Conditioning the Language Model Using a Global Statecited by 4
- 2021Contextual Biasing of Language Models for Speech Recognition in Goal-Oriented Conversational Agentscited by 4
- 2021Attention-based Contextual Language Model Adaptation for Speech Recognitioncited by 4
- 2020Hierarchical GPT with Congruent Transformers for Multi-Sentence Language Modelscited by 1
Built on by
Citing papers per year: 2023: 3; 2024: 1; 2025: 1.
5 papers.
- 2023Using External Off-Policy Speech-To-Text Mappings in Contextual End-To-End Automated Speech Recognitioncited by 5
- 2023Reference-less Analysis of Context Specificity in Translation with Personalised Language Modelscited by 3
- 2023MTCue: Learning Zero-Shot Control of Extra-Textual Attributes by Leveraging Unstructured Context in Neural Machine Translationcited by 2
- 2024An Efficient Self-Learning Framework For Interactive Spoken Dialog Systemscited by 0
- 2025LIME: Making LLM Data More Efficient with Linguistic Metadata Embeddingscited by 0
- 2025LIME: Making LLM Data More Efficient with Linguistic Metadata Embeddings8 Dec 2025
- 2024An Efficient Self-Learning Framework For Interactive Spoken Dialog Systems16 Sep 2024
- 2023MTCue: Learning Zero-Shot Control of Extra-Textual Attributes by Leveraging Unstructured Context in Neural Machine Translation25 May 2023
- 2023Reference-less Analysis of Context Specificity in Translation with Personalised Language Models29 Mar 2023
- 2023Using External Off-Policy Speech-To-Text Mappings in Contextual End-To-End Automated Speech Recognition6 Jan 2023