QS4D: Quantization-aware training for efficient hardware deployment of structured state-space sequential models

Sebastian Siegel, Ming-Jay Yang, Younes Bouhadjar, Maxime Fabre, Emre Neftci, John Paul StrachanarXiv 2025 · DOI

Introduction

Structured State Space models (SSMs) have emerged as a compelling alternative to Transformers for long-sequence processing due to their constant memory requirements. This characteristic makes them ideal for resource-constrained edge devices. However, deploying SSMs on specialized hardware like Analog In-Memory Computing (AIMC) presents challenges: high sensitivity to quantization and the inherent noise of analog systems. This paper introduces QS4D, a framework that leverages Quantization-Aware Training (QAT) to enable efficient SSM deployment on AIMC hardware.

Methodology

The QS4D framework focuses on the S4D model, which utilizes a diagonalized transition matrix ($A$) to streamline computations. The core of the approach is Quantization-Aware Training (QAT), which simulates low-bit precision during training, allowing the model to adapt to reduced numerical resolution.

The researchers also introduced the IMSSA (In-Memory State Space Accelerator) architecture to map SSM kernels onto memristive crossbar arrays. To evaluate performance beyond simple accuracy, new metrics were employed:

  • Arithmetic Computational Effort (ACE): Measuring total computational cost.
  • Model Size: Tracking memory footprint.
  • ADC Complexity: Assessing the overhead of analog-to-digital conversion.
Figure 2: Comparison of Post-Training Quantization (PTQ) and Quantization-Aware Training (QAT) across various model components. QAT consistently achieves lower error at reduced bit-widths.

Key Results and Discussion

The experimental results demonstrate that QAT significantly outperforms standard Post-Training Quantization (PTQ). While PTQ typically requires at least 10 bits to maintain performance, QAT allows models to be compressed to 6-bit precision with less than 1% additional error. The transition matrix ($A$) and time-step parameter ($\Delta t$) were identified as the most sensitive components, benefiting most from the QAT approach.

Efficiency Gains

The transition to low-bit precision via QAT yields substantial hardware benefits across multiple benchmarks (sCIFAR10, Pathfinder, and Heidelberg Digits):

  • Computational Complexity: ACE was reduced by 11.3x to 23.8x compared to full-precision floating-point models.
  • Memory Footprint: Model sizes were reduced by up to 5.1x.
  • Hardware Overhead: ADC complexity saw reductions of up to 4.6x.
Figure 3: Hardware efficiency metrics (ACE, model size, and ADC complexity) for floating-point (fp), PTQ, and QAT models across three benchmarks.

Noise Resilience and Pruning

A significant finding is that QAT serves as a form of "noise injection," making models more robust to the physical read noise of analog hardware. Furthermore, highly quantized models exhibited high potential for structural pruning; in some layers, over 50% of kernels could be removed with minimal impact on accuracy. Hardware validation on a physical memristive crossbar achieved 95.3% accuracy on a keyword spotting task, nearly matching software-only performance.

Conclusion

QS4D demonstrates that QAT is a vital tool for deploying state-of-the-art SSMs on edge hardware. By reducing precision requirements to 6 bits, the framework achieves order-of-magnitude improvements in efficiency while maintaining high accuracy and enhancing noise resilience. Future work will explore the scalability of these techniques to larger models and direct recurrent-mode quantization.

Summary updated

BibTeX
@misc{siegel2025qs,
  author = {Sebastian Siegel and Ming-Jay Yang and Younes Bouhadjar and Maxime Fabre and Emre Neftci and John Paul Strachan},
  title = {{QS4D: Quantization-aware training for efficient hardware deployment of structured state-space sequential models}},
  year = {2025},
  eprint = {2507.06079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.06079},
}
Figure