arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.15009cs.AIcs.LG
收藏

迈向更快的语言模型推断:专家混合流匹配

Towards Faster Language Model Inference Using Mixture-of-Experts Flow Matching

Duke University(杜克大学)

Aihua Li

AI总结:

本文提出MoE-FM框架,通过分解复杂潜空间传输几何结构,提升语言模型推断效率,YAN模型在多个任务中表现优异,速度提升显著。

摘要:

流匹配保留扩散模型的生成质量,同时实现显著更快的推断,使其成为生成建模有吸引力的范式。然而,应用于语言建模时,它在表示具有不规则几何的复杂潜在分布方面存在根本限制,如各向异性与多模态性。为解决这些挑战,我们提出混合专家流匹配(MoE-FM)框架,通过将复杂全局传输几何结构分解为局部专业化向量场来捕捉。基于MoE-FM,我们开发了一种非自回归(NAR)语言建模方法,名为YAN,采用Transformer和Mamba架构实现。在多个下游任务中,YAN在生成质量上与自回归(AR)和基于扩散的NAR语言模型相当,同时仅需最少的三个采样步骤。这使YAN在AR基线方面实现了40倍的加速,在扩散语言模型方面达到了10^3倍的加速,展示了语言建模中的显著效率优势。

英文摘要:

Flow matching retains the generation quality of diffusion models while enabling substantially faster inference, making it a compelling paradigm for generative modeling. However, when applied to language modeling, it exhibits fundamental limitations in representing complex latent distributions with irregular geometries, such as anisotropy and multimodality. To address these challenges, we propose a mixture-of-experts flow matching (MoE-FM) framework, which captures complex global transport geometries in latent space by decomposing them into locally specialized vector fields. Building on MoE-FM, we develop a non-autoregressive (NAR) language modeling approach, named YAN, instantiated with both Transformer and Mamba architectures. Across multiple downstream tasks, YAN achieves generation quality on par with both autoregressive (AR) and diffusion-based NAR language models, while requiring as few as three sampling steps. This yields a $40\times$ speedup over AR baselines and up to a $10^3\times$ speedup over diffusion language models, demonstrating substantial efficiency advantages for language modeling.

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

↑