Preventing Class Collapse with Marginal Entropy Regularization

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 114 papers18 conceptsfrozen 2026-10-04

In machine learning, models often take the path of least resistance. When training data is scarce or labels are entirely absent, a model can achieve a mathematically "perfect" loss by simply predicting the same majority class for every single input. This phenomenon, known as class collapse or a degenerate solution, is the primary hurdle in fields like few-shot learning, unsupervised clustering, and domain adaptation.

To solve this, researchers have converged on a shared strategy: forcing the model’s aggregate predictions to be diverse. By maximizing the marginal entropy of the label distribution, we can ensure that a model utilizes its entire available label space rather than hiding in the safety of a single category.

The Problem of Trivial Certainty

Consider a transductive few-shot learning task where a model is given a few labeled examples and a batch of unlabeled "query" images. A standard approach is to minimize the model's uncertainty on the query images. However, as Malik Boudiaf, Imtiaz Masud Ziko, and their colleagues point out in Information Maximization for Few-Shot Learning, minimizing uncertainty alone is dangerous. A model can be 100% certain about every image by assigning them all to "Class A."

This is a local minimum that traditional optimization methods, like Expectation-Maximization, frequently fall into. Armand Joulin noted as early as 2012 in A Convex Relaxation for Weakly Supervised Classifiers that without a mechanism to ensure a balanced distribution of labels, weakly supervised classifiers inevitably converge to these trivial solutions.

Balancing via Information Maximization

The solution is to frame the objective as Mutual Information (MI) maximization. In information theory, the mutual information between the input data ($X$) and the predicted labels ($Y$) is defined as:

$$I(X; Y) = H(Y) - H(Y|X)$$

  1. $H(Y|X)$ (Conditional Entropy): This term measures how uncertain the model is about a specific sample. We want this to be low (high confidence).
  2. $H(Y)$ (Marginal Entropy): This term measures the diversity of the predictions across the entire batch. We want this to be high (balanced classes).

By maximizing $H(Y)$, we apply a "balance constraint." As Malik Boudiaf and Ismail Ben Ayed demonstrate in Mutual-Information Based Few-Shot Classification, this marginal entropy term acts as a regularizer that prevents the model from collapsing into a single-class prediction, enabling more aggressive and stable optimization during transductive inference.

Aligning with a Prior Distribution

While a uniform distribution (maximum entropy) is a common target, it isn't always the correct one. In real-world "long-tail" scenarios, some classes are naturally more frequent than others.

In Distribution Alignment: A Unified Framework for Long-Tail Visual Recognition, Songyang Zhang and Xuming He propose DisAlign. Instead of just maximizing entropy, they use Kullback-Leibler (KL) divergence to align the model’s predicted distribution with a specific reference distribution. This forces the classifier to produce outputs that conform to a target prior, effectively counteracting the tendency to over-predict majority classes.

Similarly, in the context of Graph Neural Networks, Yayong Li and Ling Chen use KL-divergence in InfoGNN to constrain pseudo-labels. This ensures that even when labeled data is extremely scarce, the "informative" nodes selected for self-training don't all belong to the same dominant category.

Applications Across the Pipeline

This principle of marginal regularization appears at different stages of the machine learning pipeline:

  • During Inference: Methods like TIM and TF-MP (Hao Chen et al., Boosting Transductive Few-Shot Fine-tuning) apply these constraints at test-time to adapt a pre-trained model to a specific unlabeled batch.
  • During Training: Lefan Zhang and colleagues apply regularization during the initial training phase to prevent a model from prematurely overfitting to majority classes before noise-filtering mechanisms can kick in.
  • In Discovery: When searching for entirely new categories, Artyom Gadetsky and Maria Brbic use entropy regularization in The Pursuit of Human Labeling to ensure that unsupervised clustering doesn't simply lump all data into one giant "unknown" bucket.

Why It Works: The Geometric Intuition

The reason marginal entropy regularization is so effective is that it changes the geometry of the loss landscape. Without it, the "all-one-class" solution is a deep, wide basin that attracts the optimizer. By adding a penalty for imbalance, we effectively "fill in" that basin, forcing the optimizer to look for solutions where the decision boundaries actually pass between data clusters.

As Jianhong Bai and Xiaomeng Li argue in their work on Generalized Category Discovery, this global distribution constraint ensures that the model remains sensitive to rare and novel categories, even when the environment is "messy" and imbalanced. By requiring the model to be both confident on individuals and diverse across the population, we anchor the learning process in a way that mimics the structured, categorical nature of human perception.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_preventing_class_collapse_with_marginal__5d39db37,
  title = {Preventing Class Collapse with Marginal Entropy Regularization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/preventing-class-collapse-with-marginal-entropy-regularization/rdr_5d39db37832a4487b210cfe7d6d3e4f5},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_preventing_class_collapse_with_marginal__5d39db37_v1,
  title = {Preventing Class Collapse with Marginal Entropy Regularization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/preventing-class-collapse-with-marginal-entropy-regularization/rdr_5d39db37832a4487b210cfe7d6d3e4f5/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}