arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.17852cs.LGstat.ML
收藏

带RL或SFT的Transformer可证明学习稀疏布尔函数,但方式不同

Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently

School of Electronics and Computer Science, University of Southampton, United Kingdom(南安普顿大学电子与计算机科学学院,英国);Independent Researcher(独立研究员)

Bochen Lyu, Yiyang Jia, Xiaohao Cai, Zhanxing Zhu

AI总结:

本文通过统一分析RL(过程奖励)和SFT微调Transformer学习可递归分解的k-稀疏布尔函数的动态,证明两者都能学习k-PARITY、k-AND、k-OR等函数,但RL同时学习整个CoT链,而SFT逐步学习。

摘要:

Transformer可以通过微调获得思维链(CoT)能力来解决复杂的推理任务。强化学习(RL)和监督微调(SFT)是实现这一目标的两种主要方法。在这项工作中,我们专门研究了使用过程奖励的RL和SFT,通过类似于CoT的中间推理步骤,用单层Transformer学习$k$-稀疏布尔函数。特别地,我们考虑可以递归分解为固定2-稀疏布尔函数的$k$-稀疏布尔函数。我们首先以统一的方式分析使用过程奖励的RL微调和SFT的学习动态。这使我们能够识别出Transformer可证明学习这些稀疏布尔函数的充分条件。然后,我们验证了这些条件在三个基本示例(包括$k$-PARITY、$k$-AND和$k$-OR)中成立,从而证明了它们通过RL和SFT的可学习性。值得注意的是,我们揭示了RL和SFT表现出不同的学习行为:RL同时学习整个CoT链,而SFT自然地逐步学习CoT链。总体而言,我们的发现为RL和SFT的底层机制以及它们在触发Transformer的CoT能力方面的差异提供了见解,并表明RL和SFT之间的比较可能需要考虑奖励设计和教师强制(teacher forcing)的使用。

英文摘要:

Transformers can acquire Chain-of-Thought (CoT) capabilities to solve reasoning tasks via fine-tuning. Reinforcement learning (RL) and supervised fine-tuning (SFT) are two primary approaches to this end. In this work, we examine RL with verifiable process rewards and SFT for learning $k$-sparse Boolean functions with a one-layer transformer through intermediate reasoning steps akin to CoT. In particular, we consider Boolean functions that can be recursively decomposed into fixed 2-sparse Boolean functions. We first analyze the learning dynamics of RL fine-tuning with verifiable process rewards and SFT in a unified way, allowing us to identify sufficient conditions under which the transformer provably learns these functions. We then verify that the conditions hold for three examples, including $k$-PARITY, $k$-AND, and $k$-OR, thus demonstrating their learnability via both RL and SFT. Notably, we reveal that RL and SFT exhibit distinct learning behaviors depending on supervision: RL learns the whole CoT chain simultaneously, whereas SFT without teacher forcing learns the CoT step-by-step. Overall, our findings provide insights on the mechanisms underlying RL and SFT and how they differ in triggering the CoT capabilities of transformers, and suggest that the comparison between RL and SFT should consider the intermediate supervision.

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

↑