Learning Quantized Continuous Controllers for Integer Hardware
Fabian Kresse, Christoph H. Lampert
TL;DR
This work addresses the challenge of running continuous-control reinforcement learning policies on resource-constrained integer hardware by introducing quantization-aware training (QAT) to produce 2–3 bit policies that can be deployed as integer-only networks on an Artix-7 FPGA. The authors present a complete learning-to-hardware pipeline, including a QDQ-based training approach and a FINN-based hardware synthesis flow, to automatically select layer widths and bitwidths that preserve FP32 performance on five MuJoCo tasks. Across SAC and, in some cases, DDPG, the quantized policies achieve FP32 parity with microsecond-scale inference latencies and microjoule-per-action energy consumption, while also exhibiting enhanced robustness to input noise. The study demonstrates a practical path to energy-efficient, low-latency RL controllers for embedded systems and outlines a three-step model-selection procedure to automatically tailor policies to hardware constraints, with results showing substantial hardware efficiency gains over strong references.
Abstract
Deploying continuous-control reinforcement learning policies on embedded hardware requires meeting tight latency and power budgets. Small FPGAs can deliver these, but only if costly floating point pipelines are avoided. We study quantization-aware training (QAT) of policies for integer inference and we present a learning-to-hardware pipeline that automatically selects low-bit policies and synthesizes them to an Artix-7 FPGA. Across five MuJoCo tasks, we obtain policy networks that are competitive with full precision (FP32) policies but require as few as 3 or even only 2 bits per weight, and per internal activation value, as long as input precision is chosen carefully. On the target hardware, the selected policies achieve inference latencies on the order of microseconds and consume microjoules per action, favorably comparing to a quantized reference. Last, we observe that the quantized policies exhibit increased input noise robustness compared to the floating-point baseline.
