cs.LGMar 10, 2026
SaveExclusive Self Attention
Organizations: Apple
Abstract
We introduce exclusive self attention (XSA), a simple modification of self attention (SA) that improves Transformer's sequence modeling performance. The key idea is to constrain attention to capture only information orthogonal to the token's own value vector (thus excluding information of self position), encouraging better context modeling. Evaluated on the standard language modeling task, XSA consistently outperforms SA across model sizes up to 2.7B parameters and shows increasingly larger gains as sequence length grows.
Figures & tables
Figure 1: Visualization of the attention similarity bias of a 1.3B parameter language model of sequence length 2048 trained for 100B tokens, aggregated on 1024 random training sequences. Left : the average cosine similarity of value vectors , within a sequence; middle : the average diagonal attention value ; right : the average cosine similarity of attention output and the self value vector . See Eq. 1 for notations.
Figure 2: Time and memory efficiency of XSA compared to standard attention. XSA introduces minimal computational overhead across various sequence lengths and model sizes .
| Model Size | Learning Rate | ||||
|---|---|---|---|---|---|
| 0.7B | 24 | 1536 | 6 | 256 | |
| 1.4B | 24 | 2048 | 24 | 128 | |
| 2.7B | 32 | 2560 | 24 | 128 |
Table 1: Architectures and learning rates. All models are trained with a batch size of tokens, for a total of 200K iterations.
Figure 3: Training and validation loss curves of XSA against the baseline Transformer for three model sizes.
| Model | ARC-E | BoolQ | HSwag | LAMBADA | OBQA | PIQA | SocIQA | WinoGr | Avg | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| 0.7B | ||||||||||
| Baseline | 51.26 | 61.07 | 55.68 | 52.82 | 35.00 | 74.05 | 40.02 | 55.88 | 53.22 | +0.26 |
| XSA | 52.69 | 61.19 | 56.29 | 54.07 | 32.20 | 73.78 | 41.45 | 56.20 | 53.48 | |
| 1.3B | ||||||||||
| Baseline | 56.19 | 65.47 | 60.69 | 56.24 | 34.60 | 75.90 | 41.40 | 58.80 | 56.16 | +1.03 |
| XSA | 58.84 | 62.29 | 62.41 | 58.57 | 36.00 | 76.61 | 42.84 | 59.98 | 57.19 | |
Table 2: Downstream evaluation results of XSA vs baseline Transformer.
Figure 4: Training and validation loss of XSA against the baseline Transformer for various learning rates evaluated with the 1.3B model.
Figure 5: Training and validation loss of XSA against the baseline Transformer for various sequence lengths evaluated with the 1.3B model.
Figure 6: Training and validation loss of XSA against the baseline Transformer for various number of Attention Sinks evaluated with the 1.3B model.
More in this topic
Self-Attention
Self-attention lets sequence elements exchange context through learned query-key matches, powering Transformers and their efficient variants.
See all 222 papers