TensorX
返回文献探索

Paper · arXiv 2306.09539

Block-State Transformer

Mahan Fathi, Jonathan Pilault, Pierre-Luc Bacon, Christopher Pal, Orhan Firat, Ross Goroshin

10 upvotesJune 15, 2023arXiv 预印本
AI 摘要

A hybrid model combining state space models and block-wise attention outperforms Transformer-based architectures in language modeling, offering faster processing speeds.

state space modelsBlock-State Transformerlong-range dependenciessubquadratic runtime complexityBlock Transformerblock-wise attentionlanguage modelingperplexitymodel parallelizationBlock-Recurrent Transformer

Abstract

State space models (SSMs) have shown impressive results on tasks that require modeling long-range dependencies and efficiently scale to long sequences owing to their subquadratic runtime complexity. Originally designed for continuous signals, SSMs have shown superior performance on a plethora of tasks, in vision and audio; however, SSMs still lag Transformer performance in Language Modeling tasks. In this work, we propose a hybrid layer named Block-State Transformer (BST), that internally combines an SSM sublayer for long-range contextualization, and a Block Transformer sublayer for short-term representation of sequences. We study three different, and completely parallelizable, variants that integrate SSMs and block-wise attention. We show that our model outperforms similar Transformer-based architectures on language modeling perplexity and generalizes to longer sequences. In addition, the Block-State Transformer demonstrates more than tenfold increase in speed at the layer level compared to the Block-Recurrent Transformer when model parallelization is employed.

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

京ICP备2026059466号
Block-State Transformer | TensorX