arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14725cs.LGcs.CL
收藏

重新思考状态空间模型的令牌缩减

Rethinking Token Reduction for State Space Models

Northeastern University(东北大学);Harvard University(哈佛大学)

Zheng Zhan, Yushu Wu, Zhenglun Kong, Changdi Yang, Yifan Gong, Xuan Shen, Xue Lin, Pu Zhao, Yanzhi Wang

AI总结:

针对现有令牌缩减方法直接应用于状态空间模型导致性能大幅下降的问题,本文提出一种融合令牌重要性与相似性的统一训练后令牌缩减方法,在六个基准上相比现有方法将平均准确率提升5.7%至13.1%,同时显著降低计算和内存开销。

摘要:

状态空间模型(SSMs)的最新进展引起了广泛关注,特别是在针对并行训练和处理长程依赖进行优化的模型方面。像Mamba这样的架构已经通过选择性SSM扩展到数十亿参数规模。为了促进使用Mamba的更广泛应用,探索其效率至关重要。虽然令牌缩减技术提供了一种直接的训练后策略,但我们发现将现有方法直接应用于SSMs会导致显著的性能下降。通过深入分析,我们确定了这一失败的原因以及当前技术的局限性。为此,我们提出了一种针对SSMs量身定制的统一训练后令牌缩减方法。我们的方法融合了令牌重要性和相似性,从而同时利用剪枝和合并的优势,设计出一种细粒度的层内令牌缩减策略。大量实验表明,与现有方法相比,我们的方法在使用Mamba-2的六个基准上将平均准确率提高了5.7%至13.1%,同时显著降低了计算需求和内存占用。

英文摘要:

Recent advancements in State Space Models (SSMs) have attracted significant interest, particularly in models optimized for parallel training and handling long-range dependencies. Architectures like Mamba have scaled to billions of parameters with selective SSM. To facilitate broader applications using Mamba, exploring its efficiency is crucial. While token reduction techniques offer a straightforward post-training strategy, we find that applying existing methods directly to SSMs leads to substantial performance drops. Through insightful analysis, we identify the reasons for this failure and the limitations of current techniques. In response, we propose a tailored, unified post-training token reduction method for SSMs. Our approach integrates token importance and similarity, thus taking advantage of both pruning and merging, to devise a fine-grained intra-layer token reduction strategy. Extensive experiments show that our method improves the average accuracy by 5.7% to 13.1% on six benchmarks with Mamba-2 compared to existing methods, while significantly reducing computational demands and memory requirements.

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

↑