The Evolved Transformer

David So, Quoc Le, Chen Liang

Introduction

Researchers at Google Brain have utilized evolutionary Neural Architecture Search (NAS) to discover the Evolved Transformer (ET), a more efficient and powerful successor to the original human-designed Transformer. By "warm-starting" the search with the standard Transformer and employing a novel resource-allocation method called Progressive Dynamic Hurdles, the team found an architecture that achieves state-of-the-art results while being significantly more parameter-efficient.

The Challenge of NAS for Sequence Models

Since its introduction in 2017, the Transformer has become the de facto standard for sequence-to-sequence (seq2seq) tasks like translation. However, its architecture was manually designed. While recent advances in NAS have shown that automated algorithms can often find better architectures than humans—particularly in computer vision—applying these methods to seq2seq tasks presents a massive computational hurdle.

Tasks like the WMT 2014 English-German translation benchmark are expensive. Training a single model to convergence can take days. Standard NAS methods, which evaluate thousands of candidates, are often too slow or memory-intensive for these large-scale language tasks. The authors set out to bridge this gap, aiming to apply NAS to find a better Transformer without requiring an impossible amount of compute.

Search Methodology

To make the search viable across a massive space of $7.30 \times 10^{115}$ possible models, the authors employed a three-pronged strategy:

  1. Evolutionary Search with Tournament Selection: Instead of Reinforcement Learning, they used an evolutionary algorithm. They defined a "gene encoding" for architectures (representing layers, activations, and connections) and evolved a population of models over time.
  2. Warm Starting: Typical NAS starts from random noise. Here, researchers seeded their initial population with the original Transformer. This anchored the search to a known high-performing starting point, ensuring the algorithm didn't waste time exploring obviously poor architectures.
  3. Progressive Dynamic Hurdles (PDH): To avoid fully training every candidate, they implemented a dynamic "hurdle" system. All models start with a small number of training steps. Only those performing better than the current population's mean are granted more training steps. This dynamically allocates resources to the most promising candidates, saving massive amounts of compute.

Key Architectural Insights

The resulting Evolved Transformer is not just a minor tweak of its predecessor; it introduces significant structural changes.

Comparison of standard Transformer blocks and the Evolved Transformer blocks, highlighting the use of wide convolutions and branching.
  • Hybridization is Key: As seen in the architecture comparison, the ET heavily incorporates wide depth-wise separable convolutions in the lower layers of both the encoder and decoder. This suggests that a mix of local (convolutional) and global (attention) context is superior to pure attention alone.
  • Branching Matters: While the original Transformer is a linear stack of layers, the ET discovered complex branching structures within its blocks. This allows the model to process information through multiple parallel paths before combining them.
  • The Power of the Seed: The authors found that starting with the Transformer was essential. Searches starting from random configurations failed to reach the same performance levels within the same compute budget.

Performance and Efficiency Results

The Evolved Transformer was evaluated across multiple datasets, including WMT 2014 English-German (En-De), English-French (En-Fr), English-Czech (En-Cs), and the 1 Billion Word Language Model Benchmark (LM1B).

BLEU score versus parameter count on WMT'14 En-De, showing the Evolved Transformer consistently outperforming the standard Transformer across sizes.
  • State-of-the-Art: At a "big" model size, the Evolved Transformer achieved a 29.8 BLEU score on WMT’14 En-De, setting a new record at the time of publication.
  • Parameter Efficiency: The ET achieved the same translation quality as the original "Big" Transformer while using 37.6% fewer parameters.
  • Efficiency at Scale: One of the most striking findings is that the ET's advantages actually increase as the model gets smaller. At a mobile-friendly size (~7M parameters), the ET outperformed the standard Transformer by 0.7 BLEU, a significant margin at that scale.
  • Generalization: The improvements were consistent across all four language tasks, proving the architecture wasn't just overfit to one specific dataset.

Limitations and Future Work

While highly successful, the authors note that at very large model sizes, the performance gap between the ET and the standard Transformer begins to narrow, likely due to overfitting. Future work could involve more sophisticated data augmentation or hyperparameter tuning specifically for these larger scales.

Additionally, while PDH significantly reduced the cost of the search, it still required substantial resources (270 TPU workers). Future research could explore even more efficient search spaces or surrogate models to further democratize NAS for researchers without massive compute clusters.

Summary updated

BibTeX
@inproceedings{so2019evolved,
  author = {David So and Quoc Le and Chen Liang},
  title = {{The Evolved Transformer}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=SybkksW_WH},
}
Figure