burtenshaw's picture
|
download
raw
3.93 kB

Score centering on one GPU

How much can a mismatch between a language model and its sampler change what it learns? In this one-seed Countdown run, both arms started at 37 correct answers out of 512. At the last evaluation, plain policy gradient scored 0/512 and score centering scored 256/512. Both arms completed 100 optimizer steps. The job spent 58 minutes running on one NVIDIA L40S.

This is a reduced reproduction of the strongest sampler weight noise setting in Figure 3 of Score Centering Stabilizes Off-policy Reinforcement Learning, by Martin Marek and Max Ryabinin. The accompanying video also explains the paper’s separate finding on stale rollouts. In the experiment shared here, the sampler was refreshed every step. Paper · Authors’ sweep

Run it on Hugging Face Jobs

Download the bucket with the Hugging Face CLI. Previewing the job shows the resolved command.

hf buckets sync hf://buckets/burtenshaw/score-centering-one-gpu ./score-centering-one-gpu
cd score-centering-one-gpu
bash reproduce.sh --dry-run

To launch on your own Jobs account, run the following commands. This submits one paid, two-hour-limited L40S job and prints its job ID.

hf auth login
bash reproduce.sh

Follow the new job with hf jobs logs --follow JOB_ID. The launcher runs both arms sequentially, resets to the same starting model for each arm, and prints the metrics to the job log.

What the run measured

The model was Qwen3-0.6B. Each update used 8 prompts, 8 completions per prompt, a 512-token sequence limit and SGD with a learning rate of 0.01. Both arms used group-centered rewards and a fixed sampler-weight perturbation at scale 0.05. The experimental arm enabled score centering with the sampler’s top 128 token log probabilities. The source paper used 64 training prompts per step and 300 steps in this sweep.

Each evaluation sampled 8 answers for each of the same 64 held-out puzzles. The counts below are correct completions out of 512. The final evaluation occurred immediately before the hundredth optimizer update.

Updates before evaluation Plain policy gradient Score centering
0 37 37
20 14 146
40 2 163
60 0 241
80 0 262
99 0 256

Files and provenance

  • results/held-out.csv contains evaluation counts and accuracy. results/training-metrics.jsonl contains all 200 step records. pg denotes plain policy gradient and sc denotes score centering.
  • results/job.log contains the captured job output. job.json records the provider’s launch command, hardware, status and timestamps. The original job ID was 6b0b32ec54072e8b716ebd8c.
  • original-run.sh is the original container command. It checks out author commit fdca22b19793babdf08e33e5ba51537e82cbed2f and applies the same one-line JAX sampler sharding fix to both arms.
  • reproduce.sh adds version constraints for the original uv bootstrap and the 187 distributions in packages.txt. The original run recorded the image tag python:3.13-bookworm and model ID Qwen/Qwen3-0.6B. Their immutable revisions were not captured. Hardware, model revisions and numerical variation may affect a rerun.
  • asyncgrpo-stale-rollouts-paper.mp4 is the narrated explainer, with optional English captions and an opening image from the paper. The AI-generated British narration uses the George voice from Kokoro-82M, rendered with its full-precision ONNX weights. The narration script is in narration.txt.
  • SHA256SUMS records the SHA-256 digest of each file.

Xet Storage Details

Size:
3.93 kB
·
Xet hash:
9083f756f884b0b595620e354eec4d8c8606960adff1dd5e57ca27c84e775e9b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.