Pith. sign in

REVIEW 1 cited by

Contextual Counting: A Mechanistic Study of Transformers on a Quantitative Task

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.02585 v1 pith:5X4576VL submitted 2024-05-30 cs.LG cs.AIstat.ML

classification cs.LGcs.AIstat.ML
keywords tasktransformersanalysiscausalcontextualcountingembeddingsperformance
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Transformers have revolutionized machine learning across diverse domains, yet understanding their behavior remains crucial, particularly in high-stakes applications. This paper introduces the contextual counting task, a novel toy problem aimed at enhancing our understanding of Transformers in quantitative and scientific contexts. This task requires precise localization and computation within datasets, akin to object detection or region-based scientific analysis. We present theoretical and empirical analysis using both causal and non-causal Transformer architectures, investigating the influence of various positional encodings on performance and interpretability. In particular, we find that causal attention is much better suited for the task, and that no positional embeddings lead to the best accuracy, though rotary embeddings are competitive and easier to train. We also show that out of distribution performance is tightly linked to which tokens it uses as a bias term.

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. Generating particle physics Lagrangians with transformers

    cs.LG 2025-01 conditional novelty 6.0 of 10

    A BART transformer can generate gauge-invariant Lagrangians from field content with over 90% accuracy on in-distribution data, though its performance drops on realistic Standard Model benchmarks.

Pith tools