Preprint
Large Language Models

A survey of transformers

Tianyang Lin(Fudan University), Yuxin Wang(Fudan University), Xiangyang Liu(Fudan University), Xipeng Qiu(Fudan University)
January 1, 2022AI Open2,166 citations

2.2k

Citations

0

Influential Citations

AI Open

Venue

2022

Year

Abstract

Transformers have achieved great success in many artificial intelligence fields, such as natural language processing, computer vision, and audio processing. Therefore, it is natural to attract lots of interest from academic and industry researchers. Up to the present, a great variety of Transformer variants (a.k.a. X-formers) have been proposed, however, a systematic and comprehensive literature review on these Transformer variants is still missing. In this survey, we provide a comprehensive review of various X-formers. We first briefly introduce the vanilla Transformer and then propose a new taxonomy of X-formers. Next, we introduce the various X-formers from three perspectives: architectural modification, pre-training, and applications. Finally, we outline some potential directions for future research.

Analysis

Why This Paper Matters

Since its introduction in 2017, the Transformer architecture has revolutionized artificial intelligence, becoming the backbone of state-of-the-art models in natural language processing, computer vision, and audio processing. However, the explosive growth of Transformer variants—often called X-formers—has made it challenging for researchers and practitioners to keep pace with the latest developments. This survey by Lin et al. fills a critical gap by providing a systematic and comprehensive review of X-formers, offering a structured taxonomy that categorizes variants based on architectural modifications, pre-training strategies, and applications. Published in AI Open in 2022, the paper has already garnered over 2,000 citations, underscoring its importance as a reference in the field.

The significance of this survey lies in its timely synthesis of a fragmented literature. By organizing the myriad of Transformer variants into a coherent framework, the authors enable readers to understand the evolution of the architecture and identify key innovations. Moreover, the paper outlines potential future research directions, guiding new researchers and sparking further advancements. In an era where Transformer-based models like BERT and GPT have become ubiquitous, this survey serves as an essential guide for navigating the complex landscape of modern AI.

Technical Contributions

  • Comprehensive Taxonomy: The authors propose a new taxonomy of X-formers, categorizing them into three main perspectives: architectural modification, pre-training, and applications. This taxonomy provides a clear structure for understanding the diverse range of variants.
  • Architectural Modifications: The survey reviews various modifications to the vanilla Transformer, including changes to attention mechanisms (e.g., sparse attention, linear attention), encoder-decoder architectures, and other structural innovations.
  • Pre-training Methods: It covers pre-training objectives and strategies, such as masked language modeling, autoregressive modeling, and contrastive learning, which have been crucial for the success of Transformers in NLP.
  • Application Domains: The paper discusses applications of Transformers beyond NLP, including computer vision (e.g., Vision Transformer), audio processing (e.g., Speech Transformer), and other areas, highlighting the versatility of the architecture.
  • Future Directions: The authors identify open challenges and potential research directions, such as efficiency, interpretability, and multimodal learning.

Results

As a survey paper, this work does not present new experimental results. Instead, it synthesizes findings from a large body of literature. The authors systematically review and compare numerous Transformer variants, providing a comprehensive overview of the state of the art. The paper's main "result" is the taxonomy and the structured summary of existing work, which serves as a valuable resource for the community. The high citation count (over 2,000) attests to its impact and utility.

Significance

The broader impact of this survey is substantial. It provides a foundational reference for both newcomers and experts, facilitating a deeper understanding of Transformer variants and their underlying principles. By categorizing and analyzing existing work, the paper helps identify gaps and opportunities, thereby accelerating future research. Furthermore, the survey's coverage of applications across multiple domains underscores the Transformer's role as a general-purpose architecture, inspiring cross-disciplinary innovations. In summary, this paper is a cornerstone for anyone seeking to understand or contribute to the ongoing Transformer revolution.