0

Arbitrary-Length Generalization for Addition in a Tiny Transformer

A novel autoregressive generation technique enables a small Transformer model to generalize addition to numbers with unseen lengths of digits.

Year
2024
Venue
arXiv 2024
Authors
1
Hosting
Abstract onlyARXIV-DEFAULT

Cite

Notes

Only stored in your browser.

Attribution

Abstract & full text
arxiv.org/abs/2406.00075v2ARXIV-DEFAULT
TL;DR
Semantic Scholar
Attribution policy →

Abstract

This paper introduces a novel training methodology that enables a Transformer model to generalize the addition of two-digit numbers to numbers with unseen lengths of digits. The proposed approach employs an autoregressive generation technique, processing from right to left, which mimics a common manual method for adding large numbers. To the best of my knowledge, this methodology has not been previously explored in the literature. All results are reproducible, and the corresponding R code is available at github.com/AGPatriota/ALGA-R/.

Authors

1