2025-05-21 · 进阶 · 机器学习 · 自然语言处理

Latent Flow Transformer

本文提出了一种名为Latent Flow Transformer(LFT)的新型语言模型架构,通过使用流匹配原理将连续的Transformer层替换为单个学习到的传输算子,从而实现参数和计算效率的提升。

更新于 2025-05-23。作者:Yen-Chen Wu、Feng-Ting Liao、Meng-Hsi Chen、Pei-Chen Ho、Farhang Nabiei、Da-shan Shiu。

中文摘要

变换器,作为大型语言模型(LLMs)的标准实现,通常由数十到数百个独立的层组成。虽然更多的层可以带来更好的性能,但这种做法因远非高效而受到挑战,尤其是在扩散和基于流的模型在图像生成中展示了连续层的优越性之后。我们提出了潜在流变换器(LFT),它用一个通过流匹配训练的单个学习传输算子替换了一块层,在保持与原始架构兼容的同时提供了显著的压缩。此外,我们通过引入流行走(FW)算法来解决现有基于流的方法在保持耦合方面的局限性。在Pythia-410M模型上,使用流匹配训练的LFT压缩了24层中的6层,并且优于直接跳过2层(LM logits的KL散度分别为0.407和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 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.

解读

一句话总结

本文提出了一种名为Latent Flow Transformer(LFT)的新型语言模型架构,通过使用流匹配原理将连续的Transformer层替换为单个学习到的传输算子,从而实现参数和计算效率的提升。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt