Crimson AI NewsA CrimsonLingua Network service
EN ع
← Back to news
Research paper Hugging Face

Xiaomi's GAGAR Rewrites Code Agent RL by Grading Solution Quality, Not Just Test Passes

AI By Crimson AI Hugging Face Papers 29 September 2026 · 00:00 17 views
Share: X Telegram

A new framework from Xiaomi and Hugging Face uses a groupwise agentic grader to redistribute advantage among test-passing trajectories, pushing code agents toward cleaner, more maintainable implementations. It has been integrated into the RL pipeline of the MiMo-V2.6 series.

Xiaomi's GAGAR Rewrites Code Agent RL by Grading Solution Quality, Not Just Test Passes

Key points

Reinforcement learning for code agents typically relies on executable tests that yield binary rewards. Under Group Relative Policy Optimization (GRPO), all trajectories that pass the tests within a rollout group receive identical advantages, leaving no signal to distinguish a clean, targeted fix from one that introduces unnecessary or out-of-scope changes.

To address this, researchers at Xiaomi introduce GAGAR, a framework for quality-aware credit redistribution in code agent RL. Built on dynamic sampling that keeps groups containing both passing and failing trajectories, GAGAR places all trajectories from a group in a shared workspace, where an SFT-trained agentic grader jointly inspects them and ranks the test-passing candidates.

The framework then downweights lower-ranked trajectories and proportionally rescales the advantages of all passing trajectories so their original sum is preserved. This sum-preserving redistribution keeps the relative weights set by quality-based downweighting while shifting credit toward higher-quality implementations.

Three design choices underpin the method: groupwise evaluation, which makes quality differences visible through comparison; an agentic grader that actively inspects intermediate trajectories, patches, repositories, and execution evidence; and a zero-sum redistribution that transfers credit from lower- to higher-quality solutions rather than simply penalizing them.

GAGAR was evaluated at industrial scale using pre-RL SFT checkpoints of MiMo-V2.6-Flash (310B total parameters) and MiMo-V2.6-Pro (1.02T total parameters). Controlled code-only Flash experiments showed improved code agent performance, reduced trajectory-length growth, and more stable training. Large-scale mixed-task RL with both models also showed gains in pass rates and implementation quality, along with fewer interaction turns and lower output token consumption.

The work has been integrated into the large-scale RL training pipeline of the recently released MiMo-V2.6 series. The authors frame GAGAR as a way to scale RL training by allocating additional computation to graders rather than only to model size or rollout volume, and say they are continuing to explore turn-level credit assignment and the application of zero-sum redistribution to different graders, penalty mechanisms, and advantage adjustment strategies.

ModelTotal ParametersEvaluation SettingReported Outcomes
MiMo-V2.6-Flash310BControlled code-only RL experimentsImproved code agent performance, reduced trajectory-length growth, more stable training
MiMo-V2.6-Flash310BLarge-scale mixed-task RLImproved pass rates and implementation quality, fewer interaction turns, lower output token consumption
MiMo-V2.6-Pro1.02TLarge-scale mixed-task RLImproved pass rates and implementation quality, fewer interaction turns, lower output token consumption
Source
Hugging Face · Hugging Face Papers
Related news
Research paper
Hugging Face 15 Oct 2026

New Survey Maps How Multimodal AI Agents Remember and Evolve

A Hugging Face survey proposes a two-axis framework for multimodal agent memory, separating how information is formed and represen...

5
Research paper
Hugging Face 15 Oct 2026

CriticOPD Fixes On-Policy Distillation by Letting Teachers Critique Student Errors

Hugging Face researchers introduce CriticOPD, a method that restores the teacher's ability to recover from student mistakes during...

6
Research paper
Hugging Face 15 Oct 2026

ActionOPD: Distilling Agent Decisions, Not Tokens

A new Hugging Face paper proposes ActionOPD, an action-level on-policy distillation method that aligns a student agent's decisions...

6