首页 > AI前沿 > What Makes Recurrence Generalize Across Lengths?

What Makes Recurrence Generalize Across Lengths?

arXiv机器学习 2026-11-22 11:08 6 阅读 查看原文
用户需要将一段关于多步推理和循环Transformer的英文纯文本新闻正文,排版成语义化的HTML片段。 需要遵守的规则: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释。 2. 每个自然段落用`

`包裹,长文用`

`/`

`划分小节。 3. 列表内容用`
  • `,引用用`
    `,代码用`
    `,重要句子可用``。
    4. 保留原文所有信息,不得增删改内容。
    5. 不要输出``/``/``等文档级标签。
    
    分析正文内容:
    正文是一段连续的学术性新闻/摘要,没有明显的列表、引用或代码。包含几个自然段落(原文其实是一整段,但为了排版美观和符合“每个自然段落用

    包裹”,我需要把它合理分段,或者保持原样用一个或多个

    。原文是一整段,我可以将其拆分为几个逻辑段落,或者直接用一个

    。不过规则说“每个自然段落用

    包裹,长文用

    /

    划分小节”。既然是一段长文,可以加个标题,比如

    Recurrent Transformers and State Tracking

    (等等,规则说不得增删改内容!所以不能自己加标题!只能使用原文的内容。如果原文没有标题,我就不加

    /

    ,或者把原文的某些句子作为

    /

    ?不行,增删改内容限制。那就直接把原文按句子或逻辑分几个

    ,或者就一个

    。原文是一整段,我直接用一个

    包裹整段,或者按逻辑拆成几个

    。为了“长文用

    /

    划分小节”,如果原文没有小节标题,我不能编造。那就只用

    。 等等,原文是: "Multi-step reasoning requires models to preserve and update intermediate information as computation unfolds. State tracking captures this fundamental requirement, but models that succeed within a fixed range of state transitions may not generalize when substantially more updates are required. Recurrent Transformers offer a natural mechanism for addressing this challenge by repeatedly applying shared Transformer blocks, allowing computation to scale with problem length. We study when such recurrent computation generalizes beyond the training range in a controlled state-tracking task, varying operation representation, positional encoding, and recurrent capacity. We find that recurrence alone is insufficient: multi-token template representations and absolute positional encoding can severely limit extrapolation, whereas atomic operation representations enable substantially stronger length generalization. The effect of positional structure also varies with recurrent depth, with periodic positional encoding achieving the strongest mean performance at greater recurrent depth. Most importantly, scaling the recurrent operator extends the extrapolation horizon, reaching 35.1% exact-match accuracy on sequences of 20-40 operations after training only on 2-10, while substantially larger fixed-depth Transformers remain at 0%. Additional recurrent computation at test time can extend the range over which the model generalizes, but does not eliminate failure on much longer sequences. These results suggest that recurrent computation can support length-generalizable state tracking, but that its effectiveness depends critically on whether the learned computation remains reusable across sequence lengths." 这段文本没有明显的小节,也没有列表、引用、代码。 我可以将其拆分成几个自然段(比如按主题拆分),或者就作为一个大段落。 为了体现排版,我可以将原文按逻辑拆分为几个 `

    `: 第一段:Multi-step reasoning ... scale with problem length. 第二段:We study when ... recurrent capacity. 第三段:We find that recurrence ... greater recurrent depth. 第四段:Most importantly ... remain at 0%. 第五段:Additional recurrent ... sequence lengths. 或者不拆分,直接一个 `

    `。规则说“每个自然段落用

    包裹”,原文在纯文本中是一个自然段落。如果强行拆分,算不算“增删改内容”?排版时按语义分段通常是可以的,但最安全的做法是保持原文的段落结构。原文只有一个自然段,所以用一个 `

    ` 包裹。 不过,为了使用 ``,可以把重要句子加粗,比如“Most importantly, scaling the recurrent operator extends the extrapolation horizon...” 或者 “These results suggest that...”。 原文中没有需要特别加粗的,但规则说“重要句子可用”。我可以把最后一句或者“Most importantly”开头的句子加粗。 检查规则: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释; 2. 每个自然段落用

    包裹,长文用

    /

    划分小节; 3. 列表内容用
    • ,引用用
      ,代码用
      ,重要句子可用;
      4. 保留原文所有信息,不得增删改内容;
      5. 不要输出//等文档级标签。
      
      既然原文是一整段,我直接输出:
      

      Multi-step reasoning requires models to preserve and update intermediate information as computation unfolds. State tracking captures this fundamental requirement, but models that succeed within a fixed range of state transitions may not generalize when substantially more updates are required. Recurrent Transformers offer a natural mechanism for addressing this challenge by repeatedly applying shared Transformer blocks, allowing computation to scale with problem length. We study when such recurrent computation generalizes beyond the training range in a controlled state-tracking task, varying operation representation, positional encoding, and recurrent capacity. We find that recurrence alone is insufficient: multi-token template representations and absolute positional encoding can severely limit extrapolation, whereas atomic operation representations enable substantially stronger length generalization. The effect of positional structure also varies with recurrent depth, with periodic positional encoding achieving the strongest mean performance at greater recurrent depth. Most importantly, scaling the recurrent operator extends the extrapolation horizon, reaching 35.1% exact-match accuracy on sequences of 20-40 operations after training only on 2-10, while substantially larger fixed-depth Transformers remain at 0%. Additional recurrent computation at test time can extend the range over which the model generalizes, but does not eliminate failure on much longer sequences. These results suggest that recurrent computation can support length-generalizable state tracking, but that its effectiveness depends critically on whether the learned computation remains reusable across sequence lengths.

      这样完全保留了原文,没有增删改,使用了

      包裹,使用了突出重要句子。没有使用文档级标签,没有Markdown围栏,没有解释。 再审视一下是否有必要分段。原文是一整段,如果拆成多段,可能会被认为修改了原文结构(虽然排版允许,但保守起见,保持原样最安全)。 也可以稍微拆分一下,让排版看起来更丰富:

      Multi-step reasoning requires models to preserve and update intermediate information as computation unfolds. State tracking captures this fundamental requirement, but models that succeed within a fixed range of state transitions may not generalize when substantially more updates are required. Recurrent Transformers offer a natural mechanism for addressing this challenge by repeatedly applying shared Transformer blocks, allowing computation to scale with problem length.

      We study when such recurrent computation generalizes beyond the training range in a controlled state-tracking task, varying operation representation, positional encoding, and recurrent capacity. We find that recurrence alone is insufficient: multi-token template representations and absolute positional encoding can severely limit extrapolation, whereas atomic operation representations enable substantially stronger length generalization. The effect of positional structure also varies with recurrent depth, with periodic positional encoding achieving the strongest mean performance at greater recurrent depth.

      Most importantly, scaling the recurrent operator extends the extrapolation horizon, reaching 35.1% exact-match accuracy on sequences of 20-40 operations after training only on 2-10, while substantially larger fixed-depth Transformers remain at 0%. Additional recurrent computation at test time can extend the range over which the model generalizes, but does not eliminate failure on much longer sequences.

      These results suggest that recurrent computation can support length-generalizable state tracking, but that its effectiveness depends critically on whether the learned computation remains reusable across sequence lengths.

      这样分段符合“每个自然段落用

      包裹”,且没有增删改文字内容。把长文拆成几个自然段在HTML排版中是合理的。我采用这种分段方式,显得排版更专业。 检查文字是否完全一致: 第一段:Multi-step reasoning requires models to preserve and update intermediate