通过图像重建探测Mamba的长度泛化能力
Probing Length Generalization in Mamba via Image Reconstruction
AI总结:
研究Mamba在序列长度超出训练时长时的性能退化现象,通过图像重建任务分析其行为适应性,并提出长度自适应变体以提升泛化能力。
摘要:
Mamba作为一种通用序列模型,因其低计算复杂度和与Transformer的竞争性性能而受到广泛关注。然而,当推理序列长度超过训练时长时,其性能会下降。我们通过一个受控的视觉任务研究这一现象,即Mamba从图像块序列中重建图像。通过分析不同序列处理阶段的重建结果,我们发现Mamba会根据训练期间遇到的序列长度分布调整其行为,导致在超出此范围时泛化失败。为了支持我们的分析,我们引入了一个长度自适应的Mamba变体,以在更广泛的训练序列长度上提升性能。我们的结果为理解Mamba的长度泛化能力提供了直观视角,并指明了改进架构的方向。
英文摘要:
Mamba has attracted widespread interest as a general-purpose sequence model due to its low computational complexity and competitive performance relative to transformers. However, its performance can degrade when inference sequence lengths exceed those seen during training. We study this phenomenon using a controlled vision task in which Mamba reconstructs images from sequences of image patches. By analyzing reconstructions at different stages of sequence processing, we reveal that Mamba qualitatively adapts its behavior to the distribution of sequence lengths encountered during training, resulting in strategies that fail to generalize beyond this range. To support our analysis, we introduce a length-adaptive variant of Mamba that improves performance across training sequence lengths. Our results provide an intuitive perspective on length generalization in Mamba and suggest directions for improving the architecture.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。