Meta-Learning via Learned Loss

Yevgen Chebotar, Artem Molchanov, Sarah Bechtle, Ludovic Righetti, Franziska Meier, Gaurav S. Sukhatme · DOI

Introduction

In deep learning, the choice of loss function is critical for successful optimization. Traditionally, researchers rely on a small set of hand-crafted heuristics such as Mean Squared Error (MSE) for regression or Cross-Entropy for classification. However, these standard functions often create difficult optimization landscapes characterized by local minima or weak gradients, particularly in complex domains like reinforcement learning (RL).

This paper introduces Meta Learning via Learned Loss (ML³), a framework that replaces fixed loss functions with a learned "meta-loss" network. By training this network to optimize for speed and robustness, the system can outperform standard methods and generalize across different model architectures and task distributions.

The ML³ Architecture

The ML³ framework operates through a bi-level optimization process involving two nested loops:

  1. The Inner Loop: An "optimizee" model ($f_\theta$) is trained using gradient descent. Instead of a standard loss, it follows the gradients provided by a Meta-Loss Network ($M_\phi$).
  2. The Outer Loop: The Meta-Loss Network itself is updated to ensure that the steps taken in the inner loop effectively minimize the true "task-loss" (the ground truth performance metric).
The ML³ framework architecture, showing the interaction between the optimizee ($f_\theta$) and the meta-loss network ($M_\phi$).

A significant advantage of this approach is its ability to incorporate "extra information" during meta-training—such as expert demonstrations, physics priors, or privileged state information—that may not be available at test time. The meta-loss network distills this information into a shaped loss landscape that guides the optimizee even when the extra data is removed.

Experimental Evaluation

The authors evaluated ML³ across a diverse range of benchmarks, including supervised sine wave regression, MNIST classification, and various reinforcement learning tasks using the MuJoCo physics engine (e.g., ReacherGoal, AntGoal).

Results on Pointmass and Reacher tasks. (a) shows generalization from training tasks (blue) to test tasks (orange). (b, c) show that the learned meta-loss leads to faster convergence and lower error compared to the standard task loss.

Key results from these experiments include:

  • Significant Speedup: In model-free RL (AntGoal), ML³ achieved 80% performance using five times fewer samples than the state-of-the-art PPO algorithm.
  • Robust Generalization: As shown in the Pointmass experiments, a meta-loss trained on tasks in only one quadrant of a 2D space successfully generalized to targets in all other quadrants.
  • Architecture Agnosticism: A meta-loss trained on a shallow neural network was successfully used to train much deeper architectures, suggesting it captures fundamental task properties rather than specific weight configurations.

Key Insights

  • Loss Shaping: ML³ can transform non-convex, "rugged" optimization problems into smoother, more convex landscapes. For instance, in sine-frequency fitting where MSE often fails due to local minima, the learned loss creates a smooth "bowl" leading to the global optimum.
  • Information Distillation: The framework allows models to benefit from "cheats" (like robot joint inertia or expert paths) during training. The learned loss retains the "wisdom" of these priors, enabling efficient learning at test time without them.
  • Overcoming Hard Constraints: In the classic "MountainCar" problem, standard trajectory optimization often fails to reach the goal. The learned ML³ loss provides a sufficiently dense signal to enable successful completion.

Conclusion

ML³ demonstrates that learning the loss function itself is a powerful paradigm for meta-learning. By shaping the optimization landscape and distilling complex priors into a simple gradient signal, ML³ offers a path toward more efficient and generalizable AI systems. While the bi-level optimization is computationally intensive due to second-order derivatives, the resulting performance gains in sample efficiency and robustness present a compelling case for learned loss functions in complex domains.

Summary updated

BibTeX
@inproceedings{chebotar2019meta,
  author = {Yevgen Chebotar and Artem Molchanov and Sarah Bechtle and Ludovic Righetti and Franziska Meier and Gaurav S. Sukhatme},
  title = {{Meta-Learning via Learned Loss}},
  booktitle = {ICPR},
  year = {2019},
  doi = {10.1109/icpr48806.2021.9412010},
}
Figure