Lune

ICML2025Top-tier venue

Metadata Conditioning Accelerates Language Model Pre-training

Tianyu Gao, Alexander Wettig, Luxi He, Yihe Dong, Sadhika Malladi, Danqi Chen

Abstract

The vast diversity of styles, domains, and quality levels present in language model pre-training corpora is essential in developing general model capabilities, but efficiently learning and deploying the correct behaviors exemplified in each of these heterogeneous data sources is challenging. To address this, we propose a new method, termed Metadata Conditioning then Cooldown (MeCo), to incorporate additional learning cues during pretraining. MeCo first provides metadata (e.g., URLs like en.wikipedia.org) alongside the text during training and later uses a cooldown phase with only the standard text, thereby enabling the model to function normally even without metadata. MeCo significantly accelerates pre-training across different model scales (600M to 8B parameters) and training sources (C4, RefinedWeb, and DCLM). For instance, a 1.6B language model trained with MeCo matches the downstream task performance of standard pretraining while using 33% less data. Additionally, MeCo enables us to steer language models by conditioning the inference prompt on either real or fabricated metadata that encodes the desired properties of the output: for example, prepending wikipedia.org to reduce harmful generations or factquizmaster.com (fabricated) to improve common knowledge task performance. We also demonstrate that MeCo is compatible with different types of metadata, such as model-generated topics. MeCo is remarkably simple, adds no computational overhead, and demonstrates promise in producing more capable and steerable language models. 1

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.

16 top-tier papers have 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

  • PIQA: Reasoning about Physical Commonsense in Natural Language cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
  • Measuring Massive Multitask Language Understanding cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • Measuring Massive Multitask Language Understanding cites Language Models are Few-Shot Learners
  • Treasure Hunt: Real-time Targeting of the Long Tail using Training-Time Markers cites Language Models are Few-Shot Learners
  • JENGA: Enhancing LLM Long-Context Fine-tuning with Contextual Token Sparsity cites Language Models are Few-Shot Learners
  • TruthfulQA: Measuring How Models Mimic Human Falsehoods cites Measuring Massive Multitask Language Understanding
  • Precise Information Control in Long-Form Text Generation cites Measuring Massive Multitask Language Understanding
  • PiKE: Adaptive Data Mixing for Large-Scale Multi-Task Learning Under Low Gradient Conflicts cites Language Models are Few-Shot Learners
  • Language Models are Few-Shot Learners cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. Precise Information Control in Long-Form Text GenerationJacqueline He, Howard Yen, Margaret Li, Shuyue Stella Li et al.NeurIPS 2025 · 8 citations
  2. PiKE: Adaptive Data Mixing for Large-Scale Multi-Task Learning Under Low Gradient ConflictsZeman Li, Yuan Deng, Peilin Zhong, Meisam Razaviyayn et al.NeurIPS 2025 · 8 citations
  3. JENGA: Enhancing LLM Long-Context Fine-tuning with Contextual Token SparsityTuowei Wang, Xingyu Chen, Kun Li, Ting Cao et al.USENIX ATC 2025 · 7 citations
  4. Treasure Hunt: Real-time Targeting of the Long Tail using Training-Time MarkersDaniel D'souza, Julia Kreutzer, Adrien Morisot, Ahmet Üstün et al.NeurIPS 2025 · 3 citations
  5. Improving Attributed Long-form Question Answering with Intent AwarenessXinran Zhao, Aakanksha Naik, Jay DeYoung, Joseph Chee Chang et al.ICLR 2026 · 3 citations

Builds on26

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  3. TruthfulQA: Measuring How Models Mimic Human FalsehoodsStephanie Lin, Jacob Hilton, Owain EvansACL 2022 · 3,228 citations
  4. WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 citations
  5. PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao et al.AAAI 2020 · 2,916 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. KoCo: Conditioning Language Model Pre-training on Knowledge CoordinatesYudong Li, Jiawei Cai, Linlin ShenACL 2026
  4. CUE Vectors: Modular Training of Language Models Conditioned on Diverse Contextual SignalsScott Novotney, Sreeparna Mukherjee, Zeeshan Ahmed, Andreas StolckeACL Findings 2022 · 2 citations
  5. Learned Meta-Tokens for Language ModelingAlok N. Shah, Khush Gupta, Keshav Ramji, Pratik ChaudhariICLR 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines