TL;DR
This paper introduces γ-QUANT, a novel method for learning task-specific, non-linear quantization for analog sensor data. By jointly optimizing the quantization process with downstream neural network models, γ-QUANT significantly reduces data bit-depth (down to 2-4 bits) for applications like object detection and human activity recognition, achieving performance comparable to high-bit data while drastically cutting energy consumption and data transmission costs.
What Problem Does This Paper Address?
Modern machine learning models, especially in computer vision and human activity recognition (HAR), often rely on pre-processed, high-bit-depth data. This pre-processing, typically done by Image Signal Processing (ISP) pipelines or standard Analog-to-Digital Converters (ADCs), is designed for human perception and may not be optimal for automated analysis. Furthermore, using high-bit-depth data is highly inefficient for resource-constrained edge devices, leading to significant energy consumption and data transmission overhead. While low-bit quantization has been explored, it's often done linearly and without task-specific optimization. This paper addresses the need for a method that can learn an optimal, non-linear quantization strategy directly at the sensor level, tailored to the specific downstream task, to achieve significant efficiency gains without sacrificing performance.
Methods
The core contribution is γ-QUANT, a learnable, non-linear quantization approach. It parameterizes the quantization function with learnable parameters $\gamma$ and $\mu$, inspired by gamma correction. The quantization is defined as:
$Q(X, \gamma, \mu) = Q_{\hat{N}}(\text{sign}(X - \mu) \cdot |X - \mu|^{\gamma})$
where $X$ is the analog input, $Q_{\hat{N}}$ is a linear quantizer to a target bit-depth $\hat{N}$, and $\gamma$ and $\mu$ are learned. This learnable quantization module is then jointly optimized with a task-specific neural network. To overcome the non-differentiable nature of quantization, a straight-through estimator is used. The authors simulate the analog signal using high-bit-depth raw data.
For image data, they simplify γ-QUANT by setting $\mu=0$ and focus on learning $\gamma$ to mimic or improve upon logarithmic quantization. For HAR data, they use the full $\gamma$ and $\mu$ parameters, as the data range is typically $[-1, 1]$ and offsets can be crucial.
Datasets
The paper evaluates γ-QUANT on two main application domains:
Human Activity Recognition (HAR): * WEAR [2]: Outdoor sports activities. * Hang-Time [18]: Basketball practice sessions. * Wetlab [39]: Laboratory activities (e.g., pipetting). * RWHAR [42]: Locomotion activities. * SBHAR [37]: Locomotion and transitional activities.
Object Detection: * PASCAL RAW [32]: A 12-bit RAW image dataset with 'Car', 'Bicycle', and 'Person' classes. * RAOD [46]: Another RAW image dataset for object detection (details in appendix).
Key Insights and Ideas
- Task-Specific Quantization is Crucial: The paper strongly suggests that a "one-size-fits-all" linear quantization is suboptimal. Learning quantization parameters tailored to the specific task and data distribution leads to significant performance improvements, especially at very low bit-depths.
- Non-Linearity Matters: The learned non-linear quantization (γ-QUANT) can adapt to the data's characteristics, effectively amplifying important features or details that might be lost with linear quantization. This is particularly evident in image data where learned gamma values can improve contrast and detail visibility.
- Low Bit-Depth is Viable: The results demonstrate that even with as few as 2-4 bits, performance can be maintained at levels comparable to high-bit data (12-bit raw or sRGB), which is a major breakthrough for energy-constrained devices.
- Sensor-Axis Specificity for HAR: For HAR data from accelerometers, learning quantization parameters independently for each sensor axis (x, y, z) yields better results than a global quantization. This is attributed to compensating for static gravitational components that affect different axes differently based on orientation.
Key Results
Human Activity Recognition: * γ-QUANT consistently outperforms linear quantization across all five HAR datasets, especially at low bit-depths (2 and 4 bits). * With 4-bit linear quantization, performance drops significantly on WEAR and Wetlab datasets. * With 2-bit linear quantization, all datasets show a substantial decline. * Sensor-axis-specific γ-QUANT achieves prediction F1-scores comparable to raw data, even with 2-bit input, on WEAR and Wetlab datasets.
Object Detection: * γ-QUANT shows systematic improvement over linear and logarithmic quantization for object detection on PASCAL RAW and RAOD datasets. * At 4-bit depth, γ-QUANT achieves performance on par with, and sometimes even surpassing, standard (ISP processed) sRGB images. * The learned quantization effectively scales pixel values to enhance contrast and visibility of features, enabling better model performance. * For FasterRCNN, the learned $\gamma$ values were consistently low (e.g., 0.294 for 4-bit), indicating a strong compression of higher intensity values.
Limitations and Future Work
Limitations: * Proxy for Analog Signals: The experiments use high-bit-depth RAW images as a proxy for true analog signals. While a valid assumption, there might still be some information loss between true analog and the RAW input. * Non-Differentiability Handling: While the straight-through estimator is effective, it's an approximation.
Future Work: * Direct Sensor Testing: The authors express a desire to test γ-QUANT directly on sensors with analog signals to potentially achieve further accuracy gains. * More Flexible Parameterizations: Exploring more complex or flexible quantization parameterizations beyond $\gamma$ and $\mu$. * End-to-End System Optimization: Expanding the framework to jointly optimize network architectures, network quantization, and sensor quantization for inference.
Summary updated