Show Your Work: Gemma2 Process Rewards

Google Tunix hackathon submission. GRPO and hybrid process rewards so Gemma2 2B shows its reasoning.

Kaggle NotebookWriteup

I submitted this for Google Tunix Hack (Train a model to show its work, Jan 2026). The brief was not just “get the answer right.” The model should show how it got there.

What I built#

A 4-tier hybrid reward system for Gemma2 2B-IT, trained with GRPO and LoRA on a TPU v5e-8, all inside one ~9-hour session.

The bet: score the reasoning process with structured LLM-as-judge rubrics, not answer correctness alone.

Reward tiers#

  1. Format compliance (+0.5). Binary check for <reasoning>…</reasoning> / <answer>…</answer>. Kept weak so the model cannot farm tags.
  2. Reasoning quality (±1.0). Gemini 2.0 Flash as judge under a Rubrics as Rewards setup:
    • Logical coherence (30%)
    • Completeness (25%)
    • Groundedness (20%)
    • Non-circularity (15%)
    • Clarity (10%)
  3. Answer correctness (±1.0). Hybrid:
    • math/science: string match or numeric epsilon
    • open-ended: Gemini on relevance, completeness, clarity, helpfulness, tone
  4. Conciseness (±1.0). Word-count bands that favor focused traces under a ~1K token budget.

Scores land in roughly [-1, 1] for GRPO so weak process actually hurts.

Data#

5k prompts, about 70% non-verifiable / 30% verifiable. That matched the competition focus and what a 2B model is good at:

SourceShareRole
OpenOrca35%instruction / explanation
WritingPrompts25%creative
SciQ20%science QA
GSM8K10%math
HH-RLHF10%helpful dialogue

Training stack#

Infrastructure that mattered#

LLM-as-judge is expensive and flaky if you are careless. The eval path used:

Early sanity runs showed classic reward gaming: perfect tags, shallow reasoning. Fixes were a weaker format weight, flexible regex (.search instead of anchored .match), a minimum reasoning quality before positive format payoff, and tighter judge prompts.

Takeaways#

Process rewards work when format is a soft scaffold and quality and correctness carry the real weight. Caching and batching make Gemini-as-judge usable inside a fixed TPU budget. Hybrid deterministic plus LLM correctness covers math and open domains without forcing one evaluator everywhere.