Family-Conditioned Hidden Markov Models for Cross-Architecture Out-of-Distribution Monitoring
Abstract
Deep Neural Networks (DNNs) are transforming perception tasks across a wide range of applications, yet their reliability can degrade when inputs at deployment differ from the training distribution. This work presents a family-conditioned runtime monitor for detecting such out-of-distribution (OOD) inputs. The monitor extracts per-layer activation representations, converts them into normalized anomaly scores, and discretizes these scores into ordered severity levels. The resulting sequence of levels across the network is used to train a Hidden Markov Model (HMM) for each structural family, capturing characteristic activation patterns shared across its constituent networks. The central hypothesis is that networks within the same structural family exhibit stronger alignment in their activation behavior than networks from different families. Empirical evaluation across 13 networks from three structural families supports this hypothesis, with within-family alignment 5.25x better than cross-family alignment. The family-conditioned HMM also generalizes to unseen network architectures: under a leave-one-network-out protocol, the AUROC gap between networks used to train the monitor and held-out networks is at most 0.009. Furthermore, the proposed monitor achieves OOD detection performance comparable to per-network baseline methods while eliminating the need to construct and calibrate a separate monitor for every network. These results demonstrate the potential of family-level monitoring as a scalable approach to runtime OOD detection across diverse neural network architectures.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CV, cs.LO
Related papers
Double Conditioning Architecture: A Hybrid Neural Approach for Refining Multi-Horizon Demand Forecasts
Shared title terminologycs.LGAdolfo Gonzalez, Victor Parada
Class-Conditional Coverage from Label Proportions: PAC Calibration without Instance Labels
Shared title terminologycs.LGDario Augusto Borges Oliveira, Yuri F. Saporito
Drift Monitor: Calling a Smarter Model Only When a Cheaper Agent Drifts
Shared title terminologycs.LGWilliam Bird
Diffusion Adaptation Under Distribution Shifts via Distributionally Robust Optimization
Shared title terminologycs.LGZifan Wang, Amir Mohammad Karimi Mamaghan, Riccardo De Santi et al.
HypOC: Hypothetical Output Conditioned Prompting for Ranking-Based Classification
Shared title terminologycs.LGBenoît Ronval, Pierre Dupont, Siegfried Nijssen
When Does Separable Structure Pay? Restriction Cost and a Predicted Crossing Size in Noise-Weighted Reconstruction
Shared title terminologycs.LGDowling Wong, Markus Klute