Skip to main content
QUICK REVIEW

[Paper Review] Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey

Yun-Peng Huang, Jingwei Xu|arXiv (Cornell University)|Nov 21, 2023
Topic ModelingComputer Science15 citations
TL;DR

This survey reviews Transformer architectural advances for long-context LLMs across pre-training, fine-tuning, and inference, organizing methods into a five-category taxonomy and discussing evaluation and tooling.

ABSTRACT

Transformer-based Large Language Models (LLMs) have been applied in diverse areas such as knowledge bases, human interfaces, and dynamic agents, and marking a stride towards achieving Artificial General Intelligence (AGI). However, current LLMs are predominantly pretrained on short text snippets, which compromises their effectiveness in processing the long-context prompts that are frequently encountered in practical scenarios. This article offers a comprehensive survey of the recent advancement in Transformer-based LLM architectures aimed at enhancing the long-context capabilities of LLMs throughout the entire model lifecycle, from pre-training through to inference. We first delineate and analyze the problems of handling long-context input and output with the current Transformer-based models. We then provide a taxonomy and the landscape of upgrades on Transformer architecture to solve these problems. Afterwards, we provide an investigation on wildly used evaluation necessities tailored for long-context LLMs, including datasets, metrics, and baseline models, as well as optimization toolkits such as libraries, frameworks, and compilers to boost the efficacy of LLMs across different stages in runtime. Finally, we discuss the challenges and potential avenues for future research. A curated repository of relevant literature, continuously updated, is available at https://github.com/Strivin0311/long-llms-learning.

Motivation & Objective

  • Identify challenges of long-context handling in Transformer-based LLMs from pre-training to inference.
  • Provide a holistic taxonomy of architectural advances to extend context windows.
  • Survey evaluation needs, datasets, metrics, baselines, and optimization toolkits for long-context LLMs.
  • Discuss challenges and future directions in long-context Transformer research.
  • Offer a real-time literature repository to track ongoing progress.

Proposed method

  • Define the problem space and preliminaries of language modeling objectives and modeling stages.
  • Propose a taxonomy of architectural improvements for long-context LLMs spanning five categories.
  • Review specific methods within each category and their impact on context length and efficiency.
  • Summarize evaluation necessities and describe common toolkits for training and inference optimization.
  • Highlight challenges and future research directions, supported by a curated literature repository.

Experimental results

Research questions

  • RQ1What architectural approaches have been proposed to extend the effective context length of Transformer-based LLMs across training, fine-tuning, inference, and processing?
  • RQ2How do efficient attention, memory mechanisms, extrapolative positional embeddings, and context processing contribute to long-context performance?
  • RQ3What evaluation datasets, metrics, and baselines are commonly used for assessing long-context capabilities of LLMs?
  • RQ4What are the key challenges and potential future directions in designing long-context Transformer architectures?

Key findings

  • Efficient attention, memory, extrapolative positional embeddings, context processing, and miscellaneous methods collectively address long-context limitations.
  • A holistic taxonomy is proposed that maps methodologies to stages in Transformer-based LLM development.
  • The survey covers evaluation necessities and identifies popular toolkits and libraries for improving training and inference efficiency.
  • A repository is established to curate and update literature on long-context LLM advancements.
  • The paper discusses challenges and future research directions to push long-context capabilities forward.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.