Selective State-Space Adaptation and Retrieval for Language Model Reasoning
Summary
A new family of adapters, MaLoRA and MaRA, enhances language model reasoning by introducing selective state-space recurrence at two granularities. MaLoRA (Mamba-modulated low-rank adaptation) dynamically adjusts the adapter's scaling factor with recurrent state across tokens, unlike prior stateless modulators. MaRA (Mamba Retrieval Adapter) tracks cross-segment state to select relevant segments before the language model generates its answer. Tested across Qwen-2.5-7B, Llama-3.1-8B, and Gemma-2-9B backbones on MuSiQue and 2WikiMultihopQA benchmarks, this family improved reasoning accuracy by an average of +6.8 F1 (+10.5% relative) and up to +9.3 F1 (+18.2% relative) on the hardest cell over the LoRA baseline. Token-level gains also extended to RULER QA-2 under length stress.
Key takeaway
For Machine Learning Engineers optimizing language model reasoning, consider integrating selective state-space adaptation techniques like MaLoRA and MaRA. These methods offer significant F1 score improvements over LoRA baselines, particularly on complex reasoning benchmarks and under length stress, by enabling dynamic, input-dependent adaptation. Your models can achieve an average of +6.8 F1 gain, enhancing performance on tasks requiring nuanced token and context-level understanding.
Key insights
Dynamic, state-aware adaptation improves language model reasoning by addressing token and context-level variations.
Principles
- Static adaptation limits token/instance-level state.
- Recurrent state improves dynamic scaling factors.
- Cross-segment state tracking enhances retrieval.
Method
MaLoRA uses Mamba-modulated low-rank adaptation for dynamic, input-dependent scaling with recurrent token state. MaRA tracks cross-segment state for relevant segment selection before generation.
In practice
- Apply MaLoRA for token-level adaptation.
- Use MaRA for context-level retrieval.
- Improve reasoning on multi-hop QA tasks.
Topics
- Language Model Adaptation
- Low-Rank Adaptation
- Mamba Models
- State-Space Models
- Reasoning Benchmarks
- Retrieval Adapters
Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by Computation and Language.