kth.sePublications KTH
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Design of a Dual-Scale Quantized SSM Inference Accelerator for NoC-Based Systems: A case study on Quamba-based AI accelerator
KTH, School of Electrical Engineering and Computer Science (EECS).
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Design av en dubbelskalig kvantiserad SSM-inferensaccelerator för NoC-baserade system : En fallstudie om Quamba-baserad AI-accelerator (Swedish)
Abstract [en]

State Space Models (SSMs) such as Mamba offer linear-time sequence modeling, which makes them suitable for deployment on hardware accelerators. Such accelerators benefit from low communication overhead together with high numerical accuracy, a concern that is especially pronounced on NoC-based accelerators where the width of each transmitted value bounds both the network bandwidth and the router area. The difficulty is that the primary input tensor 𝑢 contains a small fraction of large-magnitude outliers. Standard INT8 quantization clips these outliers, and resulting errors compound across the recurrent hidden-state update, whereas widening the format to INT9 or INT11 preserves them but by inflating the payload width. This thesis proposes a flag-bit-driven Dual-Scale (DS) dequantization frontend for an SSM processing element (PE), which preserves outliers while keeping a 9-bit payload. The method operates in two stages: a 1-bit scale flag is assigned per element offline during calibration, and this flag then drives a combinational multiplexer at inference time. We implement the design as synthesizable RTL and obtain synthesis results with a 22nm standard-cell library via Synopsys Design Compiler. In the first stage, offline calibration assigns each element of 𝑢 a 1-bit flag. The flag selects between a fine-grained inlier scale and a wide-range outlier scale, so the outlier magnitude is recovered at dequantization rather than clipped at quantization. In the second stage, the same flag drives a 2-to-1 multiplexer at inference time. The delay of this multiplexer is absorbed within the existing INT8-to-FP32 conversion, so the design adds no pipeline stages. All dual-scale logic is confined to the u channel, while every other tensor remains on a single-scale INT8 path. The PE is verified against a bit-accurate Python golden model, and the synthesized design is then evaluated for accuracy, area, and timing. At 𝛼 = 0.99, the DS scheme matches the accuracy of the wider INT9 and INT11 formats in both RMSE and maximum absolute error, while using only a 9-bit payload. Relative to the INT8-Clip baseline, it reduces the peak outlier error by 69%. The Dual-Scale logic adds 144𝜇𝑚2 of area, which corresponds to a 0.30% overhead on the PE, and all configurations meet timing closure at 1 GHz. A system-level analysis shows that the single PE is compute-bound, so the narrower DS payload reaches INT11-level accuracy without lowering throughput. These results indicate that ASIC combinational logic enables per-element scale selection at negligible cost, achieving the accuracy of wider uniform formats at a narrower payload width.

Abstract [sv]

Tillståndsrymdsmodeller (SSM) som Mamba erbjuder linjär tidssekvensmodellering, vilket gör dem lämpliga för driftsättning på hårdvaruacceleratorer. Sådana acceleratorer drar nytta av låg kommunikationsoverhead tillsammans med hög numerisk noggrannhet, ett problem som är särskilt uttalat på NoC-baserade acceleratorer där bredden på varje överfört värde begränsar både nätverksbandbredden och routerområdet. Svårigheten är att den primära ingångstensorn 𝑢 innehåller en liten andel av extremvärden med stor magnitud. Standard INT8-kvantisering begränsar dessa extremvärden, och resulterande fel ökar över den återkommande uppdateringen av dolda tillstånd, medan en utvidgning av formatet till INT9 eller INT11 bevarar dem men genom att blåsa upp nyttolastens bredd. Denna avhandling föreslår ett flaggbitsdrivet Dual-Scale (DS) dekvantiseringsgränssnitt för ett SSM-processningselement (PE), vilket bevarar extremvärden samtidigt som en 9-bitars nyttolast hålls. Metoden fungerar i två steg: en 1-bitars skalflagga tilldelas per element offline under kalibrering, och denna flagga driver sedan en kombinatorisk multiplexor vid inferenstid. Vi implementerar designen som syntetiserbar RTL och erhåller syntesresultat med ett 22nm standardcellsbibliotek via Synopsys Design Compiler. I det första steget tilldelar offlinekalibrering varje element i 𝑢 en 1-bits flagga. Flaggan väljer mellan en finkornig inlier-skala och en brett intervall av outlier-skala, så outlier-magnituden återvinns vid dekvantisering snarare än klipps vid kvantisering. I det andra steget driver samma flagga en 2-till-1-multiplexerare vid inferenstid. Fördröjningen för denna multiplexerare absorberas inom den befintliga INT8-till-FP32-konverteringen, så designen lägger inte till några pipeline-steg. All dubbelskalig logik är begränsad till u-kanalen, medan alla andra tensorer förblir på en enskalig INT8-väg. PE verifieras mot en bit-noggrann Python-gyllene modell, och den syntetiserade designen utvärderas sedan för noggrannhet, area och timing. Vid 𝛼 = 0.99 matchar DS-schemat noggrannheten hos de bredare INT9- och INT11-formaten i både RMSE och maximalt absolut fel, samtidigt som det endast använder en 9-bitars nyttolast. I förhållande till INT8-Clip-baslinjen minskar det toppfelet med 69%. Dual-Scale-logiken lägger till 144𝜇2 i area, vilket motsvarar en overhead på 0,30% på PE, och alla konfigurationer uppfyller tidsstängningen vid 1 GHz. En systemnivåanalys visar att den enda PE:n är beräkningsbunden, så den smalare DS-nyttolasten når INT11-nivånoggrannhet utan att sänka genomströmningen. Dessa resultat indikerar att ASIC-kombinationslogik möjliggör skalningsval per element till försumbar kostnad, vilket uppnår noggrannheten hos bredare enhetliga format vid en smalare nyttolastbredd.

Place, publisher, year, edition, pages
2026. , p. 79
Series
TRITA-EECS-EX ; 2026:388
Keywords [en]
Artificial Intelligence, Large Language Models, State Space Models, Mamba, Dual-Scale Quantization, Post-Training Quantization, Hardware Accelerator, RTL Design, Network-on-Chip
Keywords [sv]
Artificial Intelligence, Large Language Models, Tillståndsrymdsmodeller, Mamba, Dual-Scale Quantization, Post-Training Quantization, Hårdvaruac- celerator, RTL Design, Network-on-Chip
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-391089OAI: oai:DiVA.org:kth-391089DiVA, id: diva2:2111792
Subject / course
Embedded System Design
Educational program
Master of Science - Embedded Systems
Supervisors
Examiners
Available from: 2026-11-03 Created: 2026-10-20 Last updated: 2026-11-03Bibliographically approved

Open Access in DiVA

fulltext(4742 kB)14 downloads
File information
File name FULLTEXT01.pdfFile size 4742 kBChecksum SHA-512
1642a4e36ab74ecf390675ea54d2e32d970a9f9e2b16b5247762f135d9b800c0be40a87e262dcd92cfb268462576823ea08b7b80d1800b5be8ccfb9fa22f663d
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 14 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 847 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf