Bi-Directional Block Self-Attention for Fast and Memory-Efficient Sequence Modeling
Not on the map. Why?
Abstract (arXiv)
Recurrent neural networks (RNN), convolutional neural networks (CNN) and self-attention networks (SAN) are commonly used to produce context-aware representations. RNN can capture long-range dependency but is hard to parallelize and not time-efficient. CNN focuses on local dependency but does not perform well on some tasks. SAN can model both such dependencies via highly parallelizable computation, but memory requirement grows rapidly in line with sequence length. In this paper, we propose a model, called "bi-directional block self-attention network (Bi-BloSAN)", for RNN/CNN-free sequence encoding. It requires as little memory as RNN but with all the merits of SAN. Bi-BloSAN splits the entire sequence into blocks, and applies an intra-block SAN to each block for modeling local context, then applies an inter-block SAN to the outputs for all blocks to capture long-range dependency. Thus, each SAN only needs to process a short sequence, and only a small amount of memory is required. Additionally, we use feature-level attention to handle the variation of contexts around the same word, and use forward/backward masks to encode temporal order information. On nine benchmark datasets for different NLP tasks, Bi-BloSAN achieves or improves upon state-of-the-art accuracy, and shows better efficiency-memory trade-off than existing RNN/CNN/SAN.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Apr 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 3; 2023: 2; 2024: 1; 2025: 0; 2026: 1.
12 papers.
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
- 2021Attention, please! A survey of Neural Attention Models in Deep Learningcited by 50
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
- 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goescited by 29
- 2022LSG Attention: Extrapolation of pretrained Transformers to long sequencescited by 16
- 2021One model Packs Thousands of Items with Recurrent Conditional Query Learningcited by 5
- 2023Recursion in Recursion: Two-Level Nested Recursion for Length Generalization with Scalabilitycited by 5
- 2021IBERT: Idiom Cloze-style reading comprehension with Attentioncited by 4
- 2024Dynamic Context Adaptation and Information Flow Control in Transformers: Introducing the Evaluator Adjuster Unit and Gated Residual Connectionscited by 1
- 2021Nested-block self-attention for robust radiotherapy planning segmentationcited by 0
- 2022Exploring and Exploiting Multi-Granularity Representations for Machine Reading Comprehensioncited by 0
- 2026Beyond Pairwise Attention: Higher-Order Modular Attention for Efficient Sequence Learningcited by 0
- 2026Beyond Pairwise Attention: Higher-Order Modular Attention for Efficient Sequence Learning11 Mar 2026
- 2024Dynamic Context Adaptation and Information Flow Control in Transformers: Introducing the Evaluator Adjuster Unit and Gated Residual Connections22 May 2024
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Survey21 Nov 2023
- 2023Recursion in Recursion: Two-Level Nested Recursion for Length Generalization with Scalability8 Nov 2023
- 2022LSG Attention: Extrapolation of pretrained Transformers to long sequences13 Oct 2022
- 2022Exploring and Exploiting Multi-Granularity Representations for Machine Reading Comprehension18 Aug 2022
- 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goes27 Apr 2022
- 2021One model Packs Thousands of Items with Recurrent Conditional Query Learning12 Nov 2021
- 2021IBERT: Idiom Cloze-style reading comprehension with Attention5 Nov 2021
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottlenecks13 Jul 2021
- 2021Attention, please! A survey of Neural Attention Models in Deep Learning31 Mar 2021
- 2021Nested-block self-attention for robust radiotherapy planning segmentation26 Feb 2021