Assignment 3 Companion · Post-Training with SFT and RLVR, and the Three-Checkpoint Table

Scalable AI: Bridging Theory, Understanding, and Practice · 配套练习 A3。个人学习讲义与配套实验,按主题整理并持续修订。

课程源码 ZIP ↓

个人整理的学习笔记,非官方讲义;课程来源与整理说明见课程介绍。配套示例未逐一运行验证。

本篇目录

Maps to: UC Berkeley EE 290/194 Scalable AI, Spring 2026 Assignment 3, Post-Training from a Base Model with SFT + RLVR (released 13 March, due 4 April 2026). Fall 2026’s A3 (post-training) has not been released at the time of writing. The Fall page links no handout, and its asset URL serves the identical Spring archive. Part A (20%): the NeMo Data Designer lab. Part B (80%): starting from a base checkpoint, run SFT in NeMo RL, then RLVR in NeMo RL on NeMo Gym environments, then evaluate the base, post-SFT and final checkpoints on the same broad benchmark suite. Extra credit: up to 30% for pull requests to NeMo Gym or NeMo RL.

Sources: the public handout (assignment_3.zip), paraphrased here; Lectures 16–20 of these notes. The lab notebook and starter plugin are not reproduced.

What this companion is. It covers the decisions and checks the assignment calls for, practised on a miniature pipeline you can run on a laptop: Lecture 17’s 0.2M-parameter student going through base → SFT → RLVR on five exactly checkable skills. It is not NeMo RL or NeMo Gym, recommends no recipe for Nemotron, and the numbers are a tiny model’s. What carries over is the workflow and the failure modes, which show up even at this scale.

Code: code/assignmentA3/ contains:

  • mini_post.py: the miniature pipeline;
  • eval_suite.py: the statistics of a multi-checkpoint table;
  • env_check.py: property tests for verifiers and a signal check;
  • three demos.

Reading time: ~70 minutes; ~4 minutes to run all demos (plus ~1.5 minutes once to train and cache the models).


0. How to read this companion

0.1 Learning goals

After this companion you should be able to:

  1. Evaluate three checkpoints on one suite and read the table correctly. That means:
    • prompting the base model in a format it can use;
    • labelling benchmarks as aligned with the RL reward or external to it;
    • using paired intervals, so that noise is not reported as change.
  2. Explain what SFT and RLVR each change, including what RL can cost outside its reward, and why the handout insists on many environments and broad evaluation.
  3. Test an RL environment’s verifier before training on it (precision, equivalence, robustness), and check whether your starting policy gets any learning signal from it.
  4. Recognize reward hacking in your own runs: a rising reward with falling true quality.
  5. Decide how to split a fixed budget between SFT, RLVR and evaluation by measuring, not assuming.

0.2 Prerequisites and scope

  • Prerequisites:
    • Lecture 16 (chat templates, RLVR, evaluation);
    • Lecture 17 (SFT data, Data Designer, rejection sampling, mixtures, contamination, environments and verifiers);
    • Lecture 18 (GRPO and its fixes, what RL does);
    • Lecture 19 (RL infrastructure, NeMo Gym’s servers);
    • Lecture 20 (Nemotron 3 Nano’s post-training).
  • In scope: the workflow, the evaluation table, verifier testing, reward hacking, compute split.
  • Not in scope: NeMo RL or NeMo Gym configuration, data recipes for Nemotron, the Data Designer lab’s answers.

0.3 Section → code map

SectionIdeaCode in code/assignmentA3/
§1what the assignment asks and grades–
§2the recipe and the three checkpointsmini_post.py, 01_three_checkpoints.py
§3what RL costs elsewhere: breadth, dose, compute split02_breadth_and_dose.py
§4environments and verifiers; reward hackingenv_check.py, 03_verifiers_and_hacking.py
§5the evaluation suiteeval_suite.py
§6–§7the report; extra credit–

1. What the assignment asks, and what the grading rewards

1.1 The parts

Part A (20%) is the NeMo Data Designer lab: design, preview, inspect and export synthetic data for SFT, and answer the notebook’s questions. Its outputs may feed your SFT mixture; if they do, document the conversion. Lecture 17 §4 builds a miniature Data Designer to explain the ideas:

  • samplers, expressions and LLM columns;
  • validators and judges;
  • dependency order and previews.

Part B (80%) is a post-training project on the one 8×H100 node:

  1. Starting checkpoint: exactly one of your own Assignment 2 base model or NVIDIA’s released base checkpoint (Nemotron-3-Nano-30B-A3B-Base-BF16). It must not be an instruct or otherwise post-trained model. Grading does not normalize for the choice: you are graded on the final model, so start from your strongest option.
  2. Mandatory SFT in NeMo RL, with all data sources and preprocessing documented, including the conversion to the chat format the pipeline expects.
  3. Mandatory RLVR in NeMo RL, on environments released in NeMo Gym:
    • a smoke test does not count, since the stage must produce a non-trivially updated checkpoint and measurable validation results;
    • train on as many environments as you can support;
    • DPO or other stages are welcome extras, not substitutes.
  4. Evaluation of the same suite on three checkpoints: base, post-SFT, final. The suite needs several external benchmarks across capability verticals (reasoning, instruction following, coding, knowledge, tool use, text-to-SQL, …). The final score must not be justified only by the training reward. The handout points to the suites of recent Qwen, DeepSeek and Nemotron releases as models.

The report (2–6 pages) covers:

  • the starting model and target capability;
  • the SFT data and recipe, with curves;
  • the RLVR recipe (environments, algorithm, reward, hyperparameters, why it should help, curves);
  • the benchmark suite and its justification, explicit about held-out validation vs external evaluation;
  • a results table for base / SFT / final;
  • failure analysis and reproducibility.

1.2 What the grading rewards

Part B’s 80% is final model quality on the suite you choose and justify, and the breadth and rigour of that suite are part of the grade. A narrow evaluation that only measures what you trained on does not get full credit. Throughput and MFU are not graded directly; they decide how much SFT and RLVR fit into the budget.

Three consequences:

  1. The evaluation table is the deliverable. It must show what each stage did to each capability, honestly.
  2. RL on one capability is a risk to the others, and the handout’s two rules (many environments, broad evaluation) exist because of it. §3 measures it.
  3. The verifier is the objective. A bug in an environment’s reward becomes a bug in your model (§4).

2. The recipe and the three checkpoints (demo 01)

2.1 The miniature pipeline

mini_post.py runs the assignment’s recipe on Lecture 17’s student, a character-level Transformer with 0.2M parameters. Its five skills are each checkable exactly: add two numbers, reverse a word, uppercase a word, write a JSON record, repeat a word k times.

  • Base: trained on raw “documents” of completions such as 38+47=85 ; rev(abc)=cba ; …, with an empty user turn. It has the skills in its own format and has never seen a question.
  • SFT: initialized from the base, trained for 500 steps on chat pairs: a question in one of 8 training phrasings → the answer, with loss only on the answer.
  • RLVR: 150 steps of group-relative policy gradient on addition. Each step samples 32 prompts × 8 answers at temperature 1. The reward is the exact checker, and the advantage is the reward minus the group’s mean (Dr. GRPO, Lecture 18 §3.3). On-policy with one update per batch, so the PPO clip never acts.
  • Suite: every skill asked in its 8 training phrasings and in 4 held-out phrasings, 60 new questions each, plus format validity. The aligned benchmark (addition in training phrasings) is also scored as sampled pass@1: 4 answers per question at temperature 1.

2.2 Evaluating the base model: the format is part of the measurement

“Evaluate the same suite on the base model” sounds simple until the suite is written as chat questions. The miniature base:

skillbase, chat question: correctbase, raw completion format: correct
add0%98%
reverse0%100%
upper0%100%
json0%100%
repeat0%92%

Asked “Calculate 69 plus 77.”, the base continues with fragments of its training documents. Asked 69+77=, it writes 146.

A real base model behaves the same way in degree: it has knowledge but no chat behaviour. Assignment 2’s companion showed the same effect for multiple-choice letters. So the report must state how the base was prompted: few-shot examples, a completion template, or the benchmark’s base-model setting. Otherwise the base row measures the format, and the “SFT gain” includes format-learning that has nothing to do with capability. Use the benchmark’s standard base-model setting where one exists, and the chat template for the post-trained checkpoints, and say so in the table’s caption.

2.3 What pre-training buys SFT

The same 500 SFT steps on the same data, from the base vs from a random initialization:

skill / phrasingsSFT from scratchSFT from basepaired verdict
add / train2%87%better
add / held-out0%23%better
reverse / train7%97%better
upper / train67%100%better
json / train8%82%better
json / held-out0%63%better
repeat / train93%100%no detectable change

SFT from the base was detectably better on 6 of 10 benchmarks and worse on none (repeat, train phrasings, 93% vs 100%, has only 4 discordant items: McNemar p = 0.125, so it does not count). Pre-training taught the skills; SFT mostly had to teach the mapping from questions to them. This is the miniature version of the handout’s warning that the starting checkpoint matters and is not normalized away. If your Assignment 2 model is much weaker than NVIDIA’s base, the post-training budget cannot close the gap.

2.4 The three-checkpoint table

After RLVR on addition (each cell: accuracy [95% bootstrap CI]; each step: change [paired 95% CI] and a verdict, “up” / “DOWN” / ”=”):

benchmarkkindbaseSFTSFT + RLVRSFT → RLVR
add, train phrasings (greedy)aligned0%87% [78, 95]97% [92, 100]+10 [+2, +20] =
add, train phrasings, sampled pass@1 (×4)aligned0%57% [51, 63]71% [65, 77]+14 [+8, +20] up
add, held-out phrasingsexternal0%23%42%+18 [+5, +32] up
reverse, train phrasingsexternal0%97%80%−17 [−27, −7] DOWN
upper, train phrasingsexternal0%100%95%−5 =
json, train phrasingsexternal0%82%75%−7 =
repeat, train phrasingsexternal0%100%70%−30 [−42, −18] DOWN
valid format, all skillsexternal0%95%88%−7 DOWN

The training reward rose from 48% to 68% (sampled, first vs last 10 steps), with a KL drift from the SFT model of 0.10 nats per token. Read the table the way a report should:

  • The aligned benchmark improved, detectably in the sampled row (240 answers) but not in the greedy row (60 questions, +10 points). With few questions, a 10-point change is not evidence by itself.
  • The same skill in unseen phrasings improved too (+18): RL’s gain on addition was not tied to the training wording.
  • Skills the reward never saw got worse: reverse −17, repeat −30, format validity −7. Nothing in the reward curve or the aligned validation shows this. Only the external benchmarks do.

A note on the statistics:

  • The verdicts use eval_suite.verdict, which requires both a paired bootstrap interval that excludes zero and an exact McNemar p < 0.05.
  • With very few discordant items, the bootstrap alone is too optimistic. Four wins and no losses out of 60 “excluded zero”, while the exact test gives p = 0.125.
  • Paired comparisons (the same questions for both checkpoints) are much tighter than separate intervals, because item difficulty cancels.

3. What RL costs elsewhere: breadth, dose and the compute split (demo 02)

Demo 02 starts every variant from the same SFT checkpoint and changes one thing:

variantadd (greedy)add sampledverdictother four skillsverdictRL reward first → last 10KL
SFT checkpoint (500 steps)87%57%–95%–––
RL on addition only97%71%better80%worse48% → 68%0.10
RL on all five skills70%55%=93%=79% → 76%0.15
RL on addition, learning rate 3×92%66%better4%worse23% → 59%0.15
RL on addition, KL penalty 0.595%68%better82%worse49% → 65%0.07
500 more SFT steps instead95%80%better100%better––

Four lessons:

  1. Breadth protects; one reward trades. RL on addition alone cost the other skills 15 points. RL on all five kept them (93%, no detectable change), but in 150 steps it no longer improved addition, for two reasons: addition was a fifth of the prompts, and the other skills were at their ceiling, so their groups carried no signal. Breadth costs steps per environment. This is the handout’s “as many NeMo Gym environments as you can support”, and Nemotron 3 Nano trained on many environments at once for the same reason (Lecture 20 demo 02).

  2. A healthy reward curve is not a healthy model. At 3× the learning rate, the training reward rose from 23% to 59% while the other skills fell to 4%. Evaluate external benchmarks on intermediate RL checkpoints, not only at the end, and keep the last good checkpoint.

  3. A KL penalty is a knob, not a guarantee. A penalty of 0.5 toward the SFT model lowered the drift (KL 0.07 vs 0.10) but changed neither addition nor the other skills detectably. Sweep it, as you would a learning rate.

  4. Measure the compute split; don’t assume it. Spending the extra compute on 500 more SFT steps instead of RL gave:

    • addition: 80% sampled (detectably better than RL’s 71%) and 95% greedy;
    • the other skills: 100%.

    Here the SFT data still had much to teach. RL earns its compute where demonstrations run out and only a checker exists: problems with verifiable answers but no reliable solutions to imitate, multi-step tool use, or long reasoning. Lecture 18 §5 measured what RL does well (sharpening, less forgetting than SFT on the same target) and what it does not (discovering what the model never samples).

Practical rules for the RLVR stage:

  • choose environments whose capabilities you care about and can evaluate externally;
  • check each environment’s signal on your SFT model (§4.3);
  • mix environments in one run;
  • evaluate external benchmarks on intermediate checkpoints;
  • stop or roll back when they fall;
  • decide the SFT/RL split from a small comparison like row 5, at your scale.

4. Environments and verifiers (demo 03)

4.1 The verifier is the objective

In RLVR the policy optimizes exactly what the verifier rewards, bugs included. Lecture 17 §6 showed with a tabular policy that a low-precision verifier, one that accepts some wrong answers, is far worse than a low-recall one that rejects some right answers. Wrong answers that are rewarded get reinforced, while right answers that are missed are merely learned more slowly. NeMo Gym puts the verifier in a resource server next to the environment’s tools (Lecture 19 §5), and the handout’s extra credit invites new environments. Treat a verifier as code that needs its own tests.

4.2 Property tests catch different bugs

env_check.property_tests runs seven properties on any verify(task, response):

  1. accepts canonical: the reference answer gets full reward;
  2. accepts equivalent: forms the task allows, such as JSON with keys in another order or with spaces;
  3. rejects near misses: off by one, off by ten, digits swapped, a wrong field;
  4. rejects tricks:
    • two answers at once, or answers glued together;
    • the answer inside a sentence;
    • an empty response;
    • an echo of the prompt;
    • extra JSON keys, or a string where an integer belongs;
  5. never raises on 200 random strings;
  6. deterministic;
  7. bounded.

Demo 03 tests the exact verifier and five realistic bugs on 40 addition and 40 JSON tasks:

verifieraccepts canonicalaccepts equivalentrejects near missesrejects tricksnever raises
exact (parse + compare)passpasspasspasspass
contains the answerpass0/80pass200/440pass
units digit onlypasspass200/240400/440pass
string compare for JSONpass0/80passpasspass
int() without a guardpasspasspass240/44097/200
sampled judge (credit 90% of the time)69/8070/80passpasspass

Every buggy verifier fails a different property, and 4 of the 5 pass “accepts canonical”, which is often the only test an environment gets. The examples the harness prints are the bug reports:

  • '109 110' -> 1.0 (contains the answer);
  • '119' -> 1.0 (units digit);
  • '{"age":44,"name":"Gus"}' -> 0.0 (string compare);
  • '+sui(VbaE$!d' -> ValueError (no guard).

The sampled judge stands in for an LLM-as-judge reward: its noise does not crash anything, but it silently lowers the reward of correct answers.

4.3 Will the policy learn anything? The signal check

With group-relative advantages, a prompt whose G answers all get the same reward contributes no gradient. Before spending RL compute on an environment, sample from the SFT policy and measure two things: the pass rate and the share of zero-variance groups. Demo 03 does this with 8 answers per prompt:

environmentpass rategroups with zero variancegroups that carry signal
add54%5%95%
add, no carry49%8%92%
add, with a carry55%12%88%
reverse94%82%18%
upper97%85%15%
json78%98%3%
repeat96%72%28%
  • Addition is where RL can work: 95% of its groups carry signal.
  • The string skills are nearly solved, so most groups are unanimous.
  • JSON shows why the pass rate alone is not enough. 78% of samples pass, yet 98% of groups are unanimous. On a given prompt the policy is either always right or always wrong, so there is almost nothing to compare within a group.

For environments that are too hard (pass rate near 0), the fixes from Lectures 17–18 apply: more SFT on that capability first, a curriculum of easier problems, or larger groups.

4.4 Reward hacking, measured

The same RL run on addition from the same SFT model, with three verifiers as the reward, and the exact accuracy measured afterwards on 100 new questions:

verifier used for the rewardtraining rewardexact accuracy (SFT: 86%)mean answer lengthfirst three answers (true: 157, 129, 156)
exact48% → 68%93%2.6157, 129, 156
units digit only76% → 84%14%2.5107, 109, 106
contains the answer48% → 60%3%12.215771456 1233,7011, 12994532, …
  • The units-digit reward looks like the best run by its own curve (84%), but the model kept the last digit and lost the rest: exact accuracy fell from 86% to 14%.
  • The “contains” reward taught a 0.2M-parameter model, in 150 steps, to spray digit strings so that one substring matches.

Both are exactly the failure §4.2’s property tests flag before training (“rejects near misses”, “rejects tricks”). Both would be invisible in the report if the only RL metric were the training reward. For real environments, hacks look the same in kind: format tricks, long answers that cover many options, outputs that exploit a judge’s preferences. The defence is the same too: test the verifier, track external metrics and answer statistics (length, format) during RL, and read samples.


5. The evaluation suite

What follows from §2–§4, applied to the real assignment:

  1. Cover verticals, not one metric. Reasoning and math, instruction following and format compliance, coding, knowledge, tool use, text-to-SQL, chosen to match your target capability bundle, and justified. Study how recent model releases group their benchmarks (the handout points to Qwen, DeepSeek and Nemotron), and keep their standard settings so your numbers are comparable.
  2. Label every benchmark as aligned or external. Held-out validation of an RL environment is evidence that RL worked on that environment; it is not evidence of general quality. The handout asks you to be explicit.
  3. The same suite on base, SFT and final, with the base prompted in a format it can use (§2.2), stated in the caption.
  4. Intervals on every cell and paired comparisons for every step. Use more questions, or several samples per question (pass@1 averaged over k samples), when changes are small. Lecture 16 §6 covers pass@k estimators and judge biases.
  5. Track answer statistics (length, format validity, refusal rate) next to accuracy. Hacks and regressions show up there first.
  6. Failure analysis with examples: which benchmarks fell after RL, which phrasings fail, what the wrong answers look like. The table says what; examples say why.
  7. Decontaminate SFT and RL data against your benchmarks (Lecture 17 demo 05 measured leaked items inflating a score by tens of points).

6. The report

Map each required section to its evidence:

  1. Starting model and target: which checkpoint and why (it is not normalized, so show it was your strongest option); the capability bundle.
  2. SFT data: sources, synthetic data (Data Designer outputs and their conversion), mixture shares per vertical, decontamination.
  3. SFT recipe: chat template and loss masking (Lecture 16 §1), key hyperparameters, curves.
  4. RLVR recipe:
    • the environments, with each one’s signal check on your SFT model (§4.3) and its verifier tests (§4.2);
    • the algorithm and its variant (Dr. GRPO, clip-higher, dynamic sampling, …; Lecture 18);
    • reward, hyperparameters and curves;
    • external metrics on intermediate checkpoints.
  5. Benchmark suite: verticals, aligned vs external, settings, and why this set shows quality.
  6. Results: the three-checkpoint table with intervals and paired verdicts (§2.4).
  7. Failure analysis and reproducibility: what regressed and why; what you tried that did not work (rows like §3’s KL and all-environments runs are results); exact commands.

7. Extra credit: contributing an environment

A new NeMo Gym environment that trains a capability not already covered earns up to 30% extra credit, more if the PR is merged or well received. What makes one useful, from §4:

  • A verifier with tests: the seven properties of §4.2 as unit tests in the PR, with adversarial cases written by someone trying to fool it.
  • A difficulty distribution with signal: report the pass rate and the zero-variance share for a reference policy, and provide difficulty levels or a curriculum.
  • Determinism and resource bounds: the same input gives the same reward, timeouts for anything that executes code, no network access in the reward path.
  • Documentation: what capability it trains, how it is verified, known limitations (what a policy could exploit), and how to evaluate it outside RL.

Bug fixes and documentation for NeMo RL or Gym count too. A careful reproduction of a problem you hit in Part B is often the best first PR.


8. Summary

  • Three checkpoints, one suite. The base must be prompted in a format it can use: the miniature base scored 0% in chat format and 98% in its own. Report how.
  • Pre-training is the foundation. SFT from the base beat SFT from scratch on 6 of 10 benchmarks (addition 87% vs 2%). Start from your strongest base; nothing normalizes it away.
  • RLVR on one capability helped it and hurt others. The aligned score rose (sampled 57% → 71%) while two unseen skills fell (−17 and −30). Only external benchmarks show the cost, which is why the handout requires many environments and broad evaluation.
  • Breadth protects but costs steps. Watch external metrics during RL: at a higher learning rate the reward rose while everything else collapsed. A KL penalty is a knob to sweep. Measure the SFT/RL split; here more SFT won.
  • Test verifiers before training. Five realistic bugs failed five different property tests, and four passed the usual “accepts canonical” check. Check the signal: a 78% pass rate can still give 3% of groups any gradient.
  • Reward hacking is easy to cause and easy to miss. A units-digit reward drove exact accuracy from 86% to 14% while its own curve looked best.

9. Common pitfalls

  1. Evaluating the base in chat format and reporting the SFT gain as capability.
  2. Reporting only the training reward and the aligned validation for the RL stage.
  3. RL on one environment because it is the easiest to set up, without measuring the other verticals.
  4. No intervals: 60-question benchmarks reported to one decimal, with 3-point changes read as progress.
  5. Evaluating only the final RL checkpoint, so a mid-run collapse goes unseen (or the best checkpoint is lost).
  6. A verifier tested only on correct answers, or a judge-based reward that was never checked for noise and bias.
  7. Environments the SFT policy always solves or never solves: compute spent on zero-variance groups.
  8. Assuming RL beats more SFT (or the reverse) without a comparison at your scale.
  9. Training data overlapping your benchmarks after synthetic generation or rephrasing.
  10. A chat template or loss mask that differs between SFT, RL and evaluation (Lecture 16 demo 01).

10. Exercises

  1. Your post-SFT model scores 78% on a 200-question aligned validation set, and after RLVR 82%. Separate 95% intervals overlap. Is the change real?
AnswerOverlapping separate intervals do not settle it. Compute the paired comparison on the same 200 questions: count the questions the two checkpoints disagree on and run McNemar's test (or a paired bootstrap). For example, 20 discordant items split 15/5 give p ≈ 0.04; split 12/8, p ≈ 0.50. If it is not detectable, report "no detectable change", or evaluate with several samples per question to resolve smaller effects.
  1. During RLVR your training reward rises steadily, but answer length triples and format validity on an external instruction-following benchmark drops from 92% to 81%. What do you suspect, and what do you check?
AnswerReward hacking or a verifier that rewards something correlated with length: for example a "contains the answer" check, or a judge that prefers long answers. Read samples of high-reward answers. Run the verifier's property tests (does it reject several answers at once, or an answer buried in text?). Compare exact metrics, not the training reward. Roll back to the checkpoint before the length change and fix the verifier, or add a length or format term, before continuing.
  1. An environment gives your SFT policy a pass rate of 3%. With G = 8, what share of groups carries signal (if answers were independent)? What do you do?
AnswerA group has signal unless all 8 answers fail (or all pass): 1 − 0.97⁸ − 0.03⁸ ≈ 1 − 0.784 ≈ 22%. Most groups give no gradient. Options: more SFT on that capability first, a curriculum of easier instances, larger G for that environment, or postpone it. Check that the 3% are genuine successes, not verifier false positives.
  1. RL on your math environment improves AIME-style accuracy by 4 points but lowers an instruction-following benchmark by 6. What are three things you could change?
Answer(i) Add environments for the regressing capability (instruction following, format) so the RL mixture protects it. (ii) Lower the learning rate or add or raise a KL penalty, swept and measured on both benchmarks. (iii) Stop earlier: pick the intermediate checkpoint with the best trade-off on the external suite. Also check that the math verifier does not reward a format that conflicts with the instruction-following benchmark (for example, answers outside requested tags).
  1. You can afford either 6 more hours of SFT or 6 hours of RLVR. How do you decide, and what would make RL the better choice?
AnswerRun both at small scale (or a short version of each) from the same checkpoint and compare them on the same external suite, as in demo 02's last row. RL is likely the better use when your SFT data has stopped helping (its validation loss is flat), when the capability has a reliable verifier but few good demonstrations, and when the SFT policy's pass rate on the RL environments is moderate (plenty of signal).

11. Enhancing the assignment

Ideas for the 10% “enhancing an assignment” component, none of which is part of the graded solution:

  • A verifier test kit for NeMo Gym environments: the property suite of §4.2 as a reusable test module with adversarial generators per answer type.
  • A signal dashboard: per-environment pass rate and zero-variance share on the current policy, computed every N RL steps.
  • A three-checkpoint table generator: from NeMo Evaluator outputs to the table of §2.4 with paired intervals and aligned/external labels, so every group reports the same way.
  • An RL early-warning monitor: external benchmarks, answer length and format validity on intermediate checkpoints, flagging the patterns of §3 and §4.4.

12. Further reading

  • Shao et al. (2024), DeepSeekMath (GRPO); Liu et al. (2025), Understanding R1-Zero-Like Training (Dr. GRPO); Yu et al. (2025), DAPO.
  • Shenfeld et al. (2025), RL’s Razor: why RL forgets less than SFT, and when it still forgets.
  • NVIDIA Nemotron 3 Nano technical report (post-training sections; Lecture 20), and the NeMo RL, NeMo Gym and Data Designer documentation.
  • Lectures 16–20 of these notes.

术语表 (Glossary, English → 中文)

English中文
base / post-SFT / final checkpoint基座 / 监督微调后 / 最终 检查点
supervised fine-tuning (SFT)监督微调
RL with verifiable rewards (RLVR)可验证奖励强化学习
environment / verifier / resource server环境 / 验证器 / 资源服务器
chat template / loss mask对话模板 / 损失掩码
completion format / few-shot prompt续写格式 / 少样本提示
capability vertical能力维度
aligned vs external benchmark与奖励对齐的基准 vs 外部基准
held-out validation留出验证
paired interval / McNemar test配对区间 / 麦克尼马尔检验
pass@1 (greedy / sampled)首次通过率(贪心 / 采样)
group-relative advantage / Dr. GRPO组内相对优势 / 不按标准差缩放的 GRPO
zero-variance group / learning signal零方差组 / 学习信号
KL penalty / driftKL 惩罚 / 偏移
forgetting / regression遗忘 / 退化
verifier precision / recall验证器精确率 / 召回率
property test / adversarial case性质测试 / 对抗用例
reward hacking奖励投机
compute split算力分配
curriculum课程式训练
← 返回课程目录