Skip to main content
QUICK REVIEW

[Paper Review] Qwen2.5 Technical Report

Qwen, :|arXiv (Cornell University)|Dec 19, 2024
Topic ModelingComputer Science58 citations
TL;DR

Qwen2.5 presents a series of open-weight and MoE LLMs with data and training upgrades, achieving strong open-weight performance and competitive hosted solutions, along with extensive post-training refinements including long-context capabilities.

ABSTRACT

In this report, we introduce Qwen2.5, a comprehensive series of large language models (LLMs) designed to meet diverse needs. Compared to previous iterations, Qwen 2.5 has been significantly improved during both the pre-training and post-training stages. In terms of pre-training, we have scaled the high-quality pre-training datasets from the previous 7 trillion tokens to 18 trillion tokens. This provides a strong foundation for common sense, expert knowledge, and reasoning capabilities. In terms of post-training, we implement intricate supervised finetuning with over 1 million samples, as well as multistage reinforcement learning. Post-training techniques enhance human preference, and notably improve long text generation, structural data analysis, and instruction following. To handle diverse and varied use cases effectively, we present Qwen2.5 LLM series in rich sizes. Open-weight offerings include base and instruction-tuned models, with quantized versions available. In addition, for hosted solutions, the proprietary models currently include two mixture-of-experts (MoE) variants: Qwen2.5-Turbo and Qwen2.5-Plus, both available from Alibaba Cloud Model Studio. Qwen2.5 has demonstrated top-tier performance on a wide range of benchmarks evaluating language understanding, reasoning, mathematics, coding, human preference alignment, etc. Specifically, the open-weight flagship Qwen2.5-72B-Instruct outperforms a number of open and proprietary models and demonstrates competitive performance to the state-of-the-art open-weight model, Llama-3-405B-Instruct, which is around 5 times larger. Qwen2.5-Turbo and Qwen2.5-Plus offer superior cost-effectiveness while performing competitively against GPT-4o-mini and GPT-4o respectively. Additionally, as the foundation, Qwen2.5 models have been instrumental in training specialized models such as Qwen2.5-Math, Qwen2.5-Coder, QwQ, and multimodal models.

Motivation & Objective

  • Demonstrate how Qwen2.5 scales data and model sizes to improve capabilities in reasoning, coding, math, and instruction following.
  • Describe the post-training strategies (SFT, offline/online RL) that boost human preference alignment and long-context handling.
  • Present the architecture, tokenizer, and MoE enhancements enabling diverse use-cases and cost-effective deployments.
  • Showcase open-weight model performance relative to contemporaries and hosted MoE variants for enterprise/API usage.

Proposed method

  • Scale pre-training data from 7T to 18T tokens with curated data mixtures and domain balancing.
  • Incorporate long-context pre-training with extended RoPE base frequency and context lengths up to 32,768 tokens (and 262,144 for Turbo in staged training).
  • Use over 1M supervised finetuning samples with long-sequence generation, math/coding, structured data, and cross-lingual data.
  • Apply two-stage reinforcement learning (offline DPO-style and online GRPO) to optimize factuality, instruction-following, and safety.
  • Employ MoE architecture for hosted variants (Qwen2.5-Turbo and Qwen2.5-Plus) and dense models for open-weight releases across 0.5B–72B sizes.

Experimental results

Research questions

  • RQ1What are the gains from scaling pre-training data to 18 trillion tokens on diverse knowledge domains (sense-making, coding, mathematics)?
  • RQ2How do long-context training and improved context lengths affect generation quality and structured data handling?
  • RQ3Can multistage post-training (SFT, offline RL, online RL) improve human preference alignment and long-form task performance across domains?
  • RQ4How do open-weight dense and MoE variants compare to contemporaries (e.g., Llama-3, Mixtral) in general, math, coding, and multilingual tasks?
  • RQ5What are the practical trade-offs in cost and latency between Qwen2.5-Turbo/Plus and standard open-weight models?

Key findings

  • Qwen2.5-72B-Instruct open-weight model shows competitive performance against state-of-the-art open-weight models with ~5x larger size (Llama-3-405B-Instruct).
  • Qwen2.5-Turbo and Qwen2.5-Plus offer superior cost-effectiveness while competing with GPT-4o-mini and GPT-4o in respective baselines.
  • Pre-training data scale and domain-balanced mixtures contribute to improved domain expertise in knowledge, coding, and mathematics.
  • Long-context capabilities (up to 8K tokens for base models; up to 1M tokens for Turbo) significantly enhance long-form generation and structured-data handling.
  • Post-training uses over 1M SFT samples and two-stage RL (offline + online) to improve instruction-following, reasoning, and safety alignment.
  • Qwen2.5 models enable a broad open-weight ecosystem with many configurations (0.5B–72B) and MoE variants for hosted use.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.