ChuXin: 1.6B Technical Report

Xiaomin Zhuang, Yufan Jiang, Qiaozhi He, Zhihua WuarXiv 2024

Abstract: In this report, we present ChuXin, an entirely open-source language model with a size of 1.6 billion parameters. Unlike the majority of works that only open-sourced the model weights and architecture, we have made everything needed to train a model available, including the training data, the training process, and the evaluation code. Our goal is to empower and strengthen the open research community, fostering transparency and enabling a new wave of innovation in the field of language modeling. Furthermore, we extend the context length to 1M tokens through lightweight continual pretraining and demonstrate strong needle-in-a-haystack retrieval performance. The weights for both models are available at Hugging Face to download and use.

Introduction

The current "open-source" AI landscape is often less transparent than it appears. While many projects release model weights (open-weights), the specific "recipe"—including exact data mixtures, sampling ratios, training logs, and intermediate checkpoints—remains proprietary. This lack of transparency hinders the research community's ability to understand model biases, replicate results, or innovate on training processes.

ChuXin 1.6B addresses this gap by prioritizing "true" open-source transparency. Despite its relatively small parameter count, it achieves competitive performance on standard benchmarks and pushes the boundaries of long-context retrieval for small models, successfully extending its context window to a massive 1 million tokens.

Model Architecture and Training

ChuXin adopts the LLaMA2 architecture as its backbone with several specific modifications designed for efficiency and performance:

  • Tokenizer: The model utilizes the DeepSeek LLM tokenizer with a 102,400 vocabulary size. This tokenizer is optimized for multilingual support and handles numbers by splitting them into individual digits, which has been shown to improve mathematical reasoning.
  • Attention Masking: To improve training efficiency when packing multiple sequences into a single batch, the team implemented a block-diagonal attention mask. This prevents cross-attention between unrelated documents within the same batch.
  • Training Dynamics: Training was conducted using BFloat16 mixed precision and FlashAttention-2. A critical "cool down" phase was employed at the end of training, where the learning rate was decayed to zero. This phase, combined with resetting the attention mask at end-of-sequence (EOS) tokens, improved the model's average performance on the Open LLM Leaderboard by nearly 1.5 points.

Data Mixture

ChuXin was pre-trained on a massive 2.3 trillion tokens. The data mixture was carefully curated to balance general knowledge, reasoning, and multilingual capabilities. The transparency of this mixture is a core contribution of the project, allowing researchers to see the exact weights assigned to different sources.

Table 1: Pre-training data sources and weights for ChuXin 1.6B.

The mixture includes English web and academic data (RefinedWeb, SlimPajama, Arxiv, PubMed), code (StarCoderData), and a significant 11% portion of Chinese data (580B tokens) to ensure strong performance in Chinese contexts. Additionally, a small 3% "Instruct" portion was mixed in to enhance downstream task performance.

Long Context Extension

One of the most notable features of ChuXin is its ability to handle a 1 million token context window. This was achieved through a lightweight continual pre-training phase using the Adjusted Base Frequency (ABF) technique and a curriculum learning approach. The team progressively increased the context window from 4,000 tokens to 1 million by training on upsampled long-sequence data and synthesized long-form documents.

Key Results and Insights

ChuXin 1.6B demonstrates that context length is more a function of training strategy—specifically curriculum learning and positional encoding adjustments—than raw parameter count. In "Needle In A Haystack" tests, the model maintains high accuracy in retrieving specific information buried within 1 million tokens, a feat usually reserved for much larger proprietary models.

Figure 1: Needle-in-a-haystack retrieval performance across context lengths up to 1M tokens.

On general benchmarks, ChuXin 1.6B outperforms other fully open-source models like TinyLlama 1.1B and OLMo 1B across common-sense reasoning tasks (ARC, HellaSwag, Piqa). On the Open LLM Leaderboard, it achieved an average score of 43.45, placing it in close competition with Gemma 2B (45.3) and StableLM 2 1.6B (45.28). It also ranks second among models of its scale in Chinese evaluation (C-Eval and CMMLU), trailing only Qwen 1.5.

Conclusion and Future Work

While ChuXin is highly competitive, a performance gap remains compared to models like Qwen 1.5, likely due to the latter's use of high-quality proprietary data. As a 1.6B parameter model, it also faces inherent limitations in complex reasoning compared to 7B+ parameter models.

The ChuXin team plans to release larger model versions, develop instruction-tuned (Chat) versions, and incorporate multi-modal capabilities. By releasing the data sampling ratios and intermediate checkpoints, ChuXin provides a "white box" for researchers to study how specific data types influence model behavior over time, fostering a more collaborative and transparent AI research environment.

Summary updated

BibTeX
@misc{zhuang2024chuxin,
  author = {Xiaomin Zhuang and Yufan Jiang and Qiaozhi He and Zhihua Wu},
  title = {{ChuXin: 1.6B Technical Report}},
  year = {2024},
  eprint = {2405.04828},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.04828},
}
Figure