Generative Cross-Entropy: A Strictly Proper Loss for Data-Efficient Classification
Qipeng Zhan ⋅ Zhuoping Zhou ⋅ Li Shen
Abstract
Cross-entropy (CE) is the default training loss for supervised classification, but its sample efficiency is limited when labels are scarce. Existing remedies primarily act on the data side, via augmentation, synthesis, or transfer from pretrained models; loss-side remedies are comparatively few, and none has displaced CE as the default. We revisit the training objective here. Drawing on the classical observation that generative classifiers reach their asymptotic error with fewer samples than discriminative ones, we propose *Generative Cross-Entropy (GenCE)*, a drop-in replacement for CE that borrows the training objective of a generative classifier while the model itself remains a standard discriminative network, without altering the architecture or fitting a separate density model. GenCE follows from a Bayesian rewrite of the class-conditional likelihood and, in the mini-batch approximation, reduces to normalizing each sample's softmax score against the model's predictions on the batch, coupling the training signal across examples sharing a class. We extend the proper-scoring-rule framework to such non-local losses and prove that GenCE is strictly proper under a mild completeness condition: its population risk is uniquely minimized at the true posterior, and its mini-batch version is asymptotically strictly proper with an $O(1/B)$ bias in the batch size $B$. Across three image datasets, on two architectures and in both balanced small-data and class-imbalanced regimes, GenCE outperforms CE and other widely used losses, including losses designed for small data and baselines tuned per setting, while also producing better-calibrated probabilities and stronger out-of-distribution detection; the gains carry over to ImageNet-1K subsets with more classes than the batch size and to tabular and text data.
Successful Page Load