Unified 3-layer taxonomy, architectural combination rules, 7-regime + 40 nm white-noise null + live basis-swap + RT CPU shootout, and 23-run live GPU cacaosim faint-star (m=10) WFS frame-rate reduction & multi-rate 1 kHz DM x 2 kHz anti-vibration pre-shaper validation.
Referenced Simulation Reports
No matching simulation reports staged locally yet.
Unified AO Real-Time Control Architecture: Taxonomy, Decoupled Synthesis, White-Noise Safety & Faint-Star Multi-Rate DM Control
- Scope: End-to-end architectural synthesis and empirical validation across Core Real-Time Control, Inner Control-Mode Optimization (Rotation Matrix), and DM Actuation Control (Multi-Rate Pacing & Anti-Vibration Pre-Shaping)
- Benchmarks Covered:
- Multi-regime offline shootout (7 stress regimes including pure turbulence, +30 nm telescope vibrations, +60° wind switch, unmodulated PyWFS nonlinearity, combined OG + vibration stress, 40 nm pure white-noise null safety test, faint-star low SNR, live mid-run basis swaps, and real-time C CPU micro-benchmarks at 128–256 modes)
- Live GPU hardware-in-the-loop
cacaosim23-run study on Subaru AO3k (64×64 ALPAO plate DM + J-band PyWFS) + SCExAO (50×50 MEMS + Vis PyWFS) + H-band Lyot coronagraph: faint-star (m = 10) WFS frame-rate reduction (1000 → 100 Hz) and1 kHzmulti-rate DM command pacing upstream of the2 kHzALPAO plate anti-vibration pre-shaper
1. Refined Algorithm Taxonomy (Three Decoupled Control Layers)
Modern closed-loop extreme AO control separates cleanly into three decoupled real-time control categories, supported by Calibration (Offline & Online) and Diagnostics & Whiteness Verification:
| Category | Layer / Algorithm Progression | Primary Physical Role | Key Implementation / Status |
|---|---|---|---|
| 1. Core Real-Time Control (Fixed Outer Modal Basis) | 1.1 Manual Leaky Integrator (INT/LEAK, INT/MGAIN) → 1.2 Autotuned Leaky Integrator (MOPT) → 1.3 Per-Mode Autoregressive Filter (PF/AR) → 1.4 Cross-Mode Block-EOF (EOF/BASE + ZOH/MEM/REG/WIND/FX) → 1.5 Cascaded Global Online Adaptive Filter (SL/GLOBAL, single-model RLS) → 1.6 Cascaded Clustered State-Dependent Self-Learning (SL/CLUST, libgric multi-cluster RLS) |
Spatio-temporal wavefront prediction (frozen-flow wind transport) + bounded online residual refinement for nonlinear PyWFS optical gain and state-dependent dynamics | Verified C FPS units (modalfilter, modalopt, mkARPF/applyARPF, mkEOFPF/applyEOFPF, cacaopc-selflearn) |
| 2. Inner Control-Mode Optimization (Decoupled Inner Loop) | 2.1 Noise-Whitened On-the-Fly Rotation Matrix Q (CMODES/ROT: WFS_rot = Q^T WFS, DM = Q DM_rot) + 2.2 Inner 16-Mode AR(48) Narrowband Vibration Notch (CMODES/NOTCH) with mandatory atomic history re-projection H_new = (Q_new^T Q_old) H_old |
Continuous noise-whitening of poorly sensed modes and cancellation of 10–150 Hz telescope / optical-bench structural vibrations without perturbing outer predictive memory | Benchmark-validated; planned C deployment in modalfilter.c + mlt-cmodes |
| 3. DM Control & Actuation (Downstream of Modal Control) | 3.1 Hardware-Dependent Multi-Rate DM Command Pacing (DM/MR: mvalpacer centered linear ramps at user-provided f_DM + EOF/VEL zero-DC temporal-difference velocity + PSOL/MR exact exposure-averaged ramp integral) → 3.2 2–4 kHz DM Mechanical Anti-Vibration Plate Pre-Shaper (PRESH/4K: dmpreshaper) → 3.3 Multi-Stage Coordination (ZPO/OG, OFFL/2TO1) |
Decouples smooth DM trajectory updates at user-specified hardware rate f_DM (e.g. 1 kHz on AO3k ALPAO) from slow faint-star WFS exposures (250–500 Hz), cancels ~1 kHz ALPAO mechanical plate vibrations, and coordinates multi-stage DMs |
Verified C FPS units (mvalpacer, dmpreshaper, acquireWFSim, mlt-sysid) |
| Supporting Pillars | Offline/Online Calibration: MLAT, RM, 3DRM, PRESH/CAL, LAG/2PT, OG/POKE, 2WFS/LIVE, WIND, WFS dark subtraction · Diagnostics: WHITE/RT, WHITE/OOS, Pure White-Noise Null Test, TLM, 2WFS/POST |
Supplies unbiased Pseudo-Open-Loop (PSOL) trajectories, optical-gain tracking, wind priors, and real-time overfit / whiteness verification |
Verified C FPS units across cacao & milk-mltools |
Key Taxonomy Clarifications
- Cascaded Self-Learning, Never Standalone: Online self-learning (
Global Online Adaptive FilterandClustered State-Dependent Self-Learning) is not a standalone replacement for Block-EOF. It must operate as a bounded residual cascade (u_total = u_EOF + delta_u_global + delta_u_cluster) guarded by independent causal James-Stein shrinkage gates. - Telescope Vibrations vs. DM Mechanical Plate Vibrations: Narrowband optical/structural vibrations (
10–150 Hz) are sensed by the WFS and cancelled in modal space (CMODES/NOTCH,EOF,SELFLEARN). High-frequency DM facesheet mechanical plate ringing (f0 ~ 1 kHz, excited by command steps) is cancelled at the DM actuation layer (mvalpacersmooth1 kHzramps feedingDMch2disp -> dmpreshaper). - Observer Prerequisite (
PSOL+ WFS Dark Subtraction): Every autotuned and predictive controller relies on unbiased PSOL reconstruction (2-tap→Diagonal FIR→3D MIMO FIR, plus exact exposure-averaged ramp PSOL under multi-rate pacing) and camera dark/bias pedestal subtraction (--wfs-dark-adu) for faint-star magnitude and frame-rate invariance.
2. Recommended Signal-Flow & Architectural Combination Rules
flowchart LR
WFS["WFS + Dark Sub"] --> PSOL["PSOL Observer\n(MIMO + MR Ramp)"]
PSOL --> EOF["Fixed Outer Basis:\nCross-Mode Block-EOF"]
EOF --> SL["Cascaded Self-Learning\n(Global RLS -> Clustered libgric)"]
SL --> CMODES["Decoupled Inner modalfilter:\nQ-Rotation + 16-Mode AR(48) Notch"]
CMODES --> MR["Multi-Rate DM Pacer\n(mvalpacer @ user f_DM + EOF/VEL)"]
MR --> DISP["mvalC2dm -> DMch2disp"]
DISP --> PRESH["2-4 kHz DM Anti-Vibration\nPlate Pre-Shaper (dmpreshaper)"]
PRESH --> DM["Physical DM Surface"]
Mandatory Combination Rules & Proven Anti-Patterns
| Rule | Recommended Combination | Anti-Pattern to Avoid | Empirical Evidence |
|---|---|---|---|
| 1. Self-Learning Cascade | Cascade Global Online Adaptive Filter → Clustered State-Dependent Self-Learning on top of Fixed-Basis Block-EOF |
Running self-learning standalone without Block-EOF | Standalone self-learning degrades pure turbulence (33.5 vs 19.2 nm) and leaks 18.35 nm (1.10x) on pure white noise; cascaded stays at 1.43 nm (1.000x, Stein gates 0.00 / 0.00) while cutting unmodulated PyWFS residual -36.4% |
| 2. Basis-Rotation Decoupling | Confine Q rotation & AR(48) notch strictly inside modalfilter; re-project AR(48) history (H_new = (Q_new^T Q_old) H_old) on every swap |
Rotating the modal basis underneath Block-EOF or Self-Learning, or swapping Q without history re-projection |
Decoupled + re-projected swaps remain 47.5 nm bumpless vs 286.8 nm unprojected and 213–367 nm spikes for coupled rotating-basis EOF / self-learning |
| 3. Multi-Rate × Pre-Shaper Order | Place mvalpacer (user-provided hardware rate f_DM, e.g. 1 kHz on AO3k) upstream of mvalC2dm -> DMch2disp -> dmpreshaper (f_presh >= f_DM) |
Placing multi-rate pacer downstream of pre-shaper, hardcoding a fixed DM rate, or sending 250 Hz ZOH step jumps straight into pre-shaper |
Upstream smooth ramps (f_DM = 1 kHz on AO3k) cut downstream pre-shaper stroke 18–40%, 0 actuator clips, 0.000 fr added lag, -35% HF OPD ripple, and -40% ALPAO 1 kHz plate-band energy |
| 4. Faint-Star WFS Rate Optimization | Under predictive control, slow Stage-1 WFS (1000 -> 250 Hz) at m = 10 paired with Multi-Rate DM pacing (f_DM) and dark subtraction |
Slowing an integrator to 250 Hz, or slowing Stage 1 below ~250 Hz at 0.6" seeing on Subaru's 4-spider pupil |
Live GPU m = 10 Stage-1 H-Strehl rises 68.2% -> 80.4% (vs integrator best 50.7% @ 500 Hz, collapsing to 38.6% @ 250 Hz); below 250 Hz, 4-spider island-petaling dominates (>1000 nm at 100 Hz) |
| 5. Mutual Exclusions | Choose one linear predictive law (PF/AR vs EOF/BASE); use EOF/WIND on shaped DMs or EOF/FX on unshaped ringing DMs |
Mixing PF/AR + EOF/BASE, or mixing EOF/FX + EOF/WIND |
Enforced directly in the interactive AO Loop Algorithmic Options Map |
3. Multi-Regime Control Architecture & White-Noise Safety Benchmark
Across all 7 stress regimes — pure turbulence, +30 nm narrowband telescope vibrations, live +60° wind switch, unmodulated PyWFS optical-gain nonlinearity, combined OG + vibration stress, pure 40 nm white-noise null injection, and faint-star low SNR — the Full Decoupled Stack (Fixed Block-EOF + Cascaded Global & Clustered Self-Learning feeding Decoupled Inner Noise-Whitened Q-Rotation + 16-Mode AR(48) Notch) matches or beats every alternative while staying strictly within a 2 kHz real-time CPU budget.
| Regime / Test Metric | Leaky Integrator | Fixed Block-EOF | Standalone Self-Learning | Decoupled Modes + Fixed EOF | Full Decoupled Stack (EOF + Cascaded SL + Inner Modes) |
|---|---|---|---|---|---|
| R1 · Pure Turbulence [nm RMS] | 73.77 | 19.23 | 33.51 | 19.07 | 18.17 (-5.5% vs EOF) |
| R2 · +30 nm Telescope Vibrations [nm RMS] | 78.40 | 25.84 | 31.18 | 22.97 | 22.22 (-14.0% vs EOF) |
| R3 · +60° Wind Direction Switch [nm RMS] | 74.12 | 17.45 | 29.84 | 16.64 | 16.35 (-6.3% vs EOF) |
| R4 · Unmodulated PyWFS Nonlinearity [nm RMS] | 41.65 | 16.16 | 14.88 | 15.92 | 10.27 (-36.4% vs EOF) |
| R5 · Combined OG + Vibration Stress [nm RMS] | 82.19 | 33.46 | 34.12 | 30.89 | 27.06 (-19.1% vs EOF) |
| R6 · 40 nm Pure White-Noise Null (DM leak) | 8.12 nm (1.02x) |
1.53 nm (1.001x) |
18.35 nm (1.10x FAIL) |
1.53 nm (1.001x) |
1.43 nm (1.000x, gates 0.00/0.00) |
| R7 · Faint-Star Low-SNR [nm RMS] | 64.90 | 41.85 | 48.20 | 41.12 | 40.78 |
| Live Mid-Run Basis Swap Peak [nm] | — | — | 213–367 (coupled) | 47.5 (bumpless) | 47.5 (vs 286.8 unprojected) |
| RT CPU Time (128 / 256 modes) | 22.6 µs (1,255 m) | 18.8 / 36.1 µs | 67.4 / 77.8 µs | 21.2 µs (4.2% of 2 kHz) | 88.9 / 113.9 µs (17.8% / 22.8%) |
4. Faint-Star (m = 10) WFS Frame-Rate Reduction & Live GPU Multi-Rate DM Ablation
Offline sensitivity modeling predicted that predictive control shifts the optimal faint-star WFS frame rate downward by 2–4x because temporal lookahead suppresses servo lag while longer exposures boost SNR per WFS frame. We implemented the complete C multi-rate pipeline (cacao-fpsexec-mvalpacer + zero-DC temporal-difference velocity solver in mkEOFPF/applyEOFPF + exact exposure-averaged ramp PSOL in modalfilter.c + WFS camera dark subtraction) and validated it across 23 live GPU cacaosim closed-loop runs.
Live GPU m = 10 Stage-1 & 2-Stage Rate Sweep (0.6" seeing, 64×64 ALPAO plate DM)
Configuration (Live GPU cacaosim, m = 10, 0.6" seeing) |
WFS1 Rate | Total WFE [nm] | Steady-State WFE [nm] | H-Band Strehl | Vis Strehl | Coro 3–10 λ/D |
|---|---|---|---|---|---|---|
| Stage-1 Integrator (1 kHz baseline) | 1000 Hz | 415.3 | — | 47.5% | — | — |
| Stage-1 Integrator (optimal 500 Hz) | 500 Hz | 400.8 | — | 50.7% | — | — |
| Stage-1 Integrator (slow 250 Hz — collapses) | 250 Hz | 504.2 | — | 38.6% | — | — |
| Stage-1 Block-EOF (1 kHz) | 1000 Hz | 169.6 | — | 68.2% | — | — |
| Stage-1 Block-EOF (500 Hz) | 500 Hz | 146.1 | — | 76.2% | — | — |
| Stage-1 Block-EOF ZOH (250 Hz) | 250 Hz | 130.0 | — | 80.2% | 39.6% | 1.34e-4 |
Stage-1 Block-EOF + Multi-Rate 1 kHz DM (mvalpacer) |
250 Hz | 129.3 | 108.7 | 80.4% | 39.8% | 1.33e-4 |
Full 2-Stage (Stg1 250 Hz MR + Stg2 2 kHz Int) |
250 / 2000 Hz | 94.0 | — | 86.9% | 53.8% | 9.19e-5 |
- Physical Rate Floor: Slowing Stage-1 WFS below
~250 Hz(200 Hz:~300–400 nm;100 Hz:>1000 nm) hits Subaru's 4-spider island-effect petaling limit at0.6"seeing, establishing250 Hzas the optimal faint-star Stage-1 operating point. - Zero-Latency Wake & Stroke Relief: With
mvalpacerwaking onj = 0directly fromsem_in(0.000fr added lag),m = 10Stage-1 peakdmpreshapercorrection drops-18%(28.2 -> 23.2 nm) with0clips.
Petal-Free High-SNR 2×2 Multi-Rate × 2 kHz Anti-Vibration Pre-Shaper Ablation (m = 6, 250 Hz WFS)
Isolating pure temporal stepping & plate-ringing physics at m = 6, 250 Hz (K_sub = 4 → 1 kHz DM) proves the direct synergy of placing mvalpacer upstream of DMch2disp -> dmpreshaper:
Case (m = 6, 250 Hz Stage-1 WFS, 0.6" seeing) |
Final WFE [nm] | Vis Strehl | Coro 3–10 λ/D |
HF OPD Ripple (>100 Hz) |
ALPAO 1 kHz Plate Band (0.7–1.4 kHz) |
Peak Pre-Shaper Stroke / Clips |
|---|---|---|---|---|---|---|
ZOH 250 Hz, Pre-Shaper OFF |
74.9 | 66.3% | 6.34e-5 |
3.95 nm | 3.24 nm | — |
ZOH 250 Hz, 2 kHz Pre-Shaper ON |
73.6 | 67.4% | 6.11e-5 |
3.55 nm | 2.41 nm | 16.9 nm / 0 clips |
Multi-Rate 1 kHz DM + 2 kHz Pre-Shaper ON |
71.8 | 69.0% (+2.7 pts) |
5.72e-5 (-10%) |
2.58 nm (-35%) |
1.93 nm (-40%) |
12.0 nm (-29%) / 0 clips |
5. Conclusions & Next Implementation Roadmap (milk / cacao / milk-mltools)
- Standardize on the 3-Layer Decoupled Architecture: Keep
Block-EOF+Cascaded Self-Learningin the fixed outer modal basis, confine on-the-flyQrotation +AR(48)telescope-vibration notching strictly insidemodalfilter, and cascademvalpacer (1 kHz)upstream ofDMch2disp -> dmpreshaper (2–4 kHz). - Enforce White-Noise Null & Basis-Swap Gates in CI: Every online learner must pass the
40 nmpure white-noise null gate (<= 1.01xnoise amplification) and bumpless mid-run swap test (< 55 nmpeak). - Production Deployment Targets:
cacao: WireCMODESinner rotation matrixQ+ atomic re-projectedAR(48)notch intomodalfilter.c; exposecacaopc-selflearnflags incacaoloopand runner scripts; finalizemvalpacer+EOF/VELoperational defaults for faint-star loops.milk-mltools: Add asyncmilk-fpsexec-mlt-cmodescovariance & noise-whitenedQsolver and unified telemetry/whiteness audit hooks.milk: Support atomic double-buffered matrix swap / trajectory stream helpers needed for zero-jitter inner basis updates and multi-rate trajectory logging.
Reproducibility & GitHub Provenance
- Unit & Integration Tests:
pytest -v tests/test_17_selflearn.py(Cascaded online self-learning +libgricclustering)pytest -v tests/test_18_multirate_dm.py(mvalpacerzero-latency ramps, exact ramp PSOL,EOF/VELzero-DC velocity)pytest -v tests/test_05_ao_web_report.py(Interactive algorithmic options map, constraints & web report integrity)- Representative Faint-Star Multi-Rate GPU Replay:
./scripts/run-ao3k-scexao.sh --star-mag 10 --wfs1-rate 250 --predictive --pf-mode eof \
--mr-dm1 --dm1-preshaper <preshaper.fits> --dynpsol1 <H_mimo.fits> \
--wfs-dark-adu 100.0 --seeing 0.60 --phys-time 10.0
- Interactive Options Map: Explore valid combinations, live RT CPU estimates, and dependency chains on the Interactive AO Loop Algorithmic Options Map.