HyperAIHyperAI

Command Palette

Search for a command to run...

DataFlex-RL: منصة تقييم لسياسات البيانات في التعلم المعزز بالمكافآت القابلة للتحقق

Hao Liang Mingrui Chen Hengyi Feng Meiyi Qiang Wentao Zhang

الملخص

تغير سياسات البيانات الخاصة بالتعلم المعزز بالمكافآت القابلة للتحقق (RLVR) من عمليات التنفيذ المستخدمة، أو مدى قوة ترجيحها، أو المجالات التي تزود الدفعة التالية. نقدم DataFlex-RL، وهي منصة تقييم لمقارنة هذه الخيارات باستخدام وصفة GRPO ذاتها. تقوم تجربتنا الرئيسية بتقييم 13 إعدادًا باستخدام 12 بذرة عشوائية متطابقة على نموذج Qwen2.5-7B-base و 12 معيارًا في الرياضيات والمنطق والعلوم. يحسن أسلوب GRPO الموحد متوسط الدقة المتوازن عبر المجالات (Overall) بمقدار 7.76 نقطة مقارنة بنقطة التحقق غير المدربة. لا تمتلك أي من طرق الاختيار أو إعادة الترجيح الثماني فاصل ثقة مزدوج بنسبة 95% يستبعد الصفر مقارنة بأخذ العينات الموحد، ولا تحسن أي من الخلطات التكيفية الثلاث على خليط متساوٍ ثابت عند مستوى الدقة ذاته. يضع امتداد مصحح باستخدام 12 بذرة لنموذج Llama-3.1-8B-base الطرق الإضافية على نفس مقياس الدرجات الخاص بالضوابط الأصلية، دون أن ينتج فائزًا مشتركًا في متوسطاتها المرصودة. كما نقوم بقياس حساسية التقييم من خلال إعادة حساب تسع عمليات تشغيل لنموذج Qwen2.5-7B-Instruct باستخدام ملخص من ستة معايير تركز على الرياضيات—خمسة معايير رياضيات بالإضافة إلى GPQA-Diamond، دون معيار منطق—وملخص متوازن المجالات من 12 معيارًا. ترتبط ترتيباتهما بشكل سلبي (ρ = -0.33)، بينما تتفق الملخصات التي تحتفظ بجميع المعايير الـ 12 إلى حد كبير. عبر الإعدادات المضبوطة المدروسة هنا، يؤدي تغيير سياسة البيانات إلى تغيير ملموس في عملية التدريب لكنه لا يسفر عن تحسن قابل للتكرار مقارنة بالتدريب الموحد.

One-sentence Summary

DataFlex-RL, an evaluation platform for systematically comparing data policies for reinforcement learning with verifiable rewards under the same GRPO recipe, reveals that on Qwen2.5-7B-base across 12 math, logic, and science benchmarks, no selection, reweighting, or adaptive mixing policy significantly outperforms uniform sampling over 12 matched seeds.

Key Contributions

  • DataFlex-RL is an evaluation platform that isolates and compares data-processing policies (selection, reweighting, mixture optimization) for reinforcement learning with verifiable rewards under a shared GRPO recipe.
  • A controlled experiment on Qwen2.5-7B-base with 12 seeds and 12 math, logic, and science benchmarks shows uniform GRPO improves domain-balanced accuracy by 7.76 points, but none of eight selection/reweighting methods yields a paired 95% confidence interval excluding zero relative to uniform sampling, and none of three adaptive mixtures improves over a fixed equal mixture at that precision.
  • Recomputing nine Qwen2.5-7B-Instruct runs with a math-heavy six-benchmark summary produces rankings negatively correlated (ρ = -0.33) with the domain-balanced 12-benchmark summary, while summaries retaining all 12 benchmarks largely agree, quantifying how benchmark composition affects conclusion stability.

Introduction

Reinforcement learning with verifiable rewards (RLVR) post-trains reasoning models by scoring multiple responses per prompt and constructing group-relative advantages, typically through Group Relative Policy Optimization (GRPO). This encourages diverse interventions that filter, reweight, or adapt the mix of training data to emphasize prompts near the policy’s decision boundary. The challenge is that prior methods are often embedded in custom recipe changes—varying base models, verifiers, or optimization settings—making it unclear whether the reported gains come from the data policy itself or from surrounding confounds. On-policy evaluation compounds this: the utility signal is noisy and shifts as the policy learns, and small evaluation benchmark differences or seed variation can reverse the apparent winner. The authors build DataFlex-RL, a controlled evaluation platform that holds the GRPO recipe fixed and compares 13 data policies (selection, reweighting, and mixture adaptation) under matched seeds and a unified benchmark suite. They find that none of these policies shows a reproducible improvement over uniform sampling at the achieved precision, and they document how benchmark coverage choices can change which method appears best.

Dataset

The authors construct a clean training corpus of 15,000 prompts spanning three domains, equally split among math, logic, and science. All prompts are verified to have no leakage into the evaluation benchmarks.

  • Math (5,000 prompts): sourced from math_dapo, DeepScaler, and GSM8K. Every prompt is formatted with boxed-answer verification (the expected output is enclosed in \boxed{}).
  • Logic (5,000 prompts): procedurally generated Knights & Knaves puzzles. Each puzzle comes with an assignment checker that validates the solution.
  • Science (5,000 prompts): taken from the SciQ multiple-choice dataset. The verification relies on exact letter matching against the correct option.

Decontamination and metadata

  • The training prompts were audited against all 12 evaluation benchmarks. No exact or normalized matches were found, and no pair had a 13-gram Jaccard similarity above 0.5.
  • Every prompt record retains source and domain metadata for transparency.

Usage in training

  • The full 15,000-prompt corpus is used as the training set for GRPO-based experiments.
  • During training, each prompt is rolled out 5 times, and generation is constrained by a 1024-token prompt limit and an 8192-token response limit.
  • The three subsets are mixed at equal proportions; no additional cropping or re-balancing is applied beyond the original equal split and the per-domain verification format.

Method

The authors introduce a flexible framework for RL with verifiable rewards (RLVR) training that breaks the standard GRPO update into three intervention points: selection, reweighting, and mixture adaptation. The baseline training procedure is straightforward: it samples math, logic, and science prompts with equal probability, generates K=5K = 5K=5 responses per prompt, verifies their rewards, and applies the standard GRPO loss to every valid response token. Each intervention family changes a distinct part of this pipeline while leaving the rest intact, enabling controlled comparisons of how different RLVR data policies alter learning.

Selection decides which generated responses participate in the current update. After rollout and reward verification, a binary mask mgk{0,1}m_{gk} \in \{0,1\}mgk{0,1} is assigned to each response kkk of prompt ggg; a zero mask removes that response from the loss computation. The selected loss is

Lsel=1GKg=1Gk=1KmgkLgk=1LgkgkGRPO,\mathcal{L}_{\mathrm{sel}} = \frac{1}{GK}\sum_{g=1}^{G}\sum_{k=1}^{K}\frac{m_{gk}}{L_{gk}}\sum_{\ell=1}^{L_{gk}}\ell_{gk\ell}^{\mathrm{GRPO}},Lsel=GK1g=1Gk=1KLgkmgk=1LgkgkGRPO,

where LgkL_{gk}Lgk is response length and gkGRPO\ell_{gk\ell}^{\mathrm{GRPO}}gkGRPO denotes the per-token GRPO loss. The baseline simply sets all mgk=1m_{gk}=1mgk=1. Implemented selection variants include difffilter, maxvar, gfpo, and topk, which use different heuristics to decide which responses or entire prompt groups to keep.

Reweighting retains all generated responses but modulates their influence on the loss. A weight wgk0w_{gk\ell} \ge 0wgk0 is assigned per token (or response-wide), and the reweighted loss becomes

Lrew=1GKg=1Gk=1K1Lgk=1LgkwgkgkGRPO.\mathcal{L}_{\mathrm{rew}} = \frac{1}{GK}\sum_{g=1}^{G}\sum_{k=1}^{K}\frac{1}{L_{gk}}\sum_{\ell=1}^{L_{gk}} w_{gk\ell}\,\ell_{gk\ell}^{\mathrm{GRPO}}.Lrew=GK1g=1Gk=1KLgk1=1LgkwgkgkGRPO.

In practice, weights are normalized to have mean one over the relevant batch units. This family covers methods like ar (Advantage Reweighting), per, softmax, and diffband, which convert a signal such as mean absolute advantage into a continuous importance weight instead of a hard keep/discard decision.

Mixture adaptation operates at a different temporal granularity: it does not alter the current update but instead adjusts the domain distribution from which future prompts are sampled. Let Dd\mathcal{D}_dDd be the prompt set for domain ddd (e.g., math, logic, science), and let pt(d)p_t(d)pt(d) denote the sampling probability at step ttt, with dpt(d)=1\sum_d p_t(d)=1dpt(d)=1. The training objective under this mixture is

Lmix,t(θ)=d=1Dpt(d)ExDd,y1:Kπθold(x)[1Kk=1K1Lk=1LkkGRPO(θ)].\mathcal{L}_{\mathrm{mix},t}(\theta) = \sum_{d=1}^{D} p_t(d)\, \mathbb{E}_{\substack{x\sim\mathcal{D}_d,\\ y_{1:K}\sim\pi_{\theta_{\mathrm{old}}}(\cdot|x)}}\left[ \frac{1}{K}\sum_{k=1}^{K}\frac{1}{L_k}\sum_{\ell=1}^{L_k}\ell_{k\ell}^{\mathrm{GRPO}}(\theta) \right].Lmix,t(θ)=d=1Dpt(d)ExDd,y1:Kπθold(x)[K1k=1KLk1=1LkkGRPO(θ)].

The fixed baseline uses pt(d)=1/Dp_t(d) = 1/Dpt(d)=1/D throughout training, corresponding to a uniform (1/3,1/3,1/3)(1/3,1/3,1/3)(1/3,1/3,1/3) mixture over three domains. Mixture methods dynamically update ptp_tpt based on domain-level signals computed over a rolling window of recent observations. For example, they may track the mean reward rˉt,d\bar{r}_{t,d}rˉt,d, mean absolute advantage aˉt,d\bar{a}_{t,d}aˉt,d, or the slope of reward st,ds_{t,d}st,d for each domain, and then reallocate sampling probability to favor domains where learning is still promising. Implemented mixture strategies draw inspiration from DoReMi, DUMP, and Teacher–Student Curriculum Learning.

The three intervention families are complementary: selection and reweighting act after rollout to filter or rescale the loss signal, while mixture adaptation operates before the next rollout to control which data the model sees next. This design enables the authors to compare, for instance, whether a signal like the mean absolute advantage agka_{gk}agk is more effective when used for hard selection (topk) or for soft reweighting (softmax). The signals themselves are computed from readily available rollout statistics, such as the group solve rate qg=1Kk=1K1[rgk>0.5]q_g = \frac{1}{K}\sum_{k=1}^K \mathbb{1}[r_{gk}>0.5]qg=K1k=1K1[rgk>0.5], the response-level mean absolute advantage agk=1Lgk=1LgkAgka_{gk} = \frac{1}{L_{gk}}\sum_{\ell=1}^{L_{gk}}|A_{gk\ell}|agk=Lgk1=1LgkAgk, or the rollout policy’s token probabilities. By systematically varying the intervention point while holding the signal fixed, the framework provides a controlled testbed for understanding how data-policy design shapes RLVR training.

Experiment

The evaluation compares data selection, reweighting, and adaptive mixture policies during GRPO training on base models using matched seeds and a multi-domain benchmark suite. The primary experiment, using Qwen2.5-7B-base with 12 seeds, finds that none of these policies yields a reproducible accuracy gain over uniform sampling or a fixed data mixture, even though GRPO itself is effective. Cross-model checks on Llama and various Qwen scales show no consistent winner, and an aggregation analysis reveals that the apparent best method depends heavily on which evaluation domains are included, cautioning against domain-omitted comparisons.

Thirteen configurations from three families—selection, reweighting, and mixture adaptation—show that no single method dominates. Relative performance flips with model scale and evaluation domain: a filter that underperforms the baseline on a small model can improve on a larger one, and the top-ranked method changes when evaluation coverage drops a domain. difffilter can fall below the baseline on 1.5B and 3B models but edges above it on 7B and 14B models. maxvar stays below the baseline at every model size tested. tscl lags behind a static mixture at 1.5B but outperforms it on larger Qwen models and on Llama-3.2-3B. A math-heavy benchmark suite ranks topk and diffband highest, while a domain-balanced suite ranks gfpo and difffilter highest, with negative rank correlation.

Uniform GRPO training substantially lifts performance over untrained checkpoints in both base models, confirming non-trivial training headroom. The improvement on Qwen2.5-7B-base is both large and precisely estimated, making it the primary inferential setting. These results rule out the possibility that the examined data policies show null effects simply because the model cannot learn. Uniform GRPO improves Qwen2.5-7B-base by over 7 points with a narrow 95% confidence interval, while Llama-3.1-8B-base improves by over 10 points but with a wider interval. Because the gain for Qwen2.5-7B-base is substantial and estimated more precisely than for Llama-3.1-8B-base, it serves as the primary test model for comparing data policies across the full set of methods and seeds.

The six data-filtering methods achieve similar overall scores on Qwen2.5-7B-base, with small differences and broadly overlapping confidence intervals. Relative strengths vary across math, logic, and science domains, so no single method consistently excels everywhere. This domain sensitivity means that a summary omitting logic can rank methods differently than the full 12-benchmark comparison. Overall scores of all methods fall within a tight band (48.9 to 49.9) with 95% confidence intervals that overlap substantially. The best overall mean (difffilter, 49.85) is only marginally above the baseline (49.77), while maxvar and gfpo are slightly below it. No method is uniformly strongest across domains: relative strength on logic benchmarks does not predict relative strength on math or science. When logic benchmarks are excluded from the summary, the apparent leading method can change compared to the domain-balanced ranking.

When evaluated with 12 matched seeds, neither selection nor reweighting methods yield reproducible gains over uniform sampling on Qwen2.5-7B-base. The nine policy means cluster within one point, a fraction of the large uniform GRPO improvement, and every paired confidence interval comfortably includes zero. All eight selection and reweighting differences relative to uniform sampling have confidence intervals that cross zero, so no method reliably outperforms the baseline. Policy means span only 0.97 points, while the gain from uniform GRPO itself is 7.76 points, showing that the choice of data filtering strategy adds negligible benefit. Extending the comparison from three to twelve seeds reversed the selector ordering: topk moved from first to below the baseline, and difffilter rose to the highest mean, though still not significant. Reweighting methods produced point estimates below uniform, ranging from roughly -0.9 to near zero, but none excluded a nil effect.

On a 7B base model, three adaptive mixture methods that varied the proportions of math, logic, and science prompts during training all produced slightly higher mean scores than a fixed equal mixture, but every paired 95% confidence interval includes zero and the means differ by at most 0.61 points. Changing the training-domain mix did not yield a reproducible accuracy improvement in this setting. All adaptive mixtures (reward_gap, dump_ucb, tscl) have positive point estimates relative to the static equal mixture, but none achieves statistical significance as every confidence interval crosses zero. The score differences are narrow: the adaptive methods' means span only 0.61 points, and the largest improvement is +0.61 with a confidence interval that includes no effect.

The study compares data selection, reweighting, and mixture adaptation strategies for GRPO training across math, logic, and science benchmarks. Although uniform training yields large improvements over base models, no filtering or mixture method consistently outperforms uniform sampling: performance differences are small, method rankings reverse with model scale and benchmark domain, and all pairwise confidence intervals include zero when tested with multiple seeds. The findings indicate that the examined data policies offer negligible and non-reproducible gains beyond uniform training in this setting.


بناء الذكاء الاصطناعي بالذكاء الاصطناعي

من الفكرة إلى الإطلاق — سرّع تطوير الذكاء الاصطناعي الخاص بك مع المساعدة البرمجية المجانية بالذكاء الاصطناعي، وبيئة جاهزة للاستخدام، وأفضل أسعار لوحدات معالجة الرسومات.

البرمجة التعاونية باستخدام الذكاء الاصطناعي
وحدات GPU جاهزة للعمل
أفضل الأسعار

HyperAI Newsletters

اشترك في آخر تحديثاتنا
سنرسل لك أحدث التحديثات الأسبوعية إلى بريدك الإلكتروني في الساعة التاسعة من صباح كل يوم اثنين
مدعوم بواسطة MailChimp