On Expressive Power of Looped Transformers: Theoretical Analysis and Enhancement via Timestep Encoding

Kevin Xu, Issei Sato
10/1/2024

No official code found. Best implementation: kevin671/tmlt (7 stars, last commit 2025-06-29).

Abstract

Looped Transformers provide advantages in parameter efficiency, computational capabilities, and generalization for reasoning tasks. However, their expressive power regarding function approximation remains underexplored. In this paper, we establish the approximation rate of Looped Transformers by defining the modulus of continuity for sequence-to-sequence functions. This reveals a limitation specific to the looped architecture. That is, the analysis prompts the incorporation of scaling parameters for each loop, conditioned on timestep encoding. Experiments validate the theoretical results, showing that increasing the number of loops enhances performance, with further gains achieved through the timestep encoding.

View on arXivView PDF

Code Implementations(1)

kevin671/tmltCommunity70%

Code for "On Expressive Power of Looped Transformers: Theoretical Analysis and Enhancement via Timestep Encoding (ICML 2025)"

71PythonFeb 23, 20251 years ago

Similar Papers

Cite this paper

@article{xu2024expressive,
  title  = {On Expressive Power of Looped Transformers: Theoretical Analysis and Enhancement via Timestep Encoding},
  author = {Kevin Xu and Issei Sato},
  year   = {2024},
  eprint = {2410.01405},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.01405},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.01405.svg)](https://codeofpaper.com/paper/2410.01405)

Discussion