arXiv · 2504.00695
ToReMi: Topic-Aware Data Reweighting for Dynamic Pre-Training Data Selection
Abstract
Pre-training large language models (LLMs) necessitates enormous diverse textual corpora, making effective data selection a key challenge for balancing computational resources and model performance. Current methodologies primarily emphasize data quality metrics and mixing proportions, yet they fail to adequately capture the underlying semantic connections between training samples and quality disparities within individual domains. We introduce ToReMi (Topic-based Reweighting for Model improvement), a novel two-stage framework that dynamically adjusts training sample weights according to their topical associations and observed learning patterns. Our comprehensive experiments reveal that ToReMi variants consistently achieve superior performance over conventional pre-training approaches, demonstrating accelerated perplexity reduction across multiple domains and enhanced capabilities on downstream evaluation tasks. Code is available at https://github.com/zxx000728/ToReMi.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Xiaoxuan Zhu, Zhouhong Gu, Baiqian Wu, Suhang Zheng, Tao Wang, Tianyu Li, Hongwei Feng, Yanghua Xiao. 2025-04-01. ToReMi: Topic-Aware Data Reweighting for Dynamic Pre-Training Data Selection. https://arxiv.org/abs/2504.00695
Cite the original work for its findings. Save a collection to share your selection of sources.