Information Maximization for Few-Shot Learning

Malik Boudiaf, Imtiaz Masud Ziko, Jérôme Rony, Jose Dolz, Pablo Piantanida, Ismail Ben Ayed

Overview

The authors introduce Transductive Information Maximization (TIM), a method that bypasses complex meta-learning in favor of a simple information-theoretic approach applied at inference time. By maximizing the mutual information between unlabeled query samples and their predicted labels, TIM achieves state-of-the-art accuracy across major benchmarks while being significantly faster than previous transductive methods.

The Challenge of Few-Shot Learning

Few-shot learning (FSL) aims to train models capable of recognizing new classes using only a handful of labeled examples (the support set). Traditionally, researchers have relied on "meta-learning" (learning to learn), which involves complex training schemes that simulate few-shot tasks during the training phase.

However, meta-learning is often computationally expensive and struggles with "domain shift"—when the test data looks fundamentally different from the training data. Furthermore, most FSL methods are inductive, meaning they classify each new sample in isolation. This paper focuses on transductive inference, where the model looks at all unlabeled samples in a task (the query set) simultaneously to find patterns. While transductive inference typically leads to better accuracy, it often suffers from slow optimization or "degenerate solutions" (e.g., the model predicting the same class for every sample).

The TIM Approach

TIM shifts the "intelligence" of the system to the inference step. Instead of complex meta-training, the authors use a standard feature extractor trained with simple cross-entropy on base classes. At test time, they minimize a loss function composed of three distinct components:

  1. Cross-Entropy (Support Set): Ensures the model stays grounded in the few labeled examples provided.
  2. Conditional Entropy (Query Set): Encourages the model to make "confident" predictions (pushing probabilities toward 0 or 1).
  3. Label-Marginal Entropy (Query Set): This is the "secret sauce." It encourages the model to distribute its predictions across all available classes, preventing the model from collapsing and assigning every query sample to a single class.

Together, the latter two terms represent the Mutual Information between query features and labels.

Ablation study of TIM loss components.

To solve this optimization efficiently, the authors propose two versions:

  • TIM-GD: Uses standard Gradient Descent.
  • TIM-ADM: A novel solver based on the Alternating Direction Method of Multipliers. This version provides closed-form updates that are significantly faster than gradient-based methods.

Key Insights and Results

The authors evaluated TIM on standard few-shot benchmarks, including mini-ImageNet, tiered-ImageNet, and CUB (Caltech-UCSD Birds 200), as well as a cross-domain scenario (mini-ImageNet $\rightarrow$ CUB) to test robustness.

  • Accuracy: TIM consistently outperformed state-of-the-art methods by 2% to 5% across all datasets. For example, on 5-shot mini-ImageNet, it reached ~85% accuracy.
  • The Power of Balance: The inclusion of the label-marginal entropy regularizer is critical. Without it, entropy minimization often fails. With it, the model is forced to utilize all classes, acting as a powerful prior for the balanced tasks usually found in FSL benchmarks.
  • Robustness: In the challenging cross-domain scenario, TIM maintained a significant lead, suggesting it generalizes better than traditional meta-learning approaches.
Few-shot classification accuracies across standard benchmarks.
  • Efficiency: Transductive methods are notoriously slow. By deriving the ADM solver, the authors made transductive inference highly practical. TIM-ADM is roughly 10 times faster than TIM-GD and nearly 100 times faster than previous transductive competitors like "Ent-min," making it much more viable for real-time applications.

Limitations and Future Work

While highly effective, TIM does have limitations. First, inference overhead remains a factor; while TIM-ADM is fast for a transductive method, it is still slower than purely inductive methods (like ProtoNet) because it requires iterative optimization for every new task. Second, TIM relies on the "cluster assumption"—that query samples form distinct clusters in the feature space. If the feature extractor is poor and the clusters overlap heavily, mutual information maximization might fail.

Future directions suggested by the authors include exploring how to incorporate more complex domain-knowledge priors into the objective function and finding a tighter theoretical link between their mutual information objective and the actual empirical risk of the classifier.

Summary updated

BibTeX
@inproceedings{boudiaf2020information,
  author = {Malik Boudiaf and Imtiaz Masud Ziko and Jérôme Rony and Jose Dolz and Pablo Piantanida and Ismail Ben Ayed},
  title = {{Information Maximization for Few-Shot Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=PtvEaNVsFjH},
}
Figure