# Early Detection of Backbone Divergence via Neighborhood Structure in Learned Embeddings

*Yiming Zhang, Reza Hassanpour, Georgi Gaydadjiev*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155846) · [OpenReview](https://openreview.net/forum?id=2T2Cs2OHk1) · [Open on the map](../papers.html#p155846)

Category: [Brain Signals & Spiking Networks](../pcat/6.md) › [Neural Decision-Making Models](../pgroup/183.md) · Type: new method · Keywords: backbone divergence, embedding geometry, two-sample test, permutation test, spherical neighborhood, model monitoring

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Model Capability Diagnostics › Out-of-Distribution Detection

## Summary
The paper introduces the Volume Ratio Test (VRT), a permutation-based two-sample test that detects sustained backbone divergence by comparing local angular neighborhood structure in l2-normalized embeddings.

## Explained to a 5-year-old
When a computer learns to recognize pictures, it builds a hidden map of the data. This map is created from the patterns it sees while being taught. Sometimes the map changes so that new pictures are placed far away from the old ones. If the map changes a lot, the computer might start making mistakes on new pictures. The researchers created a test that looks at how the points on this map are arranged around each picture.

## Explained to a 5-year-old, longer
A computer program can learn to tell apart different pictures by making a hidden map of them. This map is built from the patterns the program sees while it is being taught. Sometimes the map changes so that new pictures are placed far away from the old ones. If the map changes a lot, the program might start making mistakes on new pictures. The researchers wanted a way to notice this change early, before the program gets too wrong. They looked at how the points on the map are arranged around each picture. By measuring the angles between nearby points, they could see if the map was getting too spread out. They turned these angles into a simple measure of how much the map had changed. This measure works without needing extra tools or complicated calculations. When the measure says the map has changed, it means the program is starting to treat training and test data differently. This early warning can help engineers fix problems quickly and keep the program reliable. In experiments, this method spotted changes much sooner than older ways of checking the program.

## For a technical reader
The Volume Ratio Test (VRT) evaluates whether a neural network’s internal embeddings for training and test data have diverged by comparing their local angular neighborhoods on the unit hypersphere. It converts k-nearest-neighbor angles into spherical-cap log-volume spacings and uses a permutation-based two-sample test, avoiding kernel bandwidth selection or learned discriminators. Empirically, VRT detects divergence earlier than classic two-sample tests like MMD and C2ST across CIFAR-10 and CIFAR-100, providing a practical early-warning signal for model drift. Engineers can integrate VRT into training pipelines to monitor backbone stability without additional model complexity.

## Problem
Neural network training is typically monitored through loss and accuracy, which do not directly reveal when the backbone begins to encode training and test data differently. There is a need for a method that can detect sustained divergence in the backbone geometry, distinguishing it from overall separation in predictions.

## Method
The approach computes k-nearest-neighbor angular neighborhoods on the unit hypersphere for training and test embeddings, converts these angles into spherical-cap log-volume spacings, and uses a permutation-based two-sample test to assess divergence without requiring kernel bandwidth or a learned discriminator.

## Results
VRT detects sustained backbone divergence earlier than existing baselines, leading them by 25-60 epochs on CIFAR-10 and first rejecting at epoch 61 on CIFAR-100 while MMD-based methods reject at epoch 121. It also distinguishes backbone-geometric divergence from overall NLL separation, as large NLL gaps can occur without VRT rejection.

## Contributions
The paper proposes a permutation-based two-sample test that leverages spherical neighborhood structure to detect sustained divergence in model backbones, and provides an empirical comparison showing it outperforms existing divergence detection methods across multiple architectures and datasets.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155846)
