Meta-Learning Adaptive Loss Functions
Christian Raymond, Qi Chen, Bing Xue, Mengjie Zhang
TL;DR
AdaLFL tackles the short-horizon bias of offline loss-function learning by performing online meta-learning of a loss function that is updated after every base-parameter update. The loss is parameterized as a small neural network and optimized via unrolled differentiation, allowing the loss to adapt in shape and scale throughout training. Empirical results across regression and classification tasks show AdaLFL improves convergence speed and final accuracy over handcrafted losses and offline baselines, while revealing phenomena such as implicit learning-rate scheduling, early stopping regularization, and adaptive label smoothing. This work demonstrates the practical viability and insights of online loss-function learning, suggesting broad applicability in deep learning pipelines without manual loss design.
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.
