R^3: On-device Real-Time Deep Reinforcement Learning for Autonomous Robotics

Zexin Li, Aritra Samanta, Yufei Li, Andrea Soltoggio, Hyoseung Kim +1 more
8/29/2023
cs.ROcs.AIeess.SY

No official code found. Best implementation: ZexinLi0w0/R3 (5 stars, last commit 2026-04-17).

Abstract

Autonomous robotic systems, like autonomous vehicles and robotic search and rescue, require efficient on-device training for continuous adaptation of Deep Reinforcement Learning (DRL) models in dynamic environments. This research is fundamentally motivated by the need to understand and address the challenges of on-device real-time DRL, which involves balancing timing and algorithm performance under memory constraints, as exposed through our extensive empirical studies. This intricate balance requires co-optimizing two pivotal parameters of DRL training -- batch size and replay buffer size. Configuring these parameters significantly affects timing and algorithm performance, while both (unfortunately) require substantial memory allocation to achieve near-optimal performance. This paper presents R^3, a holistic solution for managing timing, memory, and algorithm performance in on-device real-time DRL training. R^3 employs (i) a deadline-driven feedback loop with dynamic batch sizing for optimizing timing, (ii) efficient memory management to reduce memory footprint and allow larger replay buffer sizes, and (iii) a runtime coordinator guided by heuristic analysis and a runtime profiler for dynamically adjusting memory resource reservations. These components collaboratively tackle the trade-offs in on-device DRL training, improving timing and algorithm performance while minimizing the risk of out-of-memory (OOM) errors. We implemented and evaluated R^3 extensively across various DRL frameworks and benchmarks on three hardware platforms commonly adopted by autonomous robotic systems. Additionally, we integrate R^3 with a popular realistic autonomous car simulator to demonstrate its real-world applicability. Evaluation results show that R^3 achieves efficacy across diverse platforms, ensuring consistent latency performance and timing predictability with minimal overhead.

View on arXivView PDF

Code Implementations(1)

ZexinLi0w0/R3Community100%

Source code for the RTSS paper: "R^3: On-device Real-Time Deep Reinforcement Learning for Autonomous Robotics"

50Shell, PythonAug 6, 20246 months ago

Similar Papers

Cite this paper

@article{li2023r,
  title  = {R^3: On-device Real-Time Deep Reinforcement Learning for Autonomous Robotics},
  author = {Zexin Li and Aritra Samanta and Yufei Li and Andrea Soltoggio and Hyoseung Kim and Cong Liu},
  year   = {2023},
  eprint = {2308.15039},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.15039v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.15039.svg)](https://codeofpaper.com/paper/2308.15039)

Discussion