Introduction
TeleChat is a family of open-source large language models (LLMs) developed by China Telecom, comprising 3B, 7B, and 12B parameter variants. These models are specifically optimized for bilingual proficiency in Chinese and English. While the open-source ecosystem is rich with models like LLaMA and Mistral, many Chinese-centric models remain opaque regarding their instruction fine-tuning (SFT) processes. TeleChat addresses this by providing a transparent "recipe" for its SFT and long-context extension, alongside the release of a massive 1TB high-quality training corpus.
Model Architecture
TeleChat utilizes a standard decoder-only Transformer architecture, incorporating several modern refinements to enhance stability and performance. Key architectural choices include Rotary Position Embedding (RoPE) for superior compatibility with Flash Attention v2, RMSNorm for training stability, and SwiGLU activation functions.
To maintain accuracy during long-context extrapolation, the authors found it necessary to use float32 specifically for the inverse frequency matrix in RoPE, even while using bfloat16 for general training.
Data Composition and Training
The models were pre-trained on trillions of tokens, with a distribution designed to balance general knowledge, linguistic proficiency, and logical reasoning. The corpus released to the community includes 1TB of high-quality textual data.
The dataset is composed of 45% Chinese and 35% English content to ensure strong bilingual capabilities. Additionally, 11% Code and 9% Math data were included to bolster technical proficiency and logical reasoning. For fine-tuning, the team utilized over 100,000 human-annotated SFT samples across 100+ categories, followed by alignment using Proximal Policy Optimization (PPO) on a reward dataset covering 300 categories.
Technical Innovations
Long-Context Extension
TeleChat extends the standard 4k token context window to a massive 96k tokens. This is achieved through a Multi-stage Long-context Training approach combined with Dynamic NTK-aware interpolation, allowing the model to scale its positional understanding without losing high-frequency information.
NEFTune (Noisy Embedding Fine-Tuning)
During SFT, the authors experimented with adding random noise to input embeddings. They discovered that NEFTune provides a significant win-rate boost (up to 55%) when training on smaller datasets. However, this benefit diminishes as the SFT data scales to millions of samples, suggesting it is most effective as a regularizer for data-constrained scenarios.
Knowledge Graph Integration
To mitigate hallucinations, TeleChat employs a retrieval-augmented pipeline. The model queries a Knowledge Graph (KG) via n-gram similarity and random walks to retrieve "convinced facts" before generation. This grounding improved accuracy on factual Q&A tasks (CCKS 2020) from 0.19 to 0.69, demonstrating that structured external data is vital for factuality.
Performance Evaluation
TeleChat-7B-chat demonstrates superior performance compared to other models in the 6B-7B parameter range:
- Chinese Benchmarks: On C-Eval (63.1) and CMMLU (64.3), it outperformed LLaMA2-7B and Baichuan2-7B.
- Examination Performance: It achieved strong results on AGIEval (46.8) and GAOKAO-Bench (57.7), testing human-level standardized test handling.
- Context Extrapolation: The model maintained low perplexity up to 96k tokens, whereas baseline models often see perplexity explosion after 4k tokens.
Conclusion and Future Work
While TeleChat-7B is highly competitive, it faces a "parameter bottleneck" in complex reasoning tasks like GSM8K (Math) and HumanEval (Coding) compared to larger 13B+ models. Future work will focus on further refining hallucination mitigation and exploring more efficient ultra-long sequence handling to reduce linear memory costs.
Summary updated