Rank-1 Weight-Corrected Trainable Weight Averaging for Out-of-Distribution Detection
Abstract
Out-of-distribution (OOD) detection identifies inputs outside the training distribution. Rank-based analyses such as RankFeat and RankWeight suggest that OOD overconfidence is closely related to dominant low-rank components in feature and weight spaces. Since weight averaging operates directly in parameter space and improves model generalization, we consider it for OOD detection from a dominant-component perspective. Trainable Weight Averaging (TWA) assigns a single coefficient to each checkpoint, limiting independent control of dominant weight components. We extend TWA with leading rank-one weight components extracted by Singular Value Decomposition as correction directions, whose contributions are learned through the in-distribution classification objective. On ResNet50, our method improves over fine-tuning and standard TWA across the evaluated datasets with MSP and RankWeight, both with and without Outlier Exposure. Mahalanobis-based evaluation yields mixed results, indicating that the benefit depends on the OOD scoring protocol. Target-layer analyses with MSP and Energy favor correction near the classifier.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.LG
- Comments
- Accepted to ACCV2026 Workshop on Subspaces in the Era of Foundation Models
Related papers
VIDE : Training-Free Video Anomaly Detection via Visual Intrinsic Distribution Estimation
Shared title terminologycs.CVKevin D. Nguetche, Atif Belal, Lilian Hollard et al.
End-to-end prostate lesion segmentation and detection from undersampled diffusion-weighted MRI
Shared title terminologycs.CVLukas T. Rotkopf, Marco Schlimbach, Kevin Kröninger et al.
UnifiedAD: One-Shot Anomaly Detection across Modalities via Evidence Calibration
Shared title terminologycs.CVShangze Li, Chuancheng Shi, Simiao Xie et al.
Advanced Synthetic Image Detection Using Hybrid Feature Extraction
Shared title terminologycs.CVAmeya Uppina, S Navaneetha Krishnan, Nikhil N Iyer et al.
One Subspace Is Not Enough: LocalSubspaceAD for Training-Free Few-Shot Anomaly Detection
Shared title terminologycs.CVDaniel Pröll, Sebastian Hegenbart
Adaptive and Detection-Aware Super-Resolution for Small Object Detection
Shared title terminologycs.CVCezica-Elena Luncanu, Stelian Spînu