{
  "id": 990,
  "kind": "code",
  "title": "facebookresearch/RLCD (official reproduction code)",
  "summary": "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.",
  "body": "",
  "notes": "Companion to paper catalog 1396.",
  "url": "https://github.com/facebookresearch/RLCD",
  "links": [],
  "authors": [
    "Kevin Yang et al. / Meta FAIR"
  ],
  "tags": [
    "rlcd",
    "meta",
    "fair",
    "github",
    "reproduction",
    "ppo"
  ],
  "topics": "LLM alignment code, preference simulation, PPO",
  "venue": "GitHub",
  "publisher": "GitHub",
  "source": "github",
  "language": "en",
  "access": "https://github.com/facebookresearch/RLCD",
  "license": "check GitHub LICENSE",
  "published_year": 2023,
  "added_at": "2026-09-16T20:27:10.000Z",
  "verified_at": "2026-09-16T20:27:10.000Z",
  "attrs": {
    "scale": "Reproduction stack for 7B (+ optional 30B data sim)",
    "domain": "LLM alignment code, preference simulation, PPO",
    "purpose": "Reproduce Meta RLCD preference simulation → reward model → PPO pipeline",
    "used_for": "Unknown",
    "author_type": "industry",
    "time_period": "Paired with ICLR 2024 paper"
  },
  "enrichment": {
    "github": {
      "forks": 6,
      "stars": 75,
      "pushed": "2023-08-18",
      "created": "2023-08-07",
      "license": "MIT",
      "archived": true,
      "language": "Python",
      "full_name": "facebookresearch/RLCD",
      "fetched_at": "2026-10-03T14:33:48.088Z"
    }
  },
  "enriched_at": "2026-10-03T14:33:48.127Z",
  "license_class": "other",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1397",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:33:48.127Z",
  "page": "https://papers.projxon.ai/entries/990",
  "markdown": "https://papers.projxon.ai/entries/990.md",
  "api": "https://papers.projxon.ai/api/entries/990",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 989,
      "kind": "paper",
      "title": "RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment",
      "summary": "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.",
      "url": "https://arxiv.org/abs/2307.12950",
      "authors": [
        "Kevin Yang",
        "Dan Klein",
        "Asli Celikyilmaz",
        "Nanyun (Violet) Peng",
        "Yuandong Tian"
      ],
      "tags": [
        "rlcd",
        "meta",
        "fair",
        "contrastive-distillation",
        "rlaif",
        "rlhf",
        "ppo",
        "alignment",
        "acronym-collision"
      ],
      "venue": "ICLR 2024 / Meta FAIR (arXiv 2307.12950)",
      "source": "arxiv",
      "license": "arXiv; code see FAIR repo",
      "published_year": 2023,
      "added_at": "2026-09-16T20:27:10.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 46,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/989",
      "markdown": "https://papers.projxon.ai/entries/989.md",
      "api": "https://papers.projxon.ai/api/entries/989"
    },
    {
      "id": 1041,
      "kind": "paper",
      "title": "When Do Larger Batches Help Scale LLM Reinforcement Learning?",
      "summary": "Tencent Hunyuan RL Team paper (arXiv 2608.29296v1, cs.LG; companion research post hy.tencent.com/research/100116, EN/ZH, page date 2026-09-21) on when larger batches cut wall-clock time-to-target for online LLM RL. Decomposes T=N*/q: larger batch helps only when throughput gain exceeds samples-to-target penalty (r_q>r_N). Two-stage recipe: (1) establish approximate sample-indexed batch-size invariance via Adam √LR retuning η(B)=η0√(B/B0); (2) optimize generation/train throughput within that regime (generation–training asymmetry: decode often bandwidth-bound, sublinear collection time vs ~linear train). GRPO on Qwen3-30B-A3B-Instruct-2507, filtered DAPO-MATH-17K (4,853 rows), G=8, mean@32 AIME 2024/2025: invariance ~P=64–1024; degrade at 2048/4096. Best tuned P=1024: time-to-target 11.90→8.42 h (−29%, 0.71×) with +41% throughput and r_N=1, no extra GPUs; at P=2048/4096 a +60% sample cost outweighs +30%/+36% throughput (T 1.23×/1.18×). PPO on Hunyuan MoE policy+value (3B active each), G=1: aligns ~256–2048, degrades at 4096; gen throughput up to 2.29× (B 256→1024). Fixed-LR control slower despite higher throughput. No public code/HF/dataset links.",
      "url": "https://arxiv.org/abs/2608.29296",
      "authors": [
        "Ziniu Li",
        "Jinbo Wang",
        "Guanhua Huang",
        "Feiyuan Zhang",
        "Pengbo Li",
        "Alex Chen (Tencent Hunyuan Team / RL Team)"
      ],
      "tags": [
        "batch-size",
        "llm-rl",
        "grpo",
        "ppo",
        "hunyuan",
        "tencent",
        "throughput",
        "time-to-target",
        "learning-rate-scaling",
        "critical-batch",
        "qwen3",
        "dapo-math",
        "aime"
      ],
      "venue": "arXiv / Tencent Hunyuan Research",
      "source": "arxiv",
      "license": "CC BY 4.0 (arXiv)",
      "published_year": 2026,
      "added_at": "2026-09-25T01:37:18.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 1,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1041",
      "markdown": "https://papers.projxon.ai/entries/1041.md",
      "api": "https://papers.projxon.ai/api/entries/1041"
    },
    {
      "id": 1079,
      "kind": "paper",
      "title": "Just Ask Jev: Reinforcement Learning for Calibrated Decisions as a Zero-Shot Detector of AI Alignment Failures",
      "summary": "arXiv 2609.29429 (published 2026-09-24). Introduces RLCDAlignBench: evaluates TypeSafe Jev (jev-1.13.0) as a zero-shot alignment-failure detector across 10 failure types (sycophancy, jailbreaks, deception, prompt injection, hallucination, privacy, social bias, reward hacking, concealing uncertainty, power seeking), 44 benchmarks, 7,193 instances from five open 2–7B targets. Separates what Jev is asked (generic vs targeted questions; Noul/Choice/Score) from what it sees (canonical state vs field ablations). Generic Noul reaches median AUROC 0.886 (31 benchmarks) and beats supervised TF-IDF/length on 25; split-half targeted +0.006; matches StrongREJECT human agreement of the reference scorer (κ 0.809 vs 0.811) at 63× lower cost than LLM judges ($0.30 vs $18.96 on 19 API-judge benches). Confident disagreements surface label defects. Code/data: github.com/sumleo/RLCDAlignBench.",
      "url": "https://arxiv.org/abs/2609.29429",
      "authors": [
        "Ruoqi Guo",
        "Yi Liu",
        "Gelei Deng",
        "Yuekang Li",
        "Lida Zhao",
        "Yutao Wu",
        "Simin Chen",
        "Ying Zhang",
        "Leo Yu Zhang"
      ],
      "tags": [
        "jev",
        "typesafe",
        "system-one",
        "rlcd",
        "alignment",
        "rlcdalignbench"
      ],
      "venue": "arXiv / Griffith University; Nanyang Technological University; UNSW; Deakin University; George Mason University; Wake Forest University",
      "source": "arxiv",
      "license": "CC BY 4.0 (paper); code MIT / data CC BY 4.0 per paper reproducibility statement; upstream benchmark licenses retained",
      "published_year": 2026,
      "added_at": "2026-09-28T00:40:50.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 4,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1079",
      "markdown": "https://papers.projxon.ai/entries/1079.md",
      "api": "https://papers.projxon.ai/api/entries/1079"
    },
    {
      "id": 713,
      "kind": "code",
      "title": "PufferLib",
      "summary": "PufferLib is an open-source (MIT) reinforcement learning library focused on fast, compatible simulation. It offers one-line wrappers making complex environments (NetHack, Neural MMO, Griddly) compatible with Gymnasium/PettingZoo-style libraries, drop-in vectorization, and Puffer Ocean — 12 C environments each simulating at over 1M steps/second on a single CPU core. A PPO demo trains Ocean envs at 300K–1.2M steps/second on a single RTX 4090.",
      "url": "https://puffer.ai/",
      "authors": [
        "Joseph Suarez (PufferAI)"
      ],
      "tags": [
        "reinforcement-learning",
        "simulation",
        "environments",
        "open-source",
        "ppo"
      ],
      "venue": "puffer.ai (docs); GitHub PufferAI/PufferLib",
      "source": "web",
      "license": "",
      "published_year": null,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/713",
      "markdown": "https://papers.projxon.ai/entries/713.md",
      "api": "https://papers.projxon.ai/api/entries/713"
    },
    {
      "id": 1039,
      "kind": "paper",
      "title": "Reinforcement Learning for LLMs: The Complete Guide",
      "summary": "Cameron R. Wolfe’s Aug 24, 2026 Substack guide traces RL for LLMs from fundamentals (MDPs, returns, value/advantage, KL, importance sampling) through LLM formulations (token-level MDP vs completion bandit; RLHF vs RLVR) to policy-gradient algorithms used in practice: VPG, REINFORCE/RLOO, PPO with GAE, and GRPO, plus GRPO-era extensions (GSPO, DAPO, Dr. GRPO, truncated importance sampling) and related infrastructure notes (TRL, OpenInstruct). Written as a self-contained overview pointing to Lambert’s RLHF Book, Sutton & Barto, Spinning Up, Raschka, Schulman notes, Lilian Weng, and prior Deep (Learning) Focus posts—not a single new empirical paper. Cataloged as a survey-style paper/blog item; citations are noted thematically rather than auto-expanded into separate catalog rows.",
      "url": "https://cameronrwolfe.substack.com/p/llm-rl",
      "authors": [
        "Cameron R. Wolfe",
        "Ph.D."
      ],
      "tags": [
        "llm-rl",
        "rlhf",
        "rlvr",
        "ppo",
        "grpo",
        "gspo",
        "dapo",
        "reinforce",
        "policy-gradient",
        "cameron-wolfe",
        "survey",
        "substack"
      ],
      "venue": "Substack (cameronrwolfe.substack.com)",
      "source": "blog",
      "license": "Substack publication (standard site terms; not an open-license paper)",
      "published_year": null,
      "added_at": "2026-09-24T19:26:11.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1039",
      "markdown": "https://papers.projxon.ai/entries/1039.md",
      "api": "https://papers.projxon.ai/api/entries/1039"
    },
    {
      "id": 792,
      "kind": "paper",
      "title": "EasyPPO: Stabilizing the Critic Is Key",
      "summary": "Argues PPO's learned critic is a major source of instability in RL for LLMs, and identifies two critic failure modes. First, filtering truncated rollouts from both actor and critic shifts the policy objective to reward conditioned on completion, letting truncation grow even as conditional reward improves. Second, heterogeneous return noise lets high-variance prompts dominate critic updates in finite batches. Introduces EasyPPO: actor-only overlong filtering (critic trains on returns from completed and truncated rollouts), noise-normalized critic regression (each prompt's critic loss weighted by the inverse standard deviation of its sampled returns, balancing noise contributions across prompts), and moderately smaller critic minibatches to confine outlier influence during gradient clipping. No new actor loss, no new policy algorithm; actor update unchanged. Across continuous-reward coding on FrontierCS, binary-reward math reasoning on AIME24, and multi-turn search on Search-R1, using Qwen3.5-9B with rollout batch sizes 512-1024, EasyPPO stays stable through the full training horizon with zero training collapse and beats vanilla PPO, VAPO, and HL-Gauss PPO; best validation scores show relative gains of 14.89%, 2.28%, and 9.47% over PPO respectively.",
      "url": "https://arxiv.org/abs/2609.36802",
      "authors": [
        "Xuanyi Zhou",
        "Qiuyang Mang",
        "Huanzhi Mao",
        "Dacheng Li",
        "Wenhao Chai",
        "Mayank Mishra",
        "Yichuan Wang",
        "Karthik Narasimhan",
        "Alvin Cheung",
        "Joseph E. Gonzalez"
      ],
      "tags": [
        "ppo",
        "reinforcement-learning",
        "post-training",
        "critic",
        "training-stability",
        "value-function",
        "grpo"
      ],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/792",
      "markdown": "https://papers.projxon.ai/entries/792.md",
      "api": "https://papers.projxon.ai/api/entries/792"
    }
  ]
}
