Paper commentary
Qwen3 Technical Report
Qwen3 unifies thinking and fast chat modes in one model family
- Problem Reasoning models and chat-optimized models are usually separate products, so users must switch models and pay for two systems. Fixed reasoning depth also wastes time on easy queries and starves hard ones.
- Method Qwen3 puts thinking and non-thinking behavior in one set of weights, and a mode flag or chat template picks which runs. A thinking budget caps reasoning compute per request, trading latency against performance.
- Results Qwen3-235B-A22B in thinking mode outperforms DeepSeek-R1 on 17 of 23 benchmarks, using only 60% of the activated parameters.
Why one model for both reasoning and chat
Reasoning-focused models and chat-optimized models are usually separate products, so a user who needs both has to switch models. A deployment that handles quick questions and hard reasoning tasks therefore runs two systems and pays for both.
The authors take a different route: both behaviors live in one set of weights, and a mode flag or chat template picks which one runs. They also add a thinking budget, which caps how much reasoning compute a request may use and so trades latency against performance. This matters because a fixed reasoning depth wastes time on easy queries and leaves hard ones short of room.
Dense and MoE architectures
The dense Qwen3 models keep most of the Qwen2.5 recipe: grouped query attention, SwiGLU, rotary positional embeddings and RMSNorm with pre-normalization. The authors drop the QKV bias that Qwen2 used and add QK-Norm inside attention, which they say keeps training stable. Table 1 lists six dense sizes from Qwen3-0.6B to Qwen3-32B, with layer counts, head layouts and whether the embedding is tied.
The MoE models share the dense design but use 128 experts, with 8 activated per token. Unlike Qwen2.5-MoE, they drop shared experts, and they train with a global-batch load balancing loss to encourage expert specialization. Both MoE models are listed in Table 2, and the tokenizer uses a vocabulary of 151,669 entries.
Pre-training data and staged training
The corpus holds about 36 trillion tokens across 119 languages and dialects. The authors say they collected about twice the tokens of Qwen2.5 and covered three times as many languages. Compared with Qwen2.5, the supported language count rose from 29 to 119.
A Qwen2.5-VL model recognizes text in PDF-like documents, and Qwen2.5 then refines that text, adding trillions of tokens. Qwen2.5, Qwen2.5-Math and Qwen2.5-Coder generate synthetic textbooks, question-answer pairs, instructions and code snippets. The authors also annotate over 30 trillion tokens for educational value, domain and safety, so filtering can work at a finer grain than whole sources.
Pre-training runs in three stages, and the first uses about 30 trillion tokens to build general knowledge. The third stage raises the context length from 4,096 to 32,768 tokens by training on long-context data.
Four-stage post-training for both modes
The flagship post-training pipeline has four stages, and the first two build thinking before the last two add non-thinking behavior. The cold start starts from math, code, logic and STEM problems that have verified answers or test cases.
Qwen2.5-72B-Instruct first removes queries that are hard to verify and queries it already answers without chain-of-thought. QwQ-32B then generates N candidate responses per query, and a stricter filter drops wrong, repetitive or guessed answers. The authors keep the cold-start training short so that the model's room to improve in RL is not used up early.
Reasoning RL applies GRPO to 3,995 query-verifier pairs that were not used in the cold start and are still learnable. For the flagship model, AIME’24 rose from 70.1 to 85.1 over 170 RL training steps. Thinking Mode Fusion then merges thinking and non-thinking data, using chat-template flags such as /think and /no think to tell the two apart.
General RL closes the process with broad instruction-following and agent training in both modes.
Distilling small models from large teachers
Rather than running the four stages for every small model, the authors distill output logits from larger teacher models into lightweight students. Both off-policy and on-policy knowledge transfer from the larger models are used.
The authors report higher Pass@1 and better Pass@64 for the distilled students, which they read as a sign of wider exploration. They also report about 1/10 of the GPU hours compared with the four-stage method, so most of the saving comes from skipping separate pipelines.
Flagship results in both modes
In thinking mode, Qwen3-235B-A22B is compared with OpenAI-o1, DeepSeek-R1, Grok-3-Beta (Think) and Gemini2.5-Pro. It outperforms DeepSeek-R1 on 17 of 23 benchmarks, and the authors point to mathematics, agent and coding tasks as the clearest gains. The authors stress that this uses only 60% of the activated and 35% of the total parameters.
In non-thinking mode, the flagship is compared with GPT-4o-2024-11-20, DeepSeek-V3, Qwen2.5-72B-Instruct and LLaMA-4-Maverick. It beats GPT-4o-2024-11-20 on 18 of 23 benchmarks, which the authors take as a sign of strength without extended reasoning. Its thinking-mode scores include 81.5 on AIME’25 and 70.7 on LiveCodeBench v5.
Qwen3-32B against QwQ-32B and other baselines
Qwen3-32B in thinking mode is compared with QwQ-32B, DeepSeek-R1-Distill-Llama-70B and OpenAI-o3-mini (medium).
In non-thinking mode the model is compared with GPT-4o-mini-2024-07-18, LLaMA-4-Scout and Qwen2.5-72B-Instruct. On Arena-Hard it reaches 92.8, compared to 81.2 for Qwen2.5-72B-Instruct.
Base model results against larger baselines
Qwen3-32B-Base outperforms Qwen2.5-72B-Base on 10 of the 15 evaluation benchmarks, although it has less than half the parameters. Its MMLU-Pro score is 65.54, and the authors credit gains on coding, mathematics and reasoning benchmarks.
Scaling with the thinking budget
The authors vary the thinking budget for Qwen3-235B-A22B on four benchmarks spanning mathematics, coding and STEM. The resulting scaling curves rise smoothly with the budget, which the authors read as evidence that more reasoning tokens improve results. They expect further gains from outputs longer than 32K tokens, but that exploration is left for future work.
On-policy distillation against reinforcement learning
Both methods start from the same off-policy distilled 8B checkpoint, and only math and code queries are used, with cost counted in GPU hours. On AIME’24, on-policy distillation reaches 74.4 against 67.6 for reinforcement learning, and it uses 1,800 GPU hours against 17,920. In this one comparison the distilled path is both more accurate and far cheaper.
The authors attribute this to teacher logits widening the student's exploration space, a reading they support only with this comparison.
What each post-training stage changes in Qwen3-32B
The authors score Qwen3-32B after Reasoning RL, Thinking Mode Fusion and General RL on a shared set of benchmarks. Thinking Mode Fusion takes ThinkFollow to 88.7, and General RL raises it to 98.9, so mode switching becomes more reliable. Stage 3 also lifts CounterFactQA by 10.9 points and LengthCtrl by 8.0 points in thinking mode.
In the same run, AIME’24 in thinking mode falls from 83.8 after Reasoning RL to 81.4 after General RL. The authors conjecture that broad general training costs some specialist problem-solving, and they accept that trade-off for overall versatility.
Long-context retrieval in thinking mode
The authors use YaRN with scaling factor 4 for length extrapolation, and they evaluate on RULER. With the thinking budget set to 8192 tokens, Qwen3-235B-A22B averages 92.2 in thinking mode against 95.0 in non-thinking mode. The authors hypothesize that thinking content gives no benefit on these retrieval tasks and may interfere with retrieval.
Open problems
The thinking budget was only probed up to 32K output tokens, and longer outputs are left for future work. Thinking mode trails non-thinking mode on RULER, and the authors plan to improve long-context thinking in later versions. Several in-house benchmarks, such as CounterFactQA, LengthCtrl and ThinkFollow, are used to test the post-training stages.
The distillation cost comparison uses one 8B checkpoint and only math and code queries.
Paper info
- Authors
- An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, Zihan Qiu
- Venue
- arXiv · Preprint
- First published
- 2025-5-14
- Added
- 2026-11-11
- Updated
- 2025-5-14
- Version
- v1
- arXiv
- 2505.09388
- Category
- cs.CL
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang et al. (2025). Qwen3 Technical Report. arXiv:2505.09388v1. https://arxiv.org/abs/2505.09388v1
BibTeX
@misc{yang2025qwen3,
title = {{Qwen3 Technical Report}},
author = {An Yang and Anfeng Li and Baosong Yang and Beichen Zhang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Gao and Chengen Huang and Chenxu Lv and Chujie Zheng and Dayiheng Liu and Fan Zhou and Fei Huang and Feng Hu and Hao Ge and Haoran Wei and Huan Lin and Jialong Tang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Yang and Jiaxi Yang and Jing Zhou and Jingren Zhou and Junyang Lin and Kai Dang and Keqin Bao and Kexin Yang and Le Yu and Lianghao Deng and Mei Li and Mingfeng Xue and Mingze Li and Pei Zhang and Peng Wang and Qin Zhu and Rui Men and Ruize Gao and Shixuan Liu and Shuang Luo and Tianhao Li and Tianyi Tang and Wenbiao Yin and Xingzhang Ren and Xinyu Wang and Xinyu Zhang and Xuancheng Ren and Yang Fan and Yang Su and Yichang Zhang and Yinger Zhang and Yu Wan and Yuqiong Liu and Zekun Wang and Zeyu Cui and Zhenru Zhang and Zhipeng Zhou and Zihan Qiu},
year = {2025},
eprint = {2505.09388},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2505.09388v1}
}