Skip to main content

A Bayesian Nonparametric Perspective on Mahalanobis Distance for Out of Distribution Detection

Publication ,  Journal Article
Linderman, RW; Cowan, N; Chen, Y; Linderman, SW
Published in: Transactions on Machine Learning Research
January 1, 2026

Bayesian nonparametric methods are naturally suited to the problem of out-of-distribution (OOD) detection. However, these techniques have largely been eschewed in favor of simpler methods based on distances between pre-trained or learned embeddings of data points. Here we show a formal relationship between Bayesian nonparametric models and the relative Mahalanobis distance score (RMDS), a commonly used method for OOD detection. Building on this connection, we propose Bayesian nonparametric mixture models with hierarchical priors that generalize the RMDS. We evaluate these models on the OpenOOD detection benchmark and show that Bayesian nonparametric methods can improve upon existing OOD methods, especially in regimes where training classes differ in their covariance structure and where there are relatively few data points per class.

Duke Scholars

Published In

Transactions on Machine Learning Research

EISSN

2835-8856

Publication Date

January 1, 2026

Volume

2026-February
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Linderman, R. W., Cowan, N., Chen, Y., & Linderman, S. W. (2026). A Bayesian Nonparametric Perspective on Mahalanobis Distance for Out of Distribution Detection. Transactions on Machine Learning Research, 2026-February.
Linderman, R. W., N. Cowan, Y. Chen, and S. W. Linderman. “A Bayesian Nonparametric Perspective on Mahalanobis Distance for Out of Distribution Detection.” Transactions on Machine Learning Research 2026-February (January 1, 2026).
Linderman RW, Cowan N, Chen Y, Linderman SW. A Bayesian Nonparametric Perspective on Mahalanobis Distance for Out of Distribution Detection. Transactions on Machine Learning Research. 2026 Jan 1;2026-February.
Linderman, R. W., et al. “A Bayesian Nonparametric Perspective on Mahalanobis Distance for Out of Distribution Detection.” Transactions on Machine Learning Research, vol. 2026-February, Jan. 2026.
Linderman RW, Cowan N, Chen Y, Linderman SW. A Bayesian Nonparametric Perspective on Mahalanobis Distance for Out of Distribution Detection. Transactions on Machine Learning Research. 2026 Jan 1;2026-February.

Published In

Transactions on Machine Learning Research

EISSN

2835-8856

Publication Date

January 1, 2026

Volume

2026-February