Pith. sign in

REVIEW 2 cited by

Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2406.13762 v2 pith:DVJYF5YV submitted 2024-06-19 cs.LG cs.AIcs.CLcs.CVstat.ML

classification cs.LGcs.AIcs.CLcs.CVstat.ML
keywords self-attentionattentionkernelmatrixprincipalcomponentanalysisempirically
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

The remarkable success of transformers in sequence modeling tasks, spanning various applications in natural language processing and computer vision, is attributed to the critical role of self-attention. Similar to the development of most deep learning models, the construction of these attention mechanisms relies on heuristics and experience. In our work, we derive self-attention from kernel principal component analysis (kernel PCA) and show that self-attention projects its query vectors onto the principal component axes of its key matrix in a feature space. We then formulate the exact formula for the value matrix in self-attention, theoretically and empirically demonstrating that this value matrix captures the eigenvectors of the Gram matrix of the key vectors in self-attention. Leveraging our kernel PCA framework, we propose Attention with Robust Principal Components (RPC-Attention), a novel class of robust attention that is resilient to data contamination. We empirically demonstrate the advantages of RPC-Attention over softmax attention on the ImageNet-1K object classification, WikiText-103 language modeling, and ADE20K image segmentation task.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

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

    cs.LG 2025-05 conditional novelty 5.0 of 10

    The paper reports that learned value matrices do not align with KPCA quantities, the projection-loss decrease is dominated by output-norm collapse, and the reported Gram eigenvalue statistics cannot be reproduced with...

  2. Graph-Aware Isomorphic Attention for Adaptive Dynamics in Transformers

    cs.LG 2025-01 conditional novelty 5.0 of 10

    GIN-style graph aggregation inside Transformer attention and during fine-tuning improves validation perplexity and generalization compared with standard attention and LoRA in the tested settings.

Pith tools