atlas

Research map / Architectures and efficiency / Attention and transformers

Data-Adaptive Mahalanobis Metric Learning for Cross-Head Attention in Transformers

NeurIPS 2026 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign

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.

Proposes DAMCHA, an attention mechanism that replaces MHA's query-key similarity with a learned, input-dependent full cross-head Mahalanobis-like metric matrix shared across layers, reporting gains on generation, GPT-2 pretraining and ViT ImageNet.

Problem

Standard multi-head attention uses block-diagonal, input-independent, low-rank similarity metrics, ignoring cross-head interactions and input-adaptive geometry.

Approach

Learn the full cross-head metric matrix M(X) generated by a shared MLP metric generator from the input; each head's score uses the row-sum of its block row, X m_i(X) X^T, with stack-wise sharing of the generator across layers.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100 WMT14 CommonGen Enwik8 Text8 ImageNet-1K

Benchmarks: CIFAR-10 CIFAR-100 WMT CommonGen Enwik8 Text8 Mix ImageNet-1K

Metrics: MSE FID FID@Top-50 NLL BARTScore BARTScore@Top-50 cross-entropy loss PPL Top-1 accuracy Top-5 accuracy

Baselines: MHA THA DCMHA ColMHA MMA MoA

Builds on: multi-head attention DCMHA THA MMA

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