Introduction
The combination of the softmax output layer and cross-entropy loss is the undisputed standard for training neural network classifiers. However, its exact theoretical mechanism from an information-theoretic perspective has remained somewhat opaque. This paper explores the relationship between classification and Mutual Information (MI), revealing that standard softmax implicitly assumes a uniform prior distribution of classes. This hidden assumption causes standard classifiers to struggle with minority classes, leading to sub-optimal performance on imbalanced datasets.
The Information-Theoretic Link
The authors provide a mathematical proof that minimizing expected cross-entropy loss using standard softmax is equivalent to maximizing a variational lower bound of the mutual information $I(X; Y)$ between inputs $x$ and labels $y$. Crucially, this equivalence only holds if and only if the label distribution is uniform. When classes are imbalanced, the standard softmax function fails to accurately represent the underlying data distribution, as it bakes in the assumption that every class is equally probable.
Probability-Corrected Softmax (PC-softmax)
To bridge this gap, the authors propose Probability-Corrected Softmax (PC-softmax). By incorporating the prior probability $P(y')$ of each class into the softmax denominator, the function is adjusted as follows:
$$\text{Denominator} = \sum_{y'} P(y') \exp(n(x)_{y'})$$
By making this simple adjustment, the classifier becomes a strongly consistent evaluator of mutual information regardless of the class distribution. This alignment naturally alleviates the dominance of majority classes without requiring complex resampling or ad-hoc loss re-weighting schemes.
Experimental Evaluation
The proposed method was evaluated using synthetic Gaussian Mixture Models (GMMs) and real-world datasets (MNIST and CUB-200-2011).
Synthetic Data and MI Estimation
On synthetic unbalanced datasets where ground-truth MI can be calculated via Monte Carlo (MC) methods, PC-softmax demonstrated superior MI estimation compared to standard softmax and dedicated architectures like MINE (Mutual Information Neural Estimator).
As shown in the synthetic results, PC-softmax tracks the true MI closely and outperforms the dedicated MINE model as dimensionality increases (e.g., in 10D spaces). Furthermore, it maintains higher classification accuracy compared to standard softmax as the complexity of the feature space grows.
Real-World Classification Performance
The practical impact of PC-softmax is most evident in imbalanced classification tasks. The authors tested the model on artificially unbalanced versions of MNIST and the CUB-200-2011 fine-grained bird dataset.
As illustrated in the table above, PC-softmax significantly improves performance on unbalanced datasets. For MNIST, average per-class accuracy rose from 95.05% to 96.30%, while for the CUB-200-2011 dataset, it improved from 84.63% to 87.69%. Importantly, PC-softmax performs identically to standard softmax on perfectly balanced datasets, confirming that it does no harm when the uniform assumption actually holds.
Conclusion
By aligning the loss function with the true variational bound of mutual information for imbalanced data, PC-softmax offers a simple yet mathematically rigorous solution to class imbalance. It eliminates the need for complex heuristics, providing a theoretically grounded path toward better representation learning and classification in real-world, long-tailed distributions.
Summary updated