Same path, different: a mechanistic comparison of looped and stacked transformer encoders on 12-lead ECG
Not on the map. Why?
Abstract (arXiv)
Recurrent Transformers reusing their weights rather than stacking L distinct layers are becoming widely adopted due to their parameter efficiency [1,2,3]. However, the exact representational and dynamical differences between looped and stacked architectures remain uncharacterized. This paper presents a controlled study on the example of bViT model [1] applying one weight-tied block L times. We train two models: bViT and standard ViT [4] on 12-lead electrocardiogram (ECG) classification tasks from the PTB-XL dataset under identical training protocols. Despite an 8.9× parameter reduction, bViT achieves accuracy parity with ViT. Geometric similarity metrics demonstrate that both architectures construct comparable latent representations in an equivalent canonical order. Crucially, their dynamics differ: bViT exhibits smaller step sizes and inter-patient sensitivity, as well as near-neutral behavior away from the data manifold, whereas ViT exhibits collapsing dimensionality of representations and out-of-distribution feature expansion.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 13 of its 23 references that are in the map. First posted on arXiv 14 Sep 2026.
Builds on
13 of 23 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2019Similarity of Neural Network Representations Revisitedcited by 1,755
- 2018Universal Transformerscited by 647
- 2019Automatic diagnosis of the 12-lead ECG using a deep neural networkcited by 164
- 2020Deep Learning for ECG Analysis: Benchmarks and Insights from PTB-XLcited by 158
- 2022MiniViT: Compressing Vision Transformers with Weight Multiplexingcited by 88
- 2022Reliability of CKA as a Similarity Measure in Deep Learningcited by 87
- 2021Self-supervised representation learning from 12-lead ECG datacited by 80
- 2021Sliced Recursive Transformercited by 26
- 2026Investigating Single-Block Recurrence in Vision Transformers for Image Recognitioncited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Monitoring latent reasoning in looped language modelscited by 0
- 2026Monitoring latent reasoning in looped language models13 Oct 2026