arXiv:2512.15653cs.CL2025-12被引 3

揭示Mamba模型在长序列中容易遗忘数学、实体等关键信息

Characterizing Mamba's Selective Memory using Auto-Encoders

  • 用自编码器从隐藏状态重建序列,量化信息丢失
  • 数学符号、组织名、非标准方言遗忘率显著更高
  • 罕见词在预训练数据中出现少,更易被遗忘

状态空间模型(SSMs)是语言建模的有前景替代方案,因其推理时使用固定内存。然而,处理长序列时隐藏状态会出现信息损失。现有研究关注信息损失发生的时间点,但未分析具体丢失哪些类型的信息。本文通过训练自编码器从SSM隐藏状态重建序列,比较输入与重构结果来衡量信息损失。实验使用Mamba系列模型(130M–1.4B参数)在4–256个标记的序列上进行测试。结果表明,数学相关标记(如数字、变量)、组织实体提及以及非标准美式英语方言的遗忘率显著更高。进一步分析发现,这些易被遗忘的标记在Mamba预训练数据中出现频率较低。本研究为未来改进Mamba保留关键信息的能力提供了明确方向。

原文摘要 · Abstract (English)

State space models (SSMs) are a promising alternative to transformers for language modeling because they use fixed memory during inference. However, this fixed memory usage requires some information loss in the hidden state when processing long sequences. While prior work has studied the sequence length at which this information loss occurs, it does not characterize the types of information SSM language models (LMs) tend to forget. In this paper, we address this knowledge gap by identifying the types of tokens (e.g., parts of speech, named entities) and sequences (e.g., code, math problems) that are more frequently forgotten by SSM LMs. We achieve this by training an auto-encoder to reconstruct sequences from the SSM's hidden state, and measure information loss by comparing inputs with their reconstructions. We perform experiments using the Mamba family of SSM LMs (130M--1.4B) on sequences ranging from 4--256 tokens. Our results show significantly higher rates of information loss on math-related tokens (e.g., numbers, variables), mentions of organization entities, and alternative dialects to Standard American English. We then examine the frequency that these tokens appear in Mamba's pretraining data and find that less prevalent tokens tend to be the ones Mamba is most likely to forget. By identifying these patterns, our work provides clear direction for future research to develop methods that better control Mamba's ability to retain important information.

Mamba信息遗忘语言模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。