Pith. sign in

REVIEW 1 cited by

A Primal-Dual Framework for Transformers and Neural Networks

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.13781 v1 pith:HYI3S42F submitted 2024-06-19 cs.LG cs.AIcs.CLcs.CVstat.ML

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

Signed reviews

No signed human review yet.

0 comments
read the original abstract

Self-attention is key to the remarkable success of transformers in sequence modeling tasks including many applications in natural language processing and computer vision. Like neural network layers, these attention mechanisms are often developed by heuristics and experience. To provide a principled framework for constructing attention layers in transformers, we show that the self-attention corresponds to the support vector expansion derived from a support vector regression problem, whose primal formulation has the form of a neural network layer. Using our framework, we derive popular attention layers used in practice and propose two new attentions: 1) the Batch Normalized Attention (Attention-BN) derived from the batch normalization layer and 2) the Attention with Scaled Head (Attention-SH) derived from using less training data to fit the SVR model. We empirically demonstrate the advantages of the Attention-BN and Attention-SH in reducing head redundancy, increasing the model's accuracy, and improving the model's efficiency in a variety of practical applications including image and time-series classification.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

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...

Pith tools