VersatileFFN: 通过适应性宽深重用实现LLM中的参数效率
VersatileFFN: Achieving Parameter Efficiency in LLMs via Adaptive Wide-and-Deep Reuse
AI总结:
VersatileFFN通过适应性宽深重用实现LLM参数效率,利用双路径结构在固定参数预算内提升模型性能。
摘要:
大型语言模型(LLMs)的快速扩展已取得显著性能,但这也导致了不可接受的内存成本。现有的参数高效方法,如剪枝和量化,主要压缩预训练模型而不增强架构容量,从而触及基础模型的表示上限。在本工作中,我们提出了VersatileFFN,一种新的前馈网络(FFN),它在固定的参数预算内,使参数在宽度和深度维度上都能灵活重用。受认知双过程理论的启发,VersatileFFN包含两条适应性路径:一条宽度灵活的路径,从单个共享FFN生成子专家的混合,模仿稀疏专家路由而不增加参数;另一条深度灵活的路径,递归应用相同的FFN以模拟对复杂token的更深处理。一个难度感知的门控动态平衡两条路径,将
英文摘要:
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 is available at https://github.com/huawei-noah/noah-research/tree/master/VersatileFFN.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。