DenseMamba:面向高效大语言模型的具有密集隐藏连接的状态空间模型
DenseMamba: State Space Models with Dense Hidden Connection for Efficient Large Language Models
AI总结:
针对状态空间模型性能不及 Transformer 的问题,本文提出 DenseSSM,通过层间密集隐藏连接保留细粒度信息,并在 RetNet、Mamba 等模型上以相近规模实现最高 5% 的基准准确率提升。
摘要:
由于广泛使用的 Transformer 架构需要过高的计算和内存需求,大语言模型(LLM)面临严峻挑战。状态空间模型(SSM)是一种提供更低计算复杂度的新型基础网络架构,但其性能尚不能完全与 Transformer 匹敌。本文提出 DenseSSM,这是一种增强 SSM 层间隐藏信息流动的新方法。通过有选择地将浅层隐藏状态整合到更深层,DenseSSM 保留了对最终输出至关重要的细粒度信息。增强了密集连接的 DenseSSM 仍保持训练并行性和推理效率。所提方法可广泛适用于 RetNet 和 Mamba 等多种 SSM 类型。在模型规模相近的情况下,DenseSSM 取得显著提升,例如 DenseRetNet 在公开基准上优于原始 RetNet,准确率提升最高达 5%。代码可在 https://github.com/WailordHe/DenseSSM 获取。
英文摘要:
Large language models (LLMs) face a daunting challenge due to the excessive computational and memory requirements of the commonly used Transformer architecture. While state space model (SSM) is a new type of foundational network architecture offering lower computational complexity, their performance has yet to fully rival that of Transformers. This paper introduces DenseSSM, a novel approach to enhance the flow of hidden information between layers in SSMs. By selectively integrating shallowlayer hidden states into deeper layers, DenseSSM retains fine-grained information crucial for the final output. Dense connections enhanced DenseSSM still maintains the training parallelizability and inference efficiency. The proposed method can be widely applicable to various SSM types like RetNet and Mamba. With similar model size, DenseSSM achieves significant improvements, exemplified by DenseRetNet outperforming the original RetNet with up to 5% accuracy improvement on public benchmarks. code is avalaible at https://github.com/WailordHe/DenseSSM
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。