Home Knowledge Base Block-Recurrent Transformer

Block-Recurrent Transformer is the hybrid architecture that partitions input sequences into fixed-size blocks, applies full transformer self-attention within each block, and passes a learned recurrent state between blocks to propagate long-range context — combining the high-quality local attention of transformers with the unbounded-length capability of recurrent networks, enabling processing of arbitrarily long sequences with bounded O(block_size²) memory per step.

What Is a Block-Recurrent Transformer?

Why Block-Recurrent Transformer Matters

Block-Recurrent Architecture

Forward Pass Per Block:

Recurrent State Mechanisms:

Comparison With Other Long-Context Methods

MethodContextCompute/StepParallelizableState
Full TransformerFixed windowO(n²)Fully parallelNone
Transformer-XLWindow + cacheO(n × (n+cache))Parallel within windowCache
Block-RecurrentUnboundedO(B²)Parallel within blockRecurrent state
Pure RNN (Mamba)UnboundedO(n)SequentialRecurrent state

Block-Recurrent Transformer is the architectural bridge between the transformer and recurrent paradigms — partitioning the challenging problem of long-range sequence modeling into a solved local problem (transformer attention within blocks) and a manageable global problem (recurrent state between blocks), achieving unbounded context with bounded resources.

block-recurrent transformerllm architecture

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.