Learning to Rank Learning Curves

Martin Wistuba, Tejaswini Pedapati

Training deep learning models is a notorious time-sink. In the world of Automated Machine Learning (AutoML)—where we search for the best hyperparameters or neural architectures—this cost multiplies exponentially as we evaluate thousands of potential configurations. The standard solution is early termination: killing off "bad" models before they finish training.

But how do you know a model is bad after only a few epochs? A new paper, "Learning to Rank Learning Curves," introduces LCRankNet, a method that uses transfer learning and pairwise ranking to make these "kill" decisions faster and more accurately than ever before.

The Problem with Traditional Early Stopping

Most existing early-stopping methods try to extrapolate a partial learning curve to predict a model's final accuracy. This is a difficult regression task because accuracy ranges vary wildly between datasets. Furthermore, these methods often require seeing a significant portion of the training process before they become reliable, or they need many "sample" runs on the current dataset to calibrate.

The authors identify three main gaps in current approaches:

  1. Pointwise vs. Pairwise: Predicting exact accuracy (pointwise) is harder than simply determining if Model A is better than Model B (pairwise).
  2. Cold Starts: Most methods cannot make good predictions for the very first models evaluated on a new dataset.
  3. Ignoring Context: Traditional methods look only at the learning curve (accuracy over time) and ignore the model's architecture or hyperparameters.

LCRankNet: A Multi-Modal Approach

The core innovation is LCRankNet, a neural network designed to predict the probability that one model configuration will eventually outperform another.

Instead of just looking at a line graph of validation accuracy, LCRankNet uses a multi-modal approach to process different types of inputs:

  • Learning Curve Component: A CNN processes the partial sequence of validation accuracies.
  • Architecture Component: An LSTM encodes the structural description of the model (e.g., the sequence of layers).
  • Dataset Component: Learned embeddings represent the specific dataset being used, allowing the model to "remember" characteristics of different tasks.
  • Hyperparameter Component: Direct inputs for settings like learning rate or batch size.
LCRankNet architecture uses four distinct components to process model characteristics and training progress.

The model is trained using a pairwise cross-entropy loss, optimizing it to correctly rank pairs of models. This allows it to transfer "meta-knowledge" from previous experiments on other datasets to a brand-new task.

Key Insights

  • Ranking is easier than regression: We don't actually care if a model gets 92% or 93% accuracy; we only care if it's better than our current best. By reframing this as a ranking problem, the model becomes much more robust to the "noise" of different datasets.
  • Architecture is a powerful signal: Even at epoch zero, knowing a model's architecture gives LCRankNet a head start. Ablation studies show that including architecture and metadata is vital for high performance when learning curves are very short.
  • Transfer Learning works for training dynamics: The "shape" of a learning curve for a good architecture on CIFAR-10 is often similar to its shape on SVHN. LCRankNet successfully captures these universal training patterns.

Key Results

The researchers evaluated LCRankNet across diverse domains, including image classification (CIFAR-10, CIFAR-100, Fashion-MNIST, SVHN) and tabular regression.

LCRankNet consistently outperformed state-of-the-art methods across all datasets, particularly when only a tiny fraction (0-10%) of the learning curve was observed.

Spearman correlation of LCRankNet vs. competitors across multiple datasets. LCRankNet (purple) maintains high ranking accuracy even with very short partial curves.
  • 100x Speedup: On CIFAR-100, LCRankNet reduced the total GPU hours required for Neural Architecture Search (NAS) by a factor of 100 without any "regret" (it found the same quality architecture as a full, exhaustive search).
  • Efficiency vs. DARTS: LCRankNet found a 2.99% error architecture on CIFAR-10 in just 20 GPU hours, whereas the popular DARTS method took 36-96 hours to achieve similar results.
  • Generalization: Unlike many NAS-specific speedup techniques, LCRankNet also works for standard hyperparameter optimization on tabular data, improving search efficiency for algorithms like TPE and Regularized Evolution.

Limitations and Future Work

While powerful, LCRankNet has a few hurdles. Its "superpower" comes from having seen many models before; if you are working in a completely novel search space with no prior data, the initial benefits may be lower. Additionally, training the architecture component (the LSTM) can be unstable, requiring additional regularization to keep the embeddings meaningful. Finally, the current implementation assumes validation accuracy is measured at regular intervals.

Future work could involve extending this to even more diverse search spaces or integrating it into fully automated, "out-of-the-box" ML frameworks.

Summary updated

BibTeX
@inproceedings{wistuba2020learning,
  author = {Martin Wistuba and Tejaswini Pedapati},
  title = {{Learning to Rank Learning Curves}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=34v3GPK_CQ},
}
Figure