Fitting AI Models To Edge Applications

Compression can shrink AI models, but efficient edge deployment starts with matching the architecture to the workload and hardware limits.
Today’s AI industry faces two very different challenges.On one side, enormous AI data centers and AI factories are seeking more efficient ways to process high-parameter large language models (LLMs), with bandwidth and memory as the key bottlenecks.
On the other side are smaller AI models running locally on edge devices, where there isn’t enough area, power, or memory for complex, higher-parameter LLMs.
“This has led to a gold rush with people raising huge amounts of capital to build mega data centers, but has also sparked innovation on the edge,” said Ed Plowman, CTO at Imagination Technologies.“People are trying to work out how they can cram an entire container of liquid into a very small cup, and that has been driven by the fact that compute resources are not the main problem at the moment.
It’s bandwidth, and that’s why RAM has gotten so expensive.That triggered a whole bunch of researchers to look at what the key problems are and what we can do about it.That triggered innovations around quantization — reducing activations and weights simultaneously — to make the models even smaller but still maintaining the output capability of the model.”
AI models come in many shapes and sizes to fit a wide range of edge devices, from earbuds to phones, home appliances, industrial IoT, robotics, and automotive systems. Designers need to choose a model with the right number of parameters because an oversized model can slow the device down or cause it to overheat. On the flip side, if the model is too small, the product may not be smart enough.
The first step in right-sizing an AI model for an embedded application is to define its purpose.“You have to start from the point of view of what you want the model to do, but then there are a million and one things we can throw at it to make it smaller,” said Plowman.
“Quantization and self-compression are very effective tools.Distillation is another approach, and it works better on transformers than on traditional convolutional neural networks (CNNs).All these things are starting to combine to get us to a point where the gold rush for bigger and bigger GPUs is less prevalent.
The enablement in embedded systems and the progression towards quite intelligent models being able to run on truly embedded platforms is becoming more realistic.”
Fig. 1: Common ways to compress AI model
The model size must be considered alongside the system.“The hard part is designing a model that is sophisticated enough to solve the problem but small enough to fit the device,” said Magnus Gedda, CTO and chief product officer at Imagimob, an Infineon Technologies company.
“On top of that, the model usually shares memory and compute with the rest of the application, so the available resources are smaller than the spec sheet suggests.Optimization techniques like pruning and quantization can shrink a model, but they are applied after design and usually after training, and they cost some accuracy.
You need to pick an initial architecture that is the right size from the start so that its optimized version still fits the device and meets the performance target.Getting those three things to line up — problem fit, size, accuracy after optimization — is where most of the effort goes.”
Others agree that system-level efficiency is the central challenge.“Edge AI is ushering in a shift from ‘largest model wins’ to ‘experience per watt,'” said Steve Woo, distinguished inventor and fellow at Rambus.
“Techniques such as compression, pruning, and lower-precision arithmetic help shrink models to fit local resources, but deployment remains difficult because memory capacity and bandwidth are often limiting factors.
Getting a model onto the device is just the beginning.Making it run efficiently within tight power and latency budgets is where the engineering challenge begins.”
Choosing the wrong AI model can lead to extra work after deployment or a substandard product.“Once you have the optimized model, deployment is not that hard,” said Infineon’s Gedda.“The model is converted to C code, compiled for the target, and flashed to the device.
The challenge is using the hardware to its full potential, so that inference is energy-efficient and low-latency.Edge hardware is extremely varied — MCUs, accelerators, NPUs, DSPs — and standards are somewhat lacking.
So without the right tooling you end up with a generic, inefficient deployment, or a lot of manual work per target.”
These deployment constraints make model selection an application-specific exercise. The right architecture depends on the functions the device must perform and the workloads it must support.
Functions and workloads determine the correct model Edge device and physical AI workloads vary considerably across sectors, from medical to industrial, automotive, home, or personal. The specific modalities of the collected