计算机科学 > 机器学习
[提交于 2026年9月17日 (v1),最后修订于 2026年11月24日 (此版本, v3)]
标题:LSTM-UT and Bounded Gated Memory for Looped Transformers
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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 https://github.com/arskvnc22/lstm-ut