Explore the research collection
3 entries · Follow this search
- Paper
SPICE: Self-Play In Corpus Environments Improves Reasoning
One model plays Challenger (mines a raw doc, writes MCQ or typed free-form QA with document-extracted gold) and Reasoner (solves without the doc). Challenger reward is a Gaussian on answer-variance peaked at 50% pass; Reasoner gets binary correctness (DrGRPO, role-specific advantages). 20k docs from Nemotron-CC-Math + NaturalReasoning. Qwen3-4B-Base 35.8→44.9 (+9.1); Qwen3-8B 43.0→48.7; OctoThinker-3B 14.7→25.2; OctoThinker-8B 20.5→32.4, beating R-Zero and Absolute Zero. Math avg +8.9 / general +9.8. Fixed-Reasoner pass 55%→35% as the Challenger hardens.
- Code
facebookresearch/RLCD (official reproduction code)
Official code for arXiv 2307.12950: simulate preference data (rlcd / rlaif / context distillation / rlcd_rescore variants), train reward model, PPO, generate evals. Built around LLaMA-7B alignment; data gen supports larger LLaMA. Harmless/helpful prompts from Anthropic hh-rlhf; outline prompts omitted for legal reasons.
- Paper
RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment
Canonical Meta/FAIR RLCD (≠ TypeSafe). For each prompt p, build p+ (encourage desired attribute) and p− (encourage opposite); sample o+/o− from the same unaligned LLM; auto-label o+ preferred (no post-hoc judge). Train preference/reward model on those pairs, then PPO-align the base LM as in RLHF. Contrastive generation differentiates outputs more than i.i.d. sampling, yielding cleaner synthetic prefs. Beats RLAIF and context distillation on harmlessness, helpfulness, and story outlining at 7B and 30B preference-sim scales (LLaMA). Code: facebookresearch/RLCD.