Sparse Transformer

Method · 2019

Definition

“Transformers are powerful sequence models, but require time and memory that grows quadratically with the sequence length.”

From the defining paper: Generating Long Sequences with Sparse Transformers (Rewon Child, Scott Gray, Alec Radford, et al., arXiv preprint).

Lineage

Parent: Transformer (scaled dot-product attention)

Children: none in this seed

Incoming edges (1)

extends · computational complexity

From Transformer (scaled dot-product attention) · confidence 1 (All three quotes are verbatim substrings of the to-paper abstract; confidence 1.0.)

Bottleneck
“require time and memory that grows quadratically with the sequence length” Source: Generating Long Sequences with Sparse Transformers
Mechanism
“sparse factorizations of the attention matrix” Source: Generating Long Sequences with Sparse Transformers
Trade-off
“the recomputation of attention matrices to save memory” Source: Generating Long Sequences with Sparse Transformers

Outgoing edges (3)

extends · scalability

To Longformer · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“Transformer-based models are unable to process long sequences” Source: Longformer: The Long-Document Transformer
Mechanism
“combines a local windowed attention with a task motivated global attention” Source: Longformer: The Long-Document Transformer
Trade-off
No trade-off quoted.

compares · memory efficiency

To Reformer · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“training these models can be prohibitively costly” Source: Reformer: The Efficient Transformer
Mechanism
“which allows storing activations only once in the training process” Source: Reformer: The Efficient Transformer
Trade-off
No trade-off quoted.

compares · scalability

To Big Bird · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“one of their core limitations is the quadratic dependency (mainly in terms of memory) on the sequence length” Source: Big Bird: Transformers for Longer Sequences
Mechanism
“a sparse attention mechanism that reduces this quadratic dependency to linear” Source: Big Bird: Transformers for Longer Sequences
Trade-off
No trade-off quoted.

Back to the explorer