Reference
Related work
Every paper, post and dataset card cited across the project, from DeepSeek V4 and GSPO to sampler–learner mismatch, asynchronous RL and PocketRL, each with what I used from it and the caveats worth knowing.
Every source cited across the project, grouped by topic. Each entry gives the original link, one line on how it relates to my work, and, where it matters, a caveat I found when reading it. Quotes are exact and short.
// § 01
The model and the training system
- DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence. arXiv 2606.19348. My router’s sqrt-softplus scores, routed scaling of 2.5 and SwiGLU clamp at 10 come from V4. Its §3.3 describes batch-invariant, deterministic kernels for bitwise alignment between pre-training, post-training and inference: the property my first GSPO update lacked at expert parallelism 8.
- Hugging Face, The Ultimate MoE Training Handbook, with its companion gist. huggingface.co/spaces/huggingface/moe-blogpost. My launch recipe is the handbook’s tested script. Its comparison of routers from initialization (four of its five are named), with quantile balancing the fastest named router and the bias-only rule flat (on an older Megatron commit with a bf16 token-count bug), shaped my router decision.
- NVIDIA, Megatron-LM. github.com/NVIDIA/Megatron-LM. The framework for every GPU stage, pinned at commit d6316eb45, with my patch for GSPO’s sequence-level ratio.
// § 02
RL algorithms
- Zheng et al., Group Sequence Policy Optimization (GSPO). arXiv 2507.18071, and the Qwen blog post. My RL algorithm. The paper’s settings are a clip of 3e-4 / 4e-4, 4 mini-batches and about 15% of tokens clipped; the blog gives no hyperparameters.
- DAPO. arXiv 2503.14476. Clip-Higher, dynamic sampling, a token-level loss, Overlong Filtering and the soft overlong penalty that my reward uses. Its Table 1 is cumulative (naive GRPO 30 → 50 on AIME, with dynamic sampling the largest step at +8); caveat: one run per row.
- Understanding R1-Zero-Like Training: A Critical Perspective (Dr. GRPO). arXiv 2503.20783,
COLM 2025. It argues that GRPO’s \(1/|o|\) and \(1/\text{std}\) terms bias answer length and how much each question counts. Its
\boxed{}grader, through PocketRL, was the control run’s reward. - MiniMax-M1 technical report (CISPO). arXiv 2506.13585. CISPO clips a detached importance weight instead of masking, so no token loses its gradient. Caveat: the “2× speedup” over DAPO is one run per method, and the clip value is never given.
- Geometric-Mean Policy Optimization (GMPO). arXiv 2507.20673. Without clipping it is exactly GSPO’s objective; it differs only in clipping per token, in log space, at ±0.4. It is never compared with GSPO, with single runs.
- Group reward-Decoupled Normalization Policy Optimization (GDPO). arXiv 2601.05242. It normalises each reward within its group before adding them, then over the batch. Caveat: its text says a 6.7-point AIME gain where its table gives 6.3.
// § 03
Sampler–learner mismatch and numerics
- The Microsoft AI Team, RL infrastructure at Microsoft AI (Nov 2026). microsoft.ai/news/rl-infrastructure-at-microsoft-ai. Its list of mismatch sources (“differences in kernels, parallelism, operation ordering, and intermediate rounding”) covers my two laptop bugs, a kernel difference and intermediate rounding; the mapping is my interpretation, since both bugs were inside the learner. They reached bitwise sampler–learner parity. My drift-by-staleness readings compare with the shape of their Figure 3. Caveat: Figure 6 is one run per arm, launched a month apart.
- Sha (Zoey) Li, Off-Policy Corrections in LLM RL Training (blog, 2026-03-01). zoeyli.com/blog/Off-Policy-Corrections-LLM-RL. Five sources of mismatch and their corrections. “Backend mismatch is eliminated only when both phases use the same engine” was the basis of my own rollout engine. It calls GSPO’s geometric mean “a heuristic”; my MoE measurements bear on that.
- Sha (Zoey) Li, A Field Guide to Training–Inference Corrections. zoeyli.com/blog/Field-Guide-Training-Inference-Corrections. “The same sequence scored in a batch of 8 and in a batch of 512 accumulates in a different order”: the mechanism of my batch-composition bug.
- Feng Yao, Liyuan Liu, Dinghuai Zhang, Chengyu Dong, Jingbo Shang and Jianfeng Gao, On the Rollout-Training Mismatch in Modern RL Systems (NeurIPS 2025 Workshop: Efficient Reasoning). A mean probability gap of about 3e-3 to 5e-3 hid a maximum of 1.0 at every step, and putting the sampler’s probability inside the PPO clip collapsed training. Caveats: single runs, no cap reported, large models only.
- Thinking Machines (Horace He in collaboration with others), Defeating Nondeterminism in LLM Inference. thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference. It shows that “the forward pass in an LLM is in fact ‘run-to-run deterministic.’” Yet 1,000 temperature-0 completions of Qwen3-235B gave “80 unique completions”. It explains why only 40% of my greedy texts repeated: the kernels are not batch-invariant.
- Zhoutong Fu, Rollout–Training Mismatch in LLM RL. zhoutongfu.github.io/zhoutong-ai-blog/posts/rl-mismatch-mitigation. It warns that “using BF16 in both engines does not fix differences in kernel arithmetic or reduction order”. Its fix for batch-dependent GEMMs is batch-invariant accumulation.
- Zhoutong Fu, Entropy in LLM RL: Dynamics and Control. zhoutongfu.github.io/zhoutong-ai-blog/posts/entropy-in-llm-rl. At a per-answer success rate of 0.01, the chance of a mixed group “rises from 7.73% for 8 responses to 47.44% for 64”. The same effect drove my switch from groups of 8 to groups of 32.
- Martin Marek and Max Ryabinin, Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv 2609.20807. Their GSPO baseline, at the GSPO paper’s clip that my laptop runs used (0.9997–1.0004), falls to about 0% with an FP4 KV cache (read by eye), because every ratio uses the sampler’s logged probabilities. “With an FP8 sampler, even uncorrected policy gradient trains stably.” Caveats: the mismatch is deliberately severe, training uses SGD, and results are training reward only.
// § 04
Asynchronous RL and the RL system
- Guangming Sheng et al., Laminar: A Scalable Asynchronous RL Post-Training Framework (EuroSys '26). doi.org/10.1145/3767295.3803580; code at github.com/verl-project/laminar. 2.56× over synchronous verl on average, and 1.41× averaged over all its baselines at 64 GPUs or fewer. Its SWE recipe uses GSPO’s loss with a 4e-4 clip and refuses any KL term. Caveats: one run per system, no MoE in the paper.
- Hugging Face TRL, AsyncGRPOTrainer (main branch, read 2026-11-25).
huggingface.co/docs/trl/main/en/async_grpo_trainer. Its
score_centeringoption trains “instead of the clipped objective”, and it has no reference model. - NVIDIA NeMo RL, Inkling 2 Mini GRPO guide (branch inkling2-small). github.com/NVIDIA-NeMo/RL. A median generation KL of 0.0009 (BF16, synchronous), and the router bias kept in FP32 through weight refit.
- Zhenrui Yue et al., Replay, Don’t Resample: Off-Policy Consolidation of Long-Horizon RL Experts. arXiv 2611.24059. Table 1 Overall: MRPD 58.6 against MOPD 58.1, in 9 h against 29 h on 8 H100s.
- Rollout routing replay (R3). arXiv 2510.11370, ICML 2026. It replays the inference engine’s expert choices in the training forward. Between Megatron and SGLang, “about 10%” of router decisions differ; with R3, GSPO on Qwen3-30B-A3B went from 66.76 to 69.00. The fix for MoE routing differences if I move rollouts to another engine.
- Miles. arXiv 2609.08368. A Megatron or FSDP trainer with SGLang rollout engines, in synchronous and fully asynchronous modes, with R3. It builds on slime, which pairs Megatron with SGLang, the stack closest to mine. LMSYS’s DeepSeek-V4 day-0 post describes its DeepSeek-V4 RL.
- NVIDIA, Megatron-Bridge. github.com/NVIDIA-NeMo/Megatron-Bridge. Converts Megatron ↔ Hugging Face checkpoints, DeepSeek V4 included; my model would need its own bridge subclass for its router.
// § 05
Rewards, graders and RL tasks
- Shreshth Rajan, Auditing Reward Hackability in Code RL Training Environments. arXiv 2606.16062. Grader mutation (scaling, noise, NaN or infinite values, constants) as an audit that needs no model. Also: “61.9% of LLM-written repair tests fail on the gold patch”.
- Yash Gupta, three articles on building RL tasks (Nov 2026): Why pass@k is the most important curve to grok, Why your RL tasks land at 0/8 or 8/8 and One generic answer passed 82% of our RL tasks. The first gives the mixed-group probability \(1 - (1-p)^G - p^G\); the third reports “It passed 82% of them. The best frontier model we had tested passed 48%.”
- harness-hub, automation-adapter-envs dataset card. huggingface.co/datasets/harness-hub/automation-adapter-envs. “qualified minus control was +1.9 points [−0.6, +4.5]”: a controlled comparison reported with its interval.
- Hangzhan Jin, Mohammad Hamdaqa and Doina Precup, Exploration-Preserving Policy Optimization. arXiv 2610.04011. Advantage shaping (its Eqs 6–9) with λ = 0.2; 150.12 against 151.70 GPU-hours (Table 7). Caveat: single training runs.
- Kian Kyars, Reinforcement Learning from Verifiable Rewards (rlvrbook.com, version 1 of 2026-09-26; read 2026-12-03). Chapter 5: “RLVR needs a capable starting policy in the sparse-reward regime”. My control run is a measured case of it.
// § 06
Data
- Shubham Toshniwal et al., OpenMathInstruct-2: Accelerating AI for Math with Massive Open-Source Instruction Data (NVIDIA). arXiv 2410.01560; dataset nvidia/OpenMathInstruct-2 (CC BY 4.0). My SFT data. New questions are labelled by majority voting among 32 generations, and “models are indeed robust to the presence of up-to 20% of low-quality solutions during SFT”. Caveat: its vote-threshold result is for an 8B student on MATH, not a weak student on grade-school problems.
- sentence-transformers/multi-qa-MiniLM-L6-cos-v1. huggingface.co/sentence-transformers/multi-qa-MiniLM-L6-cos-v1. The retriever the OpenMathInstruct-2 paper names; my near-duplicate check uses it.
- Meta, Llama 3.1 and Llama 3.2 Community License Agreements, §1.b.i (identical text in both). It sets naming and attribution terms for any distributed model built with Llama materials or their outputs. My tokenizer is Llama 3.2’s, and my SFT solutions are Llama 3.1 outputs.
// § 07
The comparison point
- Stephen Chung and Wenyu Du (DualverseAI), PocketRL: Training a 7B Language Model with Reinforcement Learning on One RTX 5090 (27 Nov 2026). arXiv 2611.37942; code at github.com/dualverse-ai/pocketrl. My control run matched its Dense arm on Qwen2.5-Math-1.5B at update 100 of Dense’s 700 (MATH-500 avg@8 53.95% against about 53.5%). Its metric: “We report avg@8, the fraction of correct answers across eight sampled answers per question at temperature 1, on six mathematics test sets”. Caveats: one model family and math only; LoRA at its best rate matched its method (68.8% vs 68.8%); and “Dense performs worse than ActGRA” compares a Dense arm run at one learning rate with a swept ActGRA; the paper’s explanation for it is a stated hypothesis.
- Thinking Machines, LoRA Without Regret. thinkingmachines.ai/blog/lora. LoRA matches full fine-tuning for RL “even with ranks as low as 1”. Its authors avoided Qwen2.5 and Qwen3 for RL measurement, because those models were “pretrained on data that improves their math performance”: a caveat on my control run’s base model.
// § 08
How I present the work
- Shinibali B., GPT-2 (124M) to Gemma 3-Style (113M) language models, Part 1. shinibali.github.io/gpt2-to-gemma-part-1. The model for how I present this work: findings first, one change per run, a seed-noise band on its charts. Not a source of claims.