English

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

Computation and Language 2025-05-21 v2

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 sampling training data from different domains with static proportions, as well as adjusting data proportions during training. However, few methods have addressed the complexities of domain-adaptive continual pre-training. To fill this gap, we propose Velocitune, a novel framework dynamically assesses learning velocity and adjusts data proportions accordingly, favoring slower-learning domains while shunning faster-learning ones, which is guided by a scaling law to indicate the desired learning goal for each domain with less associated cost. To evaluate the effectiveness of Velocitune, we conduct experiments in a reasoning-focused dataset with CodeLlama, as well as in a corpus specialised for system command generation with 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 Velocitune's effectiveness include target loss prediction and data ordering.

Keywords

Cite

@article{arxiv.2411.14318,
  title  = {Velocitune: A Velocity-based Dynamic Domain Reweighting Method for Continual Pre-training},
  author = {Zheheng Luo and Xin Zhang and Xiao Liu and Haoling Li and Yeyun Gong and Chen Qi and Peng Cheng},
  journal= {arXiv preprint arXiv:2411.14318},
  year   = {2025}
}

Comments

Accepted to ACL 2025

R2 v1 2026-06-28T20:08:03.784Z