Venkateswara
Back to Vol. 1

VS.02 · Statistical ML · MLOps · Jun–Nov 2026

VS.02Chapter Tear-Down

Vigil

vs. The Null That Lied

Replaced asymptotic correlation alarms that fired on 98.4% of clean NSL-KDD windows with Westfall–Young permutation calibration (3.4% FWER) and lifted CICIDS2017 two-feature Recall@3 from 65.0% to 95.0%.

Stack
Python · PyTorch · SciPy · FastAPI · Apache Kafka · Apache Airflow · MLflow · PyPI
Throughput
7.6 ms Decomposed Copula-KS · 0.30–0.38 s B=199 alert calibration
Tolerance
NSL-KDD null FWER 3.4% (3.2%–5.8% across pools) · CICIDS2017 Recall@3 65.0% → 95.0%
Known Limits
Synthetic/semi-synthetic feature-index localization, not supervised attack recall or causal discovery; capture-ordered CICIDS2017 autocorrelation breaks block_size=50 exchangeability (41.3% rejection). No publication claimed.

NSL-KDD genuine-null FWER

3.4%

Pooled-label Westfall–Young permutation calibration at nominal alpha = 0.05 (3.2%–5.8% across Gaussian, tied, t₃, and CICIDS2017 pools)

n: 500 genuine-null NSL-KDD windows (17 / 500 alarms)

CICIDS2017 two-feature Recall@3

65.0% → 95.0%

CICIDS2017 two-feature permutation localization: pre-peeling attribution (65.0%) vs. greedy vertex-cover edge-peeling (95.0%)

n: n = 400 window size, 40 seeds (20 val + 20 held-out test), Holm p < 0.05

Decomposed Copula-KS median latency

7.6 ms

Local benchmark of two-sample KS marginal + van der Waerden rank-normal Fisher-z relational attribution

n: d = 20 features, n = 400 window size (alert-time B = 199 permutation mode: 0.30–0.38 s)

VS.02 · Tear-Down PlateScroll Scrub · 0% Exploded
Monochrome ink illustration of a machined black signal prism with two telemetry filaments crossing a single crimson calibration line
Illustration · Not system output
Monochrome ink illustration of a machined black signal prism with two telemetry filaments crossing a single crimson calibration lineHalftone Wipe · 4:3 Uncropped

Every detector fired. None of them should have. On five hundred genuine-null NSL-KDD windows, raw Pearson correlation raised 492 false alarms—while trained bottleneck autoencoders smeared a +0.5 SD shift so badly they scored 32.5% Recall@3 against an untrained network's 57.5%. I threw out asymptotic assumptions and calibrated directly against the data.

Panel 01 · The Dread (What Silently Breaks)

Two silent failure modes corrupt unsupervised drift attribution: (1) trained bottleneck autoencoders smear subtle +0.5 SD univariate shifts across correlated outputs, dropping to 32.5% Recall@3 vs. 57.5% for an untrained AE; (2) asymptotic Fisher-z correlation tests collapse under heavy tails and ties, false-alarming on 98.4% of clean NSL-KDD windows (98.6% for naive hybrid).

Impact · The Catch2026-10-24

98.4% → 3.4%

NSL-KDD genuine-null FWER across 500 windows (492 → 17 alarms); separately on CICIDS2017 two-feature permutations (n = 400), greedy vertex-cover edge-peeling lifts Recall@3 from 65.0% to 95.0%.

Scope: Requires exchangeable draws; on capture-ordered CICIDS2017 flows, serial autocorrelation persists past block_size=50 (41.3% rejection). No journal publication claimed.

Panel 02 · Engineering Contribution

Diagnosed both failure regimes across 40-seed localization studies and 500-window genuine-null calibration sweeps, then shipped Decomposed Copula-KS (7.6 ms median at d=20, n=400) and Permutation-Calibrated Edge-Peeling inside vigil-drift on PyPI, paired with FastAPI, Kafka, Airflow, and MLflow example integrations.

Panel 03 · System Architecture

  1. 01Dual autoencoders (adaptive model A and frozen mirror A_KC) paired with Welch T-tests and KDE novelty monitors.
  2. 02Decomposed Copula-KS separates exact two-sample KS marginal tests from van der Waerden rank-normal Fisher-z relational checks in 7.6 ms median (d=20, n=400).
  3. 03Pooled-label Westfall–Young max-statistic permutation calibration controls genuine-null FWER to 3.4% on NSL-KDD (3.2%–5.8% across Gaussian, tied, t₃, and CICIDS2017 pools) in 0.30–0.38 s at alert time (B=199).
  4. 04Greedy vertex-cover edge-peeling isolates shifted features from unshifted correlated neighbors, lifting CICIDS2017 two-feature permutation Recall@3 from 65.0% to 95.0% (n=400, 40 seeds, Holm p < 0.05).

DATASET 01 · NSL-KDD GENUINE-NULL CALIBRATION (500 WINDOWS · 25 × 20 GRID)

Zero injected drift. Every crimson cell is a false alarm.

492 / 500 (98.4%)

492 / 500 genuine-null windows raised false alarms (98.4%). Asymptotic normality collapses on heavy-tailed, tied NSL-KDD flows.

False alarmNull pass
DECOMPOSED COPULA-KS LATENCY: 7.6 ms median (d=20, n=400)
ALERT-TIME PERMUTATION (B=199): 0.30–0.38 s

DATASET 02 · CICIDS2017 TWO-FEATURE PERMUTATION (n=400 · 40 SEEDS · HOLM p < 0.05)

Greedy Vertex-Cover Edge-Peeling Localization

Pre-peeling attribution (Recall@3)65.0%
Greedy vertex-cover edge-peeling (Recall@3)95.0%

Scope: semi-synthetic feature-index localization on CICIDS2017 windows; kept strictly separate from NSL-KDD null calibration above.

DATASET 03 · SYNTHETIC +0.5 SD UNIVARIATE SHIFT (40 SEEDS · RECALL@3)

Why Bottleneck Autoencoders Blind Themselves

Trained bottleneck AE (error smearing)32.5%
Untrained random-weight AE baseline57.5%

Training on correlated inputs spreads a single-feature +0.5 SD shift across unshifted reconstructions, dropping Recall@3 below an untrained network.

PYPI $pip install vigil-drift

Next Chapter · VS.03

Table Review

vs. The Ledger That Doesn't Add Up

Monochrome ink illustration of a machined black optical loupe with a crimson reticle over cotton-paper financial ledger grids