Abstract
Tiny Machine Learning (TinyML) faces a persistent conflict between the high computational demands of computer vision and the stringent resource constraints of edge hardware. While specialized AI accelerators offer significant speedups, their unique memory architectures often force developers to downsample input images, leading to substantial information loss. This paper introduces Data Channel Extension (DEX), a hardware-aware preprocessing technique that recovers this lost information by repurposing idle processing elements. By stacking spatial samples into the channel dimension, DEX achieves a 3.5%p accuracy improvement on average across multiple benchmarks with zero increase in inference latency.
1. Introduction
The emergence of dedicated AI accelerators, such as the Analog Devices MAX78000, has revolutionized TinyML by providing inference speeds up to 170x faster than traditional microcontrollers. However, these gains come with architectural constraints—specifically, per-processor memory instances. To achieve massive parallelism, these chips distribute data memory into small, dedicated blocks for each processor. On the MAX78000, for example, each of the 64 processors has access to only 8KB of memory.
This architecture creates two primary inefficiencies:
- The Resolution Bottleneck: The limited per-processor memory prevents the use of standard high-resolution inputs (e.g., 224x224), forcing developers to downsample images to sizes like 32x32, which discards critical visual data.
- Processor Underutilization: Standard RGB images utilize only three channels. In the initial layer of a CNN, this means only 3 out of 64 available processors are active, leaving over 95% of the silicon idle during the first stage of computation.
2. The DEX Methodology
DEX (Data Channel Extension) addresses these inefficiencies by transforming high-resolution source images into a "channel-extended" format that aligns with the accelerator's parallel architecture. The method consists of two primary steps:
2.1 Patch-wise Even Sampling
Instead of conventional downsampling, which typically selects a single pixel to represent a spatial block, DEX analyzes the original high-resolution patch corresponding to a single output pixel. It selects $K$ pixels from that patch, using an even spacing strategy to capture maximum spatial variance.
2.2 Channel-wise Stacking
Rather than increasing the spatial dimensions of the input (which would violate memory constraints), these $K$ samples are stacked into the channel dimension. For instance, if $K=21$, a standard 3-channel (RGB) image is transformed into a 63-channel input. Because the accelerator processes these channels in parallel across its 64 processors, the computation time for the first layer remains identical to that of a 3-channel input. This effectively "hides" high-resolution data within the hardware's idle parallel lanes.
3. Experimental Evaluation
The researchers evaluated DEX across four diverse vision datasets: ImageNette, Caltech101, Caltech256, and Food101. These benchmarks were tested using four popular architectures adapted for edge deployment: SimpleNet, WideNet, EfficientNetV2, and MobileNetV2.
3.1 Accuracy and Performance
Across all models and datasets, DEX demonstrated a consistent performance boost:
- Accuracy: DEX provided an average classification accuracy increase of 3.5%p compared to standard downsampling.
- Latency: On the MAX78000 hardware, inference time for SimpleNet remained constant at approximately 2.5ms, regardless of whether 3 or 64 channels were used.
- Utilization: Processor utilization in the first layer increased from 4.7% to 100%, maximizing the utility of the available silicon.
3.2 Comparison to Baselines
DEX was compared against CoordConv, a method that adds coordinate channels to improve spatial awareness. DEX outperformed CoordConv by 3.6%p, suggesting that for resource-constrained accelerators, actual image data is significantly more valuable than positional metadata.
4. Discussion and Limitations
While DEX provides a "free lunch" in terms of latency, it does involve a trade-off in power consumption. Utilizing all 64 processors instead of 3 increases the power draw (e.g., from ~54mW to ~69mW for SimpleNet). For ultra-low-power, battery-dependent applications, this 27% increase in power must be weighed against the accuracy gains.
Furthermore, the current implementation focuses exclusively on the first CNN layer. While this is where the most significant underutilization occurs, future research could explore extending this technique to subsequent layers or identifying the optimal number of samples ($K$) to avoid data redundancy.
5. Conclusion
DEX represents a successful application of hardware-software co-design. By understanding the specific memory and parallelization constraints of tiny AI accelerators, DEX turns architectural limitations into an opportunity for data recovery. The result is a significant boost in model accuracy without sacrificing the real-time performance required for edge AI applications.
Source Code: https://github.com/Nokia-Bell-Labs/data-channel-extension
Summary updated