Beyond Fixed Length: Bucket Pre-training is All You Need
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 8331-8338.
https://doi.org/10.24963/ijcai.2025/926
Keywords
- Natural Language Processing: NLP: Language models
- Data Mining: DM: Big data and scalability
- Data Mining: DM: Mining text, web, social media
- Natural Language Processing: NLP: Language generation
Abstract
Large Language Models (LLMs) have demonstrated exceptional performance across various tasks, with pre-training stage serving as the cornerstone of their capabilities. However, the conventional fixed-length data composition strategy for pre-training presents several practical challenges. When using shorter sequences, documents are often truncated, potentially leading to information loss and affecting the model's ability to capture long-range dependencies. Conversely, longer sequences require concatenation of multiple documents, which can introduce noise and affect the natural document boundaries and semantic coherence as well as require substantial computational overhead. To address these challenges, we first establish three quantitative metrics for evaluating data composition quality: padding ratio, truncation ratio, and concatenation ratio. Building upon these metrics, we propose a novel multi-bucket data composition method that transcends the fixed-length paradigm. Our approach adaptively organizes training data to achieve optimal composition quality as measured by the proposed metrics, offering a more flexible and efficient approach for pre-training. We conduct extensive experiments and the results demonstrate that our proposed method significantly enhances both the efficiency and effectiveness of LLM pre-training. Our proposed method has been adopted in the Du Xiaoman–XuanYuan series of financial large language models at https://github.com/Duxiaoman-DI/XuanYuan.
@inproceedings{ijcai2025p926,
title = {Beyond Fixed Length: Bucket Pre-training is All You Need},
author = {Yang, Qing and Peng, Qiyao and Liu, Hongtao and Liu, Kai and Qin, Bing and Liu, Ting},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {8331--8338},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/926},
url = {https://doi.org/10.24963/ijcai.2025/926},
}
TY - CPAPER TI - Beyond Fixed Length: Bucket Pre-training is All You Need AU - Yang, Qing AU - Peng, Qiyao AU - Liu, Hongtao AU - Liu, Kai AU - Qin, Bing AU - Liu, Ting T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 8331 EP - 8338 DO - 10.24963/ijcai.2025/926 UR - https://doi.org/10.24963/ijcai.2025/926 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: