<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sequence Models | Mobina Kashaniyan</title><link>https://mobinakashaniyan.github.io/tag/sequence-models/</link><atom:link href="https://mobinakashaniyan.github.io/tag/sequence-models/index.xml" rel="self" type="application/rss+xml"/><description>Sequence Models</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Thu, 02 Jul 2026 00:00:00 +0000</lastBuildDate><image><url>https://mobinakashaniyan.github.io/media/logo_hu_49df124fc4898e21.png</url><title>Sequence Models</title><link>https://mobinakashaniyan.github.io/tag/sequence-models/</link></image><item><title>PerfMamba: Mamba Performance, SSM Pruning, Efficient Inference, and Model Optimization</title><link>https://mobinakashaniyan.github.io/post/perfmamba-performance-analysis-pruning/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate><guid>https://mobinakashaniyan.github.io/post/perfmamba-performance-analysis-pruning/</guid><description>&lt;h2 id="mamba-performance-and-efficient-state-space-models"&gt;Mamba Performance and Efficient State Space Models&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Mamba&lt;/strong&gt; and &lt;strong&gt;selective state space models (SSMs)&lt;/strong&gt; have emerged as promising alternatives to Transformer-based sequence models for efficient sequence modeling and long-context processing.&lt;/p&gt;
&lt;p&gt;Unlike conventional Transformer architectures that rely heavily on attention, Mamba-style state space models are designed to provide efficient sequence processing and favorable scaling behavior. However, practical deployment still depends on understanding &lt;strong&gt;runtime performance, memory usage, GPU utilization, inference efficiency, and computational bottlenecks&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Our paper, &lt;strong&gt;“PerfMamba: Performance Analysis and Pruning of Selective State Space Models,”&lt;/strong&gt; provides an empirical performance analysis of &lt;strong&gt;Mamba-1 and Mamba-2&lt;/strong&gt; and investigates how state pruning can improve the efficiency of selective state space models.&lt;/p&gt;
&lt;h2 id="performance-analysis-of-mamba-1-and-mamba-2"&gt;Performance Analysis of Mamba-1 and Mamba-2&lt;/h2&gt;
&lt;p&gt;PerfMamba benchmarks Mamba-1 and Mamba-2 across sequence lengths ranging from &lt;strong&gt;64 to 16,384 tokens&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The study analyzes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;runtime performance&lt;/li&gt;
&lt;li&gt;execution time&lt;/li&gt;
&lt;li&gt;computation patterns&lt;/li&gt;
&lt;li&gt;memory access behavior&lt;/li&gt;
&lt;li&gt;memory efficiency&lt;/li&gt;
&lt;li&gt;I/O characteristics&lt;/li&gt;
&lt;li&gt;GPU resource utilization&lt;/li&gt;
&lt;li&gt;sequence-length scaling&lt;/li&gt;
&lt;li&gt;component-level performance&lt;/li&gt;
&lt;li&gt;model throughput&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This analysis helps reveal how Mamba architectures behave in practice and where computational bottlenecks occur as sequence length increases.&lt;/p&gt;
&lt;h2 id="mamba-inference-and-runtime-profiling"&gt;Mamba Inference and Runtime Profiling&lt;/h2&gt;
&lt;p&gt;The theoretical efficiency of a neural architecture does not necessarily translate directly into optimal hardware performance.&lt;/p&gt;
&lt;p&gt;PerfMamba therefore studies &lt;strong&gt;Mamba inference performance&lt;/strong&gt; at the systems level, examining how different components of the architecture contribute to runtime, memory consumption, and resource utilization.&lt;/p&gt;
&lt;p&gt;The profiling results show that the &lt;strong&gt;selective state space model component&lt;/strong&gt; accounts for an important portion of the computational workload, making it a natural target for optimization.&lt;/p&gt;
&lt;p&gt;This makes the work relevant to researchers studying:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mamba inference&lt;/li&gt;
&lt;li&gt;LLM inference optimization&lt;/li&gt;
&lt;li&gt;AI inference acceleration&lt;/li&gt;
&lt;li&gt;efficient deep learning&lt;/li&gt;
&lt;li&gt;GPU performance&lt;/li&gt;
&lt;li&gt;hardware-aware machine learning&lt;/li&gt;
&lt;li&gt;machine learning systems&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="state-space-model-pruning"&gt;State Space Model Pruning&lt;/h2&gt;
&lt;p&gt;Based on the performance profiling results, PerfMamba investigates &lt;strong&gt;state pruning&lt;/strong&gt; for selective state space models.&lt;/p&gt;
&lt;p&gt;The proposed approach identifies and removes low-activity states within the SSM component to reduce unnecessary computation.&lt;/p&gt;
&lt;p&gt;This connects Mamba optimization with broader research on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;neural network pruning&lt;/li&gt;
&lt;li&gt;model compression&lt;/li&gt;
&lt;li&gt;state-space model pruning&lt;/li&gt;
&lt;li&gt;model acceleration&lt;/li&gt;
&lt;li&gt;memory optimization&lt;/li&gt;
&lt;li&gt;efficient AI inference&lt;/li&gt;
&lt;li&gt;hardware-aware optimization&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The goal is to improve computational efficiency while preserving model accuracy under moderate pruning.&lt;/p&gt;
&lt;h2 id="mamba-pruning-for-faster-and-more-memory-efficient-inference"&gt;Mamba Pruning for Faster and More Memory-Efficient Inference&lt;/h2&gt;
&lt;p&gt;PerfMamba demonstrates that selective state pruning can improve runtime and memory efficiency.&lt;/p&gt;
&lt;p&gt;Under moderate pruning, the method achieves:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;up to 1.14× inference speedup&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;up to 11.5% reduction in memory usage&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;improved throughput across different sequence lengths&lt;/li&gt;
&lt;li&gt;limited degradation in model quality under moderate pruning&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These results show that internal state redundancy can provide an opportunity for practical optimization of Mamba-based models.&lt;/p&gt;
&lt;h2 id="efficient-llm-inference-and-mamba"&gt;Efficient LLM Inference and Mamba&lt;/h2&gt;
&lt;p&gt;State space models such as Mamba are increasingly relevant to research on &lt;strong&gt;large language models and efficient LLM inference&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;As language models grow in size and context length, researchers are actively exploring architectures that can process long sequences with lower computational and memory overhead.&lt;/p&gt;
&lt;p&gt;PerfMamba contributes to this area by examining how the internal components of Mamba behave at runtime and how selective pruning can reduce inference cost.&lt;/p&gt;
&lt;p&gt;The work is therefore relevant to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;LLM efficiency&lt;/li&gt;
&lt;li&gt;efficient LLM inference&lt;/li&gt;
&lt;li&gt;long-context language models&lt;/li&gt;
&lt;li&gt;inference optimization&lt;/li&gt;
&lt;li&gt;sequence model acceleration&lt;/li&gt;
&lt;li&gt;memory-efficient AI&lt;/li&gt;
&lt;li&gt;scalable machine learning systems&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="mamba-vs-transformer-efficiency"&gt;Mamba vs Transformer Efficiency&lt;/h2&gt;
&lt;p&gt;Mamba and other state space models are often studied as alternatives to Transformer architectures because of their sequence-processing efficiency.&lt;/p&gt;
&lt;p&gt;PerfMamba complements architectural comparisons by asking a systems-oriented question:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Where is computation actually spent inside Mamba, and which components can be optimized to improve real-world performance?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This performance-oriented perspective is important because theoretical complexity alone does not determine actual GPU runtime, memory behavior, or inference throughput.&lt;/p&gt;
&lt;h2 id="long-sequence-modeling-and-scaling"&gt;Long-Sequence Modeling and Scaling&lt;/h2&gt;
&lt;p&gt;One of the key motivations for state space models is their ability to process long sequences efficiently.&lt;/p&gt;
&lt;p&gt;PerfMamba evaluates Mamba models over sequence lengths from &lt;strong&gt;64 to 16,384 tokens&lt;/strong&gt;, providing insight into how execution time, memory use, and resource utilization change as workloads scale.&lt;/p&gt;
&lt;p&gt;This makes the study relevant to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;long-sequence modeling&lt;/li&gt;
&lt;li&gt;long-context models&lt;/li&gt;
&lt;li&gt;scalable sequence models&lt;/li&gt;
&lt;li&gt;efficient sequence processing&lt;/li&gt;
&lt;li&gt;large language model systems&lt;/li&gt;
&lt;li&gt;high-performance AI&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="hardware-aware-mamba-optimization"&gt;Hardware-Aware Mamba Optimization&lt;/h2&gt;
&lt;p&gt;PerfMamba takes a systems-oriented approach to model optimization.&lt;/p&gt;
&lt;p&gt;Rather than evaluating only predictive accuracy, the work considers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;computation&lt;/li&gt;
&lt;li&gt;memory access&lt;/li&gt;
&lt;li&gt;I/O&lt;/li&gt;
&lt;li&gt;resource utilization&lt;/li&gt;
&lt;li&gt;execution time&lt;/li&gt;
&lt;li&gt;throughput&lt;/li&gt;
&lt;li&gt;sequence-length scaling&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This makes the work relevant to &lt;strong&gt;hardware-aware AI, GPU optimization, machine learning systems, high-performance computing, and AI systems research&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="what-is-perfmamba"&gt;What Is PerfMamba?&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;PerfMamba&lt;/strong&gt; is a performance-analysis and optimization study of Mamba-1 and Mamba-2 selective state space models.&lt;/p&gt;
&lt;p&gt;The framework combines:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mamba benchmarking → runtime profiling → bottleneck analysis → state pruning → inference acceleration → memory reduction&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The goal is to understand how Mamba models behave on real hardware and identify opportunities for more efficient inference.&lt;/p&gt;
&lt;h2 id="why-does-mamba-pruning-matter"&gt;Why Does Mamba Pruning Matter?&lt;/h2&gt;
&lt;p&gt;Modern deep learning models often contain redundant computation.&lt;/p&gt;
&lt;p&gt;For selective state space models, some internal states may contribute less to model behavior than others. Identifying and pruning low-activity states can potentially reduce computation and memory requirements.&lt;/p&gt;
&lt;p&gt;PerfMamba demonstrates that this strategy can improve the efficiency of Mamba models while maintaining competitive model quality under moderate pruning.&lt;/p&gt;
&lt;h2 id="applications"&gt;Applications&lt;/h2&gt;
&lt;p&gt;The findings are relevant to researchers and engineers working on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mamba architectures&lt;/li&gt;
&lt;li&gt;state space models&lt;/li&gt;
&lt;li&gt;large language models&lt;/li&gt;
&lt;li&gt;efficient LLM inference&lt;/li&gt;
&lt;li&gt;long-context AI&lt;/li&gt;
&lt;li&gt;model compression&lt;/li&gt;
&lt;li&gt;neural network pruning&lt;/li&gt;
&lt;li&gt;AI inference acceleration&lt;/li&gt;
&lt;li&gt;GPU optimization&lt;/li&gt;
&lt;li&gt;scalable machine learning&lt;/li&gt;
&lt;li&gt;machine learning systems&lt;/li&gt;
&lt;li&gt;high-performance computing&lt;/li&gt;
&lt;li&gt;hardware-aware AI&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="paper"&gt;Paper&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;PerfMamba: Performance Analysis and Pruning of Selective State Space Models&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Abdullah Al Asif, Mobina Kashaniyan, Sixing Yu, Juan Pablo Muñoz, Ali Jannesari&lt;/p&gt;
&lt;p&gt;Published in &lt;strong&gt;International Symposium on Benchmarking, Measuring and Optimization&lt;/strong&gt;&lt;br&gt;
Springer, Singapore, 2026&lt;br&gt;
Pages 27–44&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DOI:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://doi.org/10.1007/978-981-95-9694-2_3" target="_blank" rel="noopener"&gt;https://doi.org/10.1007/978-981-95-9694-2_3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;arXiv:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://arxiv.org/abs/2511.22849" target="_blank" rel="noopener"&gt;https://arxiv.org/abs/2511.22849&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PDF:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://mobinakashaniyan.github.io/papers/perfmamba-performance-analysis-pruning-selective-state-space-models.pdf" target="_blank" rel="noopener"&gt;https://mobinakashaniyan.github.io/papers/perfmamba-performance-analysis-pruning-selective-state-space-models.pdf&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="keywords"&gt;Keywords&lt;/h2&gt;
&lt;p&gt;PerfMamba, Mamba, Mamba architecture, Mamba model, Mamba-1, Mamba-2, Mamba performance, Mamba benchmarking, Mamba inference, Mamba optimization, Mamba pruning, Mamba efficiency, Mamba SSM, selective state space models, state space models, state-space models, SSM, SSM pruning, SSM optimization, SSM inference, efficient state space models, sequence models, sequence modeling, long sequence modeling, long-context models, Transformer alternatives, Mamba vs Transformer, large language models, LLM efficiency, efficient LLM inference, LLM inference optimization, AI inference, inference optimization, inference acceleration, model acceleration, model optimization, model pruning, neural network pruning, state pruning, model compression, neural network compression, efficient AI, efficient machine learning, efficient deep learning, model efficiency, memory efficiency, memory optimization, runtime performance, runtime profiling, performance analysis, performance optimization, AI benchmarking, GPU performance, GPU benchmarking, GPU optimization, hardware-aware AI, hardware-aware optimization, resource utilization, memory access patterns, I/O performance, sequence-length scaling, AI systems, machine learning systems, deep learning systems, high-performance computing, HPC, scalable machine learning.&lt;/p&gt;
&lt;h2 id="citation"&gt;Citation&lt;/h2&gt;
&lt;p&gt;Al Asif, A., Kashaniyan, M., Yu, S., Muñoz, J. P., &amp;amp; Jannesari, A. (2026). &lt;em&gt;PerfMamba: Performance Analysis and Pruning of Selective State Space Models&lt;/em&gt;. In &lt;strong&gt;International Symposium on Benchmarking, Measuring and Optimization&lt;/strong&gt; (pp. 27–44). Springer, Singapore. &lt;a href="https://doi.org/10.1007/978-981-95-9694-2_3" target="_blank" rel="noopener"&gt;https://doi.org/10.1007/978-981-95-9694-2_3&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>