matCercola18 commited on
Commit
869c4fd
·
verified ·
1 Parent(s): 5f24446

X30 PREREG (sections 1-2, timestamp corrections)

Browse files
Files changed (1) hide show
  1. results/icml_r3/X30/PREREG.md +99 -0
results/icml_r3/X30/PREREG.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # X30 pre-registration: C+phi on the three slides that are still C-only
2
+
3
+ Committed 2026-11-20, 09:19 UTC (git 4649c7c), before any X30 number exists. Training of the two extra C+phi coefficient-space seeds (section 1) started at 09:17 UTC; training writes no test number.
4
+
5
+ Request:
6
+ - Relayed by the presentation session dc_presentation on 2026-11-20: Matteo asked for three C+phi experiments, so that no main-talk result in the advisor deck is C-only only. His words: "Do the experiments". Each setup stays identical to the existing C-only run, with only C+phi added.
7
+ - Matteo, in the move-HPC session, 2026-11-20: "You can take a GPU node if you want or CPU whatever you need".
8
+ - Limits: no paper edits (paper_icml untouched); at most 2 GPU nodes.
9
+
10
+ Sections 2 (actuator setting) and 3 (full-state feedback) are added below as dated addenda before their first label run. Their definitions depend on reading the X27 and T9 code first.
11
+
12
+ ## 1. SISO output coordinates (deck slide [34]: closed-loop poles vs controller coefficients)
13
+
14
+ **Existing C-only run ([34]):** X21 test, 199 test plants, 16 candidates, guidance 1, sampler clip 1.
15
+ - Poles: X21 clL with t-repair.
16
+ - Coefficients: the X21 coefficient-space model (`models/x21_fgen*`, "base"), without t-repair.
17
+ - Seeds 0 / 1 / 2: certified 97.5 / 97.5 / 96.5% (poles) and 75.9 / 74.4 / 75.9% (coefficients), at b = 16, regret vs J_Fonly (`results/icml_r3/X21/test_table.txt`).
18
+
19
+ **Arms (same plants, 16 candidates, guidance 1, sampling seed 4242, clip 1):**
20
+ - C-only poles: X21 clL seeds 0, 1, 2, with t-repair. Stored X21 test outputs (`results/icml_r3/X21/test_eval/x21_fgen_clL{,_s1,_s2}_best_w1_tr.npz`), re-scored.
21
+ - C-only coefficients: X21 base seeds 0, 1, 2, without t-repair. Stored outputs `x21_fgen{,_s1,_s2}_best_w1.npz`, re-scored.
22
+ - C+phi poles: X28 clS seeds 0, 1, 2 (cl coordinates of F plus 10 knots), with t-repair. New runs at clip 1 (`x28_eval`).
23
+ - C+phi coefficients: X28 coefS (slog of the coefficients plus 10 knots), without t-repair. Seed 0 exists. Seeds 1 and 2 are trained with seed 0's recipe (`X28_REP=coef X21_SEED=s python -m nonlinear.training.train_x28 60000`, as `x28S3.slurm`). New runs at clip 1.
24
+
25
+ **Blocks:**
26
+ - Primary = the [34] setup above: t-repair on the poles arms only, as in the existing slide.
27
+ - Secondary = t-repair on every arm. Both coefficient arms are re-run with t-repair at clip 1. Reason: in the existing [34] setup only the poles arms are repaired, so part of the poles-vs-coefficients gap could be the repair rather than the coordinates.
28
+
29
+ **Cost reference and KPIs:**
30
+ - Regret against the common J* of the SISO baselines slides, J* = min(J_Fonly, X28 test joint labels) (X29). Uncertified = 1e3, as X29.
31
+ - Also regret against J_Fonly, the reference of the existing [34] bars.
32
+ - Per arm: certified % at b = 1 and b = 16, median regret at b = 16 with a bootstrap 95% CI. 3-seed mean and range, and seed 0.
33
+ - Paired differences (plant-paired, seed j against seed j, bootstrap 95% CI), descriptive with no stop rule:
34
+ - the coordinate effect within each variant (poles minus coefficients);
35
+ - the variant effect within each coordinate (C+phi minus C-only).
36
+
37
+ **Self-check (before any C+phi number is reported):** `x28_eval` at clip 1, run on X21 clL seed 0 with t-repair, must reproduce the stored X21 output: the same certified candidates and J per candidate within 1e-6 relative.
38
+ - If it does not, every C-only arm is re-run through `x28_eval` so that all arms share one code path. The stored X21 numbers are then reported next to the re-runs.
39
+
40
+ **Code and output:** `nonlinear/experiments/x30_siso.py` (re-score, paired differences, report) -> `results/icml_r3/X30/siso/`.
41
+
42
+ ## Addendum 2026-11-20, committed 09:31:45 UTC (git 73fe734), 21 s before the first label run started (09:32:06): section 2, the actuator setting (deck [50] to [52]; X29 step 3B, now run)
43
+
44
+ Written before any X30 actuator label or number. Matteo's request reverses the 3B skip of 2026-11-17. The design is X29 `PREREG.md` section 4 (3B); the changes are marked.
45
+
46
+ **Definition (X29 section 4):**
47
+ - u = -Phi(psi(K y)), Phi_i in [0.4, 2.2], psi in the so3 class.
48
+ - Certificate: the circle LMI on the composed sector [0.4 alpha_i, 2.2 beta_i] (`x29_act.certified`).
49
+ - Cost: X27's quadratic cost by simulation at Phi = identity (`x29_act.mean_cost_q`, T = 20 s, self-checked in X29).
50
+ - Regret is measured against J*_A of X29 (`results/icml_r3/X29/act/heldout_m*/jstar.npz`, unchanged).
51
+
52
+ **Structural note, written before any number:**
53
+ - Under this certificate, a certified (K, psi) implies that the linear gain diag(c_i / 1.3) K is certified, where c_i = (0.4 alpha_i + 2.2 beta_i) / 2.
54
+ - Reason: that gain's sector has the same center and radius 0.692 c_i <= (2.2 beta_i - 0.4 alpha_i) / 2, so the same P and multipliers satisfy its LMI.
55
+ - So at the optimum, C+phi cannot certify a plant that C-only cannot. Only the cost can differ (3A: median gain 0.00%).
56
+
57
+ **Labels (C+phi bank):**
58
+ - Rows: every certified label row of X27's training banks, 18,733 / 18,451 / 33,961 rows at m = 3 / 4 / 5 (m = 5 is `m5_bank` + `m5_bank_b`, the 16k bank), in `make_dataset_sofm`'s row order.
59
+ - Per row: Adam from the row's gain, so3 starts at c = 1, 2, 5 (`x29_act.optimize_all`, lr 0.02 / 0.02, a snapshot every 25 steps plus snapshot 0).
60
+ - Label: the cheapest certified snapshot over the three starts. Snapshot 0 at c = 1 is the row's own gain with identity knots.
61
+ - Change from 3B: 100 Adam steps instead of 400.
62
+ - Reason, from the 3A held-out runs (not an X30 result): with the so3 starts and J_ref, the 100-step labels equal the 400-step labels on 120 of 120 plants at m = 4 and 5. At m = 3 they differ by more than 0.5% on 4 of 120 plants (mean 0.044%).
63
+ - Cost: about 13 GPU-hours instead of about 50.
64
+ - Change from 3B: no id arm and no C-only retrain on id labels. The comparison is against X27's published C-only generators, which were trained on the same bank rows. The C+phi labels start from those rows, so what changes is the spline and the K moves that come with it.
65
+
66
+ **Generators:**
67
+ - X27's recipe: `nonlinear.mimo_unstable.train`, diff, 96k steps x batch 64, seeds 0, 1, 2.
68
+ - Dataset in X27's format with target [K, log r(1), log r(3), log r(5)] (`x28_mimo_gen.gauge`).
69
+ - One model per size and seed: m = 3 and 4 on 8,000 plants, m = 5 on 16,000.
70
+
71
+ **Pipeline (X27's `x27_filter` on the composed sector):**
72
+ - Candidates: 64 samples per test plant (`sample.py` conventions: EMA 0.999, seed = model seed), decoded with `x28_mimo_gen.ungauge`.
73
+ - raw b = 1 / 4 / 16: the first b samples, circle LMI on the composed sector.
74
+ - filt b = 1 / 4 / 16:
75
+ - Filter: finite, and A - B diag(g) K C Hurwitz for g = lo + t (hi - lo) per channel, t in linspace(0, 1, 7). This is X27's 7-gain filter, scaled per channel to the composed ends.
76
+ - Then the LMI on the first b survivors.
77
+ - rep b = 16: survivors that fail the LMI are flattened as X28's repair does: log r -> log r(1) + lambda (log r - log r(1)) for lambda = 0.75, 0.5, 0.25, 0, keeping the largest certified lambda.
78
+ - ref b = 16, n = 3 / 10: if no survivor certifies after flattening, X27's alternating iterations (`x7_solver.refine`) run on the composed sector with each survivor's knots fixed as sampled, then one LMI check. The first success counts.
79
+ - Cost: simulated; the cheapest certified candidate per plant.
80
+ - kNN (C+phi): the C+phi labels of label row 0 of the 64 nearest bank plants under X27's ARD metric, through the same pipeline.
81
+
82
+ **KPIs:**
83
+ - Per size and arm: certified % (3-seed mean and range), and the regret of the cheapest certified candidate vs J*_A, in both conventions:
84
+ - X27's: the median over certified plants, seeds pooled;
85
+ - X29's: uncertified = 1e3, the median per seed, the 3-seed mean.
86
+ - CPU per plant: the C-only and C+phi pipelines re-timed in one job, X27's method. That is thread CPU of the filter, LMI, flattening and iterations on 8 fork workers with 1 thread each; sampling is charged per candidate from a batch-64 GPU latency measured in the same job. The 48-start solver bar is shared and not re-timed.
87
+ - Paired C+phi vs C-only at b = 16 (seed j against seed j), with the X28 S4 rule as in 3B:
88
+ - "spline better" iff the median paired regret difference is >= 1 point, the Holm Wilcoxon p < 0.05, and the certified rate is not lower by more than 2 points;
89
+ - a verdict holds on >= 2 of 3 seed pairs.
90
+ - X27's YES rule is applied to C+phi as well: certified share >= the solver's, CPU <= 1/3 of the solver's, cost <= 5% above its best.
91
+
92
+ **Self-check:** the new pipeline code, run at identity knots on X27's stored C-only candidates, must reproduce X27's published certified shares exactly.
93
+
94
+ **Code and output:** `nonlinear/mimo_unstable/x30_act.py` -> `results/icml_r3/X30/act/`; models in `models/x30act/`.
95
+
96
+ Section 3 (full-state feedback) is pre-registered in `results/icml_r3/X30/PREREG_fs.md`.
97
+
98
+ ## Correction, 2026-11-20, committed 11:31 UTC (git 9a4867f)
99
+ The times in the headings of this file were estimates, written without reading the clock. They are replaced by the git commit times, which are authoritative. The order of events and the content are unchanged.