Update card
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139---license: cc-by-4.0pretty_name: 'RL dynamics: reward-hacking training run copper-badger-10'tags:- reinforcement-learning- gradients- sketching- interpretability- lora---
# RL dynamics: training run copper-badger-10
One instrumented training run from Apollo Research's RL-dynamics project. The run repeats the UK AI SecurityInstitute's reward-hacking setup: GRPO on competitive-programming problems whose tests can be reward-hacked, with a KLcoefficient of 0.02, training LoRA adapters on `allenai/Olmo-3.1-32B-Instruct-SFT`. For every optimizer step thedataset holds:
- the adapter;- the rollouts the step trained on;- readout rollouts: the same 48 prompts answered by every checkpoint, never trained on, to measure its behaviour;- a random-projection sketch of every rollout's gradient.
Reward hacking is detected by the environment and recorded with each rollout; a judge model labels each rollout forunfaithful chain-of-thought (copper-badger-9 also has emergent-misalignment judgments).
The run's id inside the files is `aisi_hsg_kl002_seed2_train4x16_readout48x48_s60to400step_rep1_20261002-123500_1720`.
## The runs of this release
Each run is a dataset of its own, `apollo-research/rl-dynamics-<run>`.
| Run | In the paper | Steps | Started from | Readout rollouts per step (prompts × samples) ||---|---|---|---|---|| copper-badger-1 | the parent run | 0 to 149 | a fresh adapter | 48 × 12 || copper-badger-6 | Run 1 | 75 to 117 | copper-badger-1, checkpoint 75 | 48 × 12 || copper-badger-7 | Run 2 | 75 to 118 | copper-badger-1, checkpoint 75 | 48 × 12 || copper-badger-8 | Run 3 | 60 to 156 | copper-badger-1, checkpoint 60 | 48 × 12 || copper-badger-9 | Run 4 | 60 to 116 | copper-badger-1, checkpoint 60 | 48 × 12 || copper-badger-10 | a separate run, with 48 readout samples per prompt | 60 to 116 | copper-badger-1, checkpoint 60 | 48 × 48 |
Step N is the update from checkpoint N to checkpoint N+1: `gradients/step_000060/` holds gradients taken at`checkpoint-60`, and the readout rollouts of step 60 were sampled from it (step 0's at `theta0_adapter`: there is no`checkpoint-0`). A run that started from a checkpoint has its own copy of it. Every step trains on 4 problems × 16rollouts. A training rollout may have been sampled by an earlier checkpoint; its `sampling_policy_id` names which.
## Layout
Paths are the training code's own, so a relative path recorded in a file (a step's `attempt_<id>/`, a manifest'scontainer path) resolves in a download, unless it names a file that was left out (last section).
```run/config.yaml resolved configuration; external_init_provenance names the parent run and checkpointrun/external-init-download.json the parent checkpoint's files with their sha256, as published in copper-badger-1 (runs started from a checkpoint)run/stream_manifest.json the training data stream: the problems and prompts of every batch, in orderrun/consumption_manifest.jsonl which batch each optimizer step consumed (also in consumption_manifest_segments/)run/resume_provenance/ the code version at each restart of the runrun/checkpoints/README.md the trainer's generated model cardrun/checkpoints/checkpoint-N/ the adapter after N optimizer steps (PEFT format), tokenizer files, trainer_state.json adam_attribution/rankNNNNN.pt optimizer state the trainer saved for attributing the next update, per training process (a dict of float32 tensors)run/checkpoints/theta0_adapter/ the adapter before the first step (copper-badger-1 only)run/rollouts/generation/stream_batch_NNNNNN/rank_NN.jsonl training rollouts: prompt, completion, token log-probabilities, rewardsrun/rollouts/readout/step_NNNNNN/ readout rollouts sampled from checkpoint N (rollouts.jsonl) and their manifestrun/eval_logs/{train,readout}/step_NNNNNN.eval the same rollouts as Inspect logsbehaviors/<behavior>/<definition>/definition.json the judge: system prompt, response schema, model and settings (<definition> ends in its version, as in unfaithful_cot_v4)behaviors/<behavior>/<definition>/step_NNNNNN/labels.jsonl one judged label per rollout, with the judge's raw answerbehaviors/emergent_misalignment/<definition>/step_NNNNNN/ copper-badger-9 only: the extra prompts (inputs.jsonl), the answers (generation.json), one judged row per file (labels/row_NNNNNN.json) and the few rows whose judging failed (failures/)gradients/step_NNNNNN/ the step's gradient archive summary.json the step's learning rate, clipping, counts and rates; attempt_id names the attempt_<id>/ directory that counted manifest.jsonl one row per sketched gradient: rollout id, kind, container and row readout_q_values.jsonl, train_q_values.jsonl each rollout's exact inner products with the aggregate gradients, taken before sketching group_terms.jsonl per training problem (a group of 16 rollouts): its advantages and per-group update terms readout_probability_weights_<behavior>.jsonl per readout rollout: its label for the behaviour, its importance ratio (capped at 10) and its weight grad_p_readout_<behavior>.pt full-dimension aggregate gradients (not stored for copper-badger-1) attempt_<id>/parameters.json parameter names and offsets: the coordinate order of a flat gradient attempt_<id>/rank_NN/sketches/ bfloat16 [rows, 4194304] containers per gradient kind, manifest.jsonl, transform.yamlsketch_transform/ the projection every sketch uses: coordinates.pt and transform.yamlstart_checkpoints.json copper-badger-1 only: size and sha256 of every file a new run reads to start from checkpoint 1 to 120```
`rank_NN` and `rankNNNNN` name one of the four training processes.
A rollout id, `<run id>|step000100|readout|row000`, is the same in the rollouts, the judged labels and the gradientmanifests.
Every sketch is a subsampled randomised Hadamard transform of a gradient over the 268,435,456 adapter parameters to4,194,304 coordinates, the same transform for every run and step, so inner products between sketches approximateinner products between the gradients.
## Downloading a part
```pythonfrom huggingface_hub import snapshot_download
repo = "apollo-research/rl-dynamics-copper-badger-10"# the adapter and adam_attribution/ (6 to 11 GB); add ignore_patterns=["*/adam_attribution/*"] for the adapter alonesnapshot_download(repo, repo_type="dataset", allow_patterns=["run/checkpoints/checkpoint-100/*"], local_dir="run_dir")snapshot_download(repo, repo_type="dataset", allow_patterns=["gradients/step_000100/*", "sketch_transform/*"], local_dir="run_dir")```
A checkpoint is 0.5 GB of adapter plus 6 to 11 GB of `adam_attribution/`; the starting checkpoints (below) hold 3 GBmore each. A step's gradient archive is 6 to 20 GB. A sketch container opens with `torch.load(path, mmap=True)`, andso does an `adam_attribution/` file. The Hub's file listing gives the sha256 of every `.pt` and `.safetensors` file.
## Starting a new run from a checkpoint
Only the copper-badger-1 dataset's `checkpoint-1` to `checkpoint-120` hold what a new run needs to start from acheckpoint: the optimizer state (`global_step<N>/`), the scheduler, the random-number states and the trainer'sarguments. The other five runs started from two of them, 60 and 75. Every other checkpoint, including a later run'sown copy of 60 or 75, holds the adapter without that state.
These files are Python pickles of DeepSpeed, transformers and NumPy objects (`global_step<N>/*.pt`, `rng_state_*.pth`,`training_args.bin`): `torch.load` opens them only with `weights_only=False`, which runs code stored in the file, andthe Hub's file scanner marks them as pickles.
## What differs from Apollo's internal copy
- Every file is byte-identical to the internal copy except two: `run/config.yaml` and, in a run started from a checkpoint, `run/external-init-download.json`. Internal storage locations in them are shortened, the bucket URI to `s3://<archive>/…` and machine-local path prefixes to `<local>/…`. A later run's `run/config.yaml` records the sha256 of copper-badger-1's `run/config.yaml` as it was before (`source_run_config_sha256`), which the published file does not hash to.- Two kinds of file still hold a machine-local path of the training machine: in the copper-badger-1 dataset, `training_args.bin` of `checkpoint-1` to `checkpoint-120` (the trainer's output directory), and in the copper-badger-9 dataset each step's emergent-misalignment `generation.json` (the path the sampler loaded the adapter from).- Left out: the start state of every other checkpoint (see above); the run's operational records (crash-recovery copies, resume bookkeeping, logs, launch records, benchmarks); the source snapshot; other attempts of a retried step; the files of a final step that the run did not complete; and the per-chunk judgment files that each step's `labels.jsonl` already merges. Some published metadata still names files that are not here: other attempts of a retried step, the per-chunk judgment files, raw per-rollout gradients.
## License
CC BY 4.0 for the data. The adapters are derived from `allenai/Olmo-3.1-32B-Instruct-SFT` (Apache 2.0). Please citeApollo Research's RL-dynamics work when you build on this data.README.mdAdded+139