Looped Transformers for Length Generalization
About
Recent work has shown that Transformers trained from scratch can successfully solve various arithmetic and algorithmic tasks, such as adding numbers and computing parity. While these Transformers generalize well on unseen inputs of the same length, they struggle with length generalization, i.e., handling inputs of unseen lengths. In this work, we demonstrate that looped Transformers with an adaptive number of steps significantly improve length generalization. We focus on tasks with a known iterative solution, involving multiple iterations of a RASP-L operation - a length-generalizable operation that can be expressed by a finite-sized Transformer. We train looped Transformers using our proposed learning algorithm and observe that they learn highly length-generalizable solutions for various tasks.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Mathematical Reasoning | MathVista | Score43.27 | 322 | |
| Multimodal Capability Evaluation | MM-Vet | Score51.24 | 282 | |
| Massive Multi-discipline Multimodal Understanding | MMMU | -- | 88 | |
| Multimodal Understanding | MMB | Score60.65 | 30 | |
| Multimodal Hallucination Evaluation | HallusionBench | Hallucination Score34.61 | 14 | |
| Complex Multimodal Reasoning | MM-Star | Reasoning Score42.38 | 10 | |
| OCR Robustness | OCR Bench | Score69.9 | 10 |