Research & Papers

Gaussian Mixture Attention slashes Transformer complexity to linear time

New attention mechanism uses Gaussian routing to bypass N² bottleneck.

Deep Dive

Standard dot-product attention scales quadratically with sequence length, a major bottleneck for long-context Transformers. Gaussian Mixture Attention (GMA) tackles this by replacing explicit pairwise query-key comparison with a probabilistic routing mechanism. Queries and keys map to posterior responsibility vectors over K learned Gaussian mixture components. Their overlap defines an implicit affinity, while values are written to and read from a K-slot latent memory. By exploiting matrix associativity, GMA avoids materializing the N×N affinity matrix, using two responsibility matrices with O(NK) storage instead of O(N^2). The authors formulate bidirectional and causal variants, provide differentiable parameterization, and analyze gradient structure and local routing stability.

Empirically, GMA demonstrates the intended fixed-K linear memory scaling and performs competitively with attention-style baselines on long-context classification tasks. Causal GMA improves over tested linear/random-feature attention variants on WikiText-103 but remains behind optimized causal softmax attention and Mamba in current implementation. Analysis of learned responsibilities shows broad component usage and moderate alignment with token categories, suggesting GMA offers a probabilistic, interpretable alternative rather than a universal replacement. The paper, with 55 pages, provides thorough theoretical grounding and opens a new direction for efficient sequence mixing.

Key Points
  • Replaces explicit pairwise query-key dot product with probabilistic routing through K Gaussian mixture components.
  • Memory scales linearly O(NK) vs quadratic O(N²) for standard attention.
  • Causal GMA outperforms linear/random-feature attention on WikiText-103 but lags behind optimized softmax attention and Mamba.

Why It Matters

GMA offers a scalable, interpretable attention alternative for long-context Transformers, potentially enabling longer sequences.

📬 Get the top 10 AI stories daily