Stuffed Mamba: Oversized States Lead to the Inability to Forget

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Yingfa, Zhang, Xinrong, Hu, Shengding, Han, Xu, Liu, Zhiyuan, Sun, Maosong
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915724443779072
author Chen, Yingfa
Zhang, Xinrong
Hu, Shengding
Han, Xu
Liu, Zhiyuan
Sun, Maosong
author_facet Chen, Yingfa
Zhang, Xinrong
Hu, Shengding
Han, Xu
Liu, Zhiyuan
Sun, Maosong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_07145
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Stuffed Mamba: Oversized States Lead to the Inability to Forget
Chen, Yingfa
Zhang, Xinrong
Hu, Shengding
Han, Xu
Liu, Zhiyuan
Sun, Maosong
Computation and Language
Artificial Intelligence
Machine Learning
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.
title Stuffed Mamba: Oversized States Lead to the Inability to Forget
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2410.07145