Skip to main content
QUICK REVIEW

[Paper Review] Improving the Energy Efficiency and Robustness of tinyML Computer Vision using Log-Gradient Input Images

Qianyun Lu, Boris Murmann|arXiv (Cornell University)|Mar 4, 2022
Advanced Neural Network ApplicationsComputer Science4 citations
TL;DR

This paper proposes using log-gradient (log∇) images as inputs to tinyML convolutional neural networks (CNNs), enabling aggressive 1.5-bit quantization of first-layer inputs, improved CNN prunability due to higher filter similarity, and inherent robustness to illumination changes (1.7% accuracy loss over 8× brightness variation). The approach reduces energy consumption and system complexity by replacing traditional image signal processing with analog-domain log-gradient computation.

ABSTRACT

This paper studies the merits of applying log-gradient input images to convolutional neural networks (CNNs) for tinyML computer vision (CV). We show that log gradients enable: (i) aggressive 1.5-bit quantization of first-layer inputs, (ii) potential CNN resource reductions, and (iii) inherent robustness to illumination changes (1.7% accuracy loss across 1/32...8 brightness variation vs. up to 10% for JPEG). We establish these results using the PASCAL RAW image data set and through a combination of experiments using neural architecture search and a fixed three-layer network. The latter reveal that training on log-gradient images leads to higher filter similarity, making the CNN more prunable. The combined benefits of aggressive first-layer quantization, CNN resource reductions, and operation without tight exposure control and image signal processing (ISP) are helpful for pushing tinyML CV toward its ultimate efficiency limits.

Motivation & Objective

  • Address the growing energy and cost constraints in battery-powered IoT devices by optimizing the entire computer vision pipeline from sensor to classifier.
  • Overcome limitations of conventional image signal processing (ISP) in tinyML systems, which are often overprovisioned for human perception rather than machine efficiency.
  • Explore whether log-gradient preprocessing can enhance CNN compressibility, robustness to illumination changes, and energy efficiency in tinyML applications.
  • Demonstrate that log∇ inputs enable extreme quantization (1.5-bit) of first-layer features without sacrificing accuracy, reducing data movement and memory overhead.
  • Establish a hardware-aware, end-to-end optimization path for tinyML CV by integrating analog-domain log-gradient computation with deep learning models.

Proposed method

  • Compute log-gradient images using the formula $ P' = \log(P + 1) $, followed by 2D convolution with a Sobel-like gradient filter $ f $, resulting in $ \log\nabla = P' * f $, where $ P $ is the input image.
  • Use the PASCAL RAW 2014 dataset to train and evaluate models on unprocessed, raw sensor data, enabling realistic simulation of illumination variations.
  • Apply neural architecture search (NAS) to compare CNNs trained on RAW, JPEG, and log∇ inputs, measuring compressibility and filter similarity as indicators of prunability.
  • Fix a three-layer CNN architecture to validate NAS findings, measuring filter similarity and pruning efficiency across different input types.
  • Simulate illumination changes by scaling input images by factors from $ 2^{-5} $ to $ 2^{3} $, comparing accuracy degradation across RAW, JPEG, and log∇ inputs.
  • Quantize the first-layer features of the CNN to 1.5 bits (3 levels) when using log∇ inputs, evaluating the impact on model performance and data movement.

Experimental results

Research questions

  • RQ1Can log-gradient preprocessing enable aggressive 1.5-bit quantization of first-layer CNN inputs, reducing data movement and memory requirements?
  • RQ2Does training on log-gradient images improve the prunability of CNNs, as indicated by higher filter similarity and reduced model complexity?
  • RQ3How does log-gradient input processing compare to standard JPEG and RAW inputs in terms of robustness to illumination variations across a wide dynamic range?
  • RQ4To what extent can the removal of digital ISP stages be compensated by log-gradient preprocessing in terms of accuracy and energy efficiency?
  • RQ5Can log∇ preprocessing serve as a viable, energy-efficient alternative to traditional ISP pipelines in tinyML computer vision systems?

Key findings

  • Log-gradient preprocessing enables aggressive 1.5-bit quantization of the first-layer CNN inputs, reducing data movement and memory requirements compared to standard 5-bit or higher requirements.
  • CNNs trained on log-gradient inputs exhibit significantly higher filter similarity (measured via cosine similarity), indicating improved structural regularity and enhanced compressibility.
  • The log∇-based system shows only 1.7% accuracy degradation over an 8× brightness variation range ($ 2^{-5} $ to $ 2^{3} $), compared to up to 10% degradation for JPEG inputs.
  • Neural architecture search results confirm that log∇-trained models are more compressible than those trained on RAW or JPEG, with reduced parameter and activation counts post-pruning.
  • The log∇ approach provides inherent illumination invariance, reducing the need for complex exposure control and image signal processing in tinyML systems.
  • The method supports energy-efficient analog-domain computation of log gradients, as previously demonstrated in hardware, enabling system-level energy savings at the sensor level.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.