arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.12426cs.LGcs.CL
收藏

Transformer 是否会根据深度进行自适应使用?来自关系推理任务的证据

Do Transformers Use their Depth Adaptively? Evidence from a Relational Reasoning Task

Microsoft Research Cambridge(微软研究院剑桥分部)

Alicia Curth, Rachel Lawrence, Sushrut Karmalkar, Niranjani Prasad

AI总结:

本文通过控制多跳关系推理任务研究Transformer是否自适应使用深度,发现预训练模型在简单任务中使用较少层,而微调模型在更复杂的任务中更一致地自适应调整深度。

摘要:

我们研究了Transformer是否在不同难度任务中自适应地使用其深度。通过基于家庭故事的受控多跳关系推理任务,其中难度由必须组成的关系统数决定,我们监测(i)通过早期读取(logit lens)跨层预测的变化,以及(ii)通过因果补丁在令牌间整合任务相关信息。对于预训练模型,我们发现有限的自适应深度证据:一些较大模型在简单任务中需要较少层才能得到合理答案,而模型通常随着链长增加而使用更多层来整合令牌间的信息。对于在任务上微调的模型,我们发现更清晰且一致的自适应深度证据,效果在不保留通用语言建模能力的微调制度中更明显。

英文摘要:

We investigate whether transformers use their depth adaptively across tasks of increasing difficulty. Using a controlled multi-hop relational reasoning task based on family stories, where difficulty is determined by the number of relationship hops that must be composed, we monitor (i) how predictions evolve across layers via early readouts (the logit lens) and (ii) how task-relevant information is integrated across tokens via causal patching. For pretrained models, we find some limited evidence for adaptive depth use: some larger models need fewer layers to arrive at plausible answers for easier tasks, and models generally use more layers to integrate information across tokens as chain length increases. For models finetuned on the task, we find clearer and more consistent evidence of adaptive depth use, with the effect being stronger for less constrained finetuning regimes that do not preserve general language modeling abilities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑