2025-12-17 · 专家 · 自然语言处理 · 机器学习

VersatileFFN: Achieving Parameter Efficiency in LLMs via Adaptive Wide-and-Deep Reuse

VersatileFFN通过自适应宽度和深度重用参数,实现了在大型语言模型(LLMs)中的参数效率。

更新于 2025-12-17。作者:Ying Nie、Kai Han、Hongguang Li、Hang Zhou、Tianyu Guo、Enhua Wu、Xinghao Chen、Yunhe Wang。

中文摘要

大型语言模型(LLMs)的快速扩展取得了显著的性能,但也导致了高昂的内存成本。现有的参数高效方法,如剪枝和量化,主要压缩预训练模型而不增强架构容量,从而触及了基础模型的表示上限。在这项工作中,我们提出了VersatileFFN,这是一种新型的前馈网络(FFN),它能够在固定的参数预算内灵活地在宽度和深度维度上重复使用参数。受认知的双过程理论启发,VersatileFFN包含两个自适应路径:一个宽度灵活路径,从单个共享FFN生成混合的子专家,模拟稀疏专家路由而不增加参数;一个深度灵活路径,递归地应用相同的FFN来模拟对复杂标记的更深层次处理。一个难度感知的门控机制动态地平衡这两个路径,将“简单”标记引导通过高效的宽度路由,并将更深入的迭代细化分配给“困难”标记。关键的是,这两个路径都重复使用相同的参数,因此所有额外的容量都来自计算而不是内存。在多个基准和模型规模上的实验证明了该方法的有效性。代码将在https://github.com/huawei-noah/noah-research/tree/master/VersatileFFN处提供。

英文摘要

The rapid scaling of Large Language Models (LLMs) has achieved remarkable performance, but it also leads to prohibitive memory costs. Existing parameter-efficient approaches such as pruning and quantization mainly compress pretrained models without enhancing architectural capacity, thereby hitting the representational ceiling of the base model. In this work, we propose VersatileFFN, a novel feed-forward network (FFN) that enables flexible reuse of parameters in both width and depth dimensions within a fixed parameter budget. Inspired by the dual-process theory of cognition, VersatileFFN comprises two adaptive pathways: a width-versatile path that generates a mixture of sub-experts from a single shared FFN, mimicking sparse expert routing without increasing parameters, and a depth-versatile path that recursively applies the same FFN to emulate deeper processing for complex tokens. A difficulty-aware gating dynamically balances the two pathways, steering "easy" tokens through the efficient width-wise route and allocating deeper iterative refinement to "hard" tokens. Crucially, both pathways reuse the same parameters, so all additional capacity comes from computation rather than memory. Experiments across diverse benchmarks and model scales demonstrate the effectiveness of the method. The code will be available at https://github.com/huawei-noah/noah-research/tree/master/VersatileFFN.

解读

一句话总结

VersatileFFN通过自适应宽度和深度重用参数,实现了在大型语言模型(LLMs)中的参数效率。

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

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

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

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

来源

机器可读索引:llms.txt