Comparing Classification and Feature Learning by Analyzing Their Loss Functions in Normalized Spaces with Different Scale Factors
Qiufu Li, Huibin Xiao, Linlin Shen, Weijia Fan, Xi Jia, Yongdong Huang
Abstract
Classification and feature learning are two closely interrelated fundamental tasks. Feature learning in supervised settings is typically achieved by training classification models, under the common assumption that higher classification accuracy implies better feature quality. In this paper, we first point out that classification accuracy reflects the sample-wise local properties of a model on a dataset, whereas feature learning aims to learn features with good dataset-level global properties, such as intra-class compactness and inter-class separability. From the first principle of feature learning, we redesign the binary cross-entropy (BCE) loss, a counterpart of the cross-entropy (CE) loss used in classification. Then, in normalized feature space, we analyze the minima of the BCE and CE losses and show that both can lead to neural collapse, where sample features from different classes become maximally compact and maximally separated. More importantly, by investigating the convergence behaviors of the two losses as the scale factor varies in the normalized space, we reveal how classification accuracy and feature quality change differently across spaces of different sizes. Under a fixed training strategy, a very large achieves perfect classification accuracy but slows convergence toward the ideal feature geometry, whereas a very small makes classification highly sensitive to small perturbations. A moderate is therefore necessary for simultaneously achieving reliable classification and well-structured features. Extensive experiments validate these findings and demonstrate that BCE loss exhibits advantages in long-tail and open-set recognitions, as it better aligns with the global requirements of feature learning.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CV
Related papers
fNIRSAtlas: A Large-Scale Benchmark for Functional Near-Infrared Spectroscopy Classification
Shared title terminologycs.LGKalle Mäkelä, Tuukka Ruotsalo
Quaternion-Tucker ZigZag Networks: Halving Transformer Backbone Parameters and Enabling Exact 2D Zero-Loss Continual Scaling
Shared title terminologycs.LGShubham Barmase
The Gradient Difference Induced by Detaching the Denominator in QK Normalization
Shared title terminologycs.LGYuanqi Zhang, Haocheng Wang, Congping Lin
Semiprime Factorization with Discrete Diffusion and Beam Search: Scaling Laws
Shared title terminologycs.LGBrendan O Donoghue, Nenad Tomasev, Volodymyr Mnih et al.
Learning Across Heterogeneous Feature Spaces with Group Robustness
Shared title terminologycs.LGXenia Konti, Arjun Tschand, Chuan Hong et al.
Function-Space Certification for Neural Operators
Shared title terminologycs.LGRyan Hsiang, Robert Joseph George, Anima Anandkumar