Unify scene taxonomy into Training (mechanistic/generated) and Evaluation
Browse files34 unmodified lines353637383940415 unmodified lines47484950515253545534 unmodified lines- **Two persistent recurrent memories**: a per-channel multi-timescale EMA (4–2,048 steps) for slow drift and levels, and an online linear-attention coupling memory (DeltaNet) updated in $O(1)$ per step that estimates live valve-to-sensor gains and in-flight moves in the delay pipe, protected by Cauchy outlier filtering against sudden unmeasured load shocks and a steady-state sign guardrail when valve direction is known.- **Direct action head** with adaptive step-size scaling and `tanh` rate-limit bounding.- **Zero-differentiable black-box training (forward-only [Hflash](https://github.com/M3rcyzzz/Hflash))**:- Training pool: 75% randomized procedural processes (long dead time, inverse response, strong nonlinearity, 4–12× band unmeasured step load shocks, hard limits, 15% faults) + 25% ODE mechanistic development plants (18 families), run purely forward under `torch.no_grad()` with parallel `(B, T)` Transformer updates.- **Stage A (Online DAgger warm-up)**: 85% student / 15% teacher rollouts; only paired episodes (75%) imitate a training-only MPC teacher that uses ONLY public instruments (never peeking at hidden loads); blind episodes (25%) never copy the teacher.- **Stage B (384-step Black-Box RL: PPO → Counterfactual GRPO)**: drops both teacher imitation and Critic value networks, running 4 parallel rollouts per identical plant, event, and noise seed (Group Relative Policy Optimization) over 384-step horizons ($\gamma = 0.995$) with **multi-scale 1/4/8-step block exploration** (penetrating slow plant dead times), dim-scaled exploration noise, a moving EMA KL trust region, and matched 1D/2D Muon + AdamW step scales with DiLoCo multi-GPU synchronization.5 unmodified lines| H5 Benchmark Track | Units | AIO1 (Stage 15B r50) | Self-tuning PID | Static-model MPC ||---|---:|---:|---:|---:|| **`mech-heldout` (14 held-out chemical units)** | 14 | **64.6** (92.9% safe; **+16.7 vs. r82**, all 13 families positive) | 78.4 | 88.7 || **`shift-12x5` (Permanent drift / grade change)** | 32 | **59.7** (0% trips; **+16.6 vs. MPC**) | 61.8 | 43.1 || **`mech-industrial` (Large industrial plants)** | 6 | **59.5** (0% trips; **+26.9 vs. MPC**) | 65.8 | 32.6 || **`synth-48x20` (Plantwide 48×20 MIMO)** | 16 | **37.9** (0% trips; **beats MPC 37.7, +39.5 vs. PID**) | −1.6 | 37.7 || **`synth-24x10` (Large 24×10 MIMO)** | 32 | **35.6** (0% trips; **+23.1 vs. PID**) | 12.5 | 85.6 || **`synth-12x5` (Standard 12×5 MIMO)** | 64 | **35.5** (0% trips; **+4.5 vs. r82**) | 56.9 | 75.1 |34 unmodified lines353637383940415 unmodified lines47484950515253545534 unmodified lines- **Two persistent recurrent memories**: a per-channel multi-timescale EMA (4–2,048 steps) for slow drift and levels, and an online linear-attention coupling memory (DeltaNet) updated in $O(1)$ per step that estimates live valve-to-sensor gains and in-flight moves in the delay pipe, protected by Cauchy outlier filtering against sudden unmeasured load shocks and a steady-state sign guardrail when valve direction is known.- **Direct action head** with adaptive step-size scaling and `tanh` rate-limit bounding.- **Zero-differentiable black-box training (forward-only [Hflash](https://github.com/M3rcyzzz/Hflash))**:- Unified two-way scene split — **Training** (75% **generated scenes** across 9 procedural families covering long dead time, inverse response, strong nonlinearity, 4–12× band unmeasured step load shocks, hard limits, and faults + 25% **mechanistic scenes** across 18 ODE/DAE units, run purely forward under `torch.no_grad()` with parallel `(B, T)` Transformer updates) vs. **Evaluation** (20 unseen mechanistic scenes + frozen multi-scale/drift/fault/blind-pairing tracks + external commercial simulators NeqSim & DWSIM).- **Stage A (Online DAgger warm-up)**: 85% student / 15% teacher rollouts; only paired episodes (75%) imitate a training-only MPC teacher that uses ONLY public instruments (never peeking at hidden loads); blind episodes (25%) never copy the teacher.- **Stage B (384-step Black-Box RL: PPO → Counterfactual GRPO)**: drops both teacher imitation and Critic value networks, running 4 parallel rollouts per identical plant, event, and noise seed (Group Relative Policy Optimization) over 384-step horizons ($\gamma = 0.995$) with **multi-scale 1/4/8-step block exploration** (penetrating slow plant dead times), dim-scaled exploration noise, a moving EMA KL trust region, and matched 1D/2D Muon + AdamW step scales with DiLoCo multi-GPU synchronization.5 unmodified lines| H5 Benchmark Track | Units | AIO1 (Stage 15B r50) | Self-tuning PID | Static-model MPC ||---|---:|---:|---:|---:|| **`mech-heldout` (Eval · 14 MIT mechanistic scenes)** | 14 | **64.6** (92.9% safe; **+16.7 vs. r82**, all 13 families positive) | 78.4 | 88.7 || **`shift-12x5` (Eval · Permanent drift / grade change)** | 32 | **59.7** (0% trips; **+16.6 vs. MPC**) | 61.8 | 43.1 || **`mech-industrial` (Eval · 6 attributed mechanistic scenes)** | 6 | **59.5** (0% trips; **+26.9 vs. MPC**) | 65.8 | 32.6 || **`synth-48x20` (Plantwide 48×20 MIMO)** | 16 | **37.9** (0% trips; **beats MPC 37.7, +39.5 vs. PID**) | −1.6 | 37.7 || **`synth-24x10` (Large 24×10 MIMO)** | 32 | **35.6** (0% trips; **+23.1 vs. PID**) | 12.5 | 85.6 || **`synth-12x5` (Standard 12×5 MIMO)** | 64 | **35.5** (0% trips; **+4.5 vs. r82**) | 56.9 | 75.1 |
README.md+4-4