Reducing the Transformer Architecture to a Minimum
Empirical ResultsBrowse all benchmarks →
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| CIFAR-10 | Symmetric-similarity transformer encoder without MLP | Val. loss | 1.2885-0.07 vs baseline | split: val · mlp=no · epochs=500 · similarity=symmetric · encoder-layers=6 · attention-heads=1Source quoteL355: \num{1} │ no │ symmetry │ \num{78490} │ \num{6.37} │ \num{0.9686} │ \num{1.2885} │ \num{64.80} │ \num{55.85} |
| CIFAR-10 | Minimum transformer variant (Wqk+noWv,Vo) without MLP | Val. loss | 1.6565 | split: val · mlp=no · epochs=500 · variant=Wqk+noWv,Vo · encoder-layers=6 · attention-heads=1Source quoteL358: \num{1} │ no │ Wqk+noWv,Vo │ \num{35230} │ \num{14.19} │ \num{1.5961} │ \num{1.6565} │ \num{40.52} │ \num{39.17} |
| MNIST | Minimum transformer variant (Wqk+noWv,Vo) without MLP | # Parameters | 26650-252456 vs baseline | mlp=no · variant=Wqk+noWv,Vo · encoder-layers=6 · attention-heads=1 · parameter-count-includes=image-patch embedding matrixSource quoteL295: 1 │ no │ Wqk+noWv,Vo │ \num{26650} │ \num{22.51} │ \num{0.1697} │ \num{0.1536} │ \num{94.82} │ \num{95.32} |
Reported baseline / comparator measurements (3)
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| CIFAR-10 | Unchanged transformer encoder with MLP baseline | Val. loss | 2.2418 | split: val · mlp=yes · epochs=500 · encoder-layers=6 · attention-heads=1Source quoteL350: \num{1} │ yes │ unchanged │ \num{287686} │ \num{1.74} │ \num{0.1533} │ \num{2.2418} │ \num{94.63} │ \num{60.24} |
| CIFAR-10 | Unchanged transformer encoder without MLP baseline | Val. loss | 1.3590 | split: val · mlp=no · epochs=500 · encoder-layers=6 · attention-heads=1Source quoteL353: \num{1} │ no │ unchanged │ \num{101470} │ \num{4.93} │ \num{0.9341} │ \num{1.3590} │ \num{66.16} │ \num{55.30} |
| MNIST | Unchanged transformer encoder with MLP baseline | # Parameters | 279106 | mlp=yes · encoder-layers=6 · attention-heads=1 · parameter-count-includes=image-patch embedding matrixSource quoteL286: 1 │ yes │ unchanged │ \num{279106} │ \num{2.15} │ \num{0.0067} │ \num{0.0747} │ \num{99.78} │ \num{98.38} |
BibTeX
@misc{bermeitinger2024reducing,
author = {Bernhard Bermeitinger and Tomas Hrycej and Marco Pavone and Julianus Kath and Siegfried Handschuh},
title = {{Reducing the Transformer Architecture to a Minimum}},
year = {2024},
eprint = {2410.13732},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2410.13732},
}Ask Althea to put this paper to the test.
Loading related content...