Replicate Experiment 2 on new realizations; test sigma_a at -5 dB

Exploratory analyses declared and hashed before computing
(docs/research/r6-replication.md, sha256 13b8b943...), outside every lock:
- Replication on realizations 16-23: the SMC-mean gain over the best
  deterministic tie is 7-19% (8-22% before); the per-regime verdicts are
  unchanged; the SMC mode beats the best tie in 10/10 cells; the bank passes
  2/3 wide cells; a Gaussian bank is within 2%.
- Misspecified anchor uncertainty at -5 dB: 0/2 cells at both 3.5 and 14 ms.
- Mechanism at sigma_a = 3.5 ms: the refitted drift prior becomes rougher
  (length scale 10-15 vs 80-90 ms); with fixed hyperparameters the
  posterior does not narrow.
- Calibrated sign test, F-11 T2 under four references, coverage at equal
  training length.

Paper: Sec. 6.3 and tab:sigmaa, abstract, introduction, conclusions,
Sec. 3.3, 4.1, tab:lessons, limitations, App. B and C. Docs synced; the
user dropped all date deadlines on 11/11/2026. No verdict, threshold or
protocol changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 04:49:53 +00:00
parent 760dbfea4f
commit d0d2cd3c82
24 changed files with 1091 additions and 64 deletions

View File

@@ -79,6 +79,8 @@ CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/42_referee_r4.p
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/43_referee_r5_ci.py # exploratory: BCa và t-interval cho 38 tỉ số chính, đối chiếu anchor mean (khai báo docs/research/referee-r5-ci.md) → outputs/referee_r5/
CUDA_VISIBLE_DEVICES=0 OMP_NUM_THREADS=2 .venv/bin/python scripts/44_point_tie_arm.py --stage all --workers 4 --device cuda:0 # exploratory: tie điểm cùng thông tin (SMC-MAP, Anchor-LS; khai báo docs/research/point-tie-arm.md) → outputs/point_tie/
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/45_referee_r5_followups.py --stage all --workers 8 # exploratory: kiểm độc lập Berkson (F1) và n* theo Wilcoxon/t cặp (F2) (khai báo docs/research/referee-r5-followups.md) → outputs/referee_r5/
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/48_r6_cheap.py # exploratory: A1 sign test hiệu chỉnh tương quan, A2 F-11 T2 theo tham chiếu, A3 coverage cùng độ dài huấn luyện (khai báo docs/research/r6-replication.md) → outputs/r6/
DEVICE=cuda:0 WORKERS=2 scripts/run_r6.sh fingerprints | b3 | c1 R10 R0 Rm5 | c0 R10 R0 Rm5 | sa | arms | summary # exploratory: sao lặp Thí nghiệm 2 trên realization 16–23, σ_a sai ở −5 dB, σ_a = 3,5 ms với siêu tham số drift cố định → outputs/replication/ (chạy trong tmux; log logs/r6_*.out)
# Run dài: chạy trong tmux server của người dùng, ví dụ tmux new-session -d -s p6_s2 -c $PWD "env STUDIES=S2 DEVICE=cuda:0 WORKERS=2 MEM_GB=2 scripts/run_bench.sh posterior train >> logs/bench_s2_cuda0.out 2>&1"
# (setsid nohup bị dừng khi phiên agent kết thúc, 29/10). operations/p6_s1_watcher.sh khởi động S1 khi GPU có chỗ trống (đã dùng 15:43–16:06 UTC 29/10, rồi bỏ khi GPU trống).
# operations/p6_supervisor.py (tmux p6_supervisor): mỗi 5 phút chạy lại driver P6 chết và dồn worker khi một study xong; log logs/p6_supervisor.out. Đã dừng 02:16 UTC 30/10 khi P6 xong. Lỗi đã biết: khi dồn worker, nó khởi động lại driver kể cả lúc số worker không đổi, làm mất job đang dở.
@@ -146,5 +148,9 @@ Biến môi trường máy đặt sẵn `OMP_NUM_THREADS=40` (cả MKL, OpenBLAS
| `scripts/43_referee_r5_ci.py` | Exploratory (10/11/2026; ngoài mọi lock và archive tái lập, không train, CPU 10 s): khoảng percentile, BCa và t-interval (log tỉ số, 7 bậc tự do) cho 38 tỉ số chính của bài; tỉ số B3d-Sa/B3d; band RMSE trên Oracle ở c = 0; kiểm hash khai báo `docs/research/referee-r5-ci.md`. Kết quả `docs/research/referee-r5-ci-results.md`. |
| `scripts/44_point_tie_arm.py --stage all|train|summary` | Exploratory (10/11/2026; ngoài mọi lock và archive tái lập; GPU, 17 phút): huấn luyện nhãn tại SMC-MAP (hạt tốt nhất theo log mục tiêu tempered) và Anchor-LS (cực trị posterior chỉ anchor) ở 96 ô–realization và so với các phương pháp đã đăng ký; kiểm tái lập B3d-Sa. Kết quả `docs/research/point-tie-arm-results.md`. |
| `scripts/45_referee_r5_followups.py --stage all|f1|f2` | Exploratory (10/11/2026; ngoài mọi lock; CPU, 16 phút): F1 kiểm độc lập sai số tie với dữ liệu (cần file hạt posterior), F2 số giếng mù theo kiểm định dấu, Wilcoxon và t cặp. Kết quả `docs/research/referee-r5-followups-results.md`. |
| `scripts/46_r6_replication.py --stage fingerprints|arms|summary` | Exploratory (11–12/11/2026; ngoài mọi lock và archive tái lập): sinh realization 16–23 và ghi fingerprint trước khi train; chạy các nhánh SMC-MAP, Anchor-LS, Ctl-GP; tổng hợp R-H2a, R-H2b, R-MAP, nhánh σ_a ở −5 dB → `outputs/replication/summary/` (`summary.md`, `verdict.json`, csv). Posterior và train dùng script 14/15 khóa qua `scripts/run_r6.sh`. Kiểm hash khai báo `docs/research/r6-replication.md` (`13b8b943…`). Kết quả `docs/research/r6-results.md`. |
| `scripts/47_r6_fixed_hyper.py` | Exploratory (11–12/11/2026): σ_a = 3,5 ms với siêu tham số drift của lần khớp 7 ms (cơ chế B3) → `outputs/replication/fixhyper_*`, `hyper_sigma_a.csv`. |
| `scripts/48_r6_cheap.py` | Exploratory (11/11/2026; CPU, không train): A1 n* của sign test hiệu chỉnh cho tương quan trong realization, A2 RMSE F-11 T2 Volve dưới bốn tham chiếu, A3 coverage ở cùng độ dài huấn luyện → `outputs/r6/`. |
| `scripts/run_r6.sh <stage>` | Driver của 46/47 và script 14/15 khóa (stage fingerprints, b3, c1, c0, sa, arms, summary); resume theo CSV đã có. |
`code_thesis/` là bản lưu trữ code luận văn. Giữ nguyên nội dung để đối chiếu: các script này còn đường dẫn máy cũ và ghi vào `outputs/`, nên cần một bản sao đã điều chỉnh đường dẫn nếu muốn chạy lại. Kiểm tra bộ artifact hiện có bằng `python scripts/00_data_manifest.py --dataset thesis --check`.