透過泛化與特徵分析強化分佈外資料檢測
Enhancing OOD Detection via Generalization and Feature Norm Analysis
摘要
本論文旨在解決將深層神經網路(DNN)部署於無約束真實世界環境時所面臨的一項根本性挑戰:現代網路架構在遭遇分佈外(Out-of-Distribution, OOD)樣本時,往往會表現出毀滅性的過度自信(catastrophic overconfidence)。雖然深層神經網路在閉集識別(closed-set recognition)任務中表現優異,但它們經常將新穎或異常的輸入以極高的 Softmax 機率強行歸類至已知類別中,這在自動駕駛與醫療診斷等安全攸關(safety-critical)的領域中構成了嚴重的風險。
為此,我們提出了 OOD 檢測的全新概念框架,深入研究其與模型泛化能力之間的關係,並分析分佈內(In-Distribution, ID)與分佈外數據之間特徵範數間隙(feature norm gap)的幾何特性。為增強模型對其分佈內數據的理解,本論文首先探討了留出(held-out)ID 數據上的分類準確率與 OOD 檢測效能之間的相關性,證明捕捉到連貫分類邏輯的模型,能在訓練期間無需標籤的情況下,展現出 ID 數據與異常樣本間更好的可分離性。
此外,我們提出了角幅概似(Angular-Magnitude Likelihood, AML),這是一種將語意對齊(semantic alignment)與統計典型性(statistical typicality)調和的原則性評分機制,並透過卷積區塊注意力模組(CBAM)進行目標特徵精煉,以抑制噪聲活化。
最後,我們從被動觀察轉向主動干預,提出了通用對抗訓練(Universal Adversarial Training, UAT)。該方法透過識別全域模型漏洞,明確重塑特徵空間幾何結構,從而系統性地擴大 ID 與 OOD 樣本之間的範數間隙。在標準基準與真實世界數據集上的實驗結果表明,我們提出的方法持續優於現有的最新基線(SOTA),為構建更可靠且值得信賴的人工智慧系統奠定了基礎
為此,我們提出了 OOD 檢測的全新概念框架,深入研究其與模型泛化能力之間的關係,並分析分佈內(In-Distribution, ID)與分佈外數據之間特徵範數間隙(feature norm gap)的幾何特性。為增強模型對其分佈內數據的理解,本論文首先探討了留出(held-out)ID 數據上的分類準確率與 OOD 檢測效能之間的相關性,證明捕捉到連貫分類邏輯的模型,能在訓練期間無需標籤的情況下,展現出 ID 數據與異常樣本間更好的可分離性。
此外,我們提出了角幅概似(Angular-Magnitude Likelihood, AML),這是一種將語意對齊(semantic alignment)與統計典型性(statistical typicality)調和的原則性評分機制,並透過卷積區塊注意力模組(CBAM)進行目標特徵精煉,以抑制噪聲活化。
最後,我們從被動觀察轉向主動干預,提出了通用對抗訓練(Universal Adversarial Training, UAT)。該方法透過識別全域模型漏洞,明確重塑特徵空間幾何結構,從而系統性地擴大 ID 與 OOD 樣本之間的範數間隙。在標準基準與真實世界數據集上的實驗結果表明,我們提出的方法持續優於現有的最新基線(SOTA),為構建更可靠且值得信賴的人工智慧系統奠定了基礎
This dissertation addresses a fundamental challenge in deploying deep neural networks (DNNs) in unconstrained real-world environments: the tendency of modern architectures to exhibit catastrophic overconfidence when encountering out-of-distribution (OOD) samples. While DNNs excel in closed-set recognition, they often force novel or anomalous inputs into known categories with high softmax probabilities, posing severe risks in safety-critical domains such as autonomous navigation and medical diagnostics. We propose a conceptual reframing of OOD detection, studying its relationship with the model's generalization ability and analyzing the geometry of the feature norm gap between in-distribution (ID) and OOD data. To enhance the model's understanding of its ID distribution, the dissertation first investigates the correlation between classification accuracy on held-out ID data and OOD detection performance, demonstrating that models capturing a coherent classification logic tend to exhibit better separability between ID data and anomalies without requiring human-provided class labels during classifier training. Furthermore, we introduce Angular-Magnitude Likelihood (AML), a principled scoring mechanism that harmonizes semantic alignment with statistical typicality, augmented by targeted feature refinement using Convolutional Block Attention Modules (CBAM) to suppress noisy activations. Finally, we move from passive observation to active intervention by introducing Universal Adversarial Training (UAT), which explicitly reshapes the feature space geometry by identifying global model vulnerabilities to systematically amplify the norm gap between ID and OOD samples. Experimental results across standard benchmarks and real-world datasets demonstrate that our proposed methods consistently outperform state-of-the-art baselines, establishing a pathway for more reliable and trustworthy AI systems.