mlsanityData to 14 Oct 2026

ComplexFormer: Disruptively Advancing Transformer Inference Ability via Head-Specific Complex Vector Attention

arXiv 2505.10222 ↗First posted 15 May 2025cs.LG cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformer models rely on self-attention to capture token dependencies but face challenges in effectively integrating positional information while allowing multi-head attention (MHA) flexibility. Prior methods often model semantic and positional differences disparately or apply uniform positional adjustments across heads, potentially limiting representational capacity. This paper introduces ComplexFormer, featuring Complex Multi-Head Attention-CMHA. CMHA empowers each head to independently model semantic and positional differences unified within the complex plane, representing interactions as rotations and scaling. ComplexFormer incorporates two key improvements: (1) a per-head Euler transformation, converting real-valued query/key projections into polar-form complex vectors for head-specific complex subspace operation; and (2) a per-head adaptive differential rotation mechanism, exp[i(Adapt(ASmn,i) + Delta(Pmn),i)], allowing each head to learn distinct strategies for integrating semantic angle differences (ASmn,i) with relative positional encodings (Delta(Pmn),i). Extensive experiments on language modeling, text generation, code generation, and mathematical reasoning show ComplexFormer achieves superior performance, significantly lower generation perplexity , and improved long-context coherence compared to strong baselines like RoPE-Transformers. ComplexFormer demonstrates strong parameter efficiency, offering a more expressive, adaptable attention mechanism.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 21 of its 26 references that are in the map. First posted on arXiv 15 May 2025.

Builds on

21 of 26 references.

References · 21

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  7. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  8. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  9. 2016Layer Normalizationcited by 5,669
  10. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  11. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  12. 2021Program Synthesis with Large Language Modelscited by 3,637
9 more
  1. 2016Pointer Sentinel Mixture Modelscited by 3,096
  2. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  3. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  4. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  5. 2018Self-Attention with Relative Position Representationscited by 1,120
  6. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  7. 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,077
  8. 2022The Stack: 3 TB of permissively licensed source codecited by 359
  9. 2017Deep Complex Networkscited by 217

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024TAB: Transformer Attention Bottlenecks enable User Intervention and Debugging in Vision-Language Models
  2. 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuits
  3. 2024Talking Heads: Understanding Inter-layer Communication in Transformer Language Models
  4. 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization
  5. 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformers
  6. 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Models
  7. 2024MoH: Multi-Head Attention as Mixture-of-Head Attention
  8. 2026Linear Predictability of Attention Heads in Large Language Models