Pith. sign in

REVIEW 1 cited by

On the Anatomy of Attention

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 2407.02423 v2 pith:C7GE32CZ submitted 2024-07-02 cs.LG math.CT

classification cs.LGmath.CT
keywords attentionformalismmodelsanatomicalanatomyarchitecturescapturedcategory-theoretic
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

We introduce a category-theoretic diagrammatic formalism in order to systematically relate and reason about machine learning models. Our diagrams present architectures intuitively but without loss of essential detail, where natural relationships between models are captured by graphical transformations, and important differences and similarities can be identified at a glance. In this paper, we focus on attention mechanisms: translating folklore into mathematical derivations, and constructing a taxonomy of attention variants in the literature. As a first example of an empirical investigation underpinned by our formalism, we identify recurring anatomical components of attention, which we exhaustively recombine to explore a space of variations on the attention mechanism.

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 Diagrammatic Approach to Improve Computational Efficiency in Group Equivariant Neural Networks

    cs.LG 2024-12 conditional novelty 5.0 of 10

    A diagrammatic, category-theoretic algorithm reduces the time complexity of applying equivariant weight matrices in tensor-power networks from O(n^(l+k)) to O(n^k) or better for four classical groups.

Pith tools