LongNet: Scaling Transformers to 1,000,000,000 Tokens

AI-generated keywords: LongNet Transformer Dilated Attention Linear Complexity Logarithmic Dependency

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.

  • LongNet is a Transformer variant that addresses the need for scaling sequence length in large language models.
  • Existing methods are limited by computational complexity or model expressivity, restricting maximum sequence length.
  • LongNet introduces dilated attention which exponentially increases the attentive field as token distance grows.
  • LongNet can scale up to more than 1 billion tokens without compromising performance on shorter sequences.
  • Advantages of LongNet include linear computation complexity and logarithmic dependency between any two tokens, ability to be used as a distributed trainer for extremely long sequences, and easy integration with existing Transformer-based optimization techniques.
  • Experimental results show that LongNet performs well on both long-sequence modeling and general language tasks.
  • This breakthrough opens up possibilities for modeling very long sequences such as treating an entire corpus or even the entire Internet as one single sequence.
  • Authors of this work are Jiayu Ding, Shuming Ma, Li Dong, Xingxing Zhang, Shaohan Huang, Wenhui Wang, Nanning Zheng, and Furu Wei.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Jiayu Ding, Shuming Ma, Li Dong, Xingxing Zhang, Shaohan Huang, Wenhui Wang, Nanning Zheng, Furu Wei

Work in progress

Abstract: Scaling sequence length has become a critical demand in the era of large language models. However, existing methods struggle with either computational complexity or model expressivity, rendering the maximum sequence length restricted. To address this issue, we introduce LongNet, a Transformer variant that can scale sequence length to more than 1 billion tokens, without sacrificing the performance on shorter sequences. Specifically, we propose dilated attention, which expands the attentive field exponentially as the distance grows. LongNet has significant advantages: 1) it has a linear computation complexity and a logarithm dependency between any two tokens in a sequence; 2) it can be served as a distributed trainer for extremely long sequences; 3) its dilated attention is a drop-in replacement for standard attention, which can be seamlessly integrated with the existing Transformer-based optimization. Experiments results demonstrate that LongNet yields strong performance on both long-sequence modeling and general language tasks. Our work opens up new possibilities for modeling very long sequences, e.g., treating a whole corpus or even the entire Internet as a sequence.

Submitted to arXiv on 05 Jul. 2023

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: 2307.02486v2

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.

LongNet is a Transformer variant that addresses the need for scaling sequence length in large language models. Existing methods are limited by either computational complexity or model expressivity, restricting the maximum sequence length. To overcome this limitation, LongNet introduces dilated attention which exponentially increases the attentive field as the distance between tokens grows. This allows LongNet to scale up to more than 1 billion tokens without compromising performance on shorter sequences. LongNet offers several advantages: linear computation complexity and logarithmic dependency between any two tokens in a sequence; it can be used as a distributed trainer for extremely long sequences; its dilated attention is a drop-in replacement for standard attention and can be easily integrated with existing Transformer-based optimization techniques. Experimental results show that LongNet performs well on both long-sequence modeling and general language tasks. This breakthrough opens up new possibilities for modeling very long sequences such as treating an entire corpus or even the entire Internet as one single sequence. The authors of this work are Jiayu Ding, Shuming Ma, Li Dong, Xingxing Zhang, Shaohan Huang, Wenhui Wang, Nanning Zheng and Furu Wei.
Created on 20 Dec. 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.

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.