mlsanityData to 7 Oct 2026

FastSeq: Make Sequence Generation Faster

arXiv 2106.04718 ↗First posted 8 Jun 2021cs.CL cs.LGcited by 13

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  6. 2020Longformer: The Long-Document Transformercited by 3,362
  7. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  8. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  9. 2015Teaching Machines to Read and Comprehendcited by 1,039
  10. 2019Are Sixteen Heads Really Better than One?cited by 803
  11. 2020Efficient Transformers: A Surveycited by 784
  12. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
12 more
  1. 2018Universal Transformerscited by 613
  2. 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
  3. 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
  4. 2019Q8BERT: Quantized 8Bit BERTcited by 296
  5. 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 251
  6. 2020ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-trainingcited by 221
  7. 2018Scaling Neural Machine Translationcited by 204
  8. 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
  9. 2020TurboTransformers: An Efficient GPU Serving System For Transformer Modelscited by 71
  10. 2020Pre-trained Summarization Distillationcited by 70
  11. 2018Dissecting the NVIDIA Volta GPU Architecture via Microbenchmarkingcited by 35
  12. 2021EL-Attention: Memory Efficient Lossless Attention for Generationcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 4; 2023: 4; 2024: 2; 2025: 0; 2026: 2.

13 papers.

Sort:

By area: