TinyAirNet: TinyML Model Transmission for Energy-efficient Image Retrieval from IoT Devices

Junya Shiraishi, Mathias Thorsager, Shashi Raj Pandey, Petar PopovskiarXiv 2023

This paper introduces TinyAirNet, a framework designed to make image retrieval from IoT devices significantly more energy-efficient by leveraging Tiny Machine Learning (TinyML). Instead of having an IoT device blindly transmit all its captured data to a server, the server sends a highly compressed "TinyML" model to the device. The device uses this model to locally filter its data, transmitting only the images that are likely to be relevant to the user's query.

TL;DR

TinyAirNet reduces IoT energy consumption by up to 67% by transmitting a compressed TinyML model to devices for local data filtering. This "preemptive model transmission" ensures that only semantically relevant data is sent over the air, balancing the energy costs of model reception and local computation against massive savings in data transmission.

What Problem Does This Paper Address?

As we move toward 6G, the Internet of Things (IoT) is expected to support advanced applications like connected robotics and automated sensing. However, these devices are often battery-powered and have extremely limited memory (SRAM < 512KB).

Traditional "offloading" schemes—where a device sends all its raw data to an Edge Server (ES) for processing—are incredibly wasteful of radio energy, especially when most of the data is irrelevant to the specific query. While "semantic communication" aims to solve this by sending only meaningful data, running complex AI models on tiny IoT hardware is difficult. The authors address the fundamental trade-off: Does the energy saved by filtering data locally outweigh the energy cost of receiving and running a TinyML model on the device?

Methods

The TinyAirNet framework operates in three distinct phases:

  1. TinyML Model Transmission: The Edge Server takes a large, accurate ML model and compresses it (via pruning, knowledge distillation, and quantization) into a TinyML model. It then transmits this model and a query feature vector to the IoT device.
  2. Image Retrieval (Local Filtering): The IoT device stores the model in its local memory. It performs feature extraction on its stored images and calculates a "matching score" against the query. Only images exceeding a similarity threshold ($V_{th}$) are transmitted back to the server.
  3. Relevant Image Identification: The server receives the candidate images and performs a final, high-precision check using the full-sized ML model to ensure accuracy.
Fig. 1: An example of TinyAirNet for AI-empowered IoT data collection.

The authors developed a comprehensive energy model that accounts for:

  • Computation: Energy for DRAM access and Multiply-Accumulate (MUAC) operations.
  • Communication: Energy for receiving the model/query and transmitting the filtered images.
  • Model Noise: They mathematically modeled the "noise" or inaccuracy introduced by quantizing the model (e.g., using 8-bit vs. 16-bit weights).

Datasets

The study uses numerical evaluations based on the EtinyNet1.0 architecture, a state-of-the-art TinyML model designed for microcontrollers. While the paper focuses on the theoretical framework, it references ImageNet performance benchmarks to calibrate its model noise parameters ($\sigma_{ML}$), linking quantization levels ($b_q$) to expected accuracy drops.

Key Insights and Ideas

  • The "Investment" Crossover: Sending a model is an upfront energy investment. If the device only has a few images ($N < 5$), it’s actually more efficient to just send everything. However, as the number of stored images grows, the TinyAirNet scheme becomes vastly superior.
  • Quantization Trade-offs: There is a sweet spot for quantization. Lower bit-depths (8-bit) reduce the energy cost of receiving and running the model, which is great for smaller datasets. Higher bit-depths (16-bit) are more accurate, allowing for a stricter threshold that filters out more junk data, which is better for very large datasets.
  • Optimal Thresholding: The authors derived an optimal threshold ($V_{th}^{opt}$) that minimizes energy while guaranteeing a target retrieval accuracy. As the dataset size ($N$) increases, the device must lower its threshold to ensure it doesn't accidentally filter out a true positive.
Fig. 3: Vth and η against N.

Key Results

  • Energy Savings: The proposed scheme achieved up to a 67% reduction in energy compared to the baseline offloading scheme when the number of stored images is large.
  • Accuracy vs. Energy: The framework successfully maintains high retrieval accuracy (e.g., $\gamma = 0.98$) while significantly cutting power usage.
  • Theoretical Validation: Numerical simulations perfectly matched the authors' theoretical derivations, validating their energy and noise models.
Fig. 2: Total energy consumption and retrieval accuracy of TinyAir- Net against the threshold of Vth.

Limitations and Future Work

  • Single Device Focus: The current analysis is limited to a single IoT device. The authors note that multi-device scenarios are a key area for future research.
  • Idealized Memory: The model assumes the TinyML model fits entirely in on-chip SRAM. If a model is too large and requires off-chip DRAM access, the energy costs would rise significantly.
  • Channel Conditions: The study assumes an error-free wireless link. Real-world interference and packet loss could impact the efficiency of model transmission.
  • Experimental Phase: This work is currently theoretical and numerical; the authors plan to conduct experimental evaluations on physical hardware in future iterations.

Summary updated

BibTeX
@misc{shiraishi2023tinyairnet,
  author = {Junya Shiraishi and Mathias Thorsager and Shashi Raj Pandey and Petar Popovski},
  title = {{TinyAirNet: TinyML Model Transmission for Energy-efficient Image Retrieval from IoT Devices}},
  year = {2023},
  eprint = {2311.04788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.04788},
}
Figure