code backup: README.md
Browse files
README.md
CHANGED
|
@@ -739,6 +739,24 @@ reasoning.
|
|
| 739 |
|
| 740 |
## How the experiment is actually run, step by step
|
| 741 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 742 |
Rather than a full factorial sweep across every axis, configuration is narrowed in
|
| 743 |
stages — each stage's winner freezes the next stage's config — because the model axis
|
| 744 |
is never collapsed (every stage always sweeps all 3 models) but frame count, input
|
|
@@ -871,15 +889,70 @@ H10, H11's 16-token half, and H18's base-protocol read.
|
|
| 871 |
All on the one pre-registered ~600-question sample, extended protocol, ground-truth
|
| 872 |
base codes; the solver runs every arm at zero GPU cost as the second reasoner:
|
| 873 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 874 |
```bash
|
| 875 |
-
#
|
| 876 |
-
#
|
| 877 |
-
|
| 878 |
-
|
| 879 |
-
|
| 880 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 881 |
```
|
| 882 |
|
|
|
|
|
|
|
|
|
|
| 883 |
*Hypotheses fed*: H21, H22, H24 (novel primary); H6 instantiation; the wrong-code
|
| 884 |
and robustness controls that close the "does the model even read the code" and
|
| 885 |
"is it a prompt artifact" objections.
|
|
|
|
| 739 |
|
| 740 |
## How the experiment is actually run, step by step
|
| 741 |
|
| 742 |
+
### Step 0 — Execution environment (read this first)
|
| 743 |
+
|
| 744 |
+
Everything below assumes `./setup.sh` has completed (see its section above) and the
|
| 745 |
+
shared venv is active in EVERY shell that runs a command:
|
| 746 |
+
|
| 747 |
+
```bash
|
| 748 |
+
source /root/.venv/bin/activate # required before any python command below
|
| 749 |
+
cd /workspace
|
| 750 |
+
python -m pytest tests -q # MUST pass before burning any GPU time
|
| 751 |
+
```
|
| 752 |
+
|
| 753 |
+
If setup.sh fell back to split venvs, perception commands (`inference/`, `encoder/`)
|
| 754 |
+
use `/root/.venv-perception` and VLM commands (`harness/`, `corruption/` VLM arm) use
|
| 755 |
+
`/root/.venv-vlm`; everything else runs in either. After each step below finishes,
|
| 756 |
+
back up its results (additive, never destructive):
|
| 757 |
+
`python backup.py --repo-id <you>/<repo> --target <step's target>` -- targets are
|
| 758 |
+
listed in backup.py's own docstring; `--target all` covers everything.
|
| 759 |
+
|
| 760 |
Rather than a full factorial sweep across every axis, configuration is narrowed in
|
| 761 |
stages — each stage's winner freezes the next stage's config — because the model axis
|
| 762 |
is never collapsed (every stage always sweeps all 3 models) but frame count, input
|
|
|
|
| 889 |
All on the one pre-registered ~600-question sample, extended protocol, ground-truth
|
| 890 |
base codes; the solver runs every arm at zero GPU cost as the second reasoner:
|
| 891 |
|
| 892 |
+
Substitute the frozen Step-1/2 winners for `<depth*> <tracking*> <selection*>
|
| 893 |
+
<frames*>` throughout (depth/tracking are the production defaults `relative` /
|
| 894 |
+
`tracking` unless Step 2 changed them):
|
| 895 |
+
|
| 896 |
```bash
|
| 897 |
+
# (a) generate + commit the pre-registered question sample (procedure and seed are
|
| 898 |
+
# already frozen in analysis/preregistration.md)
|
| 899 |
+
python -m corruption.sample --depth <depth*> --tracking <tracking*> \
|
| 900 |
+
--input-selection <selection*> --frames <frames*>
|
| 901 |
+
python backup.py --repo-id <you>/<repo> --target code # timestamp the realized sample
|
| 902 |
+
|
| 903 |
+
# (b) measure the real SAM3+DA3 residual distribution (H21's empirical mode)
|
| 904 |
+
python -m corruption.empirical --depth <depth*> --tracking <tracking*> \
|
| 905 |
+
--input-selection <selection*> --frames <frames*>
|
| 906 |
+
|
| 907 |
+
# (c) H21 grid: 4 synthetic corruption types x 4 magnitudes, BOTH 4B models,
|
| 908 |
+
# solver arm included automatically
|
| 909 |
+
python -m corruption.launch --arm both --models qwen3.5-4b,internvl3.5-4b \
|
| 910 |
+
--transforms position-jitter,dimension-noise,drop-objects,hallucinate-objects \
|
| 911 |
+
--magnitudes 0.1,0.25,0.5,1.0 --sample analysis/corruption_sample.json
|
| 912 |
+
|
| 913 |
+
# (d) H21 empirical mode (magnitude = scale; 1.0 = the real operating point)
|
| 914 |
+
python -m corruption.launch --arm both --models qwen3.5-4b,internvl3.5-4b \
|
| 915 |
+
--transforms empirical --magnitudes 0.25,0.5,1.0,2.0 \
|
| 916 |
+
--residuals analysis/sam3_da3_residuals.json --sample analysis/corruption_sample.json
|
| 917 |
+
|
| 918 |
+
# (e) H22 chimeras (needs the Step-2 config so it can load the perceived codes)
|
| 919 |
+
python -m corruption.launch --arm both --models qwen3.5-4b \
|
| 920 |
+
--transforms chimera-gt-inventory,chimera-perceived-inventory --magnitudes 0 \
|
| 921 |
+
--depth <depth*> --tracking <tracking*> --input-selection <selection*> \
|
| 922 |
+
--frames <frames*> --sample analysis/corruption_sample.json
|
| 923 |
+
|
| 924 |
+
# (f) H24 invariance: certify FIRST (only certified scene/transform pairs count),
|
| 925 |
+
# then run the certified transforms
|
| 926 |
+
python -m corruption.run --arm certify --transform translate --magnitude 10 \
|
| 927 |
+
--scenes <comma-separated sample scenes>
|
| 928 |
+
python -m corruption.launch --arm both --models qwen3.5-4b \
|
| 929 |
+
--transforms translate,rotate-z,reorder,round-precision --magnitudes 10,90,0,3 \
|
| 930 |
+
--sample analysis/corruption_sample.json
|
| 931 |
+
# (magnitudes map per transform: translate=meters offset, rotate-z=degrees,
|
| 932 |
+
# reorder=ignored, round-precision=decimals -- run one transform per invocation if
|
| 933 |
+
# you want per-transform magnitudes, e.g. --transforms translate --magnitudes 10)
|
| 934 |
+
|
| 935 |
+
# (g) H6 single-object probe + wrong-scene control (1 model each)
|
| 936 |
+
python -m corruption.launch --arm both --models qwen3.5-4b \
|
| 937 |
+
--transforms single-object --magnitudes 0 --sample analysis/corruption_sample.json
|
| 938 |
+
python -m corruption.run --arm vlm --model qwen3.5-4b --transform wrong-scene \
|
| 939 |
+
--magnitude 0 --scenes <scene> --wrong-scene <different scene> \
|
| 940 |
+
--sample analysis/corruption_sample.json
|
| 941 |
+
|
| 942 |
+
# (h) robustness arm: paraphrased context line, then YAML serialization -- each
|
| 943 |
+
# changes exactly one surface property of B's prompt; explicit --results-dir
|
| 944 |
+
# keeps the arms isolated from the standard B results
|
| 945 |
+
python -m harness.B.launch --model qwen3.5-4b --spatial-code-format explicit \
|
| 946 |
+
--input-selection <selection*> --frames <frames*> \
|
| 947 |
+
--results-dir "results/B/qwen3.5-4b/extended/robustness-paraphrase" --paraphrase-context
|
| 948 |
+
python -m harness.B.launch --model qwen3.5-4b --spatial-code-format explicit \
|
| 949 |
+
--input-selection <selection*> --frames <frames*> \
|
| 950 |
+
--results-dir "results/B/qwen3.5-4b/extended/robustness-yaml" --serialization yaml
|
| 951 |
```
|
| 952 |
|
| 953 |
+
Back up when done: `python backup.py --repo-id <you>/<repo> --target corruption` (and
|
| 954 |
+
`--target B` for the robustness arms).
|
| 955 |
+
|
| 956 |
*Hypotheses fed*: H21, H22, H24 (novel primary); H6 instantiation; the wrong-code
|
| 957 |
and robustness controls that close the "does the model even read the code" and
|
| 958 |
"is it a prompt artifact" objections.
|