arXiv:2608.20172cs.LGAug 2026

Manuscript Offprint

arXiv:2608.20172

Ask Self, Ask Others: Relation Is All You Need

Yuting Ge, Pengju Yang, Mingkai Nie

Abstract

Attention dominates token mixing, but it collapses relation formation and flow allocation into a single score-to-flow step. We introduce Relation, which separates them by first organizing pairwise evidence into explicit Self and Exchange relations and deriving information flow afterward. Relation first decides whether a token should rely on itself or draw from its history, and if it draws from history, where to look. This relational organization gives rise to Full Relation, FlashRelation, Linear Relation, and Hybrid Relation. Across matched decoder-only models, Full Relation achieves lower mean final-validation NLL than MHA and reaches the paired MHA final training loss with 4.5–7.3% fewer tokens. Structural diagnostics further show that Relation learns a distinct depth organization: the first layer acts as a current-token anchor and a high-rank router, while later layers shift strongly toward history. In a fixed-context reference benchmark, FlashRelation is 4.17–5.28×4.17\text{--}5.28\times faster than the materialized Full Relation implementation. Across scale-matched production workloads, it reaches 89.7–92.9%89.7\text{--}92.9\% of PyTorch FlashAttention throughput while executing the exact Full Relation operator. Hybrid Relation demonstrates that Full and Linear Relation layers can be composed within a single decoder. These results support a relation-first view of token mixing: ask Self, ask Others, then let Flow follow Relation.

† These authors contributed equally. ∗ Corresponding author.

Keywords: Relation, Self–Exchange Relation, Token Mixing, Language Modeling, Efficient Sequence Modeling

1 Introduction

In scaled dot-product Attention, each head maps the interaction between two projected token states to a scalar score (Vaswani et al., 2017),

Uij=qi⊤kjdh,Fi=Softmax⁡(Ui).U_{ij}=\frac{q_{i}^{\top}k_{j}}{\sqrt{d_{h}}},\qquad F_{i}=\operatorname{Softmax}(U_{i}).

Token interactions in language are heterogeneous, but Attention reduces each pairwise interaction to a single scalar. The scalar carries too much: the same UijU_{ij} must encode whatever relational structure matters and directly determine information flow. Relation formation and flow allocation are therefore compressed into a single U ⁣→ ⁣FU\!\rightarrow\!F step.

Attention itself was not always primary. It first appeared as an auxiliary mechanism within recurrent encoder–decoder models before becoming the organizing primitive of the Transformer (Bahdanau et al., 2015; Vaswani et al., 2017). Relation-aware Attention places relation in a similarly subordinate position. Shaw et al. (2018) augment self-attention with pairwise relation representations, but relation is still inside Attention. Attention remains primary: it incorporates relation into its own computation and still determines the flow. We reverse this hierarchy: Flow follows Relation.

Figure 1: Overview of Relation.

We begin by partitioning each causal Relation row into two minimal structural roles: Self and Exchange. Self describes a token’s relation with itself, while Exchange describes its relation with other tokens. Pairwise evidence is mapped into these two roles before normalization, and the resulting entries are assembled into a causal Relation matrix RR. Normalized information flow FF is derived only afterward. This defines the basic Self–Exchange Relation (SER) operator, which extends naturally to Multi-Head Relation (MHR). This explicit organization also exposes further forms of Relation in practice: Full Relation retains explicit token-wise history, FlashRelation factorizes it for tiled execution, Linear Relation compresses historical Others into a recurrent state, and Hybrid Relation combines Full and Linear layers.

We evaluate Relation in matched decoder-only models at approximately 10M, 30M, and 100M parameters. Full Relation improves mean final-validation NLL at all three scales. Structural ablations examine its behavior, while FlashRelation, Linear Relation, and Hybrid Relation demonstrate practical implementations of the framework (Figure 1). Our main contributions are:

  • We introduce Self–Exchange Relation (SER) and Multi-Head Relation (MHR) as Relation operators for token mixing.
  • We characterize Self–Exchange flow and derive its exact factorization into Self mass, aggregate Exchange mass, and allocation within historical Exchange. Matched structural diagnostics further show that Relation learns an internal organization distinct from Attention.
  • Building on Relation’s distinct relational organization, we develop Relation-specific practical forms, including FlashRelation, Linear Relation, and Hybrid Relation, to make the framework practical across exact fused, recurrent, and hybrid execution.