Skip to main content
Browse Models

Alibaba Cloud

Qwen 2.5 Math PRM 7B

Released

2025-01-13

Family

Qwen 2

Type

Fine-Tuned Model

Model Report

Overview

Qwen2.5-Math-PRM-7B is a process reward model (PRM) developed by the Qwen team at Alibaba Group, released in January 2025. Designed specifically for mathematical reasoning within large language models, Qwen2.5-Math-PRM-7B provides fine-grained feedback on intermediate steps, aiming to strengthen the reliability and interpretability of complex reasoning processes. Unlike traditional outcome-based models, which evaluate only the correctness of final answers, this model supervises each step of mathematical problem solving, allowing developers and researchers to more rigorously identify and mitigate sources of error in automated reasoning. The development, technical framework, and benchmarking of Qwen2.5-Math-PRM-7B are documented in the original release paper and subsequent benchmark evaluations.

Bar chart of Qwen2.5-Math-PRM-7B and other PRMs in process-based mathematical reasoning on Best-of-8 Accuracy and ProcessBench Mean F1 benchmarks.

Figure 1. Performance of Qwen2.5-Math-PRM-7B compared to other process reward models on Best-of-8 Accuracy and ProcessBench Mean F1 metrics, based on major mathematical benchmarks.

Technical Foundations and Architecture

Qwen2.5-Math-PRM-7B builds on the foundation established by the Qwen2.5-Math-7B-Instruct model, with key modifications tailored for process supervision tasks. Instead of a conventional language modeling head, which predicts subsequent tokens, Qwen2.5-Math-PRM-7B replaces this with a scalar value head composed of two linear layers. This structure produces a continuous reward score for each reasoning step, quantifying its correctness and coherence within the overall problem solution as described in the Qwen2.5-Math-PRM introduction. The model contains 7.63 billion parameters and is distributed in Safetensors format for openness and reproducibility.

Qwen2.5-Math-PRM-7B's design centers around the concept of PRM, which systematically evaluates the reasoning process. This is in contrast to outcome reward models (ORMs), which assess only the final answer. By focusing on step-level quality, PRMs offer a more fine-grained view of LLM performance, though at the cost of greater requirements for curated training data, as outlined in the original paper.

For reward computation, reasoning steps within mathematical solutions are separated using double line breaks, with a special <extra_0> token inserted after each step. The model scores the probability of this token being interpreted as correct, assigning a reward between 0 and 1.

Data Construction and Training Methodology

The development of Qwen2.5-Math-PRM-7B addressed the substantial challenge of generating high-quality, step-level supervision data for mathematical reasoning. Data collection and labeling followed a two-stage process, each enhancing the granularity and consistency of resulting annotations.

Initially, a large dataset of about 500,000 queries with verified correct answers was compiled. For each query, 6 to 8 diverse reasoning chains were created by combining outputs from Qwen2-Math-Instruct and Qwen2.5-Math-Instruct models across different parameter scales, as detailed in the dataset construction process. These responses were broken down into individual steps. Step correctness was empirically estimated by independently completing each partial solution multiple times and observing whether it could lead to the correct final answer—an approach rooted in Monte Carlo (MC) estimation. In this regime, a step is labeled as correct if any continuation from that step produces the correct solution, aligning with the MC estimation threshold described in the research report.

Subsequently, the dataset underwent consensus filtering. Here, step-level annotations generated by a large language model acting as a judge (specifically, Qwen2.5-Instruct-72B) were compared with MC-estimated labels. Only those instances with agreement between model-generated and empirical labels were retained, ensuring high consistency and reducing annotation noise. The final training employed binary (hard) classification labels and cross-entropy loss at each step, allowing the model to focus on determinate error identification.

Evaluation Benchmarks and Model Performance

Qwen2.5-Math-PRM-7B underwent extensive benchmarking across standardized mathematical problem-solving tasks. It was primarily evaluated using Best-of-N (BoN) strategies—where the top N reasoning chains are assessed for accuracy—and the ProcessBench benchmark, which targets step-level error identification.

In BoN evaluations, using Qwen2.5-Math-7B-Instruct as the policy model, Qwen2.5-Math-PRM-7B achieved an average accuracy of 67.6% across key mathematical datasets, including GSM8K, MATH, Minerva Math, OlympiadBench, College Math, and MMLU STEM. This surpassed the maj@8 baseline (66.2%) across all seven tasks, with an average improvement of 1.4% documented in the evaluation results.

On the ProcessBench task—focusing on step-level error detection—the model achieved an average F1 score of 73.5%. It demonstrated stronger process-based error identification relative to other published open-source PRMs and outperformed the GPT-4o-0806 baseline on this metric. However, a performance gap remains between Qwen2.5-Math-PRM-7B and both the o1-mini PRM and theoretical upper bounds such as pass@8.

Furthermore, Qwen2.5-Math-PRM-7B achieved 53.9% accuracy in identifying flawed reasoning steps even when answers were ultimately correct, surpassing most comparable open-source PRMs—this indicates its capabilities in process-oriented assessment over outcome-oriented metrics.

Applications and Usage Practices

Qwen2.5-Math-PRM-7B is primarily designed for applications that benefit from rigorous, step-wise evaluation of reasoning in mathematical domains. Its granularity enables it to surface and flag errors at intermediate steps, facilitating model debugging, educational feedback, and reliability analysis in AI systems intended for mathematical and scientific problem solving, as discussed in the primary release documentation.

To use the model effectively, solutions should be formatted such that each step is separated by a double newline. The process reward for each step is then calculated by appending the <extra_0> token and extracting its positive classification probability. The recommended minimum version of the transformers library for running Qwen2.5-Math-PRM-7B is 4.40.0.

Limitations and Considerations

Despite its advancements in process supervision, several limitations are documented. There remains a measurable gap between Qwen2.5-Math-PRM-7B’s performance and the BoN upper bound (pass@8), indicating room for optimization. Data efficiency, particularly in leveraging high-quality human-annotated reasoning steps, is yet to be fully realized despite the integration of LLM-as-a-judge with MC estimation. Developers further caution that BoN-based evaluations may introduce bias in favor of models which generate correct answers through suboptimal or flawed intermediate reasoning, potentially weakening the alignment with true process-based assessment objectives. Optimal scoring approaches also vary depending on whether hard MC labels or LLM judgments are used.

Comparison and Model Family

Qwen2.5-Math-PRM-7B is part of a broader suite of models within the Qwen2.5-Math family. Its close relative, Qwen2.5-Math-PRM-72B, is a larger PRM exhibiting generally stronger performance, particularly on more challenging benchmarks. The family also includes the outcome-based Qwen2.5-Math-RM-72B, as well as base and instruction-tuned variants such as Qwen2.5-Math-7B and Qwen2.5-Math-7B-Instruct, which are used as initializers and as policy models for evaluation.

Further Reading and External Resources

About Qwen 2: Qwen 2 (and 2.5) is a family of advanced AI models developed by Alibaba, designed to excel in various tasks including general language understanding, coding, and mathematics.

More in the Qwen 2 Family

Alibaba Cloud /

Qwen2.5 VL 3B

A 3B-parameter multimodal language model that processes images, videos, and text with capabilities for visual reasoning, document analysis, and computer interface interaction.
Alibaba Cloud /

Qwen2.5 VL 7B

A 7-billion parameter multimodal model capable of processing images, documents, and videos with native dynamic resolution support and structured output capabilities.
Alibaba Cloud /

Qwen2.5 VL 72B

A 72-billion parameter multimodal model that processes images, videos, and text for document analysis, object detection, and visual agent tasks.
Alibaba Cloud /

QwQ 32B Preview

Experimental research model focused on advancing AI reasoning capabilities by thinking through problems step by step, continuously questioning assumptions, and exploring different paths of thought. Impressive benchmark scores in math and coding tasks.
Alibaba Cloud /

QwQ 32B

A 32.5-billion parameter transformer model optimized for mathematical reasoning, coding, and complex problem-solving through reinforcement learning training.
Alibaba Cloud /

Qwen 2.5 Math 1.5B

A 1.5 billion parameter specialized model focused on mathematical reasoning and problem-solving capabilities in English and Chinese.
Deepseek AI /

DeepSeek R1 Distill Qwen 1.5B

A 1.5 billion parameter language model created through distillation techniques, focusing on mathematical reasoning and chain-of-thought problem-solving capabilities.
Agentica /

DeepCoder 1.5B Preview

A 1.5B parameter code generation model fine-tuned with reinforcement learning and iterative context lengthening for long-context reasoning tasks.
Alibaba Cloud /

Qwen 2.5 Math 7B

A 7.62-billion parameter mathematical reasoning model supporting English and Chinese with chain-of-thought and tool-integrated reasoning capabilities.
Deepseek AI /

DeepSeek R1 Distill Qwen 7B

A 7.62B parameter distilled language model based on Qwen2.5-Math-7B, trained via knowledge distillation for mathematical and logical reasoning tasks.
Alibaba Cloud /

Qwen 2.5 Math 72B

A 72.7 billion parameter language model specialized for solving mathematical problems in English and Chinese using chain-of-thought and tool-integrated reasoning.
Alibaba Cloud /

Qwen 2.5 Math PRM 72B

A 72.8 billion parameter process reward model that evaluates intermediate mathematical reasoning steps using consensus filtering and achieves 78.3% F1 on ProcessBench.
Alibaba Cloud /

Qwen 2.5 Coder 7B

A 7.61 billion parameter transformer model designed for code generation and reasoning across 92 programming languages with a 128,000-token context window.
Alibaba Cloud /

Qwen 2.5 Coder 32B

Qwen2.5-Coder builds on Qwen2.5 by training on 5.5 trillion additional tokens of code data including source code, text-code grounding data, and synthetic data. This leads to significant improvements in code-related tasks.
Alibaba Cloud /

Qwen 2.5 7B

A 7.61-billion parameter transformer-based language model with 128K token context length, trained on 18 trillion tokens supporting 29+ languages.
Alibaba Cloud /

Qwen2.5 7B 1M

A 7-billion parameter transformer model with 1-million token context capacity utilizing Dual Chunk Attention for long-range text processing.
Alibaba Cloud /

Qwen 2.5 14B

A 14.7 billion parameter transformer model supporting 29 languages with 128K context window, designed as foundation for fine-tuning applications.
Alibaba Cloud /

Qwen2.5 14B 1M

A 14.7B parameter transformer model with 1-million token context capacity, utilizing dual chunk attention and progressive training for extended sequence processing.
Deepseek AI /

DeepSeek R1 Distill Qwen 14B

A 14B dense language model distilled from a mixture-of-experts architecture, optimized for mathematical reasoning and code generation tasks.
Agentica /

DeepCoder 14B Preview

A 14-billion parameter code reasoning model fine-tuned using distributed reinforcement learning with long-context capabilities up to 64,000 tokens.
Deep Cogito /

Cogito V1 Preview 14B

A 14.8 billion parameter instruction-tuned language model trained using Iterated Distillation and Amplification with hybrid reasoning capabilities across 30+ languages.
Alibaba Cloud /

Qwen 2.5 32B

A 32.5 billion parameter multilingual transformer model trained on 18 trillion tokens with 128K context length supporting text generation, coding, and mathematical reasoning.
Deepseek AI /

DeepSeek R1 Distill Qwen 32B

A 32B parameter language model created through knowledge distillation, optimized for mathematical reasoning, code generation, and complex problem-solving tasks.
Deep Cogito /

Cogito V1 Preview 32B

A 32-billion parameter instruction-tuned model based on Qwen2.5 architecture featuring dual operational modes and iterated distillation alignment methodology.
Alibaba Cloud /

Qwen 2.5 72B

This update to Qwen 2, pretrained on 18 trillion tokens, shows impressive performance in benchmarks (MMLU 85+, HumanEval 85+, MATH 80+), outperforming models of similar size. Qwen 2.5 has multilingual support for over 29 languages and can understand and generate structured data.
Alibaba Cloud /

Qwen 2 7B

A 7.6 billion parameter multilingual decoder-only Transformer model designed for further post-training with 32,000-token context and strong coding capabilities.
Alibaba Cloud /

Qwen 2 72B

A 72-billion parameter transformer model supporting extended context lengths up to 128K tokens and demonstrating strong multilingual capabilities across diverse benchmarks.

More from Alibaba Cloud

Alibaba Cloud /

Qwen3 0.6B

A 0.6B parameter language model featuring dual thinking modes, multilingual capabilities, and 32K context length through strong-to-weak distillation training.
Alibaba Cloud /

Qwen3 1.7B

A 1.7 billion parameter multilingual transformer supporting dual-mode reasoning with step-by-step "thinking" and rapid "non-thinking" response capabilities.
Alibaba Cloud /

Qwen3 4B

A 4-billion parameter transformer model featuring dual reasoning modes, extensive multilingual training, and competitive performance across mathematical, coding, and logical reasoning benchmarks.
Alibaba Cloud /

Qwen3 8B

Dense 8.2 billion parameter transformer model featuring hybrid thinking capabilities with 32K token context and multilingual support across 119 languages.
Alibaba Cloud /

Qwen3 14B

A 14.8 billion parameter transformer model featuring hybrid thinking/non-thinking reasoning modes, 32K context length, and multilingual capabilities across 119 languages.
Alibaba Cloud /

Qwen3 32B

A 32.8 billion parameter language model featuring hybrid thinking modes for both rapid responses and step-by-step reasoning across multilingual tasks.
Alibaba Cloud /

Qwen3 30B A3B

Mixture-of-experts model with 30.5B total parameters, 3.3B activated per token, featuring hybrid reasoning modes and multilingual support across 119 languages.
Alibaba Cloud /

Qwen3 235B A22B

Large language model with Mixture-of-Experts architecture featuring dual operational modes for both rapid inference and complex reasoning tasks.
Alibaba Cloud /

Qwen 1.5 32B

Foundation 32B Qwen 1.5 model from Alibaba Cloud.
Alibaba Cloud /

Qwen 1.5 72B

Foundation 72B Qwen 1.5 model from Alibaba Cloud.