AI News AI资讯 11h ago Updated 2h ago 更新于 2小时前 43

A Princeton Researcher Proposes Recurrent Looped Transformer (RLT) that Carries Decoder State across Every Token, Fixing 96 Blocks per Token with Unbounded Temporal Depth 普林斯顿研究者提出循环变压器(RLT),跨每个Token携带解码器状态,以无界时间深度修复每Token 96个模块

RLT closes the architectural gap in decoder-only LLMs by carrying the decoder's final hidden state and layerwise sliding-window attention cache from token t into token t+1, with no reset at prompt-response boundaries The architecture pairs a causal encoder with a recurrent decoder, using a gated merge between encoder representations and the previous decoder output, achieving unbounded temporal depth (48t structural depth after t tokens in the reference 48-layer config) Three core design principl 普林斯顿研究者Yifan Zhang提出Recurrent Looped Transformer (RLT)架构,将解码器最后一层的隐藏状态和滑动窗口注意力缓存传递到下一token,打破传统Decoder-only LLM中层间无跨token反馈的局限 架构采用因果编码器+循环解码器配对设计,参考配置为48层编码器和48层解码器(权重共享),每token执行96个逻辑块,状态路径深度随序列长度线性增长 三大设计原则:无界时间深度的潜在推理、模型-硬件协同设计、模型-强化学习算法协同设计,明确声明无并行扫描或预填充加速 RL重放机制要求基于当前参数从零重建所有状态,仅复用记录的采样分布行为对数概

58
Hot 热度
68
Quality 质量
62
Impact 影响力

Analysis 深度分析

TL;DR

  • RLT closes the architectural gap in decoder-only LLMs by carrying the decoder's final hidden state and layerwise sliding-window attention cache from token t into token t+1, with no reset at prompt-response boundaries
  • The architecture pairs a causal encoder with a recurrent decoder, using a gated merge between encoder representations and the previous decoder output, achieving unbounded temporal depth (48t structural depth after t tokens in the reference 48-layer config)
  • Three core design principles: latent reasoning with unbounded temporal depth, model-hardware co-design with encoder parallelism and sequential decoder transitions, and model-RL algorithm co-design where pretraining, SFT, sampling, and RL replay share a single state transition
  • The report is explicitly a design specification with no measured efficiency, reasoning quality, or scaling results — all remain open validation targets
  • For RL replay, states are rebuilt from scratch under current parameters rather than reused from old rollouts, with behavior log-probabilities recorded during sampling preserved as importance-ratio denominators

Why It Matters

This proposal challenges the dominant decoder-only paradigm by introducing genuine recurrent state continuity across the entire sequence, which could enable more coherent multi-turn reasoning and longer-horizon latent computation without architectural resets. For practitioners working on agentic AI systems, the model-RL co-design and exact prefix snapshot protocol offer a principled framework for multi-turn interaction that avoids gradient path fragmentation — a common pain point in current fine-tuning pipelines.

Technical Details

  • Architecture: RLT pairs a causal encoder (48 layers) with a recurrent decoder (48 layers), using tied weights. Each token executes 96 logical blocks. The decoder state Ht = (st, CtD) carries the final output st and layerwise SWA key-value cache CtD across all tokens, including across the prompt-response boundary with no reset
  • Token computation: A gated merge combines encoder representation et with previous decoder output s_{t-1}, followed by causal SWA over decoder activations, cross-attention to encoder-derived memory M≤t, and an FFN. Memory groups can be shared (G=1) or layer-specific (G=L_D)
  • Training: Full-sequence next-token prediction during pretraining with full backpropagation through time. During SFT, loss is masked to assistant targets but state updates are never masked — assistant losses backpropagate through user and tool tokens. The report warns that partial detaching is risky due to cross terms in the state-to-state Jacobian through the decoder KV cache
  • RL co-design: The sampler records behavior log-probabilities under actual sampling distributions (including temperature and truncation). The trainer rebuilds encoder memory, recurrent output, and every SWA cache from the sequence start under current parameters before scoring each action; old rollout states are never reused
  • Serving: Multi-turn exact prefix snapshots include encoder cache, memory, complete decoder state, position metadata, window convention, and model version. Weight updates invalidate old states, and editing a prefix forces recomputation from an earlier checkpoint

Industry Insight

  • The unbounded temporal depth claim (state path growing as 48t blocks) could unlock more persistent "thought" trajectories in agentic workflows, but the explicit warning that gates and contraction may suppress long paths means practitioners should treat the depth-as-reasoning guarantee as aspirational until empirical validation arrives
  • The model-RL algorithm co-design directly addresses a critical bottleneck in RLHF/RLAIF for conversational agents: the mismatch between prefill and decode kernels. By unifying state transitions across pretraining, SFT, sampling, and RL replay, RLT eliminates the gradient discontinuities that currently plague multi-turn fine-tuning
  • The hardware implications are significant but conservative — encoder parallelism offers immediate wins, while the sequential decoder remains a scalability challenge. Teams should prioritize kernel development for batching across independent sequences rather than expecting parallel scan solutions

TL;DR

  • 普林斯顿研究者Yifan Zhang提出Recurrent Looped Transformer (RLT)架构,将解码器最后一层的隐藏状态和滑动窗口注意力缓存传递到下一token,打破传统Decoder-only LLM中层间无跨token反馈的局限
  • 架构采用因果编码器+循环解码器配对设计,参考配置为48层编码器和48层解码器(权重共享),每token执行96个逻辑块,状态路径深度随序列长度线性增长
  • 三大设计原则:无界时间深度的潜在推理、模型-硬件协同设计、模型-强化学习算法协同设计,明确声明无并行扫描或预填充加速
  • RL重放机制要求基于当前参数从零重建所有状态,仅复用记录的采样分布行为对数概率作为比率分母
  • 该报告仅为设计规格说明,明确未报告任何效率、推理质量或缩放实验结果,需后续验证

为什么值得看

RLT提出了一种从根本上改变Transformer跨token信息流方式的架构设计,挑战了"prompt与response边界必须重置状态"的传统假设,为长上下文建模和Agent多轮交互提供了新的技术路径。尽管目前尚处于理论规格阶段,其模型-RL联合设计的思想对Agent AI的研究具有前瞻性启发意义。

技术解析

  • 核心架构:RLT将解码器的最终输出隐藏状态 $s_t$ 和各层滑动窗口注意力缓存 $C_t^D$ 共同构成完整循环状态 $H_t = (s_t, C_t^D)$,跨prompt和response边界无重置传递。每个token通过门控合并将编码器输出 $e_t$ 与前一输出 $s_{t-1}$ 融合,再经因果滑动窗口注意力、跨注意力至编码器记忆、FFN处理,输出分布从 $s_t$ 读取。
  • 状态深度与计算特性:参考配置中每token执行96个逻辑块(48编码器+48解码器),处理t个token后状态路径从 $s_0$ 穿越 $48t$ 个解码器块。报告警告门控和压缩可能抑制长路径,结构性深度不等于推理保证。编码器部分使用token并行kernel,解码器转换保持序列内顺序执行,不同序列的就绪更新可共享batched kernel。
  • 训练与推理协议:预训练采用全序列下一个token预测配合全BPTT;SFT仅将loss遮蔽到assistant目标,但不遮蔽状态更新,assistant loss可反向传播穿过user和tool token。多轮服务的精确前缀快照需包含编码器缓存、完整解码器状态、位置元数据、窗口约定和模型版本,权重更新使旧状态失效。
  • RL replay契约:采样器记录每个动作在真实采样分布下的行为对数概率(含温度和截断),训练器基于当前参数从头重建编码器记忆、循环输出和所有SWA缓存后再评分,从不重用旧的rollout状态。 Proposition 3.1形式化证明:固定token历史下移动prompt-response分割不改变条件分布。

行业启示

  • RLT的"无边界状态延续"设计对Agent AI的多轮交互场景具有潜在价值——当前主流Agent框架在多轮对话中通常依赖外部记忆机制而非模型内部状态传承,RLT提供了一个内化长期状态传递的架构探索方向。
  • 报告坦承无实测效率和推理结果,反映了当前开源AI研究"先出设计规格、后补实验验证"的趋势;行业应关注后续实证阶段,同时理性看待理论深度与实际性能之间的差距。
  • 模型-RL算法协同设计(Proposition 3.1)为强化学习微调中的 rollout 一致性提供了形式化基础,对DeepSeek-V4.1-Flash等已有跨注意力记忆架构的系统具有参考价值,未来类似"预填充-解码kernel不匹配"问题的统一框架可能成为研究热点。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Research 科学研究 Training 训练 Inference 推理