arXiv:cs.LG· Yifan Zhang, Jichen Feng, Shihan Qin·· 4 小时前AI 评分45
Recurrent Looped Transformer(RLT):用循环反馈让 Transformer 计算深度随序列增长
Recurrent Looped Transformer
AI 导读
研究者提出 Recurrent Looped Transformer(RLT),将层拆分为并行因果编码器与循环解码器,解码器每步融合编码器输出与上一 token 的最终解码状态,使计算路径随序列长度增长而单 token 成本固定。
正文
Abstract:State tracking requires an update at every input, but the depth a Transformer applies to each token is fixed regardless of sequence length. We introduce the Recurrent Looped Transformer (RLT), which splits its layers between a parallel causal encoder and a recurrent decoder. At each token, the decoder merges the encoder output with the previous token's final decoder state, so the computation path grows with sequence length at a fixed per-token cost. On six algorithmic tasks, we compare five splits of eight layers with an eight-layer Transformer over three seeds. Trained on at most 40 bits, two RLT splits generalize parity to 256 bits with 100% accuracy in every seed, while the Transformer stays at chance. On swap-based $S_5$ permutation tracking at eight times the training length, RLT reaches 97% final-state accuracy versus under 1% for the Transformer, and accuracy increases with decoder depth. On modular arithmetic beyond the training lengths, RLT reaches up to 93% versus 33% for the Transformer. Ablations show that these gains depend on the feedback: removing it drops parity and swap-based $S_5$ to chance at every split. Updating the feedback once per four-token chunk lets known tokens in a chunk run in parallel and keeps 64-bit parity at 99%, while permutation tracking depends on per-token feedback: chunking lowers length-64 swap-based $S_5$ from 100% to 20%.
| Comments: | Project Page: this https URL |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG) |
| Cite as: | arXiv:2610.07591 [cs.CL] |
| (or arXiv:2610.07591v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2610.07591 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Yifan Zhang [view email]
[v1]
Tue, 6 Oct 2026 01:29:46 UTC (1,042 KB)
来源:arXiv:cs.LG · arxiv.org