Explore the research collection
9 entries · Follow this search
- Paper
Continual Reinforcement Learning with Neuroevolution
Across changing environments without task-boundary markers, with policies ranging from a few hundred parameters to million-parameter vision networks, evolution strategies (ES) and genetic algorithms (GAs) are benchmarked against PPO, three continual-RL modifications, and population-based RL across low-dimensional control, navigation, continuous locomotion, and vision tasks. ES most consistently achieves the best stability-plasticity trade-off — outperforming all RL baselines in 8 of 18 settings, whereas no gradient RL method wins in any setting — while the GA is the most plastic method but forgets more than ES; rewarding behavioral diversity through novelty search makes the GA population even more plastic at the cost of forgetting. Mechanistically, the return landscape around each method's solutions shows ES finds the widest neighborhoods (regions of weight space in which perturbed policies still solve the task), 3.9x wider than PPO's, and the size of the overlap between consecutive tasks' neighborhoods correlates with a method's stability-plasticity trade-off. Symptoms of plasticity loss commonly reported in RL do not transfer to neuroevolution; the results suggest dormant neurons and weight drift stem from gradient optimization rather than non-stationarity itself, and that training under weight-space perturbations may be a useful continual-learning mechanism more broadly. Caveats: neuroevolution remains sample-inefficient and struggles on narrow return peaks.
- Paper
EasyPPO: Stabilizing the Critic Is Key
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.
- Code
PufferLib
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.
- Paper
When Do Larger Batches Help Scale LLM Reinforcement Learning?
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.
- Paper
Reinforcement Learning for LLMs: The Complete Guide
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.
- 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.
- Code
Open-Reasoner-Zero
PPO reasoning RL on Qwen2.5-0.5B/1.5B/7B/32B base (same 32B base as DeepSeek-R1-Zero-Qwen-32B). Claims superior AIME2024, MATH500, and GPQA Diamond versus that pipeline at about one-tenth the steps. Releases training scripts (including 0.5B on a single A800), critic models, and curated math data: original 57k (AIME through 2023, MATH, Numina, Tulu3 MATH) plus extended 72k cleaned from OpenR1-Math-220k equals 129k, plus 13k hard mined for 32B annealing. Later ORZ-R1-Distill-Qwen-14B (Jun 2025) beats Distill-Qwen-32B on AIME 2024/2025 and MATH500. Discord posted the data tree. Paper arXiv 2503.24290. MIT.
- Code
Hands-On Modern RL
walkinglabs/hands-on-modern-rl is VitePress courseware plus chapter labs: seven parts / 26 chapters from CartPole, MDPs, DQN, policy gradients, PPO, and offline RL into RLHF, DPO, GRPO, RLVR, reasoning models, tool-use/coding/browser/GUI agents, and VLM/audio/embodied RL, with safety/evaluation close. Equations sit next to compact PyTorch. CC BY-NC-SA 4.0. README flags AI-assisted drafting not yet fully reviewed. English translation and PDF via CI (2026-05-15).