Introduction
Training modern neural networks is a computationally expensive endeavor. Automated Machine Learning (AutoML) and Neural Architecture Search (NAS) exacerbate this by evaluating thousands of potential configurations. A common strategy to mitigate these costs is "early stopping"—terminating unpromising training runs before they reach completion. However, accurately identifying a "dud" after only a few epochs is challenging.
Existing automated early-stopping methods typically attempt to extrapolate partial learning curves to predict final accuracy. These approaches often suffer from a "cold start" problem, requiring either extensive prior training runs on a specific dataset or relatively long partial curves to achieve reliability. Furthermore, they frequently ignore the model's "DNA"—its specific architecture and hyperparameters—relying solely on noisy early validation scores.
LCRankNet: A Ranking-Based Approach
To address these limitations, we introduce LCRankNet. Unlike traditional methods that focus on absolute performance prediction (regression), LCRankNet treats early termination as a ranking and transfer learning problem. Instead of asking "What will the final accuracy be?", the model asks "Is this new configuration likely to outperform the best one observed so far?"
System Architecture
The core of LCRankNet is a multi-component neural network designed to process diverse metadata associated with a training run.
The scoring function $f(\mathbf{x})$ integrates four distinct components:
- Architecture Component: An LSTM that encodes the sequence of layers and operations, capturing the structural "DNA" of the model.
- Learning Curve Component: A CNN that analyzes the "shape" and trajectory of partial validation scores ($y_{1, \dots, l}$).
- Dataset Component: Learned embeddings that allow the model to transfer knowledge across different datasets.
- Hyperparameter Component: Direct inputs for critical training parameters like learning rate and batch size.
By employing a Pairwise Ranking Loss, the model is trained to predict the probability that one model configuration is superior to another, making it robust to varying accuracy scales across different tasks.
Experimental Evaluation
LCRankNet was evaluated across two primary domains:
- Image Classification: Using a meta-dataset of 1,000 architectures from the NASNet search space evaluated on CIFAR-10, CIFAR-100, Fashion-MNIST, Quickdraw, and SVHN.
- Tabular Regression: Utilizing a benchmark of over 62,000 fully connected neural networks (FCNNs) across four distinct tasks.
Key Results
LCRankNet consistently outperformed state-of-the-art baselines in ranking accuracy.
As shown in the results, LCRankNet achieves significantly higher Spearman’s rank correlation than methods like Baker et al. or Domhan et al., particularly when only 5-10% of the learning curve is visible. This early predictive power translates into massive efficiency gains: in NAS experiments, LCRankNet reduced the computational budget by up to 100x without sacrificing final model accuracy.
Furthermore, LCRankNet proved highly flexible. It can be integrated into various optimization frameworks, including TPE, Regularized Evolution, and Reinforcement Learning, consistently improving their search efficiency.
Insights and Future Directions
The success of LCRankNet highlights several key insights:
- Ranking is more robust than regression: For early stopping, relative performance is more critical than absolute accuracy.
- Metadata is essential: Incorporating architecture and dataset-specific knowledge (transfer learning) allows for accurate decisions on brand-new datasets from the very first epoch.
While LCRankNet shows great promise, some challenges remain. Tasks like SVHN, where different models exhibit very similar learning curves, remain difficult. Future work may involve refining the architecture-encoding components to improve stability and exploring the potential for a universal library of dataset embeddings to further enhance cross-task performance prediction.
Summary updated