Efficient Model Performance Estimation via Feature Histories

Shengcao Cao, Xiaofang Wang, Kris M. Kitani

TL;DR

This paper introduces a novel method for efficiently estimating the final performance of neural network models during training. By leveraging the history of intermediate features, their approach can predict a model's ultimate performance much earlier, significantly reducing the computational cost of tasks like hyperparameter optimization and neural architecture search. This leads to faster discovery of better models with less computational effort.

What Problem Does This Paper Address?

Selecting the best neural network architecture or hyperparameter configuration is crucial for achieving optimal performance. However, this process is notoriously computationally expensive because it typically requires training each candidate model to full convergence, which can take days or even weeks on powerful hardware. This high cost limits the scope and efficiency of model selection. The paper addresses this by proposing a method to accurately estimate a model's final performance using only a fraction of the training time, thereby accelerating the search for optimal models.

Methods

The core of the proposed method is to utilize "feature histories." Instead of relying solely on the final validation accuracy, which can be misleading in the early stages of training, the authors observe that the internal feature representations of a network evolve in a predictable way. Specifically, they hypothesize that if an image's features consistently lie on the correct side of the decision boundary during early training, it's a strong indicator of eventual correct classification.

Their approach involves:

  1. Saving Intermediate Features: During the training of a candidate model, the features extracted by the network's feature extractor (before the final classification layer) are saved at regular intervals (e.g., every epoch).
  2. Training Linear Classifiers: For each saved feature set from a particular epoch, an optimal linear classifier is trained. This classifier learns to separate the classes based on the features observed up to that epoch.
  3. Ensembling Classifiers: An ensemble of these epoch-specific linear classifiers is used to predict the final performance. By considering the history of how features behave across multiple epochs, the ensemble can make a more robust and accurate prediction of the model's converged performance than any single epoch's classifier.

This method is designed to be versatile and can be integrated into existing search algorithms for Hyperparameter Optimization (HPO) and Neural Architecture Search (NAS) with minimal code changes.

Datasets

The paper evaluates its method on several standard datasets:

  • CIFAR-10
  • CIFAR-100
  • Downsampled ImageNet (mentioned in relation to NAS-Bench-201)

The experiments also utilize benchmarks like NAS-Bench-201 and the DARTS search space.

Key Insights and Ideas

  • Feature History as a Predictor: The most significant insight is that the trajectory of intermediate features during training, not just the final accuracy at an early stage, holds valuable information about a model's eventual performance.
  • Early Indicators of Convergence: The observation that images whose features consistently fall on the "correct" side of the decision boundary are likely to be correctly classified at convergence is a key motivator. This suggests that the stability and direction of feature evolution are more informative than transient accuracy fluctuations.
  • Ensemble of Simple Predictors: Using an ensemble of simple linear classifiers trained on historical features is more effective than relying on a single snapshot or a complex prediction model. This simplicity makes the method computationally efficient.
  • Versatility Across Tasks and Architectures: The method's applicability to various CNN architectures (VGG, ResNet, MobileNetV2) and its seamless integration with different search strategies (Random Search, HyperBand, BOHB) highlight its broad utility.

Key Results

  • Accurate Performance Estimation: The proposed method provides stable and accurate estimations of final performance at an early training stage, closely matching the true performance.
  • Improved Ranking Consistency: The method leads to a more consistent relative ranking of architectures compared to using raw early-stage performance metrics, as measured by Kendall's $\tau$ coefficient.
  • Significant Speedup in NAS: When applied to the DARTS search space, their method, combined with HyperBand, found an architecture with less than a 1% test accuracy gap from the global optimum in just 2 hours, achieving an 80% reduction in search time compared to baseline methods.
  • Enhanced HPO: In hyperparameter optimization tasks (e.g., RandAugment), the method consistently improved the performance of baseline search algorithms like BOHB and HyperBand.

Limitations and Future Work

  • Computational Overhead: While significantly reducing overall training time, the method does introduce a small computational overhead for saving features and training/ensembling linear classifiers. The paper states this overhead is typically less than half an epoch's training time and is negligible in the context of multi-epoch training.
  • Future Directions: The authors suggest that their performance estimation strategy could be used to guide and accelerate the training of CNNs themselves, not just for model selection. This could involve dynamically adjusting learning rates or other training parameters based on the estimated convergence trajectory.

Summary updated

BibTeX
@misc{cao2021efficient,
  author = {Shengcao Cao and Xiaofang Wang and Kris M. Kitani},
  title = {{Efficient Model Performance Estimation via Feature Histories}},
  year = {2021},
  eprint = {2103.04450},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.04450},
}
Figure