The underlying structures of self-attention : symmetry, directionality, and emergent dynamics in Transformer training

Self-attention is essential to Transformer architectures, yet how information is embedded in the self-attention matrices and how different objective functions impact this process remains unclear. We present a mathematical framework to analyze self-attention matrices by deriving the structures governing their weight updates. Using this framework, we demonstrate that bidirectional training induces symmetry in the weight matrices, while autoregressive training results in directionality and column dominance. Our theoretical findings are validated across multiple Transformer models—including ModernBERT, GPT, LLaMA3, and Mistral—and input modalities like text, vision, and audio. Finally, we apply these insights by showing that symmetric initialization improves the performance of encoder-only models on language tasks. This mathematical analysis offers a novel theoretical perspective on how information is embedded through self-attention, thereby improving the interpretability of Transformer models.

Publication Details

Journal
Zürcher Hochschule für Angewandte Wissenschaften digital collection (Zurich University of Applied Sciences)
Published
2025-07-13
DOI
https://doi.org/10.21256/zhaw-33652
Primary Topic
Language and cultural evolution
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The underlying structures of self-attention : symmetry, directionality, and emergent dynamics in Transformer training

Zürcher Hochschule für Angewandte Wissenschaften digital collection (Zurich University of Applied Sciences)
Language and cultural evolution
article

The underlying structures of self-attention : symmetry, directionality, and emergent dynamics in Transformer training

article en

Abstract

Self-attention is essential to Transformer architectures, yet how information is embedded in the self-attention matrices and how different objective functions impact this process remains unclear. We present a mathematical framework to analyze self-attention matrices by deriving the structures governing their weight updates. Using this framework, we demonstrate that bidirectional training induces symmetry in the weight matrices, while autoregressive training results in directionality and column dominance. Our theoretical findings are validated across multiple Transformer models—including ModernBERT, GPT, LLaMA3, and Mistral—and input modalities like text, vision, and audio. Finally, we apply these insights by showing that symmetric initialization improves the performance of encoder-only models on language tasks. This mathematical analysis offers a novel theoretical perspective on how information is embedded through self-attention, thereby improving the interpretability of Transformer models.

Zürcher Hochschule für Angewandte Wissenschaften digital collection (Zurich University of Applied Sciences)
Quality Education
Openalex Percentile: Top 50%
Language and cultural evolution
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

The underlying structures of self-attention : symmetry, directionality, and emergent dynamics in Transformer training · Zürcher Hochschule für Angewandte Wissenschaften digital collection (Zurich University of Applied Sciences) (2025) | TGRS Research Map | TGRS