arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.07145cs.CLcs.AIcs.LG
收藏

填充的Mamba:大状态导致无法遗忘

Stuffed Mamba: Oversized States Lead to the Inability to Forget

Department of Computer Science and Technology, Tsinghua University(计算机科学与技术系,清华大学)

Yingfa Chen, Xinrong Zhang, Shengding Hu, Xu Han, Zhiyuan Liu, Maosong Sun

AI总结:

本文揭示了基于Mamba的模型因状态大小与训练长度不匹配导致无法有效遗忘的问题,并提出了改进长上下文建模的思路。

摘要:

最近在循环架构中的最新进展,如Mamba和RWKV,展示了强大的语言能力。与基于Transformer的模型不同,这些架构将所有上下文信息编码到固定大小的状态中,从而带来巨大的推理效率。然而,这种方法会导致信息干扰,不同token数据冲突,导致在一定上下文长度之后性能下降和不连贯的输出。为了防止这种情况,大多数RNNs会加入机制来

英文摘要:

Recent advancements in recurrent architectures, such as Mamba and RWKV, have showcased strong language capabilities. Unlike transformer-based models, these architectures encode all contextual information into a fixed-size state, leading to great inference efficiency. However, this approach can cause information interference, where different token data conflicts, resulting in performance degradation and incoherent outputs beyond a certain context length. To prevent this, most RNNs incorporate mechanisms designed to "forget" earlier tokens. In this paper, we reveal that Mamba-based models struggle to effectively forget earlier tokens even with built-in forgetting mechanisms. We demonstrate that this issue stems from training on contexts that are too short for the state size, enabling the model to perform well without needing to learn how to forget. Then, we show that the minimum training length required for the model to learn forgetting scales linearly with the state size, and the maximum context length for accurate retrieval of a 5-digit passkey scales exponentially with the state size, indicating that the model retains some information beyond the point where forgetting begins. These findings highlight a critical limitation in current RNN architectures and provide valuable insights for improving long-context modeling. Our work suggests that future RNN designs must account for the interplay between state size, training length, and forgetting mechanisms to achieve robust performance in long-context tasks.

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

↑