预训练Transformer的内循环推理:无需训练即可解锁潜在能力
Inner Loop Inference for Pretrained Transformers: Unlocking Latent Capabilities Without Training
AI总结:
通过在预训练语言模型中引入推理时的内循环,无需训练即可提升模型的潜在能力,实现更稳定的语义细化。
摘要:
深度学习架构,特别是Transformer,通常被视为层的组合。这些层实际上常常是两个贡献的总和:一个残差路径,它复制Transformer块的输入和输出。因此,内部表示(即这些块的输入)可以被解释为传播的潜在表示的迭代细化。在这种视角下,许多工作认为内部空间在各层之间共享,意味着token可以在早期阶段被解码。机制可解释性甚至进一步推测某些层充当细化层。沿着这条路径,我们提出了推理时的内循环,通过重复应用选定的块范围,延长预训练的现成语言模型的细化过程。在多个基准测试中,内循环产生了适度但一致的准确性提升。对所得到的潜在轨迹的分析表明了更稳定的态演变和持续的语义细化。总体而言,我们的结果表明,通过简单的测试时循环可以进一步获得额外的细化,从而在冻结的预训练模型中扩展计算。
英文摘要:
Deep Learning architectures, and in particular Transformers, are conventionally viewed as a composition of layers. These layers are actually often obtained as the sum of two contributions: a residual path that copies the input and the output of a Transformer block. As a consequence, the inner representations (i.e. the input of these blocks) can be interpreted as iterative refinement of a propagated latent representation. Under this lens, many works suggest that the inner space is shared across layers, meaning that tokens can be decoded at early stages. Mechanistic interpretability even goes further by conjecturing that some layers act as refinement layers. Following this path, we propose inference-time inner looping, which prolongs refinement in pretrained off-the-shelf language models by repeatedly re-applying a selected block range. Across multiple benchmarks, inner looping yields modest but consistent accuracy improvements. Analyses of the resulting latent trajectories suggest more stable state evolution and continued semantic refinement. Overall, our results suggest that additional refinement can be obtained through simple test-time looping, extending computation in frozen pretrained models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。