clsa-code / PROGRESS.md
fahadhafeezofficial's picture
Upload folder using huggingface_hub
fd5366a verified
|
Raw History Blame Contribute Delete
5 kB
# Build log
Newest last. Every entry says what was run and what it produced, so a reader can
tell a completed stage from a planned one.
## 1. Scaffold and protocol
- Repository layout, MIT licence with SPDX headers, pinned dependencies.
- `PRE_REGISTRATION.md` written and committed at `7d3946a` **before** any main
run; hypotheses, thresholds and falsification criteria frozen there.
- Schemas published: `schemas/decision_point.schema.json`,
`schemas/certificate.schema.json` (both validated against real records).
## 2. Benchmark
- `preact-sandbox-v1.0`: four families, 120 episodes, 4,508 decision points.
- Splits episode-disjoint: train 1,135 / calib 380 / test 380 / heldout 1,540.
- Audit: schema validation on every item, 40/40 sampled fork replays reproduce
their recorded labels.
- Data card written (`data/DATA_CARD.md`).
## 3. Hardware decision
Measured the laptop (Ryzen 5 7530U, 6C/12T, 15.4 GB, no CUDA, 57.7 GB free).
Declared the reduction to sub-1B open-weight backbones in `configs/compute.yaml`
rather than pretend a 7B result was obtainable. 4 torch threads, no dataloader
workers.
## 4. Harvest
- Qwen2.5-0.5B: 540 states cached over ~46 minutes of CPU time, resumable in
increments of 10. Three disconnects cost at most 10 states each after the
checkpointing fix.
- Two bugs found and fixed here: a numpy object-array round-trip that corrupted
metadata, and a swapped unpack of `(hidden, token_hidden, ids, scores)` that
made the resume path read scores as metadata.
- SmolLM2-360M: **not harvested**. No cross-backbone result exists.
## 5. Training
- Dataset: 540 states, 6,245 item rows after compacting out uncached states.
- Transcoder: 192 features, k=16, 120 epochs. Reconstruction is weak and is
reported as such; the dense probe is the stronger predictive baseline.
- Admission: 6 shared, 4 probe-only, 4 random features.
- World model: 130,797 parameters; counterfactual consistency 0.914, Brier 0.082.
- Training wall clock: 173 s on 4 CPU threads.
## 6. Experiments
E1–E9 all completed; none blocked. Headline: on 302 held-out decision points,
executed harm 0.000 against 0.182 for language-first (paired difference -0.182,
95% CI [-0.247, -0.122]), success 0.185 against 0.046, at 139 charged tokens per
decision against 23.
Two results cut against the thesis and are reported as measured: the budget
frontier does not move with budget, and irreversible harm falls to 0.066 rather
than zero. `results/replication_report.md` lists every deviation.
## 7. Figures, tables, paper
- f1–f8 produced from `results/` only.
- Tables generated with a value manifest; `experiments/check_numbers.py` confirms
76/76 values trace to a results file.
- `paper/main.pdf` compiles in three passes with no errors and no undefined
citations, 10 pages.
## 8. Tiers, tests, packaging
- Three tiers with README, config, quickstart and standalone test; all pass.
- Tier 1 measured overhead: 0.81 ms/decision. Against a probe-free tensor path
that is 775% and the 0.1% target is **not met**; against an end-to-end decision
it is 0.039%. Both reported; the flattering denominator is not used to claim
the target.
- 31 tests pass. `Makefile`, `Dockerfile`, `requirements.txt`, `CITATION.cff`,
`docs/certificate_format.md`, `paper/world_class_checklist.md`,
`paper/lab_integration_matrix.csv` in place.
## 9. Cross-backbone replication
- `SmolLM2-360M-Instruct` harvested at 200 stratified states (eval first, then
probe-training), 19 minutes; trained in 66 s.
- Admission dissociation replicates: 0.920 shared vs 0.080 probe-only flip rate,
with 1 admitted shared feature (against 6 on the primary backbone).
- Decision level replicates: harm 0.000 against 0.290 for language-first on 100
held-out states, paired difference -0.290 [-0.458, -0.122], p = 0.001.
- Threshold does **not** transfer: probe-score correlation 0.075 across 1,921
shared states; the transferred threshold drops coverage to 0.670, while
recalibration restores 0.920 at selective risk 0.065 (upper 0.080 < alpha).
- Reported in E6 and in the paper as "the method ports, the calibration does not".
## 10. Fresh-eyes review (simplifications applied)
- `BehaviourOnly` was a byte-for-byte copy of `ProbeGate`; it is now a subclass
with `kind="behaviour"`. Verified: 13 policies, 0 numeric differences in E1.
- Budget opening (`allocator` + optional `monitor` charge) and repeated-state
construction were duplicated in six policies; extracted to `open_budget`,
`repeat_state` and `risk_head_scores`.
- Removed 13 genuinely unused imports across 10 modules, found by an AST scan.
All modules import, 31 tests pass, E1 output unchanged.
- The E8 adapter lambda is gone: the experiment runner inspects the signature and
only passes a backbone key where one is expected.
## Open
- External benchmark adapters (written, not executed).
- Larger primary harvest to tighten intervals.
- AIJ-style journal submission: see `paper/submission_plan.md`.