Deep Dive into Open Source RL for Large Scale LLMs DAPO
    Deep Dives

    Deep Dive into Open Source RL for Large Scale LLMs DAPO

    Discover DAPO, a cutting-edge reinforcement learning system that improves LLM reasoning with optimized policy strategies

    ADaSci Editorial
    ADaSci EditorialEditorial Team, Association of Data Scientists
    Mar 20, 2025

    Large Language Models (LLMs) have revolutionized AI capabilities, but their reasoning potential depends heavily on reinforcement learning (RL) techniques. However, many state-of-the-art RL methodologies remain undisclosed, making it challenging to reproduce cutting-edge results. Enter Decoupled Clip and Dynamic Sampling Policy Optimization (DAPO) an open-source RL system designed for large-scale LLMs. DAPO achieves 50 points on AIME 2024, outperforming DeepSeek-R1-Zero-Qwen-32B while using only 50% of the training steps. This article explores DAPO’s architecture, key techniques, and practical implementation.

    Table of Content

    1. What is DAPO?
    2. Understanding the Architecture
    3. Key RL Innovations
    4. Real-World Applications


    Let’s start by understanding what DAPO is.

    What is DAPO?

    DAPO is a reinforcement learning framework that improves LLM reasoning through optimized long Chain-of-Thought (CoT). It addresses issues like entropy collapse and instability with: Clip-Higher Strategy for diverse token generation, Dynamic Sampling for training stability, Token-Level Policy Gradient Loss for efficiency, and Overlong Reward Shaping to reduce noise. This combination enhances LLM reasoning by ensuring stable and effective learning in lengthy CoT tasks.

    Understanding the Architecture

    DAPO, evolving from PPO and GRPO, tackles their shortcomings with specific architectural components. Its Policy Optimization Module learns token-level decisions using adaptive clipping. Reward Modeling employs verifiable task-based scoring, avoiding human-labeled rewards. Furthermore, Training Efficiency Enhancements minimize unnecessary policy updates, accelerating convergence.

    Performance Benchmark

    In AIME 2024, DAPO-trained Qwen2.5-32B achieves 50% accuracy, a significant improvement over previous approaches, demonstrating its effectiveness in mathematical reasoning and coding tasks.

    AIME 2024 scores of DAPO

    Key RL Innovations

    Clip-Higher: Solving Entropy Collapse

    Traditional RL models often suffer from entropy collapse, leading to repetitive, low-diversity outputs. DAPO introduces Clip-Higher, which modifies PPO’s clipping mechanism by decoupling upper and lower clipping ranges:

    This approach allows rare, informative tokens to be explored, improving CoT reasoning.

    Dynamic Sampling: Improving Training Stability

    In traditional RL, training efficiency drops when some prompts consistently achieve 100% accuracy, leading to zero-gradient updates. DAPO dynamically filters these samples, ensuring that only useful data contributes to training:

    This strategy accelerates convergence without compromising model accuracy.

    Token-Level Policy Gradient Loss

    Unlike traditional RL algorithms that calculate loss at the sample level, DAPO implements token-level loss functions, ensuring Fine-grained updates for long-CoT tasks and Better generalization across reasoning-intensive applications.

    Overlong Reward Shaping

    Standard RL models penalize excessively long sequences indiscriminately. DAPO refines this by scaling penalties proportionally, allowing valid long-form reasoning to remain unpunished:

    This method maintains training stability while preserving high-quality reasoning patterns.

    Real-World Applications

    DAPO’s efficient RL training makes it ideal for:

    1. Automated Theorem Proving – Enhancing LLMs for competitive math reasoning.
    2. Code Generation & Debugging – Training AI to improve code quality autonomously.
    3. Complex Question Answering – Scaling RL for deep reasoning in factual domains.
    4. Multi-step Planning – Optimizing decision-making in AI-driven workflows.


    Final Words

    DAPO represents a significant breakthrough in reinforcement learning for large-scale LLMs, providing a fully open-source, scalable RL framework. By implementing advanced techniques like Clip-Higher, Dynamic Sampling, and Overlong Reward Shaping, it offers a robust, reproducible solution for improving reasoning in AI models.

    adasci-editorial

    ADaSci Editorial

    The ADaSci Editorial team publishes research explainers, industry analysis and practical guides for AI and data science professionals.