Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zeng, Zhiyuan, Huang, Jiameng, Yin, Zhangyue, Liu, Jiashuo, Li, Ziniu, Li, Bingrui, Wu, Yuhao, Zheng, Yining, Zhang, Ge, Huang, Wenhao, Qiu, Xipeng
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:https://arxiv.org/abs/2605.04077
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918485245820928
author Zeng, Zhiyuan
Huang, Jiameng
Yin, Zhangyue
Liu, Jiashuo
Li, Ziniu
Li, Bingrui
Wu, Yuhao
Zheng, Yining
Zhang, Ge
Huang, Wenhao
Qiu, Xipeng
author_facet Zeng, Zhiyuan
Huang, Jiameng
Yin, Zhangyue
Liu, Jiashuo
Li, Ziniu
Li, Bingrui
Wu, Yuhao
Zheng, Yining
Zhang, Ge
Huang, Wenhao
Qiu, Xipeng
contents Reinforcement learning with verifiable rewards (RLVR) has become a central paradigm for improving reasoning and code generation in large language models, and GRPO-style training is widely adopted for its simplicity and effectiveness. However, an important design choice remains underexplored: how token-level policy gradient terms are aggregated within each sampled group. Standard GRPO uses sequence aggregation, while recent work has advocated token aggregation as a better alternative. We show that these two rules induce different optimization biases: token aggregation introduces sign-length coupling, while sequence aggregation implicitly downweights longer responses through sequence-level equal weighting. To address this tension, we propose \textbf{Balanced Aggregation (BA)}, a simple drop-in replacement that computes token-level means separately within the positive and negative subsets and then combines them with sequence-count-based weights. Experiments with Qwen2.5-Math-7B and Qwen3-1.7B on DAPO-17k and Polaris, evaluated on six reasoning and coding benchmarks, show that BA consistently improves training stability and final performance over standard token and sequence aggregation. Our analysis further shows that the relative effectiveness of token and sequence aggregation is largely governed by response-length variation and the positive-negative length gap, highlighting aggregation as a critical design dimension in GRPO-style RLVR.
format Preprint
id arxiv_https___arxiv_org_abs_2605_04077
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Balanced Aggregation: Understanding and Fixing Aggregation Bias in GRPO
Zeng, Zhiyuan
Huang, Jiameng
Yin, Zhangyue
Liu, Jiashuo
Li, Ziniu
Li, Bingrui
Wu, Yuhao
Zheng, Yining
Zhang, Ge
Huang, Wenhao
Qiu, Xipeng
Machine Learning
Artificial Intelligence
Computation and Language
Reinforcement learning with verifiable rewards (RLVR) has become a central paradigm for improving reasoning and code generation in large language models, and GRPO-style training is widely adopted for its simplicity and effectiveness. However, an important design choice remains underexplored: how token-level policy gradient terms are aggregated within each sampled group. Standard GRPO uses sequence aggregation, while recent work has advocated token aggregation as a better alternative. We show that these two rules induce different optimization biases: token aggregation introduces sign-length coupling, while sequence aggregation implicitly downweights longer responses through sequence-level equal weighting. To address this tension, we propose \textbf{Balanced Aggregation (BA)}, a simple drop-in replacement that computes token-level means separately within the positive and negative subsets and then combines them with sequence-count-based weights. Experiments with Qwen2.5-Math-7B and Qwen3-1.7B on DAPO-17k and Polaris, evaluated on six reasoning and coding benchmarks, show that BA consistently improves training stability and final performance over standard token and sequence aggregation. Our analysis further shows that the relative effectiveness of token and sequence aggregation is largely governed by response-length variation and the positive-negative length gap, highlighting aggregation as a critical design dimension in GRPO-style RLVR.
title Balanced Aggregation: Understanding and Fixing Aggregation Bias in GRPO
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2605.04077