arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.14513cs.LGcs.AI
收藏

潜在流Transformer(Latent Flow Transformer)

Latent Flow Transformer

MediaTek Research(联发科研究)

Yen-Chen Wu, Feng-Ting Liao, Meng-Hsi Chen, Pei-Chen Ho, Farhang Nabiei, Da-shan Shiu

AI总结:

针对Transformer层数多效率低的问题,提出Latent Flow Transformer,用流匹配训练的传输算子压缩层,还提出Flow Walking算法提升耦合保留能力,在Pythia-410M上验证了高效压缩的可行性,缩小了自回归与流生成范式的差距。

摘要:

Transformer是大语言模型(LLM)的标准实现,通常由数十到数百个离散层构成。尽管层数越多性能越好,但这种方式的效率备受质疑,尤其是扩散模型和基于流的图像生成模型已证明连续层更具优势。我们提出Latent Flow Transformer(LFT,潜在流Transformer),它用一个通过流匹配训练的可学习传输算子替换一组层,在大幅压缩模型的同时保持与原架构的兼容性。此外,我们针对现有基于流的方法在“保留耦合”方面的局限性,提出了Flow Walking(FW,流行走)算法。在Pythia-410M模型上,采用流匹配训练的LFT将24层中的6层进行压缩,性能优于直接跳过2层的方案(语言模型logits的KL散度为0.407 vs 0.529),证明了该设计的可行性。当使用FW训练时,LFT进一步将12层蒸馏为1层,同时将KL散度降至0.736,优于跳过3层的结果(0.932),显著缩小了自回归生成范式与基于流的生成范式之间的差距。

英文摘要:

Transformers, the standard implementation for large language models (LLMs), typically consist of tens to hundreds of discrete layers. While more layers can lead to better performance, this approach has been challenged as far from efficient, especially given the superiority of continuous layers demonstrated by diffusion and flow-based models for image generation. We propose the Latent Flow Transformer (LFT), which replaces a block of layers with a single learned transport operator trained via flow matching, offering significant compression while maintaining compatibility with the original architecture. Additionally, we address the limitations of existing flow-based methods in \textit{preserving coupling} by introducing the Flow Walking (FW) algorithm. On the Pythia-410M model, LFT trained with flow matching compresses 6 of 24 layers and outperforms directly skipping 2 layers (KL Divergence of LM logits at 0.407 vs. 0.529), demonstrating the feasibility of this design. When trained with FW, LFT further distills 12 layers into one while reducing the KL to 0.736 surpassing that from skipping 3 layers (0.932), significantly narrowing the gap between autoregressive and flow-based generation paradigms.

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

↑