GEAR: Generator-Adaptive State Space Models for Associative Recall
Jun Meng ⋅ Mohammadhossein Amouei ⋅ Zengyu Lin ⋅ Xinyu Hu ⋅ Benjamin C. M. Fung
Abstract
Selective state space models (SSMs) such as Mamba-3 are efficient and increasingly competitive with Transformers. However, their fixed-size recurrent state remains a bottleneck for using context as temporary memory. To address this issue, we propose $\textit{GEAR}$ ($\textbf{GE}$nerator-$\textbf{A}$daptive State Space Models for Associative $\textbf{R}$ecall), a slow hypernetwork that produces coefficients for LoRA updates to the SSM token-to-recurrence parameter generators. GEAR makes the parameter generator context-adaptive while preserving the original linear-time Mamba-3 scan. To evaluate whether this adaptation improves in-context recall, we pretrain 180M-parameter models for 2B FineWeb-Edu tokens and compare against the Mamba-3 baseline and ablations at the same scale. In the Multi-Query Associative Recall (MQAR) task, models see $N$ in-context key-value bindings and must predict the value paired with a queried key. In compact MQAR evaluation where the adaptive path is active at the query, GEAR reduces candidate-restricted NLL relative to Mamba-3 by 0.70, 0.69, and 0.48 at $N=32,64,128$, respectively. Beyond compact MQAR, GEAR lowers NLL at every binding position, improves recall under moderate random-filler interference, and shows higher candidate-restricted first-token accuracy than a parameter-matched doubled-state Mamba-3 control on single- and multi-key needle-in-a-haystack (NIAH) tasks, together with lower answer NLL on FDA document retrieval. These results show that context-adaptive SSM generators improve associative recall while preserving Mamba-3 language modeling capabilities. Project page: https://github.com/McGill-DMaS/GEAR.
Successful Page Load