Zebra: Extending Context Window with Layerwise Grouped Local-Global Attention
Not on the map. Why?
Abstract (arXiv)
This paper introduces a novel approach to enhance the capabilities of Large Language Models (LLMs) in processing and understanding extensive text sequences, a critical aspect in applications requiring deep comprehension and synthesis of large volumes of information. Recognizing the inherent challenges in extending the context window for LLMs, primarily built on Transformer architecture, we propose a new model architecture, referred to as Zebra. This architecture efficiently manages the quadratic time and memory complexity issues associated with full attention in the Transformer by employing grouped local-global attention layers. Our model, akin to a zebra's alternating stripes, balances local and global attention layers, significantly reducing computational requirements and memory consumption. Comprehensive experiments, including pretraining from scratch, continuation of long context adaptation training, and long instruction tuning, are conducted to evaluate the Zebra's performance. The results show that Zebra achieves comparable or superior performance on both short and long sequence benchmarks, while also enhancing training and inference efficiency.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 66 of its 90 references that are in the map. First posted on arXiv 14 Dec 2023.
Builds on
66 of 90 references.
References · 66
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
38 more
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2023LIMA: Less Is More for Alignmentcited by 1,100
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
- 2023StarCoder: may the source be with you!cited by 799
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
- 2017The NarrativeQA Reading Comprehension Challengecited by 597
- 2019ELI5: Long Form Question Answeringcited by 575
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
- 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
- 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 365
- 2021Random Feature Attentioncited by 354
- 2021Efficient Attentions for Long Document Summarizationcited by 345
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2023Effective Long-Context Scaling of Foundation Modelscited by 303
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
- 2020Sparse Sinkhorn Attentioncited by 251
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 236
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
50 most cited of 66 All 66 (JSON)
Built on by
Citing papers per year: 2024: 5; 2025: 1.
6 papers.
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 723
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
- 2024Training-Free Long-Context Scaling of Large Language Modelscited by 62
- 2025Cognitive Memory in Large Language Modelscited by 29
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Servingcited by 3
- 2025Cognitive Memory in Large Language Models3 Apr 2025
- 2024Towards LifeSpan Cognitive Systems20 Sep 2024
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving18 May 2024
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategies9 Apr 2024
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encoding5 Mar 2024
- 2024Training-Free Long-Context Scaling of Large Language Models27 Feb 2024