In-Context Learning for Latency Estimation

Timur Carstensen, Thomas Elsken, Martin RappAutoML Workshop 2024

Abstract

Neural architectures must be computationally efficient for edge device deployment to perform well under hardware constraints. Current Hardware-Aware NAS (HW-NAS) methods use surrogate models to predict hardware metrics (e.g., latency) during architecture search. These surrogate models typically require large amounts of data to train or finetune and rely on search-space specific encodings and meta-learning. We propose an In-Context Learning-based method for hardware latency estimation that generalises to unseen hardware in a single forward pass with a few labelled samples. Our surrogate is trained on real architecture-latency pairs with data augmentation to improve sample efficiency. Our method surpasses the state-of-the-art in Spearman's $\rho$ and is up to 72\% to 92\% more sample efficient.
BibTeX
@inproceedings{carstensen2024context,
  author = {Timur Carstensen and Thomas Elsken and Martin Rapp},
  title = {{In-Context Learning for Latency Estimation}},
  booktitle = {AutoML Workshop},
  year = {2024},
  url = {https://openreview.net/forum?id=Sin3j9XWX7},
}

Loading related content...

Figure