Non Linear Sum Attention

Standard Transformer architectures rely on variants of Multi-Head Attention (MHA) followed by a dense Multi-Layer Perceptron (MLP). While effective, standard Transformers enforce a strict disconnect between token-level context mixing and position-wise feature transformation. Furthermore, they exhibit structural inefficiencies on algorithmic tasks, requiring tens of thousands of training epochs to transition from rote memorization to generalization. In this paper, we introduce Non-Linear Sum Attention (NLSA), an architecture that addresses this limitation by delegating position-wise transformation to the value matrix, applying non-linear functions to the final attention output, and taking a gated sum over all heads. We additionally introduce Multi-Head Latent Sum Attention (MLSA) to address the problem of KV cache blowup in NLSA. MLSA also achieves the lowest mean and median grokking times among the tested architectures on Multi-Query Associative Recall, significantly outperforming standard Transformers.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-30
DOI
https://doi.org/10.5281/zenodo.23813890
Primary Topic
Topic Modeling
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Non Linear Sum Attention

E. M. Lee
1 links
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
preprint

Non Linear Sum Attention

E. M. Lee
preprint en

Abstract

Standard Transformer architectures rely on variants of Multi-Head Attention (MHA) followed by a dense Multi-Layer Perceptron (MLP). While effective, standard Transformers enforce a strict disconnect between token-level context mixing and position-wise feature transformation. Furthermore, they exhibit structural inefficiencies on algorithmic tasks, requiring tens of thousands of training epochs to transition from rote memorization to generalization. In this paper, we introduce Non-Linear Sum Attention (NLSA), an architecture that addresses this limitation by delegating position-wise transformation to the value matrix, applying non-linear functions to the final attention output, and taking a gated sum over all heads. We additionally introduce Multi-Head Latent Sum Attention (MLSA) to address the problem of KV cache blowup in NLSA. MLSA also achieves the lowest mean and median grokking times among the tested architectures on Multi-Query Associative Recall, significantly outperforming standard Transformers.

Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon