[Submitted on 17 Sep 2026 ( v1 ), last revised 24 Nov 2026 (this version, v3)]
Title: LSTM-UT and Bounded Gated Memory for Looped Transformers
Abstract: Can the loop of a looped Transformer serve as a rollout, with one application of the shared block per step of a dynamical system? We started with two existing designs, one that carries only its residual stream and one, CoTFormer, that also caches every earlier state. On Rule 30, a chaotic cellular automaton, both lose the computation shortly after their trained depth. LSTM-UT, which adds an LSTM-style gated cell, does not, and it recalls earlier states better. Taking it apart shows that each ability has a simpler source. For rollouts it is decay: a fixed decay on the plain model's stream is sufficient. For recall it is an input-dependent gate: at the longest horizon a gated stream with no cell recalls as well as LSTM-UT, and no fixed decay helps. The two do not simply add, since a gated stream with a fixed decay does neither reliably. Storing every earlier state hurts extrapolation, where CoTFormer fits and rolls out further with its cache cut to the most recent repeat; in recall, the stored copy is looked up at the shortest horizon and not at the next. LSTM-UT, whose forget gate makes the decay itself input-dependent, is the only model in the leading group on both. The forget gate was added to the LSTM so that a state carried at weight one could be reset instead of accumulating; we find the same need over depth. In language modelling LSTM-UT is competitive with CoTFormer at lower training cost. Code is available at this https URL
| Subjects: | Machine Learning (cs.LG) |
| Cite as: | arXiv:2609.19521 [cs.LG] |