atlas

Research map / Architectures and efficiency / Attention and transformers

Attention-based clustering

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Studies linear (and softmax-free) attention heads for unsupervised clustering of Gaussian mixtures, showing projected gradient descent on a quantization-style risk recovers true centroids and that a parameter-free identity-QKV attention performs in-context quantization.

Problem

Understanding whether attention layers can extract cluster structure in an unsupervised setting, where tokens are drawn from a Gaussian mixture without labels, and how training dynamics behave.

Approach

Model a two-head linear attention layer whose key/query vectors act as cluster centroid estimators; train it by minimizing a quantization-style reconstruction risk with projected gradient descent on the sphere, and show that with identity values and parameter-free attention (in-context setting) the layer still performs approximate quantization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Initialize the two-head attention parameters on the manifold M rather than randomly outside it (ablation)Two-head linear attention trained without regularization · Gaussian mixturedistance to centroids: around 10^{-2} (σ = 0.3); around 10^{-1} (σ = 1)Helped
Add orthogonality regularization to training (ablation)Two-head linear attention with random unit-sphere initialization · Gaussian mixturedistance to centroids: near 10^{-3} for σ = 0.3; near 10^{-1} for σ = 1Helped
Increase regularization strength until it overrides the original objective (ablation)Regularized two-head linear attention · Gaussian mixturealignment with true centroidsHurt
Use random unit-sphere initialization outside the manifold instead of manifold initialization (ablation)Two-head linear attention trained without regularization · Gaussian mixturealignment with true centroidsHurt
Use standard projected SGD heuristics instead of Riemannian updates (ablation)Two-head linear attention · Gaussian mixturetraining behaviorNo clear effect
Remove the projection step (ablation)Two-head linear attention optimization · Gaussian mixturetraining behaviorHurt
Replace learned two-head parameters with the identity-parameter in-context attention layer (ablation)Attention-based quantization · In-context Gaussian mixture, L→∞risk: \left(1-\frac{2}{d}\right)\frac{1+2\sigma^2}{1+6\sigma^2+12\sigma^4+4d\sigma^6}Helped
Extend the regularized attention model from two clusters to three heads and centroids (ablation)Regularized linear attention · Three-centroid mixturecentroid recoveryHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian mixture data synthetic Dirac mixture data

Metrics: distance to centroids (up to sign and permutation) quantization risk conditional variance of embedding

Baselines: optimal quantizer T* PCA estimator

Builds on: in-context learning theory of linear attention Gaussian sequence multi-index models projected Riemannian gradient descent

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy