Introduction
Reinforcement Learning (RL) has demonstrated remarkable success in solving complex control tasks, from robotics to autonomous driving. However, deploying RL on edge devices—such as drones or small mobile robots—remains a significant challenge. These devices are constrained by limited battery life and computational resources, while RL agents typically require high-dimensional visual inputs to perceive their environment. This "data hunger" necessitates heavy computation, leading to high power consumption and slow inference speeds.
The Reinforcement Learning Bottleneck
In a standard RL setup, an agent interacts with an environment by observing its state, receiving a reward, and taking actions to maximize long-term gains. When the "state" consists of high-resolution images, the perception layer of the agent becomes a computational bottleneck.
To mitigate this, researchers often use Autoencoders (AEs) to compress high-dimensional images into a compact "latent representation." While this simplifies the RL agent's task, the AE itself is often too computationally intensive for real-time edge deployment.
Proposed Architecture: Quantized Autoencoders
This work introduces a high-performance, low-power hardware accelerator specifically designed for quantized autoencoders. The core idea is to replace standard 32-bit floating-point operations with low-precision arithmetic.
The researchers explored Ternary Neural Networks (TNNs), which use 2-bit weights and activations (representing -1, 0, and +1). Unlike Binary Neural Networks (BNNs), TNNs include a "0" value that allows for effective network pruning, maintaining high accuracy while achieving significant compression.
As shown in the figure above, the proposed system uses a multi-layer convolutional encoder to transform input images into a latent vector $Z$. This vector is then fed into a simplified RL agent. By "freezing" the pre-trained encoder, the system reduces the learning burden on the RL policy network.
Hardware-Software Co-design
The hardware accelerator is optimized for the bitwise logic required by TNNs, specifically utilizing XNOR and "popcount" operations to replace traditional multiplications. This design is highly scalable, allowing for configuration of Processing Elements (PEs) and memory widths to suit specific power and performance targets.
When implemented on a 14nm ASIC, the accelerator achieves a throughput of 1,250 Frames Per Second (FPS) and an energy efficiency of 42.3 TOP/J. This represents a 4.4× improvement in efficiency compared to previous state-of-the-art TNN implementations.
Experimental Evaluation
The system was evaluated in three simulated environments: DonkeyCar (autonomous driving), Miniworld Sidewalk (navigation), and Miniworld Object Pickup (complex interaction).
Key findings include:
- Compression: TNN models achieved a 10× reduction in size compared to full-precision counterparts with negligible loss in RL performance.
- Performance: On an Artix-7 FPGA, the system maintains a real-time rate of 30 FPS, while the ASIC implementation reaches 1,250 FPS.
- Energy Savings: Moving from FPGA to ASIC reduced energy consumption per frame from 250 μJ to just 3.9 μJ.
Conclusion
By combining algorithmic quantization (TNNs) with custom hardware acceleration, this research provides a viable path for deploying sophisticated RL agents on power-constrained edge devices. Future work will focus on on-the-fly training of the autoencoder and further quantizing the RL policy network itself to achieve even greater efficiency.
Summary updated