FastSeq: Make Sequence Generation Faster
Not on the map. Why?
Abstract (arXiv)
Transformer-based models have made tremendous impacts in natural language generation. However the inference speed is a bottleneck due to large model size and intensive computing involved in auto-regressive decoding process. We develop FastSeq framework to accelerate sequence generation without accuracy loss. The proposed optimization techniques include an attention cache optimization, an efficient algorithm for detecting repeated n-grams, and an asynchronous generation pipeline with parallel I/O. These optimizations are general enough to be applicable to Transformer-based models (e.g., T5, GPT2, and UniLM). Our benchmark results on a set of widely used and diverse models demonstrate 4-9x inference speed gain. Additionally, FastSeq is easy to use with a simple one-line code change. The source code is available at https://github.com/microsoft/fastseq.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 24 of its 29 references that are in the map. First posted on arXiv 8 Jun 2021.
Builds on
24 of 29 references.
References · 24
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2020Efficient Transformers: A Surveycited by 784
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
12 more
- 2018Universal Transformerscited by 613
- 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 251
- 2020ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-trainingcited by 221
- 2018Scaling Neural Machine Translationcited by 204
- 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
- 2020TurboTransformers: An Efficient GPU Serving System For Transformer Modelscited by 71
- 2020Pre-trained Summarization Distillationcited by 70
- 2018Dissecting the NVIDIA Volta GPU Architecture via Microbenchmarkingcited by 35
- 2021EL-Attention: Memory Efficient Lossless Attention for Generationcited by 6
Built on by
Citing papers per year: 2021: 1; 2022: 4; 2023: 4; 2024: 2; 2025: 0; 2026: 2.
13 papers.
Sort:
By area:
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processingcited by 131
- 2022Pretrained Language Models for Text Generation: A Surveycited by 121
- 2024D'ej`aVu: KV-cache Streaming for Fast, Fault-tolerant Generative LLM Servingcited by 48
- 2023Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyondcited by 22
- 2023Expand, Rerank, and Retrieve: Query Reranking for Open-Domain Question Answeringcited by 15
- 2023Efficient Contextformer: Spatio-Channel Window Attention for Fast Context Modeling in Learned Image Compressioncited by 13
- 2022DeepGen: Diverse Search Ad Generation and Real-Time Customizationcited by 10
- 2022FAST: Improving Controllability for Text Generation with Feedback Aware Self-Trainingcited by 7
- 2024GroupedMixer: An Entropy Model with Group-wise Token-Mixers for Learned Image Compressioncited by 6
- 2023Lformer: Text-to-Image Generation with L-shape Block Parallel Decodingcited by 5
- 2022TextBox 2.0: A Text Generation Library with Pre-trained Language Modelscited by 3
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Trainingcited by 2
1 more
- 2026Offline Materials Optimization with CliqueFlowmercited by 0
- 2026Offline Materials Optimization with CliqueFlowmer6 Mar 2026
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Training25 Feb 2026
- 2024GroupedMixer: An Entropy Model with Group-wise Token-Mixers for Learned Image Compression2 May 2024
- 2024D'ej`aVu: KV-cache Streaming for Fast, Fault-tolerant Generative LLM Serving4 Mar 2024
- 2023Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyond9 Oct 2023
- 2023Efficient Contextformer: Spatio-Channel Window Attention for Fast Context Modeling in Learned Image Compression25 Jun 2023
- 2023Expand, Rerank, and Retrieve: Query Reranking for Open-Domain Question Answering26 May 2023
- 2023Lformer: Text-to-Image Generation with L-shape Block Parallel Decoding7 Mar 2023
- 2022TextBox 2.0: A Text Generation Library with Pre-trained Language Models26 Dec 2022
- 2022FAST: Improving Controllability for Text Generation with Feedback Aware Self-Training6 Oct 2022
- 2022DeepGen: Diverse Search Ad Generation and Real-Time Customization6 Aug 2022
- 2022Pretrained Language Models for Text Generation: A Survey14 Jan 2022
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processingcited by 131
- 2022Pretrained Language Models for Text Generation: A Surveycited by 121
- 2023Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyondcited by 22
- 2023Expand, Rerank, and Retrieve: Query Reranking for Open-Domain Question Answeringcited by 15
- 2023Efficient Contextformer: Spatio-Channel Window Attention for Fast Context Modeling in Learned Image Compressioncited by 13
- 2022DeepGen: Diverse Search Ad Generation and Real-Time Customizationcited by 10
- 2022FAST: Improving Controllability for Text Generation with Feedback Aware Self-Trainingcited by 7
- 2024GroupedMixer: An Entropy Model with Group-wise Token-Mixers for Learned Image Compressioncited by 6
- 2022TextBox 2.0: A Text Generation Library with Pre-trained Language Modelscited by 3
- 2026Offline Materials Optimization with CliqueFlowmercited by 0
- 2026Offline Materials Optimization with CliqueFlowmer6 Mar 2026
- 2024GroupedMixer: An Entropy Model with Group-wise Token-Mixers for Learned Image Compression2 May 2024
- 2023Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyond9 Oct 2023
- 2023Efficient Contextformer: Spatio-Channel Window Attention for Fast Context Modeling in Learned Image Compression25 Jun 2023
- 2023Expand, Rerank, and Retrieve: Query Reranking for Open-Domain Question Answering26 May 2023
- 2022TextBox 2.0: A Text Generation Library with Pre-trained Language Models26 Dec 2022
- 2022FAST: Improving Controllability for Text Generation with Feedback Aware Self-Training6 Oct 2022
- 2022DeepGen: Diverse Search Ad Generation and Real-Time Customization6 Aug 2022
- 2022Pretrained Language Models for Text Generation: A Survey14 Jan 2022
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processing12 Aug 2021