run-experiments
English
Design, run and report research experiments: training runs, ablations, sweeps, baselines, reproductions, including on a SLURM cluster. Use when asked to launch or debug a run, compare against baselines, reproduce a number, interpret results or decide whether a result is real. Also use before any run that costs GPU time and before delivering any experiment report.
Which skill helps?
No result yet. 0 sessions from 0 people so far.
A skill's result appears once 5 people have used it.
Skills for this task
Skill 1
being compareda member · 27 Nov 2026
Read it
# Running experiments
## Why this skill is demanding
Agent-run experiments have a documented failure pattern, seen again and again on real
projects: runs get launched and numbers get produced, but no ablations are run, so
nothing can be attributed; and the report is written for its author rather than for a
reader — context missing, choices unjustified, and the question that motivated the work
never actually answered. Everything below exists to prevent a recurrence. Orient by one
test: **the runs are not the deliverable; a report that answers the question is.**
## Start from the question
Every experiment exists to answer a question someone actually asked. Before designing
anything, write down:
- the question, verbatim;
- what concrete result would answer it *yes*;
- what concrete result would answer it *no*;
- what results would leave it open, and what follow-up each of those would trigger.
If the *no* line cannot be filled in, what is being designed is advocacy, not an
experiment, and it will not survive a reviewer. A useful forcing device is to draft the
conclusion sentence with blanks before any run: "Across ___ seeds on ___, ___
{beats/matches/loses to} ___ by ___ ± ___; we attribute this to ___ because ablation
___ shows ___." If no way of filling the blanks answers the question, the design is
wrong, and no amount of compute will repair it.
The report closes the loop: it must end by answering the question — yes, no, or open.
"Open" is a legitimate answer only when accompanied by the specific run that would
close it. A pile of numbers with no verdict is the failure mode, not a deliverable.
## Design: the run matrix and the ablations
Sloppy methodology is rarely a bad run; it is a missing one. Two instruments make the
missing runs visible at design time, when they cost a config file, instead of at
writing time, when they cost a week.
**The run matrix.** Before launching, write the full grid — (method variant) × (task) ×
(seed) — as an actual table. Every cell either runs or has its absence justified in the
report. The matrix is also the spine of the report and of the reviewer's audit, so it
is written once and kept current.
**The ablation buckets.** A comparison between systems that differ in k ways attributes
the gap to nothing. The headline comparison measures the total effect; only ablations
distribute the credit. Enumerate every way the method differs from each baseline —
components, hyperparameters, data processing, schedule, prompt template, decoding — and
place each difference in exactly one bucket:
1. **ablated** — a run isolates it. Change one factor at a time; leave-one-out from the
full method is usually the informative direction, since it measures each piece's
contribution at the operating point.
2. **matched** — set equal across arms so it cancels.
3. **cited** — justified by prior work, with the citation.
4. **declared** — an inherited default, honestly labelled as unvalidated.
There is no bucket "silently different". A causal claim — "the improvement comes from
X" — requires the ablation that isolates X; without it, write "the total effect of the
k changes is …" and state that attribution is unknown.
Hyperparameters that plausibly interact with the effect get a sensitivity check, not a
point value. A method that only wins at one learning rate is a finding about the
learning rate, and it is far better to discover that yourself than to have a reviewer
suspect it.
**The grid must not be the thing that decides.** When a hyperparameter is tuned, check
where the selected value landed *before* reading any result. If it sits at an endpoint of
its search range, the grid chose the outcome and the comparison is void — the method was
still improving when it ran out of grid. This is not a caveat to mention; it is a reason
to widen and re-run.
Three properties make it worth an explicit gate rather than vigilance:
- it is invisible in the numbers, which look perfectly reasonable;
- it is usually **asymmetric** — one arm binds and another does not — so it silently
favours whichever arm had room left, which is the worst possible failure for a
comparison;
- it recurs, because every widening invites the optimum to move outward again.
So make it mechanical: write a short script that reads the saved metric surface and
reports, per arm, whether the selected setting is interior, and run it as the first thing
after a sweep finishes and before any table is written. Two rules follow. Grids for
competing arms should share endpoints wherever the parameter means the same thing, so
neither arm is privileged. And when the optimum keeps escaping in the same direction
after widening, stop widening and report *that* — "the method's optimum lies at the edge
of what we searched, in the direction of less regularisation" is a finding, whereas a
number quoted from a boundary is not.
A discarded sweep goes in the log with the reason, not in the bin. It is evidence about
the design, and the next person to widen that grid should not have to rediscover why.
## Assessment, not advocacy
**Baselines must be given a real chance to win.** Use stock, well-tested
implementations for everything compared against, reserving custom code for the method
under study — a hand-rolled baseline is a bug farm whose bugs all point the same
direction. Tuning effort must be symmetric: tuning your method's hyperparameters while
the baseline keeps defaults is not a comparison, it is a demonstration.
## Reproduction anchors gate everything
Before any comparison run, reproduce a known published number with the baseline
implementation, in your own environment, on your own hardware. Until an anchor lands,
every comparison is uninterpretable: a gap could be the method, or a tokenizer
mismatch, or a wrong learning rate. Set anchors up explicitly as gates:
Anchor: <baseline> on <benchmark> (<model size>) -- target: the paper's Table N value within <tolerance>
Status: pending / PASSED (value, date, SHA) / FAILED (what differed)
Fill in the exact target *from the paper's table* before the run. A target chosen after
seeing the result is not a target. When your setup must deviate from the reference —
one GPU instead of eight, fewer steps, a different data filter — record the deviation
and the tolerance it justifies at the time of the run; deviations recorded afterwards
read as excuses and are usually forgotten entirely.
## Correctness before scale
GPU time is the most expensive thing in the loop and the worst place to discover a sign
error. Two cheap layers come first.
**Tabular tests.** Implement the loss, estimator, or update on a tiny instance where
the answer is available in closed form — exact expectations by enumeration, not
sampling — and assert agreement to machine precision. This catches sign errors, wrong
normalizations, misapplied importance weights, and detached-gradient bugs that a
training curve hides behind noise. Keep them as CPU-only tests: `uv run pytest`.
**Smoke runs.** Execute the *exact* config you intend to launch, for ~50 steps, on one
device, before submitting anything:
python train.py --config configs/<method>.yaml --set train.max_steps=50
Make the smoke run reach a checkpoint and an eval, not just a training step — jobs that
die at hour six usually die at the first checkpoint or eval.
## Configuration and seeds
- One config file per (method, task) cell; sweep axes go through dotted overrides
(`--set train.learning_rate=5e-7`), not new files. Record the **resolved** config
with the results — what you meant to run and what ran diverge silently.
- Multiple seeds, always, varying *everything* stochastic. Report spread, not just the
mean; a mean without a spread is not a result.
- Before claiming a difference, compare it to the seed-to-seed gap of a single config.
If they are comparable, there is no difference yet, only more runs to do.
- Decide the metric, the checkpoint rule, and the number of seeds **before** looking at
results. Choosing them afterwards is how honest people produce irreproducible papers.
## The results log
Every run appends to `RESULTS.md` — date, git SHA, config, overrides, seeds, hardware,
wall-clock, pre-declared metric, per-seed results, deviations, verdict, notes. The log
is append-only, and failures stay in it: a crash caused by an infrastructure detail is
not evidence about the method, and the log must make that impossible to misremember.
The run matrix in the report must reconcile against this log exactly.
Before each launch, check that the entry's question, metric, seeds and checkpoint rule are
written down.
## When a result looks too good
The prior is overwhelming: a large unexpected win is a bug in your own code. Before
believing it, check in order — **leakage** (test data in training, reward model trained
on the eval split); **evaluation asymmetry** (decoding parameters, max tokens, prompts,
stopping criteria, scoring code — a different max-tokens between arms is the most
common silent confound); **a broken baseline** (does it reproduce its own published
number — this is what anchors are for); **a moved metric** (same population, filter,
normalization); **an unfair comparison** (equal compute, data, tuning); **degenerate
solutions** (high reward with collapsed or repetitive outputs is reward hacking, not
capability). Look at raw outputs before believing any aggregate — five minutes of
reading samples routinely saves a week.
## Environment and cluster
Pin the environment (`uv sync` from a committed lockfile); anything installed outside
it gets its resolved version recorded in the log. Keep caches off the home quota
(`export HF_HOME=$SCRATCH/hf_cache`), one GPU per job unless genuinely needed, and read
the SLURM output file before assuming success.
## The report
The report is written for a reader with no access to this conversation, no memory of
the runs, and no reason to extend the benefit of the doubt. Structure:
1. **Question** — verbatim, with the pre-declared criteria for yes and no.
2. **Design** — what was run and *why this design answers the question*. Every
difference from every baseline appears here with its bucket (ablated / matched /
cited / declared) and its justification. A choice without a stated reason is a
defect, not a style preference: the reader cannot distinguish judgment from
accident, so unexplained choices discredit even the sound ones.
3. **What ran** — the run matrix as executed: configs, SHAs, seeds, hardware,
deviations, and the runs that failed or were abandoned. Must reconcile against
`RESULTS.md` exactly.
4. **Results** — the pre-declared metric with per-seed values and spread, plus a note
on raw-sample inspection. Numbers in prose must match the tables, and the way to
guarantee that is to **regenerate every number from the archive at the moment of
writing** — a script that reads the saved surfaces and prints the sentence's numbers
— never from terminal scrollback and never from memory. Prose numbers rot in a
specific and embarrassing way: counts ("in three of four settings"), ranges
("0.0-0.1 per run") and comparisons ("no arm differed") are recalled approximately,
read as precise, and are exactly what a reviewer checks first. Re-derive them after
every revision, because a number that was right when written silently stops being
right when a run is added or a cell is discarded.
5. **Answer** — the question answered in the first sentence: yes, no, or open, with
the honest strength of the evidence. A negative or inconclusive answer is a result
and is stated as plainly as a positive one — an experiment that cleanly established
"no" or "the effect is within seed noise" did its job.
6. **Gaps** — what is missing, what was done about each gap, and what remains open
with the concrete run that would close it.
Faithfulness is the invariant: every claim traces to a cell of the matrix, every cell
of the matrix (including failures) appears in the report, and "we found" is reserved
for things actually observed in this session.
**Language.** The report is written in the standard vocabulary of machine learning,
reinforcement learning, and optimization — the "Standard language, not private
vocabulary" section of the `research-writing` skill governs every
report this skill produces, whatever the format. Session-local labels (arm nicknames,
"setting 2", "Q3"), coined terms for concepts that already have names, undefined
symbols, and conversation-relative references ("the run from earlier") do not appear;
a knowledgeable reader with no session context must understand every sentence on
first read.
**Delegation.** A subagent asked to write or review a report does not inherit these
skills automatically — its prompt must name the skills to read (`run-experiments`,
`research-writing`, and for reviews the reviewer brief below). A report produced by an unbriefed
subagent has not been through this skill.
## The review gate
A report is not delivered until it has survived a hostile reading. Request a review
from an intellectually honest, knowledgeable, and nitpicky reviewer: a subagent when
available, briefed with the reviewer brief below plus the report, `RESULTS.md`,
and the configs — and *not* the conversation, because standing without it is part of
what is being tested. Without subagents, apply the same brief yourself as a cold
second pass.
**Reviewer brief.** You are reviewing a report you did not write, for a reader who was not
there. Read the report, the results log and the configs only. List every concern, each
marked major or minor, with the sentence it attacks. Check in particular: does the answer
follow from the runs, or only from some of them; does every number in the prose appear in
the log; is every difference between arms in a bucket with its reason; was any
hyperparameter selected at the edge of its grid; were the baselines tuned as hard as the
method; is any causal claim made without the ablation that isolates it; would a reader
who knows the field understand every sentence without the conversation. Do not soften:
your job is to find what would get the report rejected.
Then resolve every concern. Each receives exactly one disposition:
- **fixed** — the report was wrong or unclear; it has been corrected;
- **run** — the concern needs data; the additional experiment was run and folded into
the matrix, the log, and the report like any other cell;
- **conceded** — the limitation is real and stays; the report now states it where the
affected claim is made.
Silently dropping a concern, or rebutting it in the reply but not in the report, is not
a disposition. Re-review after resolving anything blocking; two to three rounds is
normal, and a reviewer still generating new minor items past that is a signal to ship
with concessions, not to loop. Keep the concern list and dispositions with the report —
they are the evidence the review happened, and the record of what almost got through.
Use this task
Sign in to add itNew here? Get started (5 minutes, once).
Or from a terminal
musain commons install run-experimentsHow it is measured
Pushbacks (fewer is better): Messages you type that contain "that's wrong", "that is wrong", "not what i asked", "that's not right" and 10 more.
Set by the area Design, run and analyse experiments, for all its tasks.