Skip to main content
QUICK REVIEW

[Paper Review] Hidden State Poisoning Attacks against Mamba-based Language Models

Alexandre Le Mercier, Chris Develder|arXiv (Cornell University)|Jan 5, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

The paper introduces Hidden State Poisoning Attacks (HiSPAs) on Mamba-based state space models, shows they can irreversibly overwrite hidden states causing severe degradation, and provides RoBench-25 as a robustness benchmark highlighting architecture-specific vulnerabilities even in large hybrid models.

ABSTRACT

State space models (SSMs) like Mamba offer efficient alternatives to Transformer-based language models, with linear time complexity. Yet, their adversarial robustness remains critically unexplored. This paper studies the phenomenon whereby specific short input phrases induce a partial amnesia effect in such models, by irreversibly overwriting information in their hidden states, referred to as a Hidden State Poisoning Attack (HiSPA). Our benchmark RoBench-25 allows evaluating a model's information retrieval capabilities when subject to HiSPAs, and confirms the vulnerability of SSMs against such attacks. Even the recent Jamba-1.7-Mini SSM--Transformer (a 52B hybrid model) collapses on RoBench-25 under some HiSPA triggers, whereas pure Transformers do not. We also observe that HiSPA triggers significantly weaken the Jamba model on the popular Open-Prompt-Injections benchmark, unlike pure Transformers. We further show that the theoretical and empirical findings extend to Mamba-2, and also analyse a Mamba-2-based hybrid (Nemotron-3-Nano). Finally, our interpretability study reveals patterns in Mamba's hidden layers during HiSPAs that could be used to build a HiSPA mitigation system. The full code and data to reproduce the experiments can be found at https://anonymous.4open.science/r/hispa_anonymous-5DB0.

Motivation & Objective

  • Assess robustness of Mamba-based language models against adversarial hidden-state manipulation.
  • Characterize HiSPAs and how short triggers overwrite hidden states to impair information retrieval.
  • Evaluate zero-shot and white-box attack variants across pure SSM, Transformer, and hybrid architectures.
  • Provide a benchmark (RoBench-25) to quantify long-context information retrieval resilience.
  • Suggest potential detection and mitigation directions based on mechanistic insights.

Proposed method

  • Formulate HiSPA theory: trigger sequences cause contraction in hidden-state updates to dominate input terms.
  • Empirically verify HiSPAs via a simple black-box trigger optimization, observing exponential saturation behavior.
  • Define zero-shot HiSPAs (Z-HiSPA) and white-box HiSPAs (M-HiSPA) with different attacker capabilities.
  • Introduce RoBench-25 to evaluate information retrieval under HiSPAs using NeurIPS 2025 abstracts dataset and Heidke skill variant (CHSS).
  • Use genetic algorithm optimization to craft M-HiSPAs targeting the first block outputs and analyze degradation patterns.
  • Conduct blockwise interpretability analysis to identify late-blocks (28–37) most correlated with failure and propose detection ideas.

Experimental results

Research questions

  • RQ1Do HiSPAs cause architecture-specific vulnerabilities in Mamba-based models compared to Transformer baselines?
  • RQ2Can short triggers irreversibly overwrite hidden-state information, degrading long-context retrieval?
  • RQ3Do zero-shot vs white-box HiSPAs differ in effectiveness across pure SSM, Transformer, and hybrid models?
  • RQ4Can a practical defense be developed by monitoring internal block activations to detect HiSPAs?
  • RQ5To what extent do HiSPAs amplify Open-Prompt-Injections in hybrid models?

Key findings

  • HiSPAs dramatically degrade Mamba performance (71% average CHSS drop) while Transformers improve under the same triggers.
  • Jamba (hybrid SSM-Transformer) shows near-zero degradation under HiSPAs, indicating transfer of vulnerability is architecture-dependent.
  • Optimized M-HiSPAs can collapse Mamba and Pythia/ Jamba when certain triggers are used, while some large Transformers resist them.
  • Blockwise analysis reveals blocks 28–37, especially block 29, with strong negative correlations between hidden-state output norms and CHSS, suggesting a two-stage poisoning mechanism.
  • HiSPAs can amplify Prompt Injection Attacks in hybrid models, increasing ASV notably for Jamba and affecting other LLMs differently.
  • A practical norm-based detector targeting late blocks could flag anomalies without adversarial training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.