Domains · Physical AI
Leading edge AI teams
An edge model must fit a fixed budget of memory, power and response time on hardware chosen before the model existed, and it runs where you cannot watch it. Machine learning and embedded engineers have to ship one artefact together, and a result only counts once it is measured on the device.
See the 23 roadmap steps this changes ↓What is different here
- 01
The budget is the specification
On a server you can buy your way out of a slow model. On a device, memory, energy per inference and response time are fixed by a bill of materials signed off long ago. Accuracy is one number among several, and usually the one you trade.
Write the budget down before training starts: peak memory, model size in storage, worst-case latency, energy per inference and the accuracy floor product will accept. Review every experiment against all of them. A model that wins on accuracy and misses the memory limit is a failed experiment, and the team should report it that way. If no budget is written, the embedded engineers will discover it for you at integration.
- paperMLPerf Tiny Benchmark (opens in a new tab)Colby Banbury, Vijay Janapa Reddi and colleagues
- bookModel Compression (Introduction to Machine Learning Systems) (opens in a new tab)Vijay Janapa Reddi
- bookTinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-Low-Power Microcontrollers (opens in a new tab)Pete Warden and Daniel Situnayake
- 02
Evaluate on the device, not the server
The model your ML engineers evaluated is not the model that ships. Between the two sit conversion, quantization, a different numeric library, a real sensor with its own noise, and preprocessing rewritten in C. Each step can move the result, and server metrics will not show it.
Make the on-device number the only one that counts for a release decision. That takes a bench of target hardware, a way to replay recorded sensor data through the whole device pipeline, and latency and power that are measured, not estimated. The first comparison between server and device results is usually uncomfortable. Run it in the first month, not at integration.
- paperBenchmarking TinyML Systems: Challenges and Direction (opens in a new tab)Colby R. Banbury and colleagues
- paperA Survey of Quantization Methods for Efficient Neural Network Inference (opens in a new tab)Amir Gholami, Sehoon Kim and colleagues
- bookBenchmarking (Introduction to Machine Learning Systems) (opens in a new tab)Vijay Janapa Reddi
- 03
Two crafts, one artefact
ML engineers think in datasets, experiments and metrics. Embedded engineers think in bytes, interrupts and worst cases. Left alone, the first group hands over a model file and the second finds it cannot run. Each then decides the other does not understand engineering.
Do not organise this as a handover. Put both skills in one team with one goal, and name an owner for the path from trained model to running firmware, including the preprocessing code that exists twice. People fluent in both crafts are rare, so grow them: move an ML engineer onto device work for a release, and take an embedded engineer through a training run. Promote on the shipped result, not on the model or the port alone.
- paperCollaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Process (opens in a new tab)Nadia Nahar, Shurui Zhou, Grace Lewis and Christian Kästner
- guideMIT 6.5940: TinyML and Efficient Deep Learning Computing (opens in a new tab)Song Han
- bookAI at the Edge (opens in a new tab)Daniel Situnayake and Jenny Plunkett
- 04
The toolchain decides what you can ship
Whether a model runs on your chip depends on a chain you do not control: the converter, the list of operators the runtime supports, the accelerator's compiler and the silicon vendor's software kit. An architecture from a new paper is useless if one layer has no implementation on your target. An upgrade to any link can change accuracy or speed with no change to your own code.
Check that a new model idea deploys to the target in its first week. Pin the whole chain and record it with every released model. Treat the choice of chip and runtime as a commitment for the life of the product, and ask what leaving would cost before you sign.
- 05
A model update is a firmware release
A cloud team retrains and redeploys in a day. Your model is part of a firmware image, or a file each device must download, verify and store beside the old one. It goes to a fleet with several hardware revisions, sensor batches and firmware versions, and some units stay offline for months.
Plan the update path before the first model ships: storage for a second model, a compatibility rule between model, preprocessing and firmware versions, staged rollout and a way back. Know which model version each unit runs. Then agree the release rhythm with product. Frequent retraining is a server habit. In the field each update is a risk you choose to take.
- paperTinyMLOps: Operational Challenges for Widespread Edge AI Adoption (opens in a new tab)Sam Leroux, Pieter Simoens, Meelis Lootus, Kartik Thakore and Akshay Sharma
- paperRFC 9019: A Firmware Update Architecture for Internet of Things (opens in a new tab)Brendan Moran, Hannes Tschofenig, David Brown and Milosch Meriac
- bookEdge Intelligence (Scaling Machine Learning Systems) (opens in a new tab)Vijay Janapa Reddi
- 06
You cannot see what the model sees
Server models are monitored against live inputs. A device may never send its inputs back: bandwidth is thin, the battery is small and the data may be a recording of someone's home or body. A model can degrade in the field and the only signal is a support ticket or a returned unit.
Decide at design time what evidence comes back. Options include counters of predictions and confidence, a small sample of inputs given with consent, or a field team that collects data on purpose. Involve privacy counsel before the hardware is fixed, because storage and connectivity are chosen then. Tell executives plainly that field accuracy is an estimate, and what the estimate rests on.
- articleWhy the Future of Machine Learning is Tiny (opens in a new tab)Pete Warden
- paperCommunication-Efficient Learning of Deep Networks from Decentralized Data (opens in a new tab)H. Brendan McMahan, Eider Moore, Daniel Ramage and colleagues
- articleData Distribution Shifts and Monitoring (opens in a new tab)Chip Huyen
On the roadmaps
These steps change when the team works in edge AI. Set it as your field and every roadmap highlights them.
AI and Physical AI Team Leader
open with this as your field →- Roles on the team and their blind spots
Add the embedded engineer to the list. Their done is worst-case memory and timing on the target, which ML engineers rarely measure. Make both sign the same on-device acceptance test.
- Framing the problem before modelling
Frame with the device budget in the room: memory, latency, energy and unit cost. Ask first whether a threshold or a filter on the sensor signal does the job with no model.
- Baselines first
Run the baseline on the target hardware, end to end, in the first weeks. It proves the conversion and deployment chain before anyone invests in a better model.
- Evaluation as the product spec
The evaluation must run on the device with real sensor input and report memory, latency and energy beside accuracy. A server-only evaluation specifies a product you do not sell.
- Experiment tracking and reproducibility
Record the converter, runtime and compiler versions and the quantization settings with every result. The same weights give different outputs through a different chain.
- From prototype to production
Production is a quantized model inside firmware, with preprocessing rewritten for the device. Budget the port as a project, and test that the training and device preprocessing paths give the same numbers.
- Monitoring and drift
Inputs mostly stay on the device. Design the few signals that do come back, such as confidence histograms and fallback counts, before the hardware and the data plan are fixed.
- Fleet operations and over-the-air updates
A model can ship inside the firmware image or beside it. Decide which, define which model versions run with which firmware, and reserve storage for the previous model.
- Hardware lead times and integration
The chip is chosen before the model exists. Argue for memory and compute headroom at selection, and benchmark a stand-in model on each candidate part before the hardware is frozen.
- Compute budgets and cost
Training small models is cheap. The compute that matters is on the device, paid on every unit in silicon cost and battery life. A bigger chip is a bill-of-materials decision, not a cloud bill.
- Hiring researchers and ML engineers
Look for people who have shipped a model under a hard memory or latency limit. Ask how they found out their model did not fit and what they gave up to make it fit.
- Career paths in a mixed team
The engineer who can both train and port is your scarcest person. Give that hybrid a named path, or they get judged as a weak researcher by one ladder and a slow firmware engineer by the other.
- Privacy in training data and outputs
Inference on the device keeps raw data local. That helps privacy and removes your easy source of training data. Any upload of samples needs consent designed into the product from the start.
- Security of ML systems
The model file sits on hardware an attacker can buy and open. Assume it can be copied, decide whether that matters to the business, and sign model updates as you sign firmware.
- Setting expectations with product
Product owns the trade between accuracy, battery life and response time. Show the three side by side for each candidate model and let product choose with the numbers in view.
Hardware and Embedded Engineering Manager
open with this as your field →- The disciplines and how they misread each other
ML engineers arrive as a fifth discipline with the fastest clock and the least feel for fixed resources. Hand them the memory, power and timing budget on their first day.
- Make versus buy for modules and platforms
A processor or accelerator comes with its model compiler and its list of supported operators. Run your real model on the evaluation kit before you commit to the part.
- Hardware-in-the-loop and automated test
Add recorded sensor data replayed through the device, with accuracy, latency and energy checked on every build. Functional tests do not see a model regression.
- Firmware updates in the field
Models are large next to the rest of the firmware. Decide early whether the model updates separately, and size storage for two copies before the memory part is chosen.
- Cost and margin awareness
Model ambition drives the memory and processor choice, and that cost repeats on every unit. Put model size and compute need on the agenda of the cost review.
Engineer to Tech Lead
open with this as your field →- A shared picture of the system
Draw the whole path once: sensor, preprocessing, model, post-processing, action, with the memory and time each step may use. Edge defects tend to sit between two boxes with different owners.
- Sequencing: risk first
The first risk is whether a model of the planned shape runs on the target within budget. Deploy an untrained one to the device before you spend weeks training the real one.
- Quality and testing strategy
Add a model regression suite on the target: a fixed dataset, a tolerance on accuracy and hard limits on latency and memory. Outputs vary slightly, so assert thresholds, not exact values.