A Reproduction Study: The Kernel PCA Interpretation of Self-Attention Fails Under Scrutiny

In this reproduction study, we revisit recent claims that self-attention implements kernel principal component analysis (KPCA) (Teo and Nguyen, 2024), positing that (i) value vectors V capture the eigenvectors of the Gram matrix of the keys, and (ii) that self-attention projects queries onto the principal component axes of the key matrix K in a feature space.Our analysis reveals three critical inconsistencies: (1) No alignment exists between learned self-attention value vectors and what is proposed in the KPCA perspective, with average similarity metrics (optimal cosine similarity 0.32, linear CKA (Centered Kernel Alignment) 0.11, kernel CKA 0.32) indicating negligible correspondence; (2) Reported decreases in reconstruction loss J proj , arguably justifying the claim that the self-attention minimizes the projection error of KPCA, are misinterpreted, as the quantities involved differ by orders of magnitude ( 10 3 ); (3) Gram matrix eigenvalue statistics, introduced to justify that V captures the eigenvector of the gram matrix, are irreproducible without undocumented implementation-specific adjustments.Across 10 transformer architectures, we conclude that the KPCA interpretation of self-attention lacks empirical support.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-srw.11
Primary Topic
Neural and Behavioral Psychology Studies
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Reproduction Study: The Kernel PCA Interpretation of Self-Attention Fails Under Scrutiny

Çağatay Yıldız, Karahan Sarıtaş
Neural and Behavioral Psychology Studies
article

A Reproduction Study: The Kernel PCA Interpretation of Self-Attention Fails Under Scrutiny

Çağatay Yıldız, Karahan Sarıtaş
article en

Abstract

In this reproduction study, we revisit recent claims that self-attention implements kernel principal component analysis (KPCA) (Teo and Nguyen, 2024), positing that (i) value vectors V capture the eigenvectors of the Gram matrix of the keys, and (ii) that self-attention projects queries onto the principal component axes of the key matrix K in a feature space.Our analysis reveals three critical inconsistencies: (1) No alignment exists between learned self-attention value vectors and what is proposed in the KPCA perspective, with average similarity metrics (optimal cosine similarity 0.32, linear CKA (Centered Kernel Alignment) 0.11, kernel CKA 0.32) indicating negligible correspondence; (2) Reported decreases in reconstruction loss J proj , arguably justifying the claim that the self-attention minimizes the projection error of KPCA, are misinterpreted, as the quantities involved differ by orders of magnitude ( 10 3 ); (3) Gram matrix eigenvalue statistics, introduced to justify that V captures the eigenvector of the gram matrix, are irreproducible without undocumented implementation-specific adjustments.Across 10 transformer architectures, we conclude that the KPCA interpretation of self-attention lacks empirical support.

Deutsche Forschungsgemeinschaft
Gender equality
Openalex Percentile: Top 81%
Neural and Behavioral Psychology Studies
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.

A Reproduction Study: The Kernel PCA Interpretation of Self-Attention Fails Under Scrutiny — Çağatay Yıldız, Karahan Sarıtaş · (2025) | TGRS Research Map | TGRS