{
  "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.",
  "body": "",
  "notes": "Project Discover RLCD research 2026-09-16. Companion code catalog 1397. Acronym-only collision with TypeSafe RLCD (=Reinforcement Learning for Calibrated Decisions). HF harshatheg/Qwen-2.5-1B-RLCD (1373) is unrelated parallel constrained decoding despite name. Closest published objective cousin to TypeSafe calibration claim: RLCR 2507.16806 catalog 1398.",
  "url": "https://arxiv.org/abs/2307.12950",
  "links": [],
  "authors": [
    "Kevin Yang",
    "Dan Klein",
    "Asli Celikyilmaz",
    "Nanyun (Violet) Peng",
    "Yuandong Tian"
  ],
  "tags": [
    "rlcd",
    "meta",
    "fair",
    "contrastive-distillation",
    "rlaif",
    "rlhf",
    "ppo",
    "alignment",
    "acronym-collision"
  ],
  "topics": "LLM alignment, preference simulation, RLAIF alternative, PPO",
  "venue": "ICLR 2024 / Meta FAIR (arXiv 2307.12950)",
  "publisher": "ICLR 2024 / Meta FAIR (arXiv 2307.12950)",
  "source": "arxiv",
  "language": "en",
  "access": "https://arxiv.org/abs/2307.12950 ; ICLR 2024; https://github.com/facebookresearch/RLCD",
  "license": "arXiv; code see FAIR repo",
  "published_year": 2023,
  "added_at": "2026-09-16T20:27:10.000Z",
  "verified_at": "2026-09-16T20:27:10.000Z",
  "attrs": {
    "scale": "LLaMA 7B/30B preference simulation; Anthropic HH prompts for helpful/harmless",
    "domain": "LLM alignment, preference simulation, RLAIF alternative, PPO",
    "purpose": "Align LMs to natural-language principles without human preference labels by simulating cleaner preference pairs via contrastive prompts",
    "used_for": "Unknown",
    "author_type": "industry+academic",
    "time_period": "arXiv 2023-07-24; ICLR 2024"
  },
  "enrichment": {
    "s2": {
      "paper_id": "01d31fb9fc6ab36df6627b8555b64789113eb7a5",
      "published": "2023-07-24",
      "fetched_at": "2026-10-03T14:59:36.097Z",
      "citation_count": 46,
      "reference_count": 41,
      "influential_citation_count": 11
    },
    "arxiv": {
      "id": "2307.12950",
      "title": "RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment",
      "authors": [
        "Kevin Yang",
        "Dan Klein",
        "Asli Celikyilmaz",
        "Nanyun Peng",
        "Yuandong Tian"
      ],
      "comment": "ICLR 2024",
      "updated": "2024-03-16",
      "abstract": "We propose Reinforcement Learning from Contrastive Distillation (RLCD), a method for aligning language models to follow principles expressed in natural language (e.g., to be more harmless) without using human feedback. RLCD creates preference pairs from two contrasting model outputs, one using a positive prompt designed to encourage following the given principles, and one using a negative prompt designed to encourage violating them. Using two different prompts causes model outputs to be more differentiated on average, resulting in cleaner preference labels in the absence of human annotations. We then use the preference pairs to train a preference model, which is in turn used to improve a base unaligned language model via reinforcement learning. Empirically, RLCD outperforms RLAIF (Bai et al., 2022b) and context distillation (Huang et al., 2022) baselines across three diverse alignment tasks--harmlessness, helpfulness, and story outline generation--and when using both 7B and 30B model scales for simulating preference data.",
      "published": "2023-07-24",
      "categories": [
        "cs.CL",
        "cs.AI"
      ],
      "fetched_at": "2026-10-03T14:59:36.097Z"
    }
  },
  "enriched_at": "2026-10-03T14:59:36.132Z",
  "license_class": "other",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1396",
    "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-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/989",
  "markdown": "https://papers.projxon.ai/entries/989.md",
  "api": "https://papers.projxon.ai/api/entries/989",
  "relations": [
    {
      "relation": "cites",
      "direction": "in",
      "note": "",
      "via": "citations",
      "entry": {
        "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"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "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.",
      "url": "https://github.com/facebookresearch/RLCD",
      "authors": [
        "Kevin Yang et al. / Meta FAIR"
      ],
      "tags": [
        "rlcd",
        "meta",
        "fair",
        "github",
        "reproduction",
        "ppo"
      ],
      "venue": "GitHub",
      "source": "github",
      "license": "check GitHub LICENSE",
      "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": null,
      "downloads": null,
      "stars": 75,
      "page": "https://papers.projxon.ai/entries/990",
      "markdown": "https://papers.projxon.ai/entries/990.md",
      "api": "https://papers.projxon.ai/api/entries/990"
    },
    {
      "id": 742,
      "kind": "thread",
      "title": "Unslopping AI: Reinforcement Learning from eXpert-Aligned Rubrics (RL-XAR)",
      "summary": "Introduces RL-XAR (Reinforcement Learning from eXpert-Aligned Rubrics) to fight AI 'slop': learn rubrics that rank expert human writing above model output, then perform iterative RL against those rubrics with periodic rubric re-optimization. Trained Qwen3.5-27B with learned rubrics; Kimi-K2.6 used for rubric meta-optimization. Scientific-section experiments used 561 CS papers / 2,243 training examples and 90 papers / 360 validation examples.",
      "url": "https://x.com/swarnaNLP/status/2104603156357476512?s=20",
      "authors": [],
      "tags": [
        "reinforcement-learning",
        "alignment",
        "rubrics",
        "writing-quality",
        "meta",
        "reward-hacking"
      ],
      "venue": "Meta FAIR (RAM blog)",
      "source": "x",
      "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": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/742",
      "markdown": "https://papers.projxon.ai/entries/742.md",
      "api": "https://papers.projxon.ai/api/entries/742"
    },
    {
      "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": 540,
      "kind": "paper",
      "title": "Continual Learning via Sparse Memory Finetuning",
      "summary": "Replaces one mid-stack FFN with a 1M-slot memory layer (k=32, 4 heads) and finetunes only the top-t slots that are highly accessed on the current batch relative to DCLM pretraining (TF-IDF). On a 1.3B model, TriviaQA 1K fact stream: NaturalQuestions F1 drops 11% vs 89% full finetuning and 71% LoRA at matched target learning; document-stream SimpleQA shows the same Pareto pattern. Naive memory FT and TF-only ranking forget more. No official code on abs.",
      "url": "https://arxiv.org/abs/2510.15103",
      "authors": [
        "Jessy Lin",
        "Luke Zettlemoyer",
        "Gargi Ghosh",
        "Wen-Tau Yih",
        "Aram Markosyan",
        "Vincent-Pierre Berges",
        "Barlas Oğuz"
      ],
      "tags": [
        "sparse-memory-finetuning",
        "continual-learning",
        "catastrophic-forgetting",
        "memory-layers",
        "lora",
        "tf-idf",
        "fair",
        "meta"
      ],
      "venue": "arXiv / Meta FAIR / UC Berkeley",
      "source": "",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 21,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/540",
      "markdown": "https://papers.projxon.ai/entries/540.md",
      "api": "https://papers.projxon.ai/api/entries/540"
    },
    {
      "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": 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"
    }
  ]
}
