[Paper Review] Qwen Technical Report
QWEN introduces a family of open-source large language models (base, chat, and specialized CODE-QWEN and MATH-QWEN-CHAT) pretrained on trillions of tokens, aligned via SFT and RLHF, with tool use and code interpreter capabilities, and open-sourced at 14B and 7B scales.
Large language models (LLMs) have revolutionized the field of artificial intelligence, enabling natural language processing tasks that were previously thought to be exclusive to humans. In this work, we introduce Qwen, the first installment of our large language model series. Qwen is a comprehensive language model series that encompasses distinct models with varying parameter counts. It includes Qwen, the base pretrained language models, and Qwen-Chat, the chat models finetuned with human alignment techniques. The base language models consistently demonstrate superior performance across a multitude of downstream tasks, and the chat models, particularly those trained using Reinforcement Learning from Human Feedback (RLHF), are highly competitive. The chat models possess advanced tool-use and planning capabilities for creating agent applications, showcasing impressive performance even when compared to bigger models on complex tasks like utilizing a code interpreter. Furthermore, we have developed coding-specialized models, Code-Qwen and Code-Qwen-Chat, as well as mathematics-focused models, Math-Qwen-Chat, which are built upon base language models. These models demonstrate significantly improved performance in comparison with open-source models, and slightly fall behind the proprietary models.
Motivation & Objective
- Demonstrate the effectiveness of the QWEN base and aligned chat models across diverse downstream tasks.
- Showcase the impact of supervision and reinforcement learning from human feedback on model alignment.
- Introduce specialized coding and mathematics models (CODE-QWEN, CODE-QWEN-CHAT, MATH-QWEN-CHAT) and their performance.
- Release open-source base and chat models at 14B and 7B parameters to the research community.
Proposed method
- Autoregressive pretraining of QWEN on up to 3 trillion tokens with a diverse, multilingual dataset.
- Data preprocessing including deduplication, quality filtering, and up-sampling of high-quality sources.
- Tokenization using BPE with a 152K vocabulary, augmented for Chinese and multilingual coverage.
- Architectural choices featuring untied embeddings, RoPE positional embeddings, bias configuration in QKV, RMSNorm, and SwiGLU activation.
- Context length extension via inference-time NTK-aware interpolation, LogN-Scaling, and layer-wise window attention to handle long contexts.
- Alignment via supervised finetuning with ChatML-style conversations and RLHF using a reward model and PPO optimization.
Experimental results
Research questions
- RQ1How do base QWEN models perform on standard benchmarks relative to open-source baselines across multiple tasks?
- RQ2What is the impact of alignment (SFT and RLHF) on chat model performance and human-preferred responses?
- RQ3Can specialized models for coding (CODE-QWEN) and mathematics (MATH-QWEN-CHAT) outperform open-source competitors in their domains?
- RQ4What are the effects of context-length extension techniques on long-context understanding and perplexity?
- RQ5How do open-source QWEN models compare to proprietary baselines in zero-shot and few-shot settings?
Key findings
- QWEN-14B surpasses prior 13B SOTA models on multiple benchmarks, with strong performance across language, knowledge, and reasoning tasks.
- QWEN-CHAT models aligned with RLHF are highly competitive and approach GPT-4 on their benchmark, though GPT-4 remains ahead on some tests.
- Specialized CODE-QWEN and CODE-QWEN-CHAT achieve high code understanding and generation on HumanEval, MBPP, and related tasks, outperforming open-source peers.
- MATH-QWEN-CHAT models (7B and 14B) outperform open-source math models of similar size and approach GPT-3.5 on GSM8K and MATH datasets.
- Context-length extension techniques (NTK-aware interpolation, LogN-Scaling, and layer-wise windowing) effectively maintain performance up to 8192 tokens and beyond.
- QWEN-VL and QWEN-VL-CHAT demonstrate superior visual-language capabilities in prior work, with open-source release incorporated into the series.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.