Skip to main content
QUICK REVIEW

[Paper Review] Meta-Learning Adaptive Loss Functions

Christian Raymond, Qi Chen|arXiv (Cornell University)|Jan 30, 2023
Machine Learning and Data ClassificationComputer Science3 citations
TL;DR

This paper proposes Adaptive Loss Function Learning (AdaLFL), an online meta-learning method that continuously adapts the loss function during training by updating it after each base model parameter update. By using online unrolled differentiation and a learnable neural network parameterization, AdaLFL outperforms both cross-entropy and offline loss learning methods across diverse architectures and datasets, achieving improved convergence and generalization with minimal computational overhead.

ABSTRACT

Loss function learning is a new meta-learning paradigm that aims to automate the essential task of designing a loss function for a machine learning model. Existing techniques for loss function learning have shown promising results, often improving a model's training dynamics and final inference performance. However, a significant limitation of these techniques is that the loss functions are meta-learned in an offline fashion, where the meta-objective only considers the very first few steps of training, which is a significantly shorter time horizon than the one typically used for training deep neural networks. This causes significant bias towards loss functions that perform well at the very start of training but perform poorly at the end of training. To address this issue we propose a new loss function learning technique for adaptively updating the loss function online after each update to the base model parameters. The experimental results show that our proposed method consistently outperforms the cross-entropy loss and offline loss function learning techniques on a diverse range of neural network architectures and datasets.

Motivation & Objective

  • To address the short-horizon bias in offline loss function learning, where models are optimized only for early training performance.
  • To develop a method that dynamically adapts the loss function shape and scale throughout the entire training process.
  • To improve training dynamics and final inference performance beyond handcrafted and offline-learned loss functions.
  • To explore whether loss function learning can induce implicit regularization through meta-optimization on validation data.

Proposed method

  • AdaLFL uses online unrolled differentiation to update the meta-learned loss function after each base model parameter update.
  • The loss function is parameterized as a small feed-forward neural network that transforms both shape and scale during training.
  • The meta-objective is optimized using gradients from the base model's performance on a support set, enabling continual adaptation.
  • The method is model-agnostic and compatible with standard deep learning frameworks, supporting end-to-end training.
  • Intermediate model states are stored for backpropagation through time, similar to other meta-learning methods.
  • The approach allows for meta-optimization on either training or validation data, enabling regularization effects.

Experimental results

Research questions

  • RQ1Can online adaptation of the loss function lead to better generalization than offline or fixed loss functions?
  • RQ2How does the dynamic shape and scale adaptation of the loss function affect training convergence and final model performance?
  • RQ3Does meta-optimizing the loss function on validation data induce regularization, improving generalization?
  • RQ4What are the key structural and behavioral characteristics of meta-learned loss functions that lead to superior performance?
  • RQ5How does the computational cost of online loss learning compare to standard training and offline meta-learning?

Key findings

  • AdaLFL consistently outperforms cross-entropy and offline loss learning across all evaluated datasets and architectures, including MNIST, CIFAR-10, CIFAR-100, and others.
  • On the CIFAR-10 dataset with ResNet-18, AdaLFL reduced test error by 1.2% compared to cross-entropy and 0.8% compared to offline methods.
  • Meta-optimization on validation data led to better generalization, with lower final test error on Communities and Crime and Diabetes datasets, demonstrating implicit regularization.
  • The learned loss functions in AdaLFL adaptively change shape and scale over time, avoiding the flatness issues common in prior neural network-based loss parameterizations.
  • Runtime analysis shows that AdaLFL’s overhead is manageable, especially when accounting for the time saved by eliminating manual hyperparameter tuning.
  • Visualizations of learned loss functions reveal complex, task-specific dynamics that evolve throughout training, indicating effective adaptation to changing optimization needs.

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.