Ranking architectures using meta-learning

Alina Dubatovka, Efi Kokiopoulou, Luciano Sbaiz, Andrea Gesmundo, Gábor Bartók, Jesse BerentarXiv 2019

Abstract

Neural architecture search (NAS) has recently attracted significant research interest as it promises to automate the manual design of neural networks. However, NAS typically requires a large amount of computing resources. To alleviate this, we propose a task-aware performance prediction network that enables efficient architecture search by forecasting the performance of candidate architectures instead of relying on actual model training. Unlike previous predictors that use regression to estimate exact accuracy, our work introduces a pairwise ranking loss for training a network to rank candidate architectures for new, unseen tasks based on task meta-features. Experimental results show that the ranking network is more effective in architecture search than previously proposed performance predictors.

The Challenge: The High Cost of NAS

Designing a neural network for a specific task is a manual, labor-intensive process. Automated tools like Neural Architecture Search (NAS) aim to solve this, but they typically require massive computational resources because they evaluate hundreds or thousands of candidate models.

To speed this up, researchers previously developed "performance predictors"—meta-models that take an architecture's description and a task's features as input and output a predicted accuracy score. However, these predictors usually rely on regression (like L2 loss) to guess the exact performance value. We argue that this is overkill. In architecture search, we do not care if a model's accuracy is 85.2% or 85.3%; we only care if Architecture A is better than Architecture B. By forcing a model to predict exact values, we may be making the learning task unnecessarily difficult and sensitive to noise.

Methodology: Learning to Rank

Our system builds upon a task-aware framework consisting of two main components:

  1. Task Meta-features ($\phi$): A sub-network that learns a compact "embedding" or signature of a dataset by processing its raw samples.
  2. The Ranker ($\rho$): A network that takes the task embedding and a continuous representation of a model architecture ($u$) to produce a scalar score.
The task-aware meta-learning framework for performance prediction.

The core innovation is the Pairwise Ranking Loss. Instead of comparing a prediction to a ground-truth value, the network is trained on pairs of architectures. If Architecture $i$ performed better than Architecture $j$ in real-world validation, the network is penalized if it does not give Architecture $i$ a higher score.

To improve robustness, we introduce a Margin ($m$) to encourage clear separation between scores and an Uncertainty Gap. Real-world training is noisy; if two models have nearly identical performance (within a 0.01 gap), the ranker ignores that pair during training to avoid learning from random noise. Because the architecture space is mapped to a continuous domain using a softmax trick, we can use gradient ascent to navigate the space and find the highest-scoring architecture for a new task.

Experimental Results

We evaluated our approach using 10 publicly available Natural Language Processing (NLP) classification datasets, including sentiment analysis (Airline, Emotion) and social/political topics (Political Bias, US Economy). These datasets vary in size from 900 to 32,000 examples.

Superior Correlation

The ranking-based models showed significantly higher Spearman’s rank correlation compared to the standard L2 regression baseline across all 10 tasks. This metric measures how well the predicted order matches the actual performance order, confirming that ranking is a more natural fit for optimization than regression.

Spearman's rank correlation comparison across different loss functions.

Search Performance and Stability

When used for actual architecture search, the ranking network consistently found architectures with higher test accuracy. In many cases, it rivaled traditional NAS methods that require over 1,000 model trainings—despite our method requiring zero trainings for the new task (zero-shot).

We also compared Linear vs. Quadratic ranking losses. While quadratic loss seems more intuitive, we found that linear ranking loss was often more stable, as quadratic gradients can become very high and cause training instability.

Conclusion and Future Work

Our findings suggest that ranking is a more effective objective for meta-learning in NAS than regression. By focusing on relative performance and handling measurement noise through an uncertainty gap, we can identify high-quality architectures for new tasks instantly.

Future work will address the "cold start" problem, as the offline phase still requires a database of prior experiments (about 500 random architectures per task). We also aim to scale this approach to the more complex search spaces used in state-of-the-art computer vision models.

Summary updated

BibTeX
@misc{dubatovka2019ranking,
  author = {Alina Dubatovka and Efi Kokiopoulou and Luciano Sbaiz and Andrea Gesmundo and Gábor Bartók and Jesse Berent},
  title = {{Ranking architectures using meta-learning}},
  year = {2019},
  eprint = {1911.11481},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.11481},
}
Figure