Skip to main content
QUICK REVIEW

[Paper Review] Latency-Aware Neural Architecture Search with Multi-Objective Bayesian Optimization

David Eriksson, Pierce Chuang|arXiv (Cornell University)|Jun 22, 2021
Machine Learning and Data ClassificationComputer Science24 references5 citations
TL;DR

This paper proposes a latency-aware neural architecture search framework using multi-objective Bayesian optimization with sparse axis-aligned subspace (SAAS) priors and noisy expected hypervolume improvement (qNEHVI) for efficient, high-dimensional search. It achieves a 25%+ reduction in on-device p99 latency while improving model accuracy, outperforming random and Sobol search on a production-scale on-device NLU model with zero code changes to training workflows.

ABSTRACT

When tuning the architecture and hyperparameters of large machine learning models for on-device deployment, it is desirable to understand the optimal trade-offs between on-device latency and model accuracy. In this work, we leverage recent methodological advances in Bayesian optimization over high-dimensional search spaces and multi-objective Bayesian optimization to efficiently explore these trade-offs for a production-scale on-device natural language understanding model at Facebook.

Motivation & Objective

  • To address the challenge of efficiently exploring trade-offs between model accuracy and on-device latency in neural architecture search for mobile deployment.
  • To develop a NAS method that requires no code changes to existing training pipelines, enabling integration with large-scale production training infrastructure.
  • To enable high-dimensional, sample-efficient optimization of multiple competing objectives—accuracy and latency—using Bayesian optimization.
  • To demonstrate the effectiveness of the approach on a real-world, production-scale on-device natural language understanding (NLU) model at Facebook.

Proposed method

  • Leverages multi-objective Bayesian optimization (BO) with a fully Bayesian inference framework using the SAAS prior to model high-dimensional search spaces (24 parameters) with improved generalization and sparsity.
  • Employs the qNEHVI acquisition function with Monte Carlo integration over GP hyperparameters to enable parallel, noisy, and robust optimization under uncertainty.
  • Uses a scrambled Sobol sequence for 32 initial design points and asynchronously evaluates 16 configurations in parallel to maximize sample efficiency within a 240-evaluation budget.
  • Applies No-U-Turn Sampler (NUTS) for posterior inference in the SAAS-GP model, enabling automatic relevance determination and robustness in high-dimensional settings.
  • Encodes model architecture and hyperparameters as a 24-dimensional search space, including depth-wise convolution kernel sizes, embedding and FFN dimensions, and attention head counts.
  • Defines objectives relative to a reference model (accuracy and p99 latency), with the reference point set at (1,1) to bound the search space and enable meaningful hypervolume improvement.

Experimental results

Research questions

  • RQ1Can multi-objective Bayesian optimization with SAAS priors effectively explore high-dimensional search spaces for neural architecture search in real-world on-device NLU models?
  • RQ2How does the proposed method compare to random and Sobol-based search in terms of improving both accuracy and latency trade-offs?
  • RQ3To what extent can fully Bayesian inference with NUTS and SAAS priors improve model fit and optimization stability in high-dimensional BO?
  • RQ4Can the qNEHVI acquisition function with Monte Carlo integration over hyperparameters enable efficient, parallel, and robust optimization under noisy observations?

Key findings

  • The proposed BO method achieved a 25%+ reduction in on-device p99 latency while simultaneously improving model accuracy, demonstrating effective trade-off exploration.
  • Sobol search only found two configurations that improved upon the reference point, whereas the BO method successfully identified multiple Pareto-optimal architectures across the accuracy-latency frontier.
  • The SAAS prior significantly outperformed standard MAP-estimated GP models in leave-one-out cross-validation, showing superior fit and robustness in high-dimensional settings.
  • The integration of qNEHVI with fully Bayesian inference enabled stable, parallel, and sample-efficient optimization, even under noisy latency measurements.
  • The method required zero code changes to the existing training pipeline, enabling seamless integration with large-scale production training infrastructure at Facebook.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.