Zebra: Extending Context Window with Layerwise Grouped Local-Global Attention
Song, Kaiqiang, Wang, Xiaoyang, Cho, Sangwoo, Pan, Xiaoman, Yu, Dong
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Dec-13-2023
- Country:
- Africa
- Eritrea (0.04)
- Middle East
- Sudan (0.04)
- Asia
- China > Hong Kong (0.04)
- Japan (0.04)
- Macao (0.04)
- Middle East
- Israel
- Jerusalem District > Jerusalem (0.04)
- Tel Aviv District > Tel Aviv (0.04)
- Jordan (0.04)
- Lebanon (0.04)
- Palestine > Gaza Strip (0.04)
- Saudi Arabia > Arabian Gulf (0.04)
- Syria (0.04)
- UAE
- Abu Dhabi Emirate > Abu Dhabi (0.04)
- Dubai Emirate > Dubai (0.04)
- Yemen (0.04)
- Israel
- Atlantic Ocean > Mediterranean Sea (0.04)
- Europe
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Italy
- Calabria > Catanzaro Province
- Catanzaro (0.04)
- Tuscany > Florence (0.04)
- Calabria > Catanzaro Province
- Middle East (0.04)
- Poland
- Kuyavian-Pomeranian Province > Bydgoszcz (0.04)
- Pomerania Province (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Ireland > Leinster
- Indian Ocean
- Arabian Gulf (0.04)
- Red Sea (0.04)
- North America
- Canada
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Ontario > Toronto (0.04)
- British Columbia > Metro Vancouver Regional District
- United States
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Washington > King County
- Seattle (0.04)
- Wisconsin
- Brown County > Green Bay (0.04)
- Oconto County (0.04)
- Outagamie County > Appleton (0.04)
- Louisiana > Orleans Parish
- Canada
- South America > Chile
- Africa
- Genre:
- Research Report > New Finding (0.87)
- Industry:
- Education (1.00)
- Leisure & Entertainment (0.92)
- Media > Music (0.46)
- Technology: