A novel approach that leverages sparse autoencoders (SAEs) to learn interpretable features from these intermediate activations and proposes a new OOD score derived from the cosine similarity between the sparse feature activations of a test sample and the mean activations of ID classes.
Abstract
Reliable detection of out-of-distribution (OOD) samples is crucial for the safe deployment of machine learning models. Neural networks often produce overconfident predictions for inputs that deviate from their training data, leading to significant degradation in performance. While many OOD detection methods focus on the final output layer, they neglect the rich hierarchical information present in intermediate network layers. This paper introduces a novel approach that leverages sparse autoencoders (SAEs) to learn interpretable features from these intermediate activations. We find that in-distribution (ID) and OOD data activate distinct sets of these sparse features. We propose a new OOD score derived from the cosine similarity between the sparse feature activations of a test sample and the mean activations of ID classes. Our post-hoc detection method not only achieves state-of-the-art performance on standard OOD detection benchmarks, but yields interpretable insights into how distribution shift affects learned representations.
This tutorial covers recent developments in OOD detection from both theoretical and practical perspectives, including four major categories: (1) post-hoc methods, (2) training-based methods with auxiliary outliers, (3) training methods without auxiliary outliers, and (4) foundation model-based approaches, along with re...
Suranga Seneviratne, Dishanika Denipitiyage, Sanjay Chawla et al.· Proceedings of the 32nd ACM...· 0 citations
This paper presents Hide&Seek, an end-to-end differentiable model for instance-wise feature selection and prediction under a single objective without information leakage that outperforms existing state-of-the-art models across a range of experiments and is fast to train.
A straightforward feature mixing approach for pre-trained Transformers is presented, which combines multi-layer representations via calculated importance weights, and identifies OOD samples using Mahalanobis distance in the blended feature space.
Tong Wei, Bolin Wang, Jiang-Xin Shi et al.· Neural Information Processin...· 8 citations· ⚡2
DECAF (DE-Clustering for Adaptive Forgetting), a post-hoc method that operates only on the forget set and is designed to break the cluster, is proposed, which attains performance comparable to that of unlearning methods that use the full training set, while being significantly more efficient.
Anjie Le, Can Peng, Hongcheng Guo et al.· arXiv.org· 0 citations
A family of difference-informed pruning methods built upon this principle are introduced, suggesting that preserving output differences is a broadly useful and composable signal for post-training LLM sparsification.
Linghao Kong, Inimai Subramanian, Micah Adler et al.· 0 citations
It is found that SAE activation sets do not recover human category boundaries or within-category typicality more faithfully than dense embeddings or residual-stream states, but instead track model-internal similarity structure.
Nikolai Bolik, Lennart Stöpler, Artur Andrzejak· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.