Edge ML trades model size and accuracy for latency and privacy.
A 400 MB model becomes 4 MB after full compression - small enough to ship OTA to millions of devices.
Edge ML Deployment - Interactive Visualization
Edge ML pushes model inference to the device rather than the cloud - eliminating network round-trips, improving privacy, and enabling offline use cases. The pipeline starts with a 400 MB cloud model and applies compression techniques: INT8 quantization reduces size by 75% with ~1.5% accuracy loss; weight pruning removes redundant connections; knowledge distillation trains a smaller student model to mimic a larger teacher. The final compressed model is exported to ONNX or TFLite for on-device runtime. The key constraint is whether the compressed model fits within the target device's available memory.
INT8 quantization: replaces 32-bit float weights with 8-bit integers - 4x size reduction, minimal accuracy loss
Weight pruning: zeroes out low-magnitude weights (60% sparse) - reduces compute, requires sparse runtime support
Knowledge distillation: trains a small student model on the outputs of a large teacher - the most aggressive size reduction
MCUs have 256 KB to 2 MB of RAM - only tiny models (TensorFlow Lite Micro) can run here
Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.