Research gapComputer science

TinyML beyond inference: on-device learning, privacy and fair benchmarks on microcontrollers

Tiny machine learning runs trained models on microcontrollers that draw under a milliwatt (Banbury et al., 2021). Running a model is now well supported; letting the device keep learning, privately and on the same tiny budget, is still an open research problem (Elhanashi et al., 2024; Lê et al., 2023).

PhD Research Lab InsightsEditorial team, reviewed by a subject specialist
Posted
30 September 2024
Last checked
7 October 2026
Reading time
9 min
Sources
11
Research proposal support
The gap

Most TinyML work trains a model in the cloud, compresses it and freezes it on the device. We do not yet know how to let microcontrollers adapt to new data, alone or in federated groups, within kilobytes of memory, without leaking private data, and how to benchmark such systems fairly (Banbury et al., 2021; Lê et al., 2023; Nasr et al., 2019).

Method gap (on-device learning)Privacy and security gapEvaluation gap (benchmarks)Context gap (field deployments)

What we know

  • TinyML targets inference under a milliwatt on devices whose memory is about two orders of magnitude smaller than a smartphone's, which makes battery-powered, always-on applications possible (Banbury et al., 2021).
  • MLPerf Tiny, built by more than 50 organisations, measures accuracy, latency and energy on four tasks: keyword spotting, visual wake words, image classification and anomaly detection (Banbury et al., 2021).
  • Eight-bit integer arithmetic is the most common format for inference; models are usually quantised from 32-bit floating point with little loss of accuracy (Banbury et al., 2021; Jacob et al., 2018).
  • Interpreters such as TensorFlow Lite Micro (David et al., 2021) and co-designed networks and inference engines (Lin et al., 2020) make deep models fit on microcontrollers.
  • Federated learning trains a shared model from data that stay on devices (McMahan et al., 2017), and has been compared with centralised and on-device learning for Internet of Things intrusion detection (Rahman et al., 2020).
  • Federated training is not private by default: shared model updates can leak information about training data (Nasr et al., 2019).

What we do not know yet

  • How to train or fine-tune on the microcontroller itself when memory for weights, activations and gradients is measured in kilobytes (Lê et al., 2023).
  • Which privacy protections are affordable on such devices, and how much accuracy and energy they cost.
  • How to benchmark learning, not only inference, so results are comparable across boards and toolchains (Dey et al., 2025).
  • How deployed models behave over months in the field as sensors age and data drift (Elhanashi et al., 2024).
  • How federated learning copes with very many, very weak and often offline devices.

Research questions a PhD could ask

  1. What is the smallest memory and energy budget at which a microcontroller can usefully adapt a pretrained model to local data?
  2. Can federated learning across microcontrollers reach accuracy close to centralised training for a defined task, and at what communication and energy cost?
  3. Which defences against inference attacks on model updates are feasible on 8-bit hardware, and what do they cost in accuracy?
  4. How should a benchmark for on-device learning be designed so that results are reproducible across platforms?
  5. How quickly does the accuracy of a deployed TinyML model degrade in the field, and can on-device updating stop it?
Methods that could close the gap
ApproachWhy it fits
Hardware-in-the-loop experimentsMeasure memory, latency and energy on real boards, the approach used by Banbury et al. (2021) and Dey et al. (2025).
Model compression studiesCompare quantisation and pruning settings for training as well as inference (Jacob et al., 2018; Lê et al., 2023).
Federated learning simulation then testbedSimulate many devices first, then validate on a small fleet of microcontrollers (McMahan et al., 2017; Rahman et al., 2020).
Privacy attack and defence evaluationRun known inference attacks against model updates and test defences (Nasr et al., 2019).
Longitudinal field deploymentTrack a sensor network over months to measure drift and the value of updating.
Gap typeIndustry and research both working on it

The problem

Billions of sensors could run small models locally, but those models are usually frozen at deployment. When conditions change, accuracy falls and the device cannot learn from its own data (Lê et al., 2023; Elhanashi et al., 2024).

Why it happens

Training needs far more memory and energy than inference, and microcontrollers have very little of either (Banbury et al., 2021). Sending raw data to the cloud to retrain raises cost, latency and privacy concerns, and federated updates can still leak information (Nasr et al., 2019).

Where it is felt most

The problem is felt most in always-on, battery-powered settings such as keyword spotting, visual wake words and anomaly detection in machines (Banbury et al., 2021), in Internet of Things security (Rahman et al., 2020) and in health data, where federated approaches are being tested (Teo et al., 2024).

How big is the problem

  • < 1 mWthe inference power budget TinyML systems aim for, which allows always-on, battery-powered use (Banbury et al., 2021).
  • ~100xhow much smaller TinyML memory budgets typically are than the gigabytes of RAM in smartphones (two orders of magnitude) (Banbury et al., 2021).
  • 4tasks in the MLPerf Tiny benchmark suite, all of them inference tasks (Banbury et al., 2021).
  • 50+organisations from industry and academia behind MLPerf Tiny (Banbury et al., 2021).
What studies say, and at what level of evidence
LevelWhat it shows
BenchmarksMLPerf Tiny standardises accuracy, latency and energy measurement for inference (Banbury et al., 2021); newer frameworks add CPU use and memory efficiency (Dey et al., 2025).
Lab and simulation studiesCo-designed networks and inference engines (Lin et al., 2020) and integer-only quantisation (Jacob et al., 2018) show how far inference can be squeezed.
ReviewsRecent reviews map efficient network design for TinyML (Lê et al., 2023) and its applications and limits on Internet of Things devices (Elhanashi et al., 2024).
Federated learning studiesFederated designs are proven in larger systems (McMahan et al., 2017; Teo et al., 2024) and compared for Internet of Things security (Rahman et al., 2020), but rarely on microcontrollers.
Security studiesInference attacks on federated model updates are well documented (Nasr et al., 2019).
What is missingLearning on the device itself, affordable privacy, benchmarks for training, and long field trials.

Who should take this on

Scholar profile

  • An embedded systems engineer comfortable with C, toolchains and power measurement.
  • A machine learning researcher interested in compression and efficient training.
  • A security researcher who wants to test privacy attacks on constrained devices.
  • An engineer with field access to a sensor network in industry, agriculture or health.

Subjects and PhD specialisations

  • Computer science (machine learning systems)
  • Electronic and embedded systems engineering
  • Internet of Things and edge computing
  • Cyber security and privacy
  • Biomedical engineering (wearables)

Countries where the problem is greatest

  • Settings with many low-cost connected sensors and weak connectivity, where local processing avoids sending data to the cloud (Elhanashi et al., 2024).
  • Health systems testing federated learning, where data cannot leave the institution (Teo et al., 2024).
  • Industrial regions using machine monitoring, since anomaly detection is a core TinyML task (Banbury et al., 2021).

Scope for future research

  1. On-device training and fine-tuning within kilobytes of memory (Lê et al., 2023).
  2. Federated learning across fleets of microcontrollers (McMahan et al., 2017).
  3. Privacy-preserving updates that fit 8-bit hardware (Nasr et al., 2019).
  4. Benchmarks for on-device learning and long-term behaviour (Banbury et al., 2021; Dey et al., 2025).
  5. Field studies of drift, maintenance and energy over months.

How a doctoral project could address it

  1. Pick one task and board

    Choose a task close to MLPerf Tiny (for example keyword spotting or anomaly detection) and a widely used microcontroller so results are comparable (Banbury et al., 2021).

  2. Set a baseline

    Deploy a frozen INT8 model with an established runtime and measure accuracy, latency and energy (David et al., 2021; Jacob et al., 2018).

  3. Add learning

    Implement a minimal on-device update, such as retraining the last layer, and record memory and energy costs.

  4. Federate

    Extend to a small fleet with federated averaging, simulated first and then on hardware (McMahan et al., 2017).

  5. Attack and defend

    Test whether updates leak information and measure the cost of defences (Nasr et al., 2019).

  6. Report reproducibly

    Publish code, board settings and measurement scripts so others can repeat the results (Dey et al., 2025).

Why it is worth solving

Devices that can adapt locally would stay accurate longer, send less data and keep more of it private. That matters for wearables, industrial monitoring and security, where data are sensitive and connectivity is poor (Elhanashi et al., 2024; Teo et al., 2024).

For science, a fair way to measure learning on tiny devices would let the field compare methods instead of reporting results on incompatible set-ups, as MLPerf Tiny did for inference (Banbury et al., 2021).

Why this gap matters now

TinyML moved quickly from demonstrations to an industry benchmark. MLPerf Tiny was built by more than 50 organisations to compare inference fairly across devices (Banbury et al., 2021), and newer benchmarking frameworks look at CPU use, memory and stability as well (Dey et al., 2025). Runtimes such as TensorFlow Lite Micro (David et al., 2021) and co-designed networks (Lin et al., 2020) mean a doctoral project no longer needs to prove that a model can run on a microcontroller.

The open questions have moved on. Recent reviews point to learning on the device, privacy and real-world limits as the next problems (Lê et al., 2023; Elhanashi et al., 2024). These are good doctoral topics because they combine measurable engineering with clear scientific questions.

Quantisation: a common misreading corrected

In TinyML the usual starting point is a model trained in 32-bit floating point, which is converted to 8-bit integers for inference. MLPerf Tiny provides both FP32 and INT8 post-training-quantised reference models and describes 8-bit integers as the most common format for inference (Banbury et al., 2021); integer-only inference was set out by Jacob et al. (2018).

Number formats in a TinyML pipeline
StepTypical formatWhy it matters
Training (cloud or workstation)32-bit floating pointStable gradients and full accuracy
Deployment (microcontroller)8-bit integerAbout four times less memory and faster integer maths
On-device learning (open problem)Not settledGradients need more memory and precision than inference

The last row is the gap. Training on the device needs to store activations and gradients, which is why learning, not inference, is where new methods are needed (Lê et al., 2023).

Four directions and their feasibility

All four are feasible within a doctorate with modest hardware: development boards are inexpensive and benchmark code is public. The main risks are measurement error in energy readings and results that do not transfer between boards, so plan to test on at least two platforms and to publish your scripts.

What to do now

  • Read the MLPerf Tiny paper and note which tasks and metrics you could reuse (Banbury et al., 2021).
  • Choose one board and one task, and reproduce a baseline before you design anything new.
  • Write a one-page plan stating the memory, energy and accuracy you will measure.
  • Agree with your supervisor how you will show that results hold on more than one platform.
Your next step

Could this gap become your thesis?

  1. 1Read the evidence and the open questions
  2. 2Talk to a mentor about fit, data and method
  3. 3Build a defensible proposal
See proposal support

Questions scholars ask

Is TinyML the same as edge AI?

TinyML is the low-power end of edge AI: models running on microcontrollers that draw under a milliwatt, not on phones or edge servers (Banbury et al., 2021).

Do I need special hardware?

A low-cost development board and a way to measure power are enough for most projects. Pick hardware that others have benchmarked so your results can be compared (Banbury et al., 2021).

Is federated learning private by default?

No. Model updates can leak information about training data, so privacy must be tested, not assumed (Nasr et al., 2019).

Sources

  1. Banbury, C., Reddi, V. J., Torelli, P., Holleman, J., Jeffries, N., Kiraly, C., Montino, P., Kanter, D., Ahmed, S., Pau, D., Thakker, U., Torrini, A., Warden, P., Cordaro, J., Di Guglielmo, G., Duarte, J., Gibellini, S., Parekh, V., Tran, H., ... Xuesong, X. (2021). MLPerf Tiny benchmark. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks (NeurIPS 2021). https://arxiv.org/abs/2106.07597
  2. David, R., Duke, J., Jain, A., Janapa Reddi, V., Jeffries, N., Li, J., Kreeger, N., Nappier, I., Natraj, M., Regev, S., Rhodes, R., Wang, T., & Warden, P. (2021). TensorFlow Lite Micro: Embedded machine learning for TinyML systems. Proceedings of Machine Learning and Systems, 3, 800–811. https://arxiv.org/abs/2010.08678
  3. Dey, A., Srivastava, S., Singh, G., & Pettit, R. G. (2025). Real-time performance benchmarking of TinyML models in embedded systems (PICO: Performance of Inference, CPU, and Operations) (arXiv:2509.04721) [Preprint]. arXiv. https://arxiv.org/abs/2509.04721
  4. Elhanashi, A., Dini, P., Saponara, S., & Zheng, Q. (2024). Advancements in TinyML: Applications, limitations, and impact on IoT devices. Electronics, 13(17), 3562. https://doi.org/10.3390/electronics13173562
  5. Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A., Adam, H., & Kalenichenko, D. (2018). Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 2704–2713). https://arxiv.org/abs/1712.05877
  6. Lin, J., Chen, W.-M., Lin, Y., Cohn, J., Gan, C., & Han, S. (2020). MCUNet: Tiny deep learning on IoT devices. In Advances in Neural Information Processing Systems 33 (pp. 11711–11722). https://arxiv.org/abs/2007.10319
  7. Lê, M. T., Wolinski, P., & Arbel, J. (2023). Efficient neural networks for tiny machine learning: A comprehensive review (arXiv:2311.11883) [Preprint]. arXiv. https://arxiv.org/abs/2311.11883
  8. McMahan, B., Moore, E., Ramage, D., Hampson, S., & Agüera y Arcas, B. (2017). Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (Vol. 54, pp. 1273–1282). PMLR. https://proceedings.mlr.press/v54/mcmahan17a.html
  9. Nasr, M., Shokri, R., & Houmansadr, A. (2019). Comprehensive privacy analysis of deep learning: Passive and active white-box inference attacks against centralized and federated learning. In 2019 IEEE Symposium on Security and Privacy (pp. 739–753). IEEE. https://doi.org/10.1109/SP.2019.00065
  10. Rahman, S. A., Tout, H., Talhi, C., & Mourad, A. (2020). Internet of things intrusion detection: Centralized, on-device, or federated learning? IEEE Network, 34(6), 310–317. https://doi.org/10.1109/MNET.011.2000286
  11. Teo, Z. L., Jin, L., Li, S., Miao, D., Zhang, X., Ng, W. Y., Tan, T. F., Lee, D. M., Chua, K. J., Heng, J., Liu, Y., Goh, R. S. M., & Ting, D. S. W. (2024). Federated machine learning in healthcare: A systematic review on clinical applications and technical architecture. Cell Reports Medicine, 5(2), 101419. https://doi.org/10.1016/j.xcrm.2024.101419

How to cite this page

Choose your referencing style, then copy.

PhD Research Lab Insights. (2024, September 30). TinyML beyond inference: on-device learning, privacy and fair benchmarks on microcontrollers. PhD Research Lab. https://www.phdassistance.com/insights/future-direction-of-tinyml/

PhD Research Lab Insights. “TinyML Beyond Inference: On-device Learning, Privacy and Fair Benchmarks on Microcontrollers.” PhD Research Lab, 30 Sept. 2024, www.phdassistance.com/insights/future-direction-of-tinyml. Accessed [access date].

PhD Research Lab Insights (2024) TinyML beyond inference: on-device learning, privacy and fair benchmarks on microcontrollers. PhD Research Lab. Available at: https://www.phdassistance.com/insights/future-direction-of-tinyml/ (Accessed: [access date]).

PhD Research Lab Insights. “TinyML Beyond Inference: On-device Learning, Privacy and Fair Benchmarks on Microcontrollers.” PhD Research Lab. September 30, 2024. https://www.phdassistance.com/insights/future-direction-of-tinyml.

PhD Research Lab Insights, ‘TinyML Beyond Inference: On-device Learning, Privacy and Fair Benchmarks on Microcontrollers’ (PhD Research Lab, 30 September 2024) <https://www.phdassistance.com/insights/future-direction-of-tinyml> accessed [access date].

PhD Research Lab Insights. TinyML beyond inference: on-device learning, privacy and fair benchmarks on microcontrollers [Internet]. PhD Research Lab; 2024 Sep 30 [cited [access date]]. Available from: https://www.phdassistance.com/insights/future-direction-of-tinyml/

PhD Research Lab Insights, “TinyML beyond inference: on-device learning, privacy and fair benchmarks on microcontrollers,” PhD Research Lab, Sept. 30, 2024. [Online]. Available: https://www.phdassistance.com/insights/future-direction-of-tinyml. [Accessed: [access date]].

@online{future_direction_of_tinyml_2024,
  author = {{PhD Research Lab Insights}},
  title = {{TinyML beyond inference: on-device learning, privacy and fair benchmarks on microcontrollers}},
  organization = {PhD Research Lab},
  date = {2024-09-30},
  url = {https://www.phdassistance.com/insights/future-direction-of-tinyml},
  urldate = {[access date]}
}

  • TinyML
  • Embedded machine learning
  • Federated learning
  • Edge computing
  • Internet of Things
TinyML beyond inference: on-device learning, privacy and fair benchmarks on microcontrolleResearch gap · Computer science
Proposal support