NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Qwen Technical Report

Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, Binyuan Hui, Luo Ji, Mei Li, Junyang Lin, Runji Lin, Dayiheng Liu, Gao Liu, Chengqiang Lu, Keming Lu, Jianxin Ma, Rui Men, Xingzhang Ren, Xuancheng Ren, Chuanqi Tan, Sinan Tan, Jianhong Tu, Peng Wang, Shijie Wang, Wei Wang, Shengguang Wu, Benfeng Xu, Jin Xu, An Yang, Hao Yang, Jian Yang, Shusheng Yang, Yang Yao, Bowen Yu, Hongyi Yuan, Zheng Yuan, Jianwei Zhang, Xingxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou, Tianhang ZhuarXiv 2023 · DOI

Abstract

The Qwen Technical Report introduces a new series of large language models (LLMs) developed by Alibaba Group, ranging from 1.8 billion to 14 billion parameters. These models are designed to bridge the performance gap between open-source and proprietary models, consistently outperforming larger counterparts like LLaMA 2 on key benchmarks. Qwen demonstrates exceptional proficiency in Chinese language tasks, mathematics, and coding, while also exhibiting advanced agentic capabilities such as tool-use and multi-step planning.

Introduction

Despite the rapid growth of the open-source LLM ecosystem, a significant disparity persists between accessible models and state-of-the-art proprietary systems like GPT-4. Most open-source models struggle with multilingual proficiency (often favoring English), complex reasoning in specialized domains like mathematics and programming, and "agentic" behavior—the ability to interact with external tools and execute code. The Qwen series aims to provide a high-performance, reproducible foundation to address these limitations.

Methodology and Architecture

The Qwen models are built upon a Transformer-based autoregressive architecture with several key refinements to enhance stability and performance:

  • Architectural Enhancements: Qwen utilizes untied embeddings to improve performance and Rotary Positional Embedding (RoPE) with FP32 precision for better stability. Additionally, biases are added to the QKV layers to improve extrapolation.
  • Tokenization: A large vocabulary of approximately 152K tokens (based on tiktoken) ensures high compression rates across multiple languages, increasing efficiency during training and inference.
  • Context Management: To handle long sequences, Qwen employs NTK-aware interpolation, LogN-Scaling, and Window Attention, allowing the models to extend context windows during inference without significant performance loss.
  • Alignment Strategy: The models undergo Supervised Finetuning (SFT) followed by Reinforcement Learning from Human Feedback (RLHF) using Proximal Policy Optimization (PPO). The use of the ChatML format helps the model distinguish between system, user, and assistant roles.
The Qwen model family, illustrating the progression from pretraining to specialized SFT and RLHF models.

Evaluation and Results

Qwen was evaluated against a comprehensive suite of benchmarks, including MMLU (general knowledge), C-Eval (Chinese knowledge), GSM8K/MATH (mathematics), and HumanEval/MBPP (coding).

A primary takeaway from the report is the "efficiency in size." The performance of Qwen-14B relative to much larger models like LLaMA 2-70B suggests that data quality and tokenization efficiency are more critical than raw parameter count. For instance, Qwen-14B achieved a score of 66.3 on MMLU and 72.1 on C-Eval, leading its size class. In coding, CODE-QWEN-14B-CHAT reached 66.4% on HumanEval (pass@1), rivaling specialized models like Code Llama.

Radar chart comparing Qwen-14B performance against GPT-4, GPT-3.5, and previous 13B SOTA models across various benchmarks.

Key Insights

The success of specialized variants like CODE-QWEN and MATH-QWEN demonstrates that targeted pretraining can significantly boost a generalist model's logic and domain expertise. Furthermore, Qwen's native support for tool-use and a Python Code Interpreter positions it as a strong candidate for building complex AI agents. Unlike many reports that treat tool-use as an afterthought, Qwen is designed from the ground up to handle external APIs and multi-step planning tasks.

Limitations and Future Work

While Qwen represents a significant advancement, it still trails proprietary models like GPT-4 in complex reasoning and nuanced human alignment. The authors also highlight the ongoing challenges of safety, bias, and hallucination. Future work will involve scaling the models beyond the 14B parameter count to further explore the limits of performance and refinement of alignment techniques.

Summary updated

BibTeX
@misc{bai2023qwen,
  author = {Jinze Bai and Shuai Bai and Yunfei Chu and Zeyu Cui and Kai Dang and Xiaodong Deng and Yang Fan and Wenbin Ge and Yu Han and Fei Huang and Binyuan Hui and Luo Ji and Mei Li and Junyang Lin and Runji Lin and Dayiheng Liu and Gao Liu and Chengqiang Lu and Keming Lu and Jianxin Ma and Rui Men and Xingzhang Ren and Xuancheng Ren and Chuanqi Tan and Sinan Tan and Jianhong Tu and Peng Wang and Shijie Wang and Wei Wang and Shengguang Wu and Benfeng Xu and Jin Xu and An Yang and Hao Yang and Jian Yang and Shusheng Yang and Yang Yao and Bowen Yu and Hongyi Yuan and Zheng Yuan and Jianwei Zhang and Xingxuan Zhang and Yichang Zhang and Zhenru Zhang and Chang Zhou and Jingren Zhou and Xiaohuan Zhou and Tianhang Zhu},
  title = {{Qwen Technical Report}},
  year = {2023},
  eprint = {2309.16609},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.16609},
}
Figure