首页 > AI前沿 > LoopD: Diffusion Drafting for Looped Language Models

LoopD: Diffusion Drafting for Looped Language Models

arXiv机器学习 2026-12-02 16:49 19 阅读 查看原文
用户现在需要把给定的纯文本新闻正文排版成语义化的HTML片段,按照规则来。首先,先看原文的结构,有没有需要分小节的?原文是一段?不对,仔细看内容,首先开头讲Looped Transformers的情况,然后讲现有方法的不足,然后提出LoopD,然后讲LoopD的设计,最后是实验结果。不过原文是一个连续的段落?不对,不对,原文的每一句是连贯的,但按照规则,每个自然段落用

,有没有需要h2或者h3的?看原文,没有明显的小节标题,不过等下,仔细看,哦不对,原文是一整段?不对,再看:第一句讲Looped Transformers的优势和延迟问题,然后讲现有方法的问题,然后提出LoopD,然后讲LoopD的调度设计,最后是实验结果。不过用户要求保留所有信息,不能增删改。那首先,有没有需要分h2的?哦,等下,原文的内容,有没有自然的分节?不对,再仔细看规则,长文用h2/h3划分小节,但原文是不是没有小标题?不对,原文是纯文本正文,没有小标题,那是不是就把每个自然段落用p包裹?不对,等下看原文的结构,哦,原文是一个连续的段落吗?不对,看用户给的正文: 原文内容: Looped Transformers achieve strong performance with compact parameter sizes by repeatedly applying a shared stack of Transformer blocks across recurrent depths. However, they incur higher decoding latency than standard Transformers of comparable parameter size, because every token must pass through all recurrent depths in sequence and the shared weights are accessed again at each depth. Recent pipelined self-speculative decoding methods reduce this latency by drafting tokens from early recurrent states and advancing tokens at different depths in the same batch, but they do not fully exploit shallow loops to draft multiple tokens in parallel, and still spend sequential steps on drafting that could overlap with verification. We therefore present LoopD, a self-speculative decoding framework in which a single shallow loop of the target model, adapted with lightweight low-rank parameters, serves as a diffusion drafter that proposes a block of future tokens in parallel. To keep drafting off the critical path, we embed it in a token-tree scheduler: each block is drafted in the same forward step that advances earlier tokens at deeper recurrent depths, and early-exit predictions from shallow loops are kept as fallback branches, so drafting costs no sequential step and a rejected draft need not stall the pipeline. Under greedy decoding on Ouro-1.4B across five reasoning and coding benchmarks, LoopD achieves up to 5.76$\times$ decoding speedup over autoregressive decoding with bitwise-identical outputs, outperforming LoopSpec and LoopAhead on every benchmark, and reduces the number of sequential recurrence steps per token by up to 8.7$\times$. 哦,原来这是一整段?不对,但有没有需要分的?或者是不是可以分成几个p?不对,规则说每个自然段落用

,那如果原文是一个自然段落,就用一个p?不对,等下,再看,有没有重要的句子需要加strong?比如提到LoopD的句子,或者关键的性能数据?不对,规则说重要句子可用strong,不能增删改内容。那首先,处理: 首先,原文没有小节标题,所以不需要h2/h3?不对,等下,长文用h2/h3划分小节,那如果原文的结构,比如可以分成: 1. 背景与现有方法局限:用h2?不对,不能自己加内容啊!哦不对,规则4说保留原文所有信息,不得增删改内容,所以不能自己加小标题,因为原文没有小标题。哦对哦,不能加原文没有的内容,所以h2/h3是划分原文的小节,但原文没有小标题,那是不是就不用?不对,再仔细看原文,有没有自然的小节?原文的内容是连贯的,没有分节的标识,那是不是就把整个内容放在一个p里?不对,等下,再看,有没有需要用blockquote?没有,没有引用。有没有列表?没有。有没有代码?没有。那重要的句子可以加strong,比如: 比如“We therefore present LoopD, a self-speculative decoding framework in which a single shallow loop of the target model, adapted with lightweight low-rank parameters, serves as a diffusion drafter that proposes a block of future tokens in parallel.”这个可以加strong?还有“LoopD achieves up to 5.76$\times$ decoding speedup over autoregressive decoding with bitwise-identical outputs, outperforming LoopSpec and LoopAhead on every benchmark, and reduces the number of sequential recurrence steps per token by up to 8.7$\times$.”这个也可以加strong? 不对,再确认规则:保留原文所有信息,不得增删改内容。加strong是格式,不是改内容,没问题。 那现在,原文是一个自然段落吗?看原文的标点,都是连续的,是一个自然段,所以用

包裹,里面重要的部分加。 等下,再仔细看,有没有可能分成几个p?比如: 第一p:Looped Transformers...could overlap with verification. 讲背景和现有方法的问题。 第二p:We therefore present LoopD...in parallel. 讲提出的框架。 第三p:To keep drafting off the critical path...stall the pipeline. 讲设计细节。 第四p:Under greedy decoding...8.7$\times$. 讲实验结果。 这样是不是更合理?因为每个自然段落,原文虽然是连续的,但语义上是不同的自然段?不对,原文是一整段,但是规则说每个自然段落用

,那如果原文是一整段,就用一个p,但如果语义上可以拆分?不对,不能改原文的内容,拆分段落算不算改?哦,规则说不得增删改内容,拆分段落是排版,内容没改,没问题?不对,等下,用户给的正文是一个连续的段落,也就是一个自然段,那是不是就用一个

包裹? 不对,再想,比如原文的内容,有没有自然的段落划分?比如: 第一句到“shared weights are accessed again at each depth.”是第一部分,讲Looped Transformers的优缺点。 然后“Recent pipelined...overlap with verification.”是第二部分,讲现有方法的不足。 然后“We therefore present...in parallel.”是第三部分,提出方法。 然后“To keep drafting...stall the pipeline.”是第四部分,讲方法的设计。 然后“Under greedy decoding...8.7$\times$.”是第五部分,实验结果。 但这些都是在一个自然段里的,是不是应该保持一个p?还是可以拆分?不对,规则说“每个自然段落用

包裹”,自然段落是原文里的,原文里只有一个自然段落,所以就用一个

。 然后里面的重点内容加,比如提到LoopD的核心设计,还有性能结果的部分。 等下,再看规则,重要句子可用,那哪些是重要的? 1. 提到LoopD的提出的句子:We therefore present LoopD, a self-speculative decoding framework in which a single shallow loop of the target model, adapted with lightweight low-rank parameters, serves as a diffusion drafter that proposes a block of future tokens in parallel. 2. 提到调度设计的关键句子:so drafting costs no sequential step and a rejected draft need not stall the pipeline 3. 实验结果的句子:LoopD achieves up to 5.76$\times$ decoding speedup over autoregressive decoding with bitwise-identical outputs, outperforming LoopSpec and LoopAhead on every benchmark, and reduces the number of sequential recurrence steps per token by up to 8.7$\times$. 这样处理,然后整个放在一个

里?不对,等下,有没有需要h2的?原文没有小标题,所以不能加,因为加h2的话需要有内容,而原文没有,所以不能自己加小标题,否则就是增改内容了。 对,规则4说不得增删改内容,所以不能添加原文没有的小标题,所以h2/h3这里用不上,因为没有原文的小节标题。 那最终的HTML片段就是:

Looped Transformers achieve strong performance with compact parameter sizes by repeatedly applying a shared stack of Transformer blocks across recurrent depths. However, they incur higher decoding latency than standard Transformers of comparable parameter size, because every token must pass through all recurrent depths in sequence and the shared weights are accessed again at each depth. Recent pipelined self-speculative decoding methods reduce this latency by drafting tokens from early recurrent states and advancing tokens at different depths in the same batch, but they do not fully exploit shallow loops to draft multiple tokens in parallel, and still spend sequential steps on drafting that could overlap with verification. We therefore present