Skip to main content
QUICK REVIEW

[Paper Review] On the Separability of Classes with the Cross-Entropy Loss Function

Rudrajit Das, Subhasis Chaudhuri|arXiv (Cornell University)|Sep 16, 2019
Domain Adaptation and Few-Shot LearningComputer Science12 references13 citations
TL;DR

This paper provides the first theoretical analysis of class separability in deep neural networks trained with cross-entropy loss, deriving a lower bound on the probability that inter-class distances exceed intra-class distances in the feature space. By modeling the feature space transformation via a network-dependent matrix and analyzing the ℓ₂ norm of distance vectors, it shows that lower loss values correlate with higher separability probability, offering a probabilistic justification for why cross-entropy training promotes effective class separation.

ABSTRACT

In this paper, we focus on the separability of classes with the cross-entropy loss function for classification problems by theoretically analyzing the intra-class distance and inter-class distance (i.e. the distance between any two points belonging to the same class and different classes, respectively) in the feature space, i.e. the space of representations learnt by neural networks. Specifically, we consider an arbitrary network architecture having a fully connected final layer with Softmax activation and trained using the cross-entropy loss. We derive expressions for the value and the distribution of the squared L2 norm of the product of a network dependent matrix and a random intra-class and inter-class distance vector (i.e. the vector between any two points belonging to the same class and different classes), respectively, in the learnt feature space (or the transformation of the original data) just before Softmax activation, as a function of the cross-entropy loss value. The main result of our analysis is the derivation of a lower bound for the probability with which the inter-class distance is more than the intra-class distance in this feature space, as a function of the loss value. We do so by leveraging some empirical statistical observations with mild assumptions and sound theoretical analysis. As per intuition, the probability with which the inter-class distance is more than the intra-class distance decreases as the loss value increases, i.e. the classes are better separated when the loss value is low. To the best of our knowledge, this is the first work of theoretical nature trying to explain the separability of classes in the feature space learnt by neural networks trained with the cross-entropy loss function.

Motivation & Objective

  • To theoretically explain why cross-entropy loss with Softmax promotes class separability in deep neural network feature spaces.
  • To quantify the probability that inter-class distances exceed intra-class distances in the feature space, as a function of the cross-entropy loss value.
  • To bridge the gap between empirical observations of compact intra-class clusters and large inter-class margins, and the lack of theoretical justification for cross-entropy loss.
  • To provide a probabilistic framework linking training loss to feature space geometry, particularly separability.
  • To offer a theoretical foundation for understanding the implicit bias of cross-entropy training toward separating classes.

Proposed method

  • Derives the complementary cumulative distribution function (ccdf) of the squared ℓ₂ norm of the product of a network-dependent matrix and a random intra-class distance vector in the feature space.
  • Derives a lower bound on the ccdf of the squared ℓ₂ norm of the product of the same matrix and a random inter-class distance vector.
  • Introduces a factor-based comparison between inter-class and intra-class distances, deriving a lower bound on the probability that the former exceeds the latter by a chosen factor.
  • Applies mild statistical assumptions on the matrix entries to derive a lower bound on the probability that inter-class distance exceeds intra-class distance (with factor ≥1).
  • Uses theoretical analysis to relate the expected per-class accuracy to the cross-entropy loss value, linking loss to generalization performance.
  • Validates findings empirically on synthetic and real datasets (CIFAR-10, MNIST, SYN-1, SYN-2), showing consistent trends between loss and separability.

Experimental results

Research questions

  • RQ1What is the theoretical probability that inter-class distances exceed intra-class distances in the feature space of a network trained with cross-entropy loss?
  • RQ2How does this probability depend on the value of the cross-entropy loss?
  • RQ3Can we derive a lower bound on the probability of inter-class separation that holds under mild assumptions on the network’s feature transformation matrix?
  • RQ4How does the choice of margin factor (relative to intra-class distance) affect the lower bound on separability probability?
  • RQ5To what extent does the cross-entropy loss implicitly promote intra-class compactness and inter-class separability, and can this be quantified?

Key findings

  • The probability that inter-class distance exceeds intra-class distance increases as the cross-entropy loss decreases, confirming intuitive expectations.
  • For SYN-1 with loss L=0.5632, the probability that inter-class distance exceeds intra-class distance was at least 0.6196 for class pairs with |c₁−c₂|=1, rising to 1.0000 for pairs with |c₁−c₂|≥5.
  • For SYN-2 with loss L=0.1889, the probability was at least 0.8169 for |c₁−c₂|=1 and reached 1.0000 for |c₁−c₂|≥3, indicating stronger separability at lower loss.
  • The lower bound on separability probability increased from approximately 0.5494 to 0.7295 when the margin factor was increased from 0.2(C−1) to 5(C−1) in SYN-1, showing improved separability with larger margins.
  • In SYN-2, the lower bound increased from 0.7749 to 0.8986 under the same margin factor change, confirming consistency with empirical trends.
  • The expected per-class accuracy was expressed as a function of the loss value, linking generalization performance directly to the separability metric derived from the loss.

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.