Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Neural Collapse in Test-Time Adaptation

About

Test-Time Adaptation (TTA) enhances model robustness to out-of-distribution (OOD) data by updating the model online during inference, yet existing methods lack theoretical insights into the fundamental causes of performance degradation under domain shifts. Recently, Neural Collapse (NC) has been proposed as an emergent geometric property of deep neural networks (DNNs), providing valuable insights for TTA. In this work, we extend NC to the sample-wise level and discover a novel phenomenon termed Sample-wise Alignment Collapse (NC3+), demonstrating that a sample's feature embedding, obtained by a trained model, aligns closely with the corresponding classifier weight. Building on NC3+, we identify that the performance degradation stems from sample-wise misalignment in adaptation which exacerbates under larger distribution shifts. This indicates the necessity of realigning the feature embeddings with their corresponding classifier weights. However, the misalignment makes pseudo-labels unreliable under domain shifts. To address this challenge, we propose NCTTA, a novel feature-classifier alignment method with hybrid targets to mitigate the impact of unreliable pseudo-labels, which blends geometric proximity with predictive confidence. Extensive experiments demonstrate the effectiveness of NCTTA in enhancing robustness to domain shifts. For example, NCTTA outperforms Tent by 14.52% on ImageNet-C.

Xiao Chen, Zhongjing Du, Jiazhen Huang, Xu Jiang, Li Lu, Jingyan Jiang, Zhi Wang• 2025

Related benchmarks

TaskDatasetResultRank
Image ClassificationPACS
Overall Average Accuracy76.77
230
Image ClassificationCIFAR-10C Severity Level 5 (test)
Average Error Rate (Severity 5)78.51
62
Image ClassificationImageNet-C Severity 5 (test)
Error Rate (Gaussian)52.23
42
ClassificationWaterbirds (target domain)
Avg Acc93.13
9
ClassificationImageNet-C
Accuracy (Level 1)78.81
8
Showing 5 of 5 rows

Other info

Follow for update