BaichuanSEED: Sharing the Potential of ExtensivE Data Collection and Deduplication by Introducing a Competitive Large Language Model Baseline

Guosheng Dong1*, Da Pan1, Yiding Sun1,2, Shusen Zhang1, Zheng Liang1, Xin Wu1, Yanjun Shen1, Fan Yang1, Haoze Sun1, Tianpeng Li1, Mingan Lin1, Jianhua Xu1, Yufan Zhang1, Xiaonan Nie1, Lei Su1, Bingning Wang1, Wentao Zhang3, Jiaxin Mao2, Zenan Zhou1*, Weipeng Chen1
Baichuan Inc.1
Gaoling School of Artificial Intelligence, Renmin University of China2
Peking University3

*Corresponding Authors, {dongguosheng, zhouzenan} @baichuan-inc.com

Abstract

The general capabilities of Large Language Models (LLM) highly rely on the composition and selection on extensive pretraining datasets, treated as commercial secrets by several institutions. To mitigate this issue, we open-source the details of a universally applicable data processing pipeline and validate its effectiveness and potential by introducing a competitive LLM baseline. Specifically, the data processing pipeline consists of broad collection to scale up and reweighting to improve quality. We then pretrain a 7B model BaichuanSEED with 3T tokens processed by our pipeline without any deliberate downstream task-related optimization, followed by an easy but effective supervised fine-tuning stage. The model demonstrates consistency and predictability throughout training. BaichuanSEED achieves comparable performance on comprehensive benchmarks with several commercial advanced large language models, such as Qwen1.5 and Llama3. We also conduct several heuristic experiments to discuss the potential for further optimization on downstream tasks, such as mathematics and coding.

Universal Data Processing Pipeline

  • Broad Collection: broad collection from trusted sources, mainly including web pages, high knowledge density data, code.
  • Reweighting: deduplication and mixture (The details can be found in our technical report)
    • Deduplication
      • Document-level deduplication globally
      • Sentence-level deduplication across documents
      • PII and harmful content filtering
    • Mixture
      • Heauristic mixture experiments

Performance

BaichuanSEED achieves comparable performance with cutting-edge commercial LLMs (Qwen1.5-7B and Llama3-8B), and better performance over existing fully transparent LLMs (OLMO-7B and MAP-Neo-7B).

Comprehensive Benchmarks

Training Tokens MMLU (5-shot) CMMLU (5-shot) AGIEval (0-shot) C-Eval (5-shot) MMLU-Pro (5-shot) LiveBench (0-shot)
Baichuan2-7B 2.6T 54.65 56.95 28.95 56.19 21.65 -
Baichuan2-13B 2.6T 59.83 61.32 24.07 58.10 26.59 -
Qwen1.5-7B 3T 62.19 71.84 39.46 73.64 30.30 -
Llama3-8B 15T 66.57 50.68 26.74 49.89 35.30 -
OLMo-7B 2.5T 28.40 25.55 19.89 27.27 13.05 -
MAP-Neo-7B 4.5T 58.18 55.06 33.87 57.50 26.89 -
BaichuanSEED 3T 60.25 62.09 31.07 61.58 26.57 -
Baichuan2-7B-Chat 2.6T 54.35 55.36 35.29 55.09 25.11 12.89
Baichuan2-13B-Chat 2.6T 57.28 61.32 30.15 58.04 28.03 13.04
Qwen1.5-7B-Chat 3T 61.49 68.02 39.29 68.96 16.29 16.78
Llama3-8B-Instruct 15T 67.10 51.66 38.37 50.71 41.88 25.91
OLMo-7B-SFT 2.5T 47.49 35.49 29.12 35.43 17.99 8.80
MAP-Neo-7B-SFT 4.5T 58.31 55.24 37.98 55.58 30.24 14.35
BaichuanSEED-SFT 3T 60.15 60.84 32.62 59.41 29.63 18.32


BaichuanSEED-SFT achieves the second best in code (MBPP and HumanEval), best in HellaSwag among all baselines, will underperforms in mathsmatics (MATH and GSM8K). To emphasis, we deliberately exclude downstream-task optimization to make BaichuanSEED "completely pure", such as upsamling on math and code, annealing trianing or introducing synthetic data. We discuss the potential of our model in the Discussion section of our paper.

Downstream Tasks

Training Tokens MBPP (3-shot) HumanEval (0-shot) MATH (4-shot) GSM8K (4-shot) TriviaQA (0-shot) HellaSwag (0-shot)
Baichuan2-7B 2.6T 25.40 17.68 5.94 25.02 53.73 67.56
Baichuan2-13B 2.6T 30.88 17.07 10.68 52.08 58.73 71.09
Qwen1.5-7B 3T 36.60 53.05 21.08 54.74 50.92 72.64
Llama3-8B 15T 44.60 26.22 13.44 50.11 65.23 74.54
OLMo-7B 2.5T 21.00 11.59 1.72 2.00 49.81 70.31
MAP-Neo-7B 4.5T 25.90 7.93 15.14 53.90 54.80 67.85
BaichuanSEED 3T 34.12 21.34 9.84 38.81 45.92 70.20
Baichuan2-7B-Chat 2.6T 22.40 15.24 8.70 32.37 44.65 69.18
Baichuan2-13B-Chat 2.6T 26.30 18.90 8.62 56.79 53.47 72.32
Qwen1.5-7B-Chat 3T 12.58 29.27 13.12 56.10 10.22 72.81
Llama3-8B-Instruct 15T 52.17 21.34 25.62 78.17 63.37 71.45
OLMo-7B-SFT 2.5T 25.16 19.51 2.52 17.66 42.87 72.62
MAP-Neo-7B-SFT 4.5T 33.66 29.27 30.86 70.28 53.82 68.48
BaichuanSEED-SFT 3T 37.60 23.17 14.06 53.98 43.92 73.03

BibTeX

@misc{dong2024baichuanseedsharingpotentialextensive,
      title={BaichuanSEED: Sharing the Potential of ExtensivE Data Collection and Deduplication by Introducing a Competitive Large Language Model Baseline}, 
      author={Guosheng Dong and Da Pan and Yiding Sun and Shusen Zhang and Zheng Liang and Xin Wu and Yanjun Shen and Fan Yang and Haoze Sun and Tianpeng Li and Mingan Lin and Jianhua Xu and Yufan Zhang and Xiaonan Nie and Lei Su and Bingning Wang and Wentao Zhang and Jiaxin Mao and Zenan Zhou and Weipeng Chen},
      year={2024},
      eprint={2408.15079},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2408.15079}, 
}