Skip to main content
QUICK REVIEW

[Paper Review] LiteTransformerSearch: Training-free Neural Architecture Search for Efficient Language Models

Mojan Javaheripi, Gustavo Henrique de Rosa|arXiv (Cornell University)|Mar 4, 2022
Topic ModelingComputer Science5 citations
TL;DR

LiteTransformerSearch proposes a training-free Neural Architecture Search (NAS) method for efficient autoregressive Transformers by using decoder parameter count as a highly correlated proxy for perplexity, enabling fast, hardware-aware model search directly on target devices. It achieves up to 2.5× faster inference and 2.0× lower memory usage than baseline models while matching or exceeding performance on 14 tasks with 1.6× lower latency.

ABSTRACT

The Transformer architecture is ubiquitously used as the building block of large-scale autoregressive language models. However, finding architectures with the optimal trade-off between task performance (perplexity) and hardware constraints like peak memory utilization and latency is non-trivial. This is exacerbated by the proliferation of various hardware. We leverage the somewhat surprising empirical observation that the number of decoder parameters in autoregressive Transformers has a high rank correlation with task performance, irrespective of the architecture topology. This observation organically induces a simple Neural Architecture Search (NAS) algorithm that uses decoder parameters as a proxy for perplexity without need for any model training. The search phase of our training-free algorithm, dubbed Lightweight Transformer Search (LTS), can be run directly on target devices since it does not require GPUs. Using on-target-device measurements, LTS extracts the Pareto-frontier of perplexity versus any hardware performance cost. We evaluate LTS on diverse devices from ARM CPUs to NVIDIA GPUs and two popular autoregressive Transformer backbones: GPT-2 and Transformer-XL. Results show that the perplexity of 16-layer GPT-2 and Transformer-XL can be achieved with up to 1.5x, 2.5x faster runtime and 1.2x, 2.0x lower peak memory utilization. When evaluated in zero and one-shot settings, LTS Pareto-frontier models achieve higher average accuracy compared to the 350M parameter OPT across 14 tasks, with up to 1.6x lower latency. LTS extracts the Pareto-frontier in under 3 hours while running on a commodity laptop. We effectively remove the carbon footprint of hundreds of GPU hours of training during search, offering a strong simple baseline for future NAS methods in autoregressive language modeling.

Motivation & Objective

  • To address the challenge of finding efficient Transformer architectures that balance perplexity, latency, and memory usage for edge and real-time applications.
  • To eliminate the need for costly training during NAS by identifying a training-free proxy for model performance.
  • To enable on-device, multi-objective NAS that optimizes for both task performance and hardware constraints.
  • To reduce the carbon footprint of NAS by avoiding hundreds of GPU hours of training.
  • To provide a simple, scalable baseline for future NAS in autoregressive language modeling.

Proposed method

  • Leverages the empirical observation that decoder parameter count correlates highly with perplexity across diverse Transformer architectures, enabling it as a zero-cost proxy for model ranking.
  • Performs NAS using evolutionary algorithms that combine the parameter-count proxy with direct on-target measurements of latency and peak memory usage.
  • Executes the entire search pipeline on commodity hardware (e.g., laptops) without requiring GPUs or supernet training.
  • Constructs a Pareto-frontier of models that optimize for perplexity, latency, and memory utilization simultaneously.
  • Supports heterogeneous search spaces where each Transformer layer can have different hyperparameters (e.g., head count, d_model, d_ff).
  • Uses real hardware measurements during search to ensure target-device accuracy, avoiding simulation inaccuracies.

Experimental results

Research questions

  • RQ1Can decoder parameter count serve as a reliable, training-free proxy for predicting perplexity in autoregressive Transformers?
  • RQ2To what extent does the parameter-perplexity correlation hold across heterogeneous and homogeneous Transformer architectures?
  • RQ3Can a training-free NAS method achieve competitive performance while reducing search cost and carbon footprint?
  • RQ4How effective is on-device, hardware-aware NAS in identifying Pareto-optimal models for real-world deployment?
  • RQ5Can the proposed method outperform existing baselines in terms of latency, memory, and accuracy across diverse hardware platforms?

Key findings

  • The rank correlation between decoder parameter count and perplexity is consistently high (r > 0.9) across both homogeneous and heterogeneous search spaces, validating the proxy's reliability.
  • LiteTransformerSearch extracts the full 3D Pareto-frontier of perplexity, latency, and memory in under 3 hours on a commodity laptop, without GPU or training.
  • On 16-layer GPT-2 and Transformer-XL, the method achieves the same perplexity with up to 2.5× faster runtime and 2.0× lower peak memory usage.
  • In zero- and one-shot settings, LTS models outperform the 350M-parameter OPT model on 14 tasks, achieving higher average accuracy with up to 1.6× lower latency.
  • The method reduces the carbon footprint of NAS by eliminating hundreds of GPU hours of training, offering a sustainable alternative to training-based approaches.
  • The approach is natively deployable on target devices, enabling real-time, hardware-aware architecture search without external compute.

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.