PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 16, 20250 citationsOpen Access

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

View Full Paper
JSJiahang ShaoHHHongyi HuangJWJiayi Wu

Key Points

  • ComplexFormer offers distinct strategies for integrating semantic and positional information, enhancing performance.
  • The model significantly reduces generation perplexity, yielding lower error rates compared to RoPE-Transformers.
  • By utilizing complex multi-head attention, it allows each head to model differences in a unified complex plane.
  • Transformations introduced in ComplexFormer enhance both flexibility and expressiveness in token dependency modeling.

Abstract

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, expi(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.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Shao et al. (2025) studied this question.

synapsesocial.com/papers/68f147cc724575985c3fd392https://doi.org/10.48550/arxiv.2505.10222
Ask AI
Helpful
Bookmark
Share
View Full Paper