Skip to content

Commit 354b791

Browse files
binbin zhengbinbin zheng
authored andcommitted
docs: polish README layout and wording
1 parent 3207c0d commit 354b791

1 file changed

Lines changed: 28 additions & 7 deletions

File tree

README.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# MASPO: Unifying Gradient Utility, Probability Mass, and Signal Asymmetry for Robust and Sample-Efficient LLM Reasoning
44

55
<p align="center">
6-
<strong>Mass-Adaptive Soft Policy Optimization (MASPO)</strong> · Official Implementation
6+
<strong>Mass-Adaptive Soft Policy Optimization (MASPO)</strong><br/>
7+
Official Implementation
78
</p>
89
<p align="center">
910
<a href="https://arxiv.org/abs/2602.17550">
@@ -18,6 +19,24 @@
1819

1920
</div>
2021

22+
## Overview
23+
24+
**MASPO (Mass-Adaptive Soft Policy Optimization)** is a unified RLVR framework for improving the robustness and sample efficiency of LLM reasoning.
25+
26+
Existing RLVR methods such as **GRPO** rely on rigid, uniform, and symmetric trust-region mechanisms, which are often misaligned with the optimization dynamics of large language models. MASPO addresses three key limitations:
27+
28+
1. **Inefficient gradient utilization** caused by hard clipping
29+
2. **Probability mass insensitivity** under uniform ratio constraints
30+
3. **Asymmetric signal reliability** between positive and negative samples
31+
32+
To address these issues, MASPO combines:
33+
34+
- a **soft Gaussian gating** mechanism,
35+
- a **mass-adaptive limiter**, and
36+
- an **asymmetric risk controller**.
37+
38+
Extensive experiments show that MASPO consistently improves both reasoning accuracy and sample efficiency across multiple model scales.
39+
2140
## 📖 Abstract
2241

2342
Current Reinforcement Learning with Verifiable Rewards (RLVR) paradigms, such as GRPO, rely on rigid, uniform, and symmetric trust region mechanisms that are fundamentally misaligned with the complex optimization dynamics of Large Language Models (LLMs). In this paper, we identify three critical disconnects in existing methods: (1) **inefficient gradient utilization** caused by the binary cutoff of hard clipping, (2) **probability mass insensitivity** arising from uniform ratio constraints that ignore the token distribution, and (3) **asymmetric signal reliability** stemming from the disparate credit assignment ambiguity between positive and negative samples. To bridge these gaps, we propose **Mass-Adaptive Soft Policy Optimization (MASPO)**, a unified framework designed to harmonize these three dimensions. MASPO integrates a differentiable soft Gaussian gating to maximize gradient utility, a mass-adaptive limiter to balance exploration across the probability spectrum, and an asymmetric risk controller to align update magnitudes with signal confidence. Extensive evaluations demonstrate that MASPO serves as a robust, all-in-one RLVR solution, significantly outperforming strong baselines in sample efficiency and reasoning accuracy across diverse LLM scales (1.5B/7B/14B).
@@ -41,11 +60,13 @@ Current Reinforcement Learning with Verifiable Rewards (RLVR) paradigms, such as
4160

4261
### Installation
4362

44-
This implementation is based on [verl](https://github.com/volcengine/verl), a flexible and efficient RLHF framework. Please follow the verl installation guide first.
63+
This implementation is built on top of [verl](https://github.com/volcengine/verl), a flexible and efficient RLHF / RLVR framework.
64+
65+
Please install `verl` first by following its official setup instructions, and then install the dependencies for this repository:
4566

4667
```bash
4768
# Clone the repository
48-
git clone https://github.com/your-repo/MASPO-RL.git
69+
git clone https://github.com/VenomRose-Juri/MASPO-RL
4970
cd MASPO-RL
5071

5172
# Install verl dependencies (see verl documentation for details)
@@ -60,9 +81,9 @@ We provide a complete example script for training with MASPO on GSM8K dataset:
6081
bash examples/maspo_trainer/run_deepseek-r1-distill-qwen-7b.sh
6182
```
6283

63-
### Key Configuration Parameters
84+
### Enable MASPO in Config
6485

65-
To enable MASPO, set the following parameters in your configuration:
86+
To use MASPO, set the following configuration fields:
6687

6788
```yaml
6889
actor_rollout_ref.actor.policy_loss.ratio_clip.ratio_mode: maspo
@@ -144,7 +165,7 @@ We evaluate MASPO on multiple mathematical reasoning benchmarks including AIME24
144165
| SAPO | 47.5 / 79.2 | 35.3 / 58.0 | 88.7 / 95.0 | 85.5 / 92.9 | **39.4** / 58.1 | 56.6 / 74.6 | 58.8 / 76.3 |
145166
| **MASPO (Ours)** | **53.2** / 82.4 | **42.9** / **73.2** | **91.4** / 95.0 | **86.0** / 94.7 | 39.3 / 58.6 | **58.0** / 74.9 | **61.8** / **79.8** |
146167

147-
**Key Findings:**
168+
### Main Takeaways
148169
- **1.5B Model**: MASPO outperforms GRPO by **+3.0%** (48.4 → 51.4) and best baseline (SAPO) by **+0.2%** (51.2 → 51.4) in Avg@32
149170
- **7B Model**: MASPO outperforms GRPO by **+2.9%** (58.9 → 61.8) and best baseline (Clip Higher) by **+2.6%** (59.2 → 61.8) in Avg@32
150171
- MASPO demonstrates superior performance across the majority of benchmarks on both scales
@@ -238,7 +259,7 @@ maspo/
238259
239260
### Code Location
240261
241-
- **Core Algorithm**: `verl/trainer/ppo/core_algos.py` (lines 907-922)
262+
- **Core Algorithm**: `verl/trainer/ppo/core_algos.py`
242263
- **Actor Integration**: `verl/workers/actor/dp_actor.py` (uses `compute_policy_loss` with MASPO mode)
243264
- **Configuration**: `verl/trainer/config/actor/actor.yaml` (ratio_clip section)
244265

0 commit comments

Comments
 (0)