Krause Synchronization Transformers

Jingkun Liu, Yisong Yue, Max Welling, Yue Song

TL;DR

This paper introduces Krause Attention, a novel self-attention mechanism for Transformers that replaces global similarity-based aggregation with localized, distance-based interactions. This approach, inspired by bounded-confidence consensus dynamics, promotes structured multi-cluster synchronization, mitigating representation collapse and attention sink phenomena while reducing computational complexity.

What Problem Does This Paper Address?

Standard Transformer self-attention relies on globally normalized softmax weights, forcing all tokens to compete for influence. When this mechanism is stacked across layers, it leads to strong synchronization dynamics that favor convergence towards a single dominant mode. This can result in "representation collapse," where token representations become too similar, and "attention sink phenomena," where attention mass concentrates on a few tokens, limiting model expressivity and robustness. The authors aim to address this by proposing a more principled way for tokens to interact, one that encourages diversity and structured coordination rather than global homogenization.

Methods

The core innovation is Krause Attention, which draws inspiration from the Krause consensus model. Instead of using query-key dot-product similarity, Krause Attention uses the Euclidean distance between query and key representations. This distance is then mapped to interaction strengths using a radial basis function (RBF) kernel, creating unnormalized affinity scores. These scores are then subjected to two key constraints:

  1. Local Interactions: Attention is restricted to a predefined neighborhood ($N_i$) for each token.
  2. Selective Top-k Sparsity: Within this local neighborhood, only the top-k most similar tokens are considered.

These constraints enforce a "bounded-confidence" interaction pattern, where tokens primarily interact with their closest neighbors, mimicking how agents in the Krause model only influence those within a certain confidence radius. This approach naturally leads to a reduction in computational complexity from quadratic to linear in sequence length.

Datasets

The paper evaluates Krause Attention across a wide range of tasks and datasets:

  • Image Classification: CIFAR-10, CIFAR-100, Fashion-MNIST, ImageNet-1K.
  • Image Generation: MNIST, CIFAR-10.
  • Language Modeling:
    • LLMs Finetuned with LoRA: Qwen1.5-7B, Llama3-8B.
  • LLMs Trained from Scratch: 100M, 200M, and 500M parameter models.
  • Language Understanding Benchmarks: BoolQ, CB, PIQA, MNLI, ANLI (R1-R3), MMLU-Pro, IFEval, LongBench, LAMBADA, CBT, Blimp, Hellaswag, ARC-Easy.

Key Insights and Ideas

  • Bounded-Confidence Dynamics as an Inductive Bias: The paper argues that bounded-confidence dynamics, inspired by consensus models, provide a powerful and scalable inductive bias for Transformer attention, promoting structured local synchronization over global mixing.
  • Mitigating Attention Sinks and Representation Collapse: By restricting interactions to local neighborhoods and enforcing sparsity, Krause Attention prevents the global synchronization that leads to attention sinks and representation collapse, preserving token diversity.
  • Multi-Cluster Behavior: Krause Attention naturally encourages the formation of stable, multi-cluster representations, where tokens self-organize into coherent groups without collapsing into a single dominant mode. This is theoretically linked to the reducibility of the attention matrix into block-diagonal forms.
  • Efficiency Gains: The localized and sparse nature of Krause Attention significantly reduces computational complexity, making it more efficient than standard self-attention, especially for long sequences.
  • Compatibility with Positional Encodings: The paper suggests that relative positional encoding schemes like RoPE are particularly compatible with distance-based attention mechanisms, leading to further performance improvements.

Key Results

  • Vision Transformers (ViTs): KViTs consistently outperform standard ViTs on CIFAR-10/100, Fashion-MNIST, and ImageNet-1K, achieving accuracy improvements of up to +3.0% while reducing FLOPs by approximately 30%.
  • Autoregressive Image Generation: KARMs achieve better likelihood (lower BPD) than standard ARMs and significantly faster inference speeds, while maintaining competitive visual quality.
  • Large Language Models (LLMs):
    • Finetuned LLMs: Krause Attention shortcuts improve performance on a wide range of language understanding benchmarks for Llama3-8B and Qwen1.5-7B, often outperforming LoRA finetuning alone.
  • Trained from Scratch: Krause Attention consistently improves performance and efficiency across various model scales (100M-500M parameters).
  • Efficiency: Krause Attention reduces computational complexity from O(N²) to O(NWd) (where W is window size), leading to significant FLOP reductions (e.g., ~30% in ViTs).

Limitations and Future Work

  • Hyperparameter Tuning: Krause Attention introduces task-dependent hyperparameters (local window size, top-k sparsity, RBF scale $\sigma$). While the RBF scale is found to be robust, systematic strategies for automatic or adaptive hyperparameter selection are suggested as future work.
  • Integration with LLMs: In language modeling experiments, Krause Attention was primarily used as an auxiliary pathway. Deeper integration without standard attention is proposed as a future direction.
  • Theoretical Scope: The theoretical analysis focuses on idealized continuous-time and mean-field formulations, characterizing asymptotic behavior. Extending these analyses to finite-depth, finite-width networks is a potential area for future research.

Summary updated

BibTeX
@inproceedings{liu2026krause,
  author = {Jingkun Liu and Yisong Yue and Max Welling and Yue Song},
  title = {{Krause Synchronization Transformers}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=rhX58pEFNd},
}

Loading related content...

Figure