[Paper Review] An FPGA-Based On-Device Reinforcement Learning Approach using Online Sequential Learning
This paper proposes an FPGA-accelerated on-device reinforcement learning framework using OS-ELM for lightweight, real-time inference on resource-constrained edge devices. By replacing backpropagation with analytical weight updates and applying L2 regularization with spectral normalization, the method achieves 89.40x faster training than DQN on the CartPole-v0 environment with 64 hidden units, enabling stable, low-latency deployment on PYNQ-Z1 FPGA platforms.
DQN (Deep Q-Network) is a method to perform Q-learning for reinforcement learning using deep neural networks. DQNs require a large buffer and batch processing for an experience replay and rely on a backpropagation based iterative optimization, making them difficult to be implemented on resource-limited edge devices. In this paper, we propose a lightweight on-device reinforcement learning approach for low-cost FPGA devices. It exploits a recently proposed neural-network based on-device learning approach that does not rely on the backpropagation method but uses OS-ELM (Online Sequential Extreme Learning Machine) based training algorithm. In addition, we propose a combination of L2 regularization and spectral normalization for the on-device reinforcement learning so that output values of the neural network can be fit into a certain range and the reinforcement learning becomes stable. The proposed reinforcement learning approach is designed for PYNQ-Z1 board as a low-cost FPGA platform. The evaluation results using OpenAI Gym demonstrate that the proposed algorithm and its FPGA implementation complete a CartPole-v0 task 29.77x and 89.40x faster than a conventional DQN-based approach when the number of hidden-layer nodes is 64.
Motivation & Objective
- To enable real-time, on-device reinforcement learning on low-cost, resource-limited FPGA platforms such as PYNQ-Z1.
- To overcome the computational infeasibility of DQN on edge devices due to backpropagation and experience replay overhead.
- To stabilize Q-value outputs in single-hidden-layer OS-ELM networks through regularization techniques.
- To accelerate inference and training via FPGA offloading of sequential operations in the RL pipeline.
Proposed method
- The proposed method replaces DQN's backpropagation with OS-ELM, which analytically computes output weights in one shot, eliminating iterative optimization.
- A simplified Q-network architecture is used with a single hidden layer and fixed input weights, reducing computational complexity.
- L2 regularization on output weights and spectral normalization on input weights are jointly applied to constrain the Lipschitz constant and stabilize Q-value predictions.
- The OS-ELM Q-Network is implemented on PYNQ-Z1 using a hybrid CPU-FPGA architecture, where the FPGA accelerates matrix operations in predict_seq and train_seq.
- The system uses AXI bus and DMA for CPU-FPGA data transfer, with a 1-cycle latency assumption for float32 transfers.
- Training and inference are offloaded to the FPGA for performance gains, while initialization and control logic run on the CPU.
Experimental results
Research questions
- RQ1Can OS-ELM-based on-device learning achieve stable and fast reinforcement learning on low-cost FPGAs without backpropagation?
- RQ2How effective is the combination of L2 regularization and spectral normalization in stabilizing Q-value outputs in single-layer OS-ELM networks?
- RQ3To what extent can FPGA acceleration improve the inference and training speed of on-device RL compared to conventional DQN?
- RQ4How does the system scale with increasing hidden-layer size in terms of performance and stability?
Key findings
- The proposed OS-ELM-L2-Lipschitz method achieved 29.77x faster training than DQN when using 64 hidden-layer nodes on the CartPole-v0 environment.
- The FPGA-accelerated implementation achieved 89.40x speedup over DQN in completing the CartPole-v0 task with 64 hidden units.
- The method remained stable and effective across different hidden-layer sizes due to the combined regularization, preventing Q-value divergence.
- The dominant performance bottleneck in the OS-ELM approach was the train_seq operation, which scales with matrix size ∼ℝ^(N×N)×ℝ^(N×N), making FPGA acceleration highly beneficial.
- Execution times for OS-ELM-L2-Lipschitz and FPGA versions increased with hidden-layer size, but remained significantly faster than DQN, which showed less scaling improvement.
- The FPGA implementation reduced total execution time to 24.71 seconds for 64 hidden units, compared to 2208.90 seconds for DQN, demonstrating strong hardware acceleration gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.