Quantize a Keyword Spotting Model to Int8 for a Cortex-M55

Last updated: November 29, 2026

Quick Overview

You have a float32 keyword spotting CNN that must run on a Cortex-M55 with Helium and an Ethos-U55 NPU under 256 KB of SRAM. Explain how you would quantise it to int8, choose scales and zero points, and recover accuracy if it drops.

Arm
Machine Learning
Machine Learning Engineer
Arm
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

0

0 solved


You have a float32 keyword spotting CNN that must run on a Cortex-M55 with Helium and an Ethos-U55 NPU under 256 KB of SRAM. Explain how you would quantise it to int8, choose scales and zero points, and recover accuracy if it drops.

Arm's ML group ships CMSIS-NN kernels, Ethos-U NPUs and the Vela compiler, so TinyML engineers there must understand quantisation down to the integer arithmetic. The interviewer checks the affine quantisation math, per-channel versus per-tensor choices, calibration, and when to reach for quantisation-aware training.

What the Interviewer Expects
  • Write the affine mapping between real and quantised values
  • Use symmetric per-channel weights and asymmetric per-tensor activations
  • Calibrate activation ranges with representative data
  • Explain the integer-only requantisation with a fixed-point multiplier and shift
  • Propose fixes for accuracy loss such as QAT or keeping sensitive layers wider
Key Topics to Cover
quantization
int8 inference
TinyML
Ethos-U
CMSIS-NN
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • Why are biases stored as int32 with scale equal to input scale times weight scale?
  • Which operators commonly fall back from the NPU to the CPU, and what does that cost?
  • How would you choose between min-max and percentile calibration?
  • What changes if you go to int4 weights?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Constraints: int8 is the NPU's native type, model weights plus peak activation memory must fit flash and 256 KB SRAM, and accuracy loss should stay within about 1 point of the float baseline. Deployme...

Approach

Start with post-training full-integer quantisation, measure, and escalate to quantisation-aware training only if needed. Affine quantisation maps a real value rr to an integer qq by r=S(q−Z)r = S(q - Z) w...


Submit Your Answer
Markdown supported

Related Questions