#741·laya

Controlled A/B: GRPO + proper-reward term shows no measurable gain over (soft) cross-entropy in the fine-tune loop

Author: PengyiZhangCreated Sep 29, 2026Updated Sep 29, 2026

Summary

We ran a controlled three-arm ablation of the fine-tune objective in notebooks/laya_finetune_typed_decisions_2xT4_kaggle.ipynb and found no measurable gain from the GRPO + proper-reward term over plain soft cross-entropy — on your own model, data, and hyperparameters.

Setup (single A100, seed 42, faithful to the notebook)

  • Model: convaiinnovations/laya; data: LocalLLaMA/typed-decisions train split (6,000 items)
  • Same preprocessing, same calibration holdout (seed 20260922), EPOCHS=4, effective batch 64, σ 0.4→0.1 per-epoch, LR 2.5e-5/1e-4, cosine, clip 1.0
  • Three arms, differing only in the loss:
Arm Loss
A rlcd notebook loss as-is: loss_rl + 1.0 · soft-CE
B pure-ce soft-CE only
C direct-proper −proper_reward(softmax(logits), target) differentiated directly (no noise / no GRPO)

Results (test split, 1,200 scored decisions, T=1)

Metric B: soft CE A: GRPO + proper (notebook) C: direct proper
hard acc 80.50% 79.08% 79.92%
ECE (10-bin) 11.82% 11.18% 12.04%
Brier 0.0501 0.0543 0.0516
TV 0.1294 0.1336 0.1304
KL(g‖p) 0.0840 0.0916 0.0847

We observed the same pattern on two of our own one-hot tasks (a Qwen guard answer-card model, 6,000-sample eval: safety ECE 0.52% with multi-slot CE vs 3.75% with live GRPO; a VLM MCQ task: acc tied, ECE 2.57% vs 3.49%).

Why this is expected in hindsight

  • Soft cross-entropy is the expected log score — it is already a strictly proper scoring rule, with the same optimum (q = target) as proper_reward. So the two objectives share their optimum; only the optimization path differs.
  • The GRPO term E[ε·(r−r̄)]/σ² is an evolution-strategies-style, high-variance estimate of ∇E[r] — but proper_reward(softmax(logits), target) is differentiable, so the exact gradient is computable (arm C). Arm A ≈ arm B's direction plus Monte-Carlo variance, which matches the results (A slightly worst or tied everywhere; the late σ→0.1 with 1/σ² amplification jitters an already-converged solution).

Notes

  • To be clear: your notebook's detach usage is correct (z = logits.detach() + eps keeps the score-function gradient live). We initially ported it without the .detach(), which silently zeroed the PG term (gradient became bit-identical to CE) — that bug is how we ended up running these A/Bs in the first place. Regression tests for this are worth having on any fork.
  • The notebook ships no CE-only arm, so as far as we can tell the RLCD term's benefit has never been isolated in a controlled comparison — it may be doing pure variance in this supervised regime.
  • Where we do think reward-based training earns its keep: when the reward encodes something CE cannot express (non-differentiable downstream utility such as coverage×accuracy gating costs, environment outcomes, consistency-under-perturbation). That's where we're pointing our own follow-ups.

Happy to share the three-arm training/eval scripts if useful.