Lune

ACL Findings2022

CUE Vectors: Modular Training of Language Models Conditioned on Diverse Contextual Signals

Scott Novotney, Sreeparna Mukherjee, Zeeshan Ahmed, Andreas Stolcke

Abstract

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 withinsentence 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 sentenceexternal 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. An Efficient Self-Learning Framework For Interactive Spoken Dialog SystemsHitesh Tulsiani, David M. Chan, Shalini Ghosh, Garima Lalwani et al.ICML 2024

Builds on2

  1. Improving Context-Aware Neural Machine Translation Using Self-Attentive Sentence EmbeddingHyeongu Yun, Yongkeun Hwang, Kyomin JungAAAI 2020 · 21 citations
  2. Attention-based Contextual Language Model Adaptation for Speech RecognitionRichard Diehl Martinez, Scott Novotney, Ivan Bulyko, Ariya Rastrow et al.ACL Findings 2021 · 4 citations

Related papers

  1. URLs Help, Topics Guide: Understanding Metadata Utility in LLM TrainingDongyang Fan, Vinko Sabolcec, Martin JaggiNeurIPS 2025 · 2 citations
  2. Beyond URLs: Metadata Diversity and Position for Efficient LLM PretrainingDongyang Fan, Diba Hashemi, Sai Praneeth Karimireddy, Martin JaggiICLR 2026 · 1 citation
  3. Metadata Conditioning Accelerates Language Model Pre-trainingTianyu Gao, Alexander Wettig, Luxi He, Yihe Dong et al.ICML 2025
  4. MTCue: Learning Zero-Shot Control of Extra-Textual Attributes by Leveraging Unstructured Context in Neural Machine TranslationSebastian T. Vincent, Robert Flynn, Carolina ScartonACL Findings 2023 · 3 citations
  5. Improving Neural Machine Translation by Multi-Knowledge Integration with PromptingKe Wang, Jun Xie, Yuqi Zhang, Yu ZhaoEMNLP Findings 2023 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines