Early Detection of Backbone Divergence via Neighborhood Structure in Learned Embeddings
Yiming Zhang ⋅ Reza Hassanpour ⋅ Georgi Gaydadjiev
Abstract
Neural network training is typically monitored through loss and accuracy curves, but these quantities do not directly reveal when the backbone begins to encode training and test data differently. A train–test negative log-likelihood (NLL) gap shows probabilistic separation between training and test examples, but it does not reveal whether this separation is present in the backbone geometry. We introduce the Volume Ratio Test (VRT), a permutation-based two-sample test for $\ell_2$-normalized backbone embeddings that compares local angular neighborhood structure on the unit hypersphere. VRT converts $k$-nearest-neighbor angles into spherical-cap log-volume spacings and requires no kernel bandwidth selection or learned discriminator. Across 24 models in 16 configurations spanning embedding dimensions $D=32$ to $D=2{,}048$, VRT achieves the earliest sustained detection among the main baselines on normalized embeddings in all positive-control settings. Where VRT and the earliest detecting baseline have different onsets, VRT leads by 9 to 54 epochs under evaluation-mode BatchNorm extraction and by 12 to 171 epochs under training-mode BatchNorm extraction. On ResNet20-FRN without BatchNorm and the strongly augmented ResNet-18, VRT detects sustained divergence while MMD, MMDAgg, Energy Distance, and C2ST do not. On ResNet-50/CIFAR-100, VRT first rejects at epoch 61, compared with epoch 73 for MMD and Energy Distance, 80 for MMDAgg, and 121 for C2ST. The train–test NLL gap is $0.491$ at VRT onset and remains at least this large at subsequent checkpoints. More generally, sustained VRT rejection is typically accompanied by a persistent train–test loss gap, but large NLL gaps can occur without VRT rejection. VRT therefore distinguishes train–test separation in NLL from backbone-geometric divergence.
Successful Page Load