Pith. sign in

REVIEW 1 cited by

Arithmetic Transformers Can Length-Generalize in Both Operand Length and Count

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 2410.15787 v2 pith:6O4PUAC2 submitted 2024-10-21 cs.LG cs.AI

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

Transformers often struggle with length generalization, meaning they fail to generalize to sequences longer than those encountered during training. While arithmetic tasks are commonly used to study length generalization, certain tasks are considered notoriously difficult, e.g., multi-operand addition (requiring generalization over both the number of operands and their lengths) and multiplication (requiring generalization over both operand lengths). In this work, we achieve approximately 2-3x length generalization on both tasks, which is the first such achievement in arithmetic Transformers. We design task-specific scratchpads enabling the model to focus on a fixed number of tokens per each next-token prediction step, and apply multi-level versions of \Position Coupling (Cho et al., 2024; McLeish et al., 2024) to let Transformers know the right position to attend to. On the theory side, we prove that a 1-layer Transformer using our method can solve multi-operand addition, up to operand length and operand count that are exponential in embedding dimension.

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. Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers

    cs.LG 2025-02 conditional novelty 7.0 of 10

    In the unique-hard-attention transformer model, chain-of-thought length must grow linearly with input size for parity, multiplication, median, and reachability.

Pith tools