Neural Collapse by Design: Learning Class Prototypes on the Hypersphere

· Source: cs.LG updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, extended

Summary

The paper "Neural Collapse by Design" introduces NTCE and NONL, two normalized loss functions, and a Fixed Prototypes (FP) approach for Supervised Contrastive Learning (SCL) to achieve Neural Collapse (NC) in supervised classification. It unifies cross-entropy (CE) and SCL under a prototype-contrast framework on the unit hypersphere, addressing CE's unconstrained radial degrees of freedom and SCL's linear probing redundancy. Empirically, NTCE and NONL surpass CE accuracy, approximate NC geometry by ≥95%, and converge in under 7.5% of CE's iterations on 4/5 metrics across four benchmarks including ImageNet-1K. FP matches SCL's linear probing accuracy, eliminating hours of training. These methods yield +5.5% mean relative improvement in transfer learning, up to +8.7% under severe class imbalance, and lower mCE on ImageNet-C.

Key takeaway

For Machine Learning Engineers optimizing supervised classification models, you should consider adopting normalized loss functions like NTCE or NONL. These methods accelerate convergence to Neural Collapse, improving generalization, transfer learning, and robustness, especially under class imbalance. If using Supervised Contrastive Learning, you can replace the time-consuming linear probing phase with fixed class-mean prototypes, significantly reducing computational overhead without sacrificing accuracy.

Key insights

Supervised learning can achieve optimal Neural Collapse geometry by unifying cross-entropy and contrastive methods on the hypersphere.

Principles

Method

NTCE increases negative samples from K classes to M batch instances. NONL excludes same-class instances from the denominator to resolve alignment-uniformity coupling. For SCL, use class-mean embeddings as fixed prototypes.

In practice

Topics

Code references

Best for: AI Scientist, Machine Learning Engineer, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.