Reducing the Transformer Architecture to a Minimum

Bernhard Bermeitinger, Tomas Hrycej, Marco Pavone, Julianus Kath, Siegfried Handschuh

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10Symmetric-similarity transformer encoder without MLPVal. loss1.2885-0.07 vs baselinesplit: val · mlp=no · epochs=500 · similarity=symmetric · encoder-layers=6 · attention-heads=1
Source quote
L355: \num{1} │ no │ symmetry │ \num{78490} │ \num{6.37} │ \num{0.9686} │ \num{1.2885} │ \num{64.80} │ \num{55.85}
CIFAR-10Minimum transformer variant (Wqk+noWv,Vo) without MLPVal. loss1.6565split: val · mlp=no · epochs=500 · variant=Wqk+noWv,Vo · encoder-layers=6 · attention-heads=1
Source quote
L358: \num{1} │ no │ Wqk+noWv,Vo │ \num{35230} │ \num{14.19} │ \num{1.5961} │ \num{1.6565} │ \num{40.52} │ \num{39.17}
MNISTMinimum transformer variant (Wqk+noWv,Vo) without MLP# Parameters26650-252456 vs baselinemlp=no · variant=Wqk+noWv,Vo · encoder-layers=6 · attention-heads=1 · parameter-count-includes=image-patch embedding matrix
Source quote
L295: 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)
BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10Unchanged transformer encoder with MLP baselineVal. loss2.2418split: val · mlp=yes · epochs=500 · encoder-layers=6 · attention-heads=1
Source quote
L350: \num{1} │ yes │ unchanged │ \num{287686} │ \num{1.74} │ \num{0.1533} │ \num{2.2418} │ \num{94.63} │ \num{60.24}
CIFAR-10Unchanged transformer encoder without MLP baselineVal. loss1.3590split: val · mlp=no · epochs=500 · encoder-layers=6 · attention-heads=1
Source quote
L353: \num{1} │ no │ unchanged │ \num{101470} │ \num{4.93} │ \num{0.9341} │ \num{1.3590} │ \num{66.16} │ \num{55.30}
MNISTUnchanged transformer encoder with MLP baseline# Parameters279106mlp=yes · encoder-layers=6 · attention-heads=1 · parameter-count-includes=image-patch embedding matrix
Source quote
L286: 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},
}

Loading related content...

Figure