Skip to main content
QUICK REVIEW

[论文解读] Generalizing and Decoupling Neural Collapse via Hyperspherical Uniformity Gap

Weiyang Liu, Longhui Yu|arXiv (Cornell University)|Mar 11, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用 3
一句话总结

本文提出了一种新型损失函数——超球均匀性差距(Hyperspherical Uniformity Gap, HUG),该函数在深度神经网络中解耦了类内紧凑性和类间可分性,实现了灵活且可解释的优化。HUG将神经坍缩(Neural Collapse, NC)现象推广至无约束的特征维度和类别数,相较于交叉熵,在视觉和自然语言处理基准测试中均展现出更优的泛化能力和鲁棒性。

ABSTRACT

The neural collapse (NC) phenomenon describes an underlying geometric symmetry for deep neural networks, where both deeply learned features and classifiers converge to a simplex equiangular tight frame. It has been shown that both cross-entropy loss and mean square error can provably lead to NC. We remove NC's key assumption on the feature dimension and the number of classes, and then present a generalized neural collapse (GNC) hypothesis that effectively subsumes the original NC. Inspired by how NC characterizes the training target of neural networks, we decouple GNC into two objectives: minimal intra-class variability and maximal inter-class separability. We then use hyperspherical uniformity (which characterizes the degree of uniformity on the unit hypersphere) as a unified framework to quantify these two objectives. Finally, we propose a general objective -- hyperspherical uniformity gap (HUG), which is defined by the difference between inter-class and intra-class hyperspherical uniformity. HUG not only provably converges to GNC, but also decouples GNC into two separate objectives. Unlike cross-entropy loss that couples intra-class compactness and inter-class separability, HUG enjoys more flexibility and serves as a good alternative loss function. Empirical results show that HUG works well in terms of generalization and robustness.

研究动机与目标

  • 将神经坍缩(Neural Collapse, NC)现象的理论推广至其对特征维度和类别数的严格假设之外。
  • 识别一种统一的几何框架,用于分别建模类内紧凑性和类间可分性。
  • 提出一种新的、可解释的损失函数——超球均匀性差距(Hyperspherical Uniformity Gap, HUG),替代交叉熵,并支持灵活优化。
  • 在视觉和自然语言处理任务中,证明HUG在泛化能力和对抗鲁棒性方面的优越性。

提出的方法

  • 通过解除对特征维度和类别数的约束,将NC推广为广义神经坍缩(Generalized Neural Collapse, GNC)。
  • 定义超球均匀性作为单位超球面上向量分布均匀性的度量,用于量化类内紧凑性和类间可分性。
  • 将HUG形式化为类间与类内超球均匀性之差,从而实现解耦优化。
  • 采用多种超球均匀性形式——最小超球能量(Minimum Hyperspherical Energy, MHE)、最大超球分离度(Maximum Hyperspherical Separation, MHS)和最大格拉姆行列式(Maximum Gram Determinant, MGD)——以生成HUG的不同变体。
  • 证明HUG在最小值处可保证收敛至GNC,从而将交叉熵和均方误差的收敛性质推广至更广泛的情形。
  • 将神经网络训练过程中的损失函数替换为HUG,作为独立损失函数,并在图像和文本分类任务中进行实证验证。

实验结果

研究问题

  • RQ1神经坍缩现象是否可以推广至特征维度不必至少等于类别数的限制之外?
  • RQ2在深度学习损失函数中,如何实现类内紧凑性和类间可分性的解耦,以提升可解释性和性能?
  • RQ3基于超球均匀性的统一几何框架是否能有效量化并优化紧凑性和可分性?
  • RQ4基于超球均匀性差异的损失函数(HUG)是否在泛化能力和鲁棒性方面优于交叉熵?
  • RQ5HUG与Fisher线性判别分析和对比学习等现有方法之间存在何种理论联系?

主要发现

  • HUG可保证收敛至广义神经坍缩(Generalized Neural Collapse, GNC),将交叉熵和均方误差的收敛性保证推广至原始约束之外。
  • 在标准训练协议下,HUG在CIFAR-10、CIFAR-100和ImageNet上的泛化性能优于交叉熵。
  • HUG在对抗攻击下表现出更强的鲁棒性,在CIFAR-10和CIFAR-100上的对抗准确率优于交叉熵。
  • 基于最小超球能量(MHE)的HUG变体更易于优化,而基于最大格拉姆行列式(MGD)的变体则具有与体积最大化相关的几何解释。
  • HUG在AG News和DBPedia等自然语言处理基准上达到SOTA性能,表明其在计算机视觉之外也具有强大的可迁移性。
  • HUG提供了一种具有物理解释的、解耦的交叉熵替代方案,可分别控制类内紧凑性和类间可分性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。