ConsultingAI

MOPD: GRPO training with LLM-as-a-judge and typed answers

Short answer

MOPD aligns Qwen3.5-0.8B with TRL's GRPOTrainer, using an LLM judge that answers typed questions (a choice, a yes/no-style decision or a score on fixed levels) rather than writing free-text grades. Training problems are generated by DeepSeek and cached append-only. The implementation and tests are complete, but no training has been run yet, so there are no results to report.

"LLM as a judge" usually means asking a model to grade an answer in prose and then parsing a number out of it. MOPD asks the judge typed questions and gets typed answers back, so the reward is computed from a structured decision, not from text.

How it works

  1. Problems are generated by DeepSeek V4.1 Flash from a versioned template, validated, and stored in an append-only cache with stable content ids. Each problem is one of three kinds: a choice between candidates, a single decision, or a score on ordered levels.
  2. The student (Qwen3.5-0.8B) must answer in strict JSON. Parsing failures are categorised, not silently dropped.
  3. The judge gets a state and a set of typed questions: the reference question for the problem's kind, auxiliary checks on each sample with explicit tolerances, and a comparison across the group of samples.
  4. Rewards combine imitation of the judge's direct typed answer with the auxiliary checks, and feed TRL's GRPOTrainer as group-relative rewards.
  5. Evaluation runs on a frozen fixture set: agreement with the judge, malformed-output rate, robustness to candidate order, Brier score, latency and cost.

Training is set up to run on Modal H100s with persistent volumes.

Why typed judge answers instead of free-text grades

Facts

ItemDetail
StudentQwen3.5-0.8B
TrainerTRL GRPOTrainer
Problem generatorDeepSeek V4.1 Flash through OpenRouter
ClientsMock, replay and live, so tests and dry runs make no network calls
History39 commits; tests and fixtures throughout
StatusImplementation complete. No training has been run

What you can buy

FAQ

What does "LLM as a judge" mean here?

A second model decides how good the student's answer is, and that decision becomes the training reward. In MOPD the judge answers typed questions, so the reward comes from a structured field rather than from parsing prose.

Has MOPD been trained?

Not yet. The implementation and tests are complete, and no training run has been made, so there are no accuracy or alignment results to report.

Does running the tests call a paid API?

No. Tests and dry runs use mock and replay clients, and make no live model calls.

Want this, or something like it?

License it, or have me build an environment in the same style.

Email me →
nextOpenAI Parameter Golfkeep scrolling