# Adaptive Covariance and Multi-Layer Alignment for Out-of-Distribution Detection

*Haoyang Su, Qi Chen, Max Gutbrod, Johan Verjans, Zhibin Liao*

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

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Out-Distribution Detection Methods](../pgroup/118.md) · Type: new method · Keywords: out-of-distribution detection, multi-layer feature fusion, covariance modeling, pseudo-OOD generation, image classification

Areas: [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Domain Shift Adaptation › Out-of-Distribution Detection

## Summary
ML-AMCoS adaptively combines cosine similarity with class-conditional Gaussian distributions across multiple layers to improve OOD detection robustness, achieving state-of-the-art AUROC and FPR.

## Explained to a 5-year-old
When a computer looks at pictures, it sometimes sees things it has never seen before. It needs to know when those new things are not part of what it knows, so it can be careful. This paper helps computers get better at this guessing game. It looks at many layers of the computer's understanding and picks the best ones. It mixes known pictures with parts of other pictures to practice, so the computer can say 'I don't know' more often.

## Explained to a 5-year-old, longer
When a computer looks at pictures, it sometimes sees things it has never seen before. It needs to know when those new things are not part of what it knows, so it can be careful. This paper helps computers get better at this guessing game. It looks at many layers of the computer's understanding, like different levels of thinking. It checks which layers are most helpful for spotting new things. To practice, it mixes known pictures with parts of other pictures to create fake new ones. This training helps the computer learn how to compare new pictures to what it knows. The computer then uses both similarity and statistical patterns to decide if something is familiar or not. It also weighs each layer's importance, giving more trust to the most reliable ones. This makes the computer's decisions more stable across different kinds of images. As a result, the computer can say 'I don't know' more accurately, which is important for safety. The method works well on many different types of pictures, making it useful in many places.

## For a technical reader
The paper addresses the challenge of detecting inputs that a model has not seen during training, which is crucial for safe deployment. It leverages both cosine similarity and class-conditional Gaussian models across multiple network layers to score unfamiliar inputs. To decide which layers contribute most, the approach generates pseudo-out-of-distribution samples by mixing known images with parts of other images. These pseudo samples are used to compute per-layer weights that emphasize reliable features and suppress noise. The resulting multi-layer scoring scheme improves detection accuracy and robustness across diverse image domains.

## Problem
Existing OOD detection methods often fail to generalize across domains because they either ignore low-level features from shallow layers or use suboptimal layer selection, leading to reduced detection performance on unseen data.

## Method
The approach integrates cosine similarity with class-conditional Gaussian distributions, adaptively weighting layers based on performance against pseudo-OOD samples generated by cut-mixing in-distribution images with corners from other classes. It computes contribution weights for each layer to emphasize informative features while suppressing noise, and uses these weighted multi-layer features for OOD scoring.

## Results
The approach achieves an average AUROC of 81.13% and an FPR@95 of 40.12% on near-OOD detection, improving over prior methods by 7.25% AUROC and 7.08% FPR.

## Contributions
It introduces an adaptive multi-layer OOD detection framework that leverages both cosine similarity and class-conditional covariance, and proposes a pseudo-OOD generation scheme based on cut-mixing to guide layer weighting.

## Practical relevance
The method enhances the reliability of AI systems by providing more robust OOD detection across domains, supporting safer deployment in real-world applications.

## Research questions this paper is counted under

- [How can we detect out-of-distribution samples reliably with limited in-distribution data across diverse domains?](../q/148.md)

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/151580)
