首页 > AI前沿 > Loop-Count Schedules in Looped Transformers: An Empirical Study

Loop-Count Schedules in Looped Transformers: An Empirical Study

arXiv机器学习 2026-11-23 03:08 8 阅读 查看原文
用户现在需要把给定的纯文本新闻正文排版成语义化的HTML片段,得遵循规则。首先看正文里的内容,首先可以分小节吗?先看内容,首先开头介绍循环Transformer的基本情况,然后是研究方法,然后是研究发现,还有后续的补充和资源。首先,第一段是介绍循环Transformer的核心机制,然后下一个部分是研究的内容,比如研究的方法(模型、训练数据、调度方式),然后是研究结果,还有后续的补充发现、性能、资源这些。 首先,第一个

放开头的“Looped transformers apply one block of layers several times with shared weights, trading parameters for repeated computation.” 然后下一个部分可以用

划分研究的相关?不对,先看内容的逻辑:首先背景,然后研究的内容(研究训练时循环迭代次数R的调度的作用,用了什么模型、数据、调度),然后发现(R的范围下限的作用,两种范围的情况),然后最佳调度的效果,然后补充发现(固定R的收敛、重用键值的代价),然后整体效果,最后资源发布。 等下,规则说长文用

/

划分小节,那需要合理划分。比如: 首先,第一段介绍基本概念,用

。然后

研究设置

?不对,原文里的研究设置是“We study how the schedule of the loop iteration count R during training determines whether each extra pass acts as a full layer or as a small correction, using a controlled ladder of 46M-110M-parameter models trained on 2B tokens with learned residual gates on every loop pass and three schedules: R fixed to 2, R sampled uniformly from {1,...,6}, and R sampled from {2,3,4}.” 这部分可以作为研究的设置,所以可以用

研究设计与设置

?不对,不能增删内容,哦对,不能增删改,所以小节标题不能自己瞎编?哦,等下,规则是“长文用

/

划分小节”,但标题得基于原文的语义,不能自己加内容?不对,不对,规则里说保留原文所有信息,不得增删改内容,那小节标题如果加的话会不会算增?哦,等下,原文没有小节标题,那是不是可以不用强行加?不对,再看原文的结构:原文是连贯的段落,但逻辑上有层次。等下,再仔细看规则:“每个自然段落用

包裹,长文用

/

划分小节”,如果原文的段落是连贯的,那是不是可以把逻辑块用标题?不对,不对,不能增内容,那标题不能用自己的话?哦,等下,可能我理解错了,是不是不需要加额外的标题,而是如果原文有小节的内容,用标题,但这里原文没有小节标题,那是不是可以只处理段落,然后把里面的重要句子加,列表?哦,原文里的三个调度方式是并列的,可以做成列表? 等下,原文里的“three schedules: R fixed to 2, R sampled uniformly from {1,...,6}, and R sampled from {2,3,4}.” 这里可以改成
  • R fixed to 2
  • R sampled uniformly from {1,...,6}
  • R sampled from {2,3,4}
对吧?因为这是列表内容,符合规则里的列表用
  • 。 然后,重要的句子,比如“We find that the lower bound of the sampling range is the decisive choice.” 可以加。然后“The {2, 3, 4} schedule gives the best looped model” 可以加? 然后结构: 首先,第一段:

    Looped transformers apply one block of layers several times with shared weights, trading parameters for repeated computation.

    然后下一个

    里包含研究的内容,把三个调度做成列表:

    We study how the schedule of the loop iteration count R during training determines whether each extra pass acts as a full layer or as a small correction, using a controlled ladder of 46M-110M-parameter models trained on 2B tokens with learned residual gates on every loop pass and three schedules:

    • R fixed to 2
    • R sampled uniformly from {1,...,6}
    • R sampled from {2,3,4}
    然后下一段是研究发现:

    We find that the lower bound of the sampling range is the decisive choice. If the sampled range includes R=1, so that some training steps run the block only once and compute the loss on that single pass, the gates collapse to 0.1-0.5 and each additional pass becomes a small correction to the first; if the range starts at R=2, so that every training step runs the block at least twice, the gates stay at 0.6-0.9 and each pass keeps the strength of a full layer, while the model can still be run at any R from 2 up to twice the largest trained value with validation loss within a few hundredths of a nat of its best.

    然后下一段:

    The {2, 3, 4} schedule gives the best looped model, 2.909 nats against 2.951 for the parameter-matched plain model, and degrades by only 0.038 nats when run at twice its trained depth.

    然后下一段:

    We further show that under a fixed R the direction of the residual stream converges geometrically beyond the trained depth while the loss diverges, which refines a recent finding that static-depth training does not converge, and that reusing the first pass's keys and values on later passes costs 0.01-0.03 nats in every regime while making the per-token iteration uniformly contractive and halving the inference cache.

    然后下一段:

    The loop recovers about a third of what real depth provides at equal parameters.

    然后最后一段:

    The code, trained weights, and per-token traces are released.

    等下,有没有需要用

    的?原文是不是长文?看内容,其实逻辑上有小节的话,比如可以划分:比如

    核心机制

    ,然后放第一段?不对,但是“核心机制”是我自己加的,会不会违反规则?规则说“不得增删改内容”,那如果我加小节标题,是不是属于增加内容?哦,对哦,原文里没有这些标题,所以不能自己加标题,因为会增内容。那这样的话,就不需要用

    /

    ?不对,规则说“长文用

    /

    划分小节”,但如果原文没有对应的小节标题,不能自己加,那是不是就只用

    、列表、这些? 等下再仔细看规则:“保留原文所有信息,不得增删改内容”,所以不能添加原文没有的标题,因为标题是原文没有的内容。那这样的话,就处理段落,把并列的调度做成列表,重要的句子加。 再检查:原文里的“three schedules: R fixed to 2, R sampled uniformly from {1,...,6}, and R sampled from {2,3,4}.” 改成列表的话,是不是保持内容不变?对,只是排版,没有改内容。 然后,“We find that the lower bound of the sampling range is the decisive choice.” 是重要句子,加。“The {2, 3, 4} schedule gives the best looped model” 也可以加,还有“0.01-0.03 nats”是重要的数值,加。 再调整结构,确保每个自然段落用

    包裹,列表正确:

    Looped transformers apply one block of layers several times with shared weights, trading parameters for repeated computation.

    We study how the schedule of the loop iteration count R during training determines whether each extra pass acts as a full layer or as a small correction, using a controlled ladder of 46M-110M-parameter models trained on 2B tokens with learned residual gates on every loop pass and three schedules:

    • R fixed to 2
    • R sampled uniformly from {1,...,6}
    • R sampled from {2,3,4}

    We find that the lower bound of the sampling range is the decisive choice. If the sampled range includes R=1,