Salvato in:
Dettagli Bibliografici
Autori principali: Harun, Md Yousuf, Gallardo, Jhair, Kanan, Christopher
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2502.10691
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918145238761472
author Harun, Md Yousuf
Gallardo, Jhair
Kanan, Christopher
author_facet Harun, Md Yousuf
Gallardo, Jhair
Kanan, Christopher
contents Out-of-distribution (OOD) detection and OOD generalization are widely studied in Deep Neural Networks (DNNs), yet their relationship remains poorly understood. We empirically show that the degree of Neural Collapse (NC) in a network layer is inversely related with these objectives: stronger NC improves OOD detection but degrades generalization, while weaker NC enhances generalization at the cost of detection. This trade-off suggests that a single feature space cannot simultaneously achieve both tasks. To address this, we develop a theoretical framework linking NC to OOD detection and generalization. We show that entropy regularization mitigates NC to improve generalization, while a fixed Simplex Equiangular Tight Frame (ETF) projector enforces NC for better detection. Based on these insights, we propose a method to control NC at different DNN layers. In experiments, our method excels at both tasks across OOD datasets and DNN architectures. Code for our experiments is available at: https://yousuf907.github.io/ncoodg
format Preprint
id arxiv_https___arxiv_org_abs_2502_10691
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Controlling Neural Collapse Enhances Out-of-Distribution Detection and Transfer Learning
Harun, Md Yousuf
Gallardo, Jhair
Kanan, Christopher
Machine Learning
Out-of-distribution (OOD) detection and OOD generalization are widely studied in Deep Neural Networks (DNNs), yet their relationship remains poorly understood. We empirically show that the degree of Neural Collapse (NC) in a network layer is inversely related with these objectives: stronger NC improves OOD detection but degrades generalization, while weaker NC enhances generalization at the cost of detection. This trade-off suggests that a single feature space cannot simultaneously achieve both tasks. To address this, we develop a theoretical framework linking NC to OOD detection and generalization. We show that entropy regularization mitigates NC to improve generalization, while a fixed Simplex Equiangular Tight Frame (ETF) projector enforces NC for better detection. Based on these insights, we propose a method to control NC at different DNN layers. In experiments, our method excels at both tasks across OOD datasets and DNN architectures. Code for our experiments is available at: https://yousuf907.github.io/ncoodg
title Controlling Neural Collapse Enhances Out-of-Distribution Detection and Transfer Learning
topic Machine Learning
url https://arxiv.org/abs/2502.10691