PSumSim: A Simulator for Partial-Sum Quantization in Analog Matrix-Vector Multipliers
As AI and its applications evolve, efficient hardware is required to run the novel algorithms. Compute platforms with a high degree of parallelism, such as matrix-vector multipliers, meet the need to process large homogeneous loads of operations. However, most of the matrix-vector multiplications required by the AI algorithms are larger than what the actual hardware supports. The operations must therefore be tiled into blocks that fit on the given hardware. Finally, the partial sums generated by the hardware for each tile must be accumulated or concatenated into the complete result. Especially with mixed-signal compute-in-memory architectures, this can lead to quantization on two levels. First, an ADC quantizes the partial sums generated for each tile. Then, the algorithm performs another quantization of the final result to limit bitwidth and resource consumption in adjacent computations. While quantizing only the partial sums or only the final results has been studied extensively, the combination of the two has yet to be investigated. This work introduces a simulator to understand the effects of quantization caused by multiple quantization steps on different levels. It is based on a generic, stochastic representation of value probabilities using histograms. Common operations such as scaling, rounding, and accumulation are implemented in this representation, allowing the effect of quantization to be studied in a matrix-vector-multiplier application. It is shown, that the selection of tilesize, ADC bitwidth and clipping technique form a complex trade-off, which can be solved using PSumSim. PSumSim is available under https://github.com/Joschua-Conrad/PSumSim.
Authors
- Vasileios Belagiannis (ORCID: https://orcid.org/0000-0003-0960-8453)
- Maurits Ortmanns (ORCID: https://orcid.org/0000-0002-3547-1596)
- Ahmed Abdelaal (ORCID: https://orcid.org/0000-0001-9724-5896)
- Holger Mandry (ORCID: https://orcid.org/0000-0002-2575-2829)
- Joschua Conrad (ORCID: https://orcid.org/0000-0003-4780-8042)
- Rohan Asthana
- Simon Wilhelmstätter
- Paul Kässer
Institutions
- Friedrich-Alexander-Universität Erlangen-Nürnberg (DE)
- Universität Ulm (DE)
Publication Details
- Published
- 2025-05-25
- DOI
- https://doi.org/10.1109/iscas56072.2025.11043442
- Primary Topic
- Analog and Mixed-Signal Circuit Design
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Science Foundation