通过图上的随机游走理解掩码扩散中的并行采样器
Walk fast but be careful: Understanding Parallel Sampling in Masked Diffusion
AI总结:
提出以图上随机游走为可验证沙盒,研究掩码扩散模型中的并行采样策略,理论上证明最低熵等并行采样并非普遍优于随机采样,并开发了二分采样器,实验表明不同图适用不同采样器。
摘要:
在本文中,我们提出使用图上的随机游走作为可验证沙盒,研究掩码扩散模型(MDMs)中的不同并行采样策略。我们在固定图的随机游走样本上训练MDM。图或转移核从未显式展示给模型,而是扮演序列中潜在结构的角色,尽管这种结构是可控制的并可用于定量评估。因此,该框架具有类似数独的有效性检查:验证输出是否为有效游走,并从游走中估计马尔可夫核以衡量分布保真度。使用简单图,我们从理论上证明,通过广泛使用的分数(如最低熵)进行的并行去掩码并不统一优于随机并行采样器;性能关键取决于底层图的结构。我们为随机游走开发了一种新的二分采样器,该采样器在序列长度上取对数步数,并且在完美训练下可证明是精确的。在各种图游走任务上的实验表明,即使在实际中,不同的并行采样器对不同图效果更好。我们在预训练的OpenWebText MDM上的初步实验表明,即使在语言生成中,二分式采样器也能改善速度-质量权衡。综合这些结果,将图随机游走定位为诊断和设计掩码扩散模型并行采样器的机制性基准。
英文摘要:
In this paper, we use random walks on graphs as a verifiable sandbox for studying parallel sampling strategies in masked diffusion models (MDMs). We train an MDM on random walk samples from a fixed graph. The graph and transition kernel are never shown to the model and serve as latent structure that is both controllable and enables evaluation. The framework provides a validity check for generated walks and a measure of distributional fidelity through the estimated transition kernel. Using simple graphs, we theoretically prove that parallel unmasking via widely used scores such as lowest entropy is not uniformly better than random parallel sampling; even with exact conditional probabilities, performance critically depends on the conditional dependence structure induced by the graph, a phenomenon difficult to isolate in benchmarks like Sudoku. We also develop training-free bisection samplers for MDMs, which take logarithmically many steps in the sequence length and are provably exact for random walks if the learned marginals are exact. Experiments on graph-walk tasks confirm that different parallel samplers perform better on different graph structures. Experiments on pretrained MDMs show that bisection-style samplers provide strong speed-quality tradeoffs on OpenWebText generation and reasoning benchmarks including GSM8K, MBPP, and HumanEval. Together, these results use graph walks to uncover conditional dependence as a key principle of parallel MDM sampling and translate this insight into efficient samplers that transfer to language generation and reasoning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。