Introduction
In the field of deep learning, substantial research effort is dedicated to automating the search for optimal architectures (NAS) and hyperparameters. However, the loss function—the fundamental objective that guides a network's learning—is typically selected from a narrow, human-defined menu, such as Cross-Entropy for classification or Mean Squared Error for regression.
This paper argues that human intuition in loss function design is limited. There may exist mathematical structures far more effective than those used for decades, yet they remain undiscovered due to a lack of automated exploration. To address this, the researchers introduce Genetic Loss-function Optimization (GLO), a framework that uses evolutionary algorithms to discover and fine-tune novel loss functions from scratch, aiming to improve accuracy, accelerate convergence, and enhance robustness in data-scarce environments.
Methodology: The GLO Framework
The authors propose a two-stage framework to automate the "de novo" creation of loss functions:
- Loss Function Discovery: Using Genetic Programming (GP), loss functions are represented as symbolic trees. The internal nodes consist of mathematical operators (e.g., $\log$, $e^x$, $+$, $-$, $\div$), while the leaves represent true labels ($x_i$) and predicted labels ($y_i$). A population of these trees evolves over generations, with "fitness" determined by the validation accuracy achieved after a short training period.
- Coefficient Optimization: Once a promising functional structure is identified, the authors employ CMA-ES (Covariance-Matrix Adaptation Evolution Strategy) to fine-tune the numerical constants (coefficients) within that function to maximize performance.
Key Discovery: The Baikal Loss Function
The standout result of this evolutionary process is a loss function named Baikal. Its name stems from its 3D visualization, which resembles the underwater topography of Lake Baikal.
Unlike standard Cross-Entropy, which drops to zero as a prediction becomes perfectly correct, Baikal introduces an overconfidence penalty. If the model becomes too certain in its predictions, the loss actually increases. This "U-shaped" behavior provides implicit regularization, preventing the network from overfitting and forcing it to learn more robust, generalizable features. This mechanism proved particularly effective when training data was extremely limited (e.g., using only 0.5% of the MNIST dataset).
Experimental Results
The researchers evaluated GLO using MNIST for discovery and CIFAR-10 to test transferability.
- Accuracy and Speed: On MNIST, the optimized BaikalCMA reached a mean test accuracy of 0.9947, significantly outperforming the 0.9899 achieved by standard Cross-Entropy. Furthermore, networks trained with Baikal reached higher accuracy levels in fewer training steps.
- Robust Transfer: Despite being discovered on MNIST, the Baikal loss function consistently outperformed Cross-Entropy on the more complex CIFAR-10 dataset, proving that these evolved functions capture general learning principles rather than dataset-specific quirks.
Conclusion and Future Directions
While the initial discovery phase of GLO involves significant computational overhead due to the need for hundreds of partial training runs, the resulting functions like Baikal can be reused in new tasks with no additional cost.
Future work aims to explore co-evolution, where the loss function, neural architecture, and hyperparameters are evolved simultaneously. The authors also highlight Generative Adversarial Networks (GANs) as a primary candidate for GLO, given their notorious sensitivity to loss function design. By moving beyond human-designed objectives, GLO opens a new frontier for optimizing how machines learn.
Summary updated