The Transformer architecture has become the foundation of modern deep learning, yet its core self-attention mechanism suffers from quadratic computational complexity and lacks grounding in biological neural computation. We propose Selective Synchronization Attention (SSA), a novel attention mechanism that replaces the standard dot-product self-attention with a closed-form operator derived from the steady-state solution of the Kuramoto model of coupled oscillators. In SSA, each token is represented as an oscillator characterized by a learnable natural frequency and phase; the synchronization strength between token pairs, determined by a frequency-dependent coupling and phase-locking condition, serves as the attention weight. This formulation provides three key advantages: (i) natural sparsity arising from the phase-locking threshold, whereby tokens with incompatible frequencies automatically receive zero attention weight without explicit masking; (ii) unified positional-semantic encoding through the natural frequency spectrum, eliminating the need for separate positional encodings; and (iii) a single-pass, closed-form computation that avoids iterative ODE integration, with all components (coupling, order parameter, synchronization) derived from the oscillatory framework. We instantiate SSA within the Oscillatory Synchronization Network (OSN), a drop-in replacement for the Transformer block. Analysis of the synchronization matrices reveals non-uniform, head-diverse coupling patterns even at initialization, demonstrating a stronger architectural inductive bias than the approximately uniform attention produced by randomly initialized Transformers.
Figures & tables
Figure 1: Selective Synchronization Attention: conceptual illustration for the sentence “The cat sat on the mat.” (a) Phase space: tokens are represented as oscillators on the phase circle. Tokens with similar natural frequencies ( ω1 or ω2 ) synchronize into coherent clusters (red and blue), enabling information exchange via solid connections. Adjacent tokens from different clusters (“sat” and “on”) remain desynchronized ( Sij=0 , dashed line), producing natural sparsity. (b) Frequency space: the two clusters occupy distinct regions, separated by the phase-locking threshold ∣Δω∣>KrJ . (c) Synchronization matrix S : the resulting block-diagonal structure, with strong within-cluster synchronization and zero cross-cluster weights.
Figure 2: Architecture comparison. Left: Standard Transformer block with multi-head dot-product attention and explicit positional encoding. Right: OSN block with Multi-Frequency Synchronization Heads using the closed-form phase-alignment operator. The blocks share identical input-output interfaces ( RN×D→RN×D ), enabling drop-in replacement.
Figure 3: Single-block GPU benchmark (NVIDIA A100, Google Colab). Left: Throughput (K tokens/sec) vs. sequence length. Center: Forward pass latency (ms). Right: Peak GPU memory (MB). Batch sizes adapted per sequence length ( B=8 for N≤512 ; B=4,2,1 for N=1024,2048,4096 ). Configuration: D=512 , H=8 , k=64 for sparse variant. Each measurement averaged over 50 trials with 10 warmup iterations.
K tok/s ( ↑ )
Memory ( ↓ )
N
B
TF
D
S
TF
D
S
128
8
1033
665
638
313
345
351
256
8
1527
1118
788
353
481
493
512
8
1636
950
700
481
993
1017
1024
4
1334
593
457
609
1633
1657
2048
2
977
350
277
865
2913
2937
Table 1: Single-block GPU benchmark (NVIDIA A100). N = sequence length, B = batch size. TF = Transformer, D = OSN dense, S = OSN sparse ( k=64 ). Throughput in K tokens/sec ( ↑ ); peak memory in MB ( ↓ ).
Figure 4: Synchronization matrices S(h) from eight Multi-Frequency Synchronization Heads for a randomly initialized OSN block ( D=512 , H=8 , NVIDIA A100). Each panel shows the first 128×128 tokens of a 512-length sequence. The diagonal reflects self-synchronization ( Sii=1 ), while off-diagonal values encode the frequency-dependent coupling and phase-locking condition. Different heads exhibit distinct synchronization profiles, demonstrating multi-frequency head diversity.
Figure 5: Distribution of the empirical order parameter r across eight synchronization heads, computed from 100 random input samples ( N=256 , D=512 , NVIDIA A100). The order parameter concentrates around r≈0.847 with low variance ( σ≈0.002 ), demonstrating stable emergent phase coherence consistent with the Kuramoto formulation.