Pages and contents
Pages
- Non-Generative World Model Research
- Literature Review
- Literature Notes
- Attention
- Mamba3VL
- Fast Multipole Attention (FMA)
- Mamba SSM
- SEMA
- VMamba
- VideoSEMA
- Fast Decoding in Sequence Models
- Memory
- Planning
- Reviews
- Reinforcement Learning
- World Model Papers
- Biological
- World Models
- Representation
- Training
- Template
- Important Concepts
- Models
- Resources
SEMA
0\. Metadata
Field | Value | |
|---|---|---|
| ⋮⋮ | Authors | Tran, Xue, Zhang |
| ⋮⋮ | Year | 2026 |
| ⋮⋮ | Link / arXiv | https://arxiv.org/pdf/2506.08297 |
| ⋮⋮ | Code | https://github.com/nhatthanhtran/SEMA |
| ⋮⋮ | My relevance (1-5) | 5 |
| ⋮⋮ | Tags | #ssm #transformer #video #mamba #sema |
1\. Main Idea
The authors introduce a scalable architecture that computes the traditional attention mechanism within a small spatial window, then performs an average over the rest of the tokens. This is computationally efficient and avoids the “dispersion” property that the authors define rigorously.
2\. Problem
Softmax attention algorithms scale quadratically with context windows. Mamba provides a performant linear scaling state space model, but performance tends to degrade at downstream tasks involving high pixel image and video understanding. SEMA proposes a Mamba inspired linear attention mechanism that shows competitive performance on machine learning tasks.
3\. Background
Normalized Attention
Let , . Define as
Observe that when .
We can define a generalized attention mechanism, Normalized Attention. Let be the key, query, value matrices. Let and be continuous. The general Normalized Attention mechanism is as follows.
If are identity and then this is vanilla softmax full attention. If and , then this is linear attention.
Dispersion
For a query the generalized attention assigns the key the weight
Under the paper's topological assumptions that the input feature space is bounded/compact and the attention functions are continuous, for every , there exists a sufficiently large sequence length such that
More specifically, each normalized attention coefficient scales as . Therefore, as the number of keys increases, no individual key can retain a fixed nonzero fraction of a query's attention. The distribution becomes increasingly diffuse, or dispersed. This does not mean that all finite weights are exactly equal, it means that every individual weight approaches zero at approximately the scale.
Mamba is an architecture that does not disperse. To see this, we can write a simplified Mamba recurrence as. Expanding the recurrence gives
Mamba does not normalize all previous token contributions using a denominator that grows with sequence length. Instead, older information is selectively forgotten through products of the transition factors \\(\\bar A_r\\). Adding more tokens after position also does not alter . Mamba therefore exhibits recurrent forgetting rather than normalized-attention dispersion.
The SEMA architecture is intentionally designed to avoid the dispersion property of vanilla softmax attention.
4\. Method
SEMA combines local window attention with a global value average
The first term in the equation is commonly denoted .
The local attention does not disperse as the full sequence grows because each query attends only to a fixed-size window. Its normalization denominator contains a fixed number of keys rather than all keys. The global branch intentionally uses arithmetic averaging. This equation directly approximates the diffuse, low-frequency global component that full attention approaches in the large-token regime. SEMA therefore preserves selective local processing through window attention while supplying global information through a cheap broadcast average.