Iowa State University - Thesis & Dissertation
Performance profiling and activity-based state pruning for efficient Mamba inference
Abstract
dc:description.abstractSelective State Space Models (SSMs) have emerged as promising alternatives to Transformer-based architectures for sequence modeling, thanks to their favorable scaling behavior and efficiency on long-context tasks. Among these models, Mamba has attracted significant attention for its linear-time sequence modeling capability. However, the internal performance characteristics of Mamba-based architectures remain insufficiently understood, particularly with respect to runtime bottlenecks, memory usage, and scaling behavior across different sequence lengths. This thesis presents a detailed component-level performance analysis of Mamba-1 and Mamba-2 to identify the major sources of computational inefficiency. The study examines latency, memory consumption, computational cost, and I/O behavior across key architectural components and shows that the State Space Model (SSM) module is the dominant bottleneck, especially during decoding. Guided by this observation, this thesis proposes a structured, activity-based pruning method for the SSM state representation. The proposed method uses the average activity of the input-dependent gating parameter $\Delta t$ to identify low-activity-state channels and remove them, while maintaining compatibility with the original model via a lightweight bridging mechanism. Experimental results on Mamba2-130M show that the proposed approach achieves up to 1.14$\times$ speedup and 11.5\% memory reduction with relatively small accuracy degradation under moderate pruning levels.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- thesis
- Discipline thesis:degree_discipline
- Computer science
- Department dc:contributor.department
- Department of Computer Science
- Grantor
- Iowa State University - Thesis & Dissertation
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Al Asif, Abdullah
- Advisor dc:contributor.advisor
-
- Jannesari, Ali
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en_US
Identifiers
dc:identifier.*- Identifier URI
- https://dr.lib.iastate.edu/handle/20.500.12876/106556