TensorX
返回文献探索

Paper · arXiv 2410.18572

Taipan: Efficient and Expressive State Space Language Models with Selective Attention

Chien Van Nguyen, Huy Huu Nguyen, Thang M. Pham, Ruiyi Zhang, Hanieh Deilamsalehy, Puneet Mathur, Ryan A. Rossi, Trung Bui, Viet Dac Lai, Franck Dernoncourt, Thien Huu Nguyen

17 upvotesOctober 24, 2024arXiv 预印本
AI 摘要

Taipan combines Mamba-2 with Selective Attention Layers to achieve efficient long-context language modeling with high performance and constant memory usage.

TransformersState Space Models (SSMs)MambaSelective Attention Layers (SALs)long-range interactionsattention modulelong-context language modeling

Abstract

Efficient long-context language modeling remains a significant challenge in Natural Language Processing (NLP). While Transformers dominate language tasks, they struggle with long sequences due to quadratic computational complexity in training and linearly scaling memory costs during inference. Recent State Space Models (SSMs) such as Mamba offer alternatives with constant memory usage, but they underperform in tasks requiring extensive in-context retrieval. We introduce Taipan, a novel hybrid architecture that combines Mamba-2 with Selective Attention Layers (SALs). These SALs identify tokens requiring long-range interactions, remove less important features, and then augment their representations using the attention module. This approach balances Mamba's efficiency with Transformer-like performance in memory-intensive tasks. By constraining the attention budget, Taipan extends accurate predictions to context lengths of up to 1 million tokens while preserving computational efficiency. Our experiments demonstrate Taipan's superior performance across various scales and tasks, offering a promising solution for efficient long-context language modeling.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Taipan: Efficient and Expressive State Space Language Models with Selective Attention | TensorX