Skip to main content
QUICK REVIEW

[Paper 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 Science3 citations
TL;DR

This paper proposes Hyperspherical Uniformity Gap (HUG), a novel loss function that decouples intra-class compactness and inter-class separability in deep neural networks, enabling flexible, interpretable optimization. HUG generalizes Neural Collapse (NC) to unconstrained feature dimensions and classes, outperforming cross-entropy in generalization and robustness across vision and NLP benchmarks.

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.

Motivation & Objective

  • To generalize and decouple the Neural Collapse (NC) phenomenon beyond its restrictive assumptions on feature dimension and number of classes.
  • To identify a unified geometric framework that separately models intra-class compactness and inter-class separability.
  • To propose a new, interpretable loss function—Hyperspherical Uniformity Gap (HUG)—that replaces cross-entropy and enables flexible optimization.
  • To demonstrate HUG's superiority in generalization and adversarial robustness across vision and NLP tasks.

Proposed method

  • Generalize NC to Generalized Neural Collapse (GNC) by removing constraints on feature dimension and number of classes.
  • Define hyperspherical uniformity as a measure of vector distribution uniformity on the unit hypersphere to quantify intra- and inter-class compactness and separability.
  • Formulate HUG as the difference between inter-class and intra-class hyperspherical uniformity, enabling decoupled optimization.
  • Use multiple formulations of hyperspherical uniformity—minimum hyperspherical energy (MHE), maximum hyperspherical separation (MHS), and maximum Gram determinant (MGD)—to create HUG variants.
  • Prove that HUG provably converges to GNC at its minimum, generalizing the convergence properties of cross-entropy and MSE.
  • Train neural networks using HUG as a standalone loss function, replacing cross-entropy, with empirical validation on image and text classification tasks.

Experimental results

Research questions

  • RQ1Can the Neural Collapse phenomenon be generalized beyond the constraint that feature dimension must be at least the number of classes?
  • RQ2How can intra-class compactness and inter-class separability be decoupled in deep learning loss functions for improved interpretability and performance?
  • RQ3Can a unified geometric framework based on hyperspherical uniformity effectively quantify and optimize both compactness and separability?
  • RQ4Does a loss function based on the difference in hyperspherical uniformity (HUG) outperform cross-entropy in generalization and robustness?
  • RQ5What is the theoretical connection between HUG and existing methods like Fisher Discriminant Analysis and contrastive learning?

Key findings

  • HUG provably converges to Generalized Neural Collapse (GNC), extending the convergence guarantees of cross-entropy and mean square error beyond their original constraints.
  • HUG achieves better generalization performance than cross-entropy on CIFAR-10, CIFAR-100, and ImageNet under standard training protocols.
  • HUG demonstrates improved robustness against adversarial attacks, outperforming cross-entropy in adversarial accuracy on CIFAR-10 and CIFAR-100.
  • HUG variants based on minimum hyperspherical energy (MHE) are easier to optimize, while those based on maximum Gram determinant (MGD) have a geometric interpretation related to volume maximization.
  • HUG achieves state-of-the-art performance on NLP benchmarks such as AG News and DBPedia, showing strong transferability beyond computer vision.
  • HUG provides a physically interpretable, decoupled alternative to cross-entropy, enabling separate control over intra-class compactness and inter-class separability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.