Detection and Classification in Latent Spaces: High-Dimensional Analysis and Validation

Enis Chenchene, Anil S. Baslamisli, Paolo Braca

This paper bridges the gap between high-dimensional probability theory and the practical application of foundation models (FMs). The authors demonstrate that the latent spaces of modern FMs are not just powerful feature extractors, but also follow predictable statistical laws that allow researchers to design and control decision rules with mathematical precision.

TL;DR

The authors provide a theoretically grounded framework for building and predicting the performance of detectors in the high-dimensional latent spaces of foundation models. By applying Random Matrix Theory and Large Deviation Principles, they prove that error rates follow complex "multiple-descent" patterns and show that their theory accurately matches empirical results across vision, text, and audio tasks.

What Problem Does This Paper Address?

Foundation models produce high-dimensional latent representations (embeddings) that are incredibly effective for downstream tasks. However, designing optimal decision rules in these spaces is challenging because traditional statistical assumptions often break down in the "high-dimensional regime"—where the number of features ($p$) is comparable to or larger than the number of training samples ($n$).

Specifically, the authors tackle two questions:

  1. Do detection methods in these spaces exhibit the "double-descent" phenomenon (where error rates decrease, increase, and then decrease again as model complexity grows)?
  2. Can high-dimensional asymptotic analysis accurately predict the performance of Neyman–Pearson detectors (which minimize miss-detection for a fixed false-alarm rate) when applied to real-world foundation model latents?

Methods

The authors analyze linear and quadratic decision statistics within the Neyman–Pearson paradigm. Their approach relies on two heavy-duty mathematical toolkits:

  • Random Matrix Theory (RMT): Used to characterize the behavior of regularized sample covariance matrices in high dimensions.
  • Large Deviation Principle (LDP): Used to derive explicit formulas for the exponential decay rates of false-alarm and miss-detection probabilities.

The general pipeline involves mapping raw data through a pre-trained FM encoder into a latent space, then applying a decision statistic based on the regularized sample covariance and class means.

The processing pipeline for multi-class and binary classification in latent spaces.

Datasets

The framework was validated across three distinct modalities using state-of-the-art foundation models:

  • Vision: Airbus Ship Detection and FireRisk (remote sensing) datasets using DINOv3.
  • Text: HumAID (disaster incidents from Twitter) using Llama-Nemotron-Embed-1B-v2.
  • Audio: SONYC-UST-V2 (urban sound tagging) using BEATs.

Key Insights and Ideas

  • Isotropic Latents as a Testing Ground: Recent research suggests that optimal foundation model embeddings should be isotropic Gaussian. The authors find that real FM latents closely match this, making them an ideal "natural" environment for high-dimensional statistical theory.
  • Multiple-Descent Behavior: The paper analytically shows that error decay rates are non-monotonic. Depending on the "shape parameter" ($\gamma = p/n$), the error rate can exhibit double-descent or even multiple-descent, where performance fluctuates as the ratio of features to samples changes.
  • Predictable Performance: Perhaps the most significant "aha" moment is that the theoretical LDP rates derived from abstract math show "close agreement" with empirical performance on real-world datasets. This means we can predict how a model will perform on a specific task before running extensive tests.
Figure 1: Leveraging foundation models as abstract feature extractors to design theoretically grounded data-driven decision statistics. Left: Processing pipeline for the multi-class (M > 2) and binary (M = 2) classification problems. The latent features x are processed via a linear combination layer, whose weights are obtained from the regularized sample covariance matrix ˆΣλ := ˆΣ + λI and the sample mean of Hi training data ˆsi. The decision is taken as maximum a posteriori for M > 2 or with a threshold comparison for M = 2. Right: Error probability decay rate as a function of the shape parameter for M = 2. Comparison between empirical (dashed) and theoretical curves (solid lines) across different foundation models and datasets. We are able to predict and control the performance in terms of error probabilities when both p and n are large enough.

Key Results

  • Theoretical Validation: The authors derived closed-form expressions for error decay rates that accurately capture the behavior of detectors in high dimensions.
  • Superiority over Baselines: In the low false-alarm regime (critical for safety-sensitive fields like defense or healthcare), the proposed theoretically grounded detectors outperformed standard fine-tuned Logistic Regression and Linear SVMs.
  • Robustness: The framework proved universal across vision, text, and audio, confirming that the high-dimensional properties of latent spaces are a fundamental characteristic of modern representation learning.

Limitations and Future Work

  • Estimation Challenges: The main limitation is the potential difficulty in estimating the population spectral distribution ($H$) and the directional signal-to-noise ratio (dSNR) in some complex settings.
  • Degenerate Cases: The current analysis assumes non-singular covariance matrices. While regularization ($\lambda$) mitigates this, cases with truly degenerate distributions require further theoretical development.
  • Scaling the Classes: Future research will look into the asymptotic regime where the number of classes ($M$) also grows proportionally with $p$ and $n$, as well as characterizing LDP rates for a broader family of non-Gaussian statistics.

Summary updated

Abstract

Foundation models produce high-dimensional latent representations in which suitably designed statistical decision rules can be effective yet analytically tractable. We study such detectors in the high-dimensional regime, where latent dimension and training sample size grow proportionally. For linear and quadratic statistics, we derive explicit large-deviation characterizations of false-alarm and miss-detection performance under the Neyman-Pearson paradigm, and show how the binary analysis extends to multi-class classification. The resulting error probabilities and corresponding decay rates exhibit non-monotonic dependence on the shape parameter, including double-descent and, in some regimes, multiple-descent. Experiments on vision, text, and audio datasets using modern foundation models show close agreement between theoretical predictions and empirical performance. In particular, the proposed framework allows us to set a prescribed false-alarm level and accurately predict the corresponding miss-detection probability. Overall, our results provide a theoretically grounded and interpretable framework with competitive empirical performance across different modalities.
BibTeX
@inproceedings{chenchene2026detection,
  author = {Enis Chenchene and Anil S. Baslamisli and Paolo Braca},
  title = {{Detection and Classification in Latent Spaces: High-Dimensional Analysis and Validation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=eoEglhtYkx},
}
Figure