Research Papers 论文研究 4h ago Updated 1h ago 更新于 1小时前 50

Adaptive Depth in Looped Transformers: Diagnosing Learned Halting Gates and Trajectory Readouts 循环Transformer中的自适应深度:诊断学习到的停止门和轨迹读出

Looped Transformers with learned halting gates suffer from entangled trajectory formation and exit selection, where the gate simultaneously determines stopping points and supervisory weights. Fixed-prior depth supervision generates difficulty-aware trajectories that expose useful stopping signals, often outperforming complex learned gates when paired with simple post-hoc confidence readouts. Diagnostic analysis reveals that performance bottlenecks stem primarily from the joint training of gates 循环Transformer中,学习到的停止门限同时决定推理时的退出点和训练时的损失权重,导致轨迹形成与退出选择纠缠。 固定先验深度监督能生成对难度感知的轨迹,其暴露的中止信号优于复杂的输入依赖门限策略。 简单的后验置信度读取在性能上匹配或超越学习的线性及MLP门限,表明问题核心在于轨迹而非门限表达能力。 在Ouro-1.4B和2.6B模型上的评估证实,降低平均退出深度可带来实际的推理延迟节省。 研究将自适应深度重构为轨迹形成与退出读取的联合问题,而非单纯的门限学习。

65
Hot 热度
78
Quality 质量
72
Impact 影响力

Analysis 深度分析

TL;DR

  • Looped Transformers with learned halting gates suffer from entangled trajectory formation and exit selection, where the gate simultaneously determines stopping points and supervisory weights.
  • Fixed-prior depth supervision generates difficulty-aware trajectories that expose useful stopping signals, often outperforming complex learned gates when paired with simple post-hoc confidence readouts.
  • Diagnostic analysis reveals that performance bottlenecks stem primarily from the joint training of gates and trajectories rather than limited gate expressivity.
  • Practical inference-time savings are confirmed through latency measurements on Ouro-1.4B and 2.6B checkpoints, showing reduced average exit depth translates to efficiency gains.

Why It Matters

This research challenges the prevailing assumption that complex learned halting mechanisms are necessary for adaptive computation in looped architectures. By decoupling trajectory formation from exit selection, it offers a more robust and potentially simpler path to efficient inference, which is critical for deploying large-scale transformer models in resource-constrained environments.

Technical Details

  • Architecture: Analysis focuses on Looped Transformers that apply shared recurrent blocks repeatedly to increase test-time computation.
  • Diagnostic Methodology: The study isolates variables by fitting gates on frozen trajectories to determine whether failures arise from the gate design or the induced trajectory.
  • Datasets & Models: Evaluated on controlled synthetic tasks (modular arithmetic, binary parity) and large-scale checkpoints (Ouro-1.4B and 2.6B).
  • Key Finding: Simple post-hoc confidence readouts match or exceed the performance of learned linear and MLP gates when applied to trajectories shaped by fixed-prior supervision.
  • Performance Metric: Latency measurements confirm that reductions in average exit depth yield practical inference-time savings without significant accuracy loss.

Industry Insight

  • Simplify Halting Mechanisms: Practitioners should consider decoupling trajectory shaping from exit decision-making, as simple readouts on well-shaped trajectories can be more effective than end-to-end learned gates.
  • Focus on Trajectory Quality: Investment in methods that produce difficulty-aware intermediate states (e.g., via fixed-prior supervision) may yield better returns than optimizing complex gating networks.
  • Efficiency vs. Complexity Trade-off: For applications requiring low-latency inference, leveraging pre-trained ponder gates or fixed-prior strategies may offer superior Pareto-optimal performance compared to fully learned halting objectives.

TL;DR

  • 循环Transformer中,学习到的停止门限同时决定推理时的退出点和训练时的损失权重,导致轨迹形成与退出选择纠缠。
  • 固定先验深度监督能生成对难度感知的轨迹,其暴露的中止信号优于复杂的输入依赖门限策略。
  • 简单的后验置信度读取在性能上匹配或超越学习的线性及MLP门限,表明问题核心在于轨迹而非门限表达能力。
  • 在Ouro-1.4B和2.6B模型上的评估证实,降低平均退出深度可带来实际的推理延迟节省。
  • 研究将自适应深度重构为轨迹形成与退出读取的联合问题,而非单纯的门限学习。

为什么值得看

这篇文章揭示了当前循环Transformer自适应计算机制中的一个关键缺陷:训练目标与推理行为的不一致。它通过严谨的诊断实验,证明了优化轨迹质量比优化停止门限更为重要,为提升大模型推理效率提供了新的理论视角和工程方向。

技术解析

  • 问题诊断:指出传统方法中单一退出分布既用于推断又用于训练加权,导致“轨迹形成”与“退出选择”耦合,使得模型难以区分是读取器失效还是轨迹本身缺乏信息。
  • 实验设计:在合成任务(模运算、二进制奇偶性)和大规模Ouro模型(1.4B/2.6B参数)上进行对比,采用“冻结轨迹拟合门限”的方法隔离变量,定位性能瓶颈。
  • 核心发现:固定先验的深度监督(无输入依赖)产生的中间状态包含更有效的停止信号;简单的后验置信度读取器性能优于复杂的可学习门限网络。
  • 性能验证:在Ouro模型评估中,预训练的ponder门限虽具竞争力但未达到帕累托最优,实测延迟数据确认了减少平均退出深度带来的实际加速效果。

行业启示

  • 架构优化方向:在设计自适应计算模型时,应解耦轨迹生成与停止决策,优先优化中间状态的表征质量,而非仅关注停止门限的复杂度。
  • 简化推理组件:对于基于循环结构的模型,简单的置信度启发式规则可能比复杂的神经网络门限更有效,建议重新评估轻量级读取器的潜力。
  • 效率权衡策略:自适应深度确实能带来显著的推理延迟降低,但需警惕过度优化停止门限导致的性能下降,应在轨迹丰富性和计算成本间寻找新平衡点。

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

Research 科学研究 Inference 推理 Training 训练