← Latest papers
💬 NLP

MDP-GRPO: Stabilized Group Relative Policy Optimization for Multi-Constraint Instruction Following

The paper introduces MDP-GRPO, a stabilized variant of Group Relative Policy Optimization that employs multi-temperature sampling, dual-anchor advantages, prospect-theoretic shaping, and asymmetric KL regularization to overcome instability in discrete, low-dispersion reward settings, thereby significantly improving multi-constraint instruction following performance.

Original authors: Mohammad Mahdi Salmani-Zarchi, Zahra Rahimi, Heshaam Faili, Mohammad Javad Dousti

Published 2026-06-05
📖 5 min read🧠 Deep dive

Original authors: Mohammad Mahdi Salmani-Zarchi, Zahra Rahimi, Heshaam Faili, Mohammad Javad Dousti

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a very talented but slightly chaotic chef (the AI) how to follow a very specific recipe. The recipe isn't just "make a cake"; it's a strict list of rules: "Use exactly 3 eggs," "Don't use chocolate," "Write the instructions in all caps," and "End the note with the phrase 'Bon Appétit'."

In the world of AI, this is called Multi-Constraint Instruction Following. The problem is that standard AI training methods often get confused when the rules are this strict and the feedback is binary (you either followed the rule or you didn't).

Here is a simple breakdown of the paper's solution, MDP-GRPO, using everyday analogies.

The Problem: The "Group Grade" Trap

The paper starts by explaining how current AI training (called GRPO) works. Imagine a teacher giving a quiz to a group of 8 students (the AI's attempts) at once. Instead of grading each student against a perfect standard, the teacher grades them relative to each other.

  • If 7 students get a "C" and 1 student gets a "B," the "B" student gets a huge bonus, and the "C" students get a huge penalty.
  • The Glitch: In strict rule-following, it's common for everyone in the group to get the exact same score (e.g., everyone failed the "all caps" rule).
    • Zero-Variance Collapse: If everyone gets a "0," the teacher has no way to tell who did better. The "grade" becomes zero for everyone, and the AI learns nothing.
    • Mean-Centering Blindness: If one group of students all fails hard, and another group all fails hard, the teacher treats them the same because they are "equally bad" relative to their own group. The AI doesn't know which specific rule it broke.
    • Low-Variance Amplification: If the scores are 99, 100, 100, 100, the tiny difference between 99 and 100 gets blown up into a massive penalty, causing the AI to overreact and become unstable.

The Solution: MDP-GRPO

The authors propose a new training method with four "tools" to fix these glitches. Think of this as upgrading the teacher's grading system.

1. The "Flavor Mixer" (Multi-Temperature Sampling)

  • The Issue: If you ask the AI to write 8 variations of a story, it might write 8 almost identical stories. If they are all identical, they all get the same score, and the training stalls.
  • The Fix: The authors tell the AI to write these 8 stories using different "creativity levels." Some are written very strictly (low temperature), and some are written wildly and creatively (high temperature).
  • The Result: This ensures that even if the rules are hard, the 8 attempts will be different enough to have different scores. This prevents the "everyone got a zero" problem.

2. The "Two-Anchor" System (Dual-Anchor Advantages)

  • The Issue: When the group is a mess (everyone failed), the "relative grading" system breaks down.
  • The Fix: Instead of just comparing students to each other, the teacher also compares them to a fixed, imaginary "Neutral Student."
    • Imagine a "Neutral Student" who gets exactly 50% of the rules right by pure luck.
    • If the AI's group is doing worse than this Neutral Student, the AI gets a clear signal: "You are doing worse than average, try harder!"
    • This gives the AI a learning signal even when the whole group is failing, preventing the "blindness" to absolute performance.

3. The "Human Fear of Loss" (Prospect-Theoretic Shaping)

  • The Issue: Standard training treats a small win and a small loss as equal but opposite. But in real life, humans hate losing more than they love winning.
  • The Fix: The authors borrow a concept from economics called Prospect Theory. They program the AI to feel the "pain" of breaking a rule much more intensely than the "joy" of following it.
    • If the AI breaks a rule, the penalty is huge and sharp.
    • If the AI follows a rule, the reward is capped and gentle.
    • This stops the AI from being too reckless and forces it to be very careful about strict constraints.

4. The "Asymmetric Seatbelt" (Asymmetric KL Regularization)

  • The Issue: Sometimes, in trying to follow rules, the AI forgets how to speak normally or becomes too rigid.
  • The Fix: They put a "seatbelt" on the AI's changes.
    • If the AI is improving (following rules better), the seatbelt is loose, allowing big changes.
    • If the AI is getting worse (breaking rules), the seatbelt tightens instantly, preventing it from making wild, damaging mistakes.

The Results

The authors tested this new method on models like Llama-3.2 and Gemma-2.

  • Better at Rules: The AI became significantly better at following strict, multi-part instructions (up to 5% improvement in strict success rates).
  • Stable Learning: The training didn't crash or get confused when the AI hit a wall of failures.
  • Still Smart: Crucially, the AI didn't lose its general knowledge (like answering trivia or solving logic puzzles) while learning these strict rules.

Summary

The paper argues that teaching AI to follow strict, multiple rules is like teaching a chef to follow a recipe with 10 tiny, specific constraints. Standard methods fail because they get confused when everyone in the class fails. MDP-GRPO fixes this by:

  1. Making the practice attempts more diverse.
  2. Giving a fixed reference point so the AI knows how it's doing even when failing.
  3. Making the AI "fear" mistakes more than it "loves" success.
  4. Keeping the AI from changing too drastically when it slips up.

The result is an AI that is much more reliable at following complex, strict instructions without losing its general smarts.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →