Nyströmformer: A Nyström-Based Algorithm for Approximating Self-Attention

AI-generated keywords: Nyströmformer Self-Attention Transformers Scalability GLUE

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Transformers are powerful in natural language processing
  • Self-attention mechanism is a key component for their success
  • Quadratic complexity limits self-attention's application to shorter sequences
  • Nyströmformer is proposed as a solution with linear complexity (O(n))
  • Nyströmformer can handle longer sequences without sacrificing performance
  • Nyströmformer performs comparably or better than standard Transformer in most cases
  • Code for implementing Nyströmformer is available on GitHub
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, Vikas Singh

AAAI 2021

Abstract: Transformers have emerged as a powerful tool for a broad range of natural language processing tasks. A key component that drives the impressive performance of Transformers is the self-attention mechanism that encodes the influence or dependence of other tokens on each specific token. While beneficial, the quadratic complexity of self-attention on the input sequence length has limited its application to longer sequences -- a topic being actively studied in the community. To address this limitation, we propose Nystr\"omformer -- a model that exhibits favorable scalability as a function of sequence length. Our idea is based on adapting the Nystr\"om method to approximate standard self-attention with $O(n)$ complexity. The scalability of Nystr\"omformer enables application to longer sequences with thousands of tokens. We perform evaluations on multiple downstream tasks on the GLUE benchmark and IMDB reviews with standard sequence length, and find that our Nystr\"omformer performs comparably, or in a few cases, even slightly better, than standard Transformer. Our code is at https://github.com/mlpen/Nystromformer.

Submitted to arXiv on 07 Feb. 2021

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2102.03902v1

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

Transformers have become a powerful tool in natural language processing due to their impressive performance on various tasks. A key component that contributes to their success is the self-attention mechanism which captures the influence and dependencies between tokens in a sequence. Unfortunately, the quadratic complexity of self-attention limits its application to shorter sequences. To address this limitation, the authors propose Nyströmformer - a model that offers favorable scalability with respect to sequence length. This is achieved by adapting the Nyström method to approximate standard self-attention with linear complexity (O(n)). As such, Nyströmformer can handle longer sequences with thousands of tokens without sacrificing performance. The authors evaluate Nyströmformer on multiple downstream tasks using the GLUE benchmark and IMDB reviews dataset and find that it performs comparably or even slightly better than the standard Transformer in most cases. The code for implementing Nyströmformer is available on GitHub for further exploration and experimentation.
Created on 29 Jun. 2023

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.