The Evolved Transformer

David R. So, Chen Liang, Quoc V. Le

Introduction

The Transformer architecture has revolutionized sequence-to-sequence (seq2seq) modeling, becoming the foundation for state-of-the-art translation and language models. However, despite its success, the Transformer was a product of human intuition. In other domains like computer vision, Neural Architecture Search (NAS) has demonstrated that automated algorithms can often outdesign human experts. This paper explores the application of NAS to the seq2seq domain, resulting in the discovery of the Evolved Transformer (ET).

Methodology: Evolutionary Search with Hurdles

The researchers utilized an evolutionary search strategy based on tournament selection. To overcome the immense computational cost of searching on large-scale translation datasets like WMT 2014 English-German (En-De), two key innovations were introduced:

  1. Warm Starting: Instead of initializing the search with random architectures, the population was seeded with the original Transformer. This provided a high-performing baseline for the evolutionary process to refine.
  2. Progressive Dynamic Hurdles (PDH): To efficiently allocate resources, the authors implemented a multi-stage "hurdle" system. Candidate models were initially trained for a limited number of steps. Only those that exceeded the average performance of the current population were allowed to proceed to further training. This allowed the search to discard thousands of unpromising models early.

The Evolved Transformer Architecture

The search discovered an architecture that significantly deviates from the linear stack of the original Transformer. The Evolved Transformer features a more complex, branched structure and incorporates diverse layer types, such as depth-wise separable convolutions.

Comparison of standard Transformer blocks and the discovered Evolved Transformer blocks.

Key architectural insights include:

  • Hybrid Layers: The ET heavily utilizes wide depth-wise separable convolutions in the lower layers of both the encoder and decoder. This suggests that the local feature extraction of convolutions complements the global attention mechanism.
  • Branched Processing: Unlike the original's sequential flow, the ET uses parallel branches to process information before combining them, allowing for more nuanced feature representation.

Performance and Efficiency

The Evolved Transformer demonstrates superior performance across various scales and tasks. On the WMT’14 En-De benchmark, a large-scale ET achieved a state-of-the-art BLEU score of 29.8.

Crucially, the ET is more parameter-efficient than its predecessor. As shown in the figure below, the ET consistently outperforms the standard Transformer at equivalent parameter counts. For instance, an ET model can match the performance of a "big" Transformer while using approximately 37.6% fewer parameters. This efficiency makes it particularly suitable for resource-constrained environments.

BLEU score vs. parameter count for the Transformer and Evolved Transformer on WMT'14 En-De.

Conclusion

The Evolved Transformer represents a significant step forward in automated architecture design for NLP. By combining evolutionary search with efficient resource allocation, the researchers discovered a hybrid architecture that surpasses human-designed models in both accuracy and efficiency. The ET's success on diverse tasks like translation and language modeling suggests that its architectural improvements are fundamental to sequence processing.

Summary updated

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