Lune

ACL2025Top-tier venue

Velocitune: A Velocity-based Dynamic Domain Reweighting Method for Continual Pre-training

Zheheng Luo, Xin Zhang, Xiao Liu, Haoling Li, Yeyun Gong, Qi Chen, Peng Cheng

Abstract

It is well-known that a diverse corpus is critical for training large language models, which are typically constructed from a mixture of various domains. In general, previous efforts resort to either sampling training data from different domains with static proportions or dynamically adjusting these proportions during training to optimise pretraining performance. However, few methods addressed the complexity of domain-adaptive continual pre-training. To fill this gap, we propose Velocitune, a novel framework that dynamically assesses learning velocity and adjusts data proportions accordingly, favouring slower learning domains while de-emphasising faster learning ones, which is guided by a scaling law to estimate the desired learning goal for each domain with a less associated cost. To evaluate the effectiveness of Velocitune, we conduct experiments on a dataset focused on reasoning tasks with CodeLlama, as well as on a corpus of system commands using Llama3 and Mistral. Velocitune achieves performance gains in both math and code reasoning tasks and command-line generation benchmarks. Further analysis reveals that key factors driving the effectiveness of Velocitune include target estimation and data ordering.

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.

7 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

  • Enhancing Large Language Model Performance with Gradient-Based Parameter Selection cites Measuring Massive Multitask Language Understanding
  • DIDS: Domain Impact-aware Data Sampling for Large Language Model Training cites Measuring Massive Multitask Language Understanding
  • DIDS: Domain Impact-aware Data Sampling for Large Language Model Training cites Solving Quantitative Reasoning Problems with Language Models
  • DIDS: Domain Impact-aware Data Sampling for Large Language Model Training cites DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining
  • RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic Sampling cites DIDS: Domain Impact-aware Data Sampling for Large Language Model Training
  • RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic Sampling cites DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining
  • Solving Quantitative Reasoning Problems with Language Models cites Measuring Massive Multitask Language Understanding
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites Measuring Massive Multitask Language Understanding
  • Data Mixing Agent: Learning to Re-weight Domains for Continual Pre-training cites Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning
  • Data Mixing Agent: Learning to Re-weight Domains for Continual Pre-training cites DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic SamplingYang Liu, Jiaqi Li, Zilong ZhengICLR 2026 · 8 citations
  2. Data Mixing Agent: Learning to Re-weight Domains for Continual Pre-trainingKailai Yang, Xiao Liu, Lei Ji, Hao Li et al.ACL 2026 · 3 citations
  3. DIDS: Domain Impact-aware Data Sampling for Large Language Model TrainingWeijie Shi, Jipeng Zhang, Yaguang Wu, Jingzhi Fang et al.EMNLP 2025 · 1 citation
  4. Enhancing Large Language Model Performance with Gradient-Based Parameter SelectionHaoling Li, Xin Zhang, Xiao Liu, Yeyun Gong et al.AAAI 2025
  5. HanjaBridge: Resolving Semantic Ambiguity in Korean LLMs via Hanja-Augmented Pre-TrainingSeungho Choi, Sihyun Park, Minsang Kim, Chansol Park et al.AAAI 2026

Builds on9

  1. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  2. Solving Quantitative Reasoning Problems with Language ModelsAitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer et al.NeurIPS 2022 · 2,039 citations
  3. GLaM: Efficient Scaling of Language Models with Mixture-of-ExpertsNan Du, Yanping Huang, Andrew M. Dai, Simon Tong et al.ICML 2022 · 1,173 citations
  4. DoReMi: Optimizing Data Mixtures Speeds Up Language Model PretrainingSang Michael Xie, Hieu Pham, Xuanyi Dong, Nan Du et al.NeurIPS 2023 · 457 citations
  5. Sheared LLaMA: Accelerating Language Model Pre-training via Structured PruningMengzhou Xia, Tianyu Gao, Zhiyuan Zeng, Danqi ChenICLR 2024 · 453 citations

Related papers

  1. D-CPT Law: Domain-specific Continual Pre-Training Scaling Law for Large Language ModelsHaoran Que, Jiaheng Liu, Ge Zhang, Chenchen Zhang et al.NeurIPS 2024 · 47 citations
  2. Programming Every Example: Lifting Pre-training Data Quality Like Experts at ScaleFan Zhou, Zengzhi Wang, Qian Liu, Junlong Li et al.ICML 2025
  3. Efficient Domain Continual pretraining by Mitigating the Stability GapYiduo Guo, Jie Fu, Huishuai Zhang, Dongyan ZhaoACL 2025
  4. Diversity as a Reward: Fine-Tuning LLMs on a Mixture of Domain-Undetermined DataZhenqing Ling, Daoyuan Chen, Liuyi Yao, Qianli Shen et al.NeurIPS 2025 · 14 citations
  5. DRPruning: Efficient Large Language Model Pruning through Distributionally Robust OptimizationHexuan Deng, Wenxiang Jiao, Xuebo Liu, Jing Li et al.ACL 2025
Dusk over the sea between two cliffs drawn in fine vertical lines