NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Evolving parametrized Loss for Image Classification Learning on Small Datasets

xiabi liuarXiv 2021

TL;DR

This paper introduces a "Meta-Loss Network" (MLN) that learns a custom loss function for image classification on small datasets. By evolving this loss function using evolutionary strategies, the MLN enables classifiers to achieve better generalization than traditional loss functions like cross-entropy, even with limited training data.

What Problem Does This Paper Address?

Training deep learning models for image classification typically requires large amounts of labeled data to ensure good generalization to unseen examples. However, in many real-world domains like medicine or aerospace, obtaining such extensive datasets is challenging or impossible. Traditional loss functions, while effective with ample data, struggle to guarantee good performance on limited datasets. This paper addresses the critical need for robust image classification methods that can learn effectively from small datasets, a common scenario in specialized fields.

Methods

The core innovation is the Meta-Loss Network (MLN), a differentiable neural network that acts as a loss function itself. Instead of using a fixed loss function (like cross-entropy), the MLN learns an optimal one. This learning process occurs in two nested loops:

  • Inner Loop: A standard classifier is trained using the current MLN as its objective function. This training happens on a small "training set" within an episode.
  • Outer Loop: The parameters of the MLN are then optimized using an Evolutionary Strategy (ES) algorithm. The "fitness" of an MLN is determined by the performance (precision) of the classifier it trained on a separate "validation set" from the same episode. This meta-learning approach allows the MLN to evolve towards a loss function that promotes better generalization.

The MLN architecture itself is a dual-channel deep neural network that processes classification probabilities and true labels. These processed features are then combined and fed through convolutional layers to produce the final loss value.

Datasets

The paper uses the following datasets:

  • FashionMNIST: Used for both meta-training and meta-testing.
  • CIFAR10: Used for meta-testing.

The authors describe a specific meta-learning dataset structure where each "episode" consists of a small training set and a large validation set. This setup is designed to simulate the challenge of learning on small datasets.

Key Insights and Ideas

  • Loss Function as a Learner: The most significant insight is treating the loss function itself as a learnable component, rather than a fixed mathematical formula. This opens up new possibilities for tailoring optimization objectives to specific learning challenges.
  • Evolutionary Strategy for Loss Optimization: Using ES to evolve the MLN's parameters is crucial. It overcomes the challenge of not having an explicit analytical relationship between the loss function and generalization ability, which gradient-based methods might struggle with.
  • Meta-Knowledge for Generalization: The MLN effectively learns "meta-knowledge" about what makes a good loss function for generalization, allowing it to guide the classifier towards better performance on unseen data.

Key Results

The experiments demonstrate that the MLN significantly improves classification performance compared to traditional Cross-Entropy Loss (CE) and Mean Square Error (MSE) on both FashionMNIST and CIFAR10 datasets. Specifically:

  • On FashionMNIST, the MLN achieved a precision of 0.646 ± 0.0392, outperforming CE (0.5922 ± 0.0474) and MSE (0.4807 ± 0.0451).
  • On CIFAR10, the MLN achieved a precision of 0.1935 ± 0.0328, outperforming CE (0.1771 ± 0.0241) and MSE (0.1263 ± 0.0284).
  • The paper also notes that the MLN achieves higher precision with fewer iterations on unseen data.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Architecture Limitation: The current MLN architecture is limited to 10-category datasets. Future work should focus on designing more generalizable architectures.
  • Validation Data Fluctuation: Using a single validation set to estimate MLN performance can lead to fluctuations. More robust validation strategies are needed.
  • Stability on Unseen Data: While the MLN shows improved precision, its stability on unseen datasets is noted as worse than CE and MSE. Research into improving MLN robustness is required.
  • Optimization Speed: The evolution speed of the MLN needs further optimization to accurately find the best MLN during meta-training.

Summary updated

BibTeX
@misc{liu2021evolving,
  author = {xiabi liu},
  title = {{Evolving parametrized Loss for Image Classification Learning on Small Datasets}},
  year = {2021},
  eprint = {2103.08249},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.08249},
}
Figure