Bridging the Resource Gap: Deploying Advanced Imitation Learning Models Onto Affordable Embedded Platforms

Haizhou Ge, Ruixiang Wang, Zhu-ang Xu, Hongrui Zhu, Ruichen Deng, Yuhang Dong, Zeyu Pang, Guyue Zhou, Junyu Zhang, Lu Shi

Introduction

Advanced imitation learning (IL) models, particularly those based on the Action Chunking Transformer (ACT), have significantly advanced the field of robotic manipulation. These models enable robots to acquire complex skills from human demonstrations. However, a significant "resource gap" exists between the computational requirements of these high-performance models and the capabilities of affordable embedded platforms. Typically, ACT models require high-end NVIDIA GPUs for real-time inference, which limits their deployment on mobile robots, drones, or low-cost educational platforms.

Standard edge deployment often faces three primary challenges: high latency leading to jerky movements, memory constraints that exceed the capacity of embedded chips, and connectivity risks associated with cloud-based inference. This research proposes a specialized pipeline to bridge this gap, enabling efficient "Edge AI" for robotics on low-cost hardware like the RDK X5.

Proposed Pipeline

The researchers developed a three-stage optimization pipeline to adapt the ACT model for the RDK X5 platform, focusing on reducing computational overhead while maintaining performance.

Overview of the deployment pipeline featuring Input Shape Unification, Symmetric Quantization, and Temporal Ensemble with Dropped Actions.

1. Input Shape Unification (ISU)

Robotic systems utilize multi-modal inputs, including joint positions and multiple camera feeds. These diverse data structures often cause bottlenecks when processed by AI acceleration chips, which may offload unsupported shapes to the slower CPU. ISU standardizes all inputs into a unified image-like tensor format (NCHW), minimizing data transfer overhead and maximizing chip utilization. This optimization alone provided a 6x speedup in inference time.

2. Symmetric Quantization (SQ)

To address memory and speed constraints, the model undergoes symmetric quantization. This process converts 32-bit floating-point parameters into 16-bit integers. This reduction in precision significantly shrinks the model’s memory footprint and accelerates mathematical operations on edge hardware. Despite the compression, the models maintained approximately 99.7% of their original accuracy.

3. Temporal Ensemble with Dropped Actions (TEDA)

TEDA is the core algorithmic innovation designed to handle the inherent latency of edge hardware. While traditional temporal ensembling smooths motion by averaging multiple predictions, it often introduces "jitter" on slower devices due to the wait for new inferences. TEDA executes inference and action sequences in parallel. By "dropping" predicted actions that would have occurred during the inference calculation time, TEDA ensures continuous and fluid robotic motion by overlapping "thinking" with "doing."

Experimental Setup

The pipeline was evaluated using a "leader-follower" teleoperation system featuring AIRBOT Play robotic arms.

The leader-follower teleoperation system and hardware components including the RDK X5 embedded device.

Data collection involved three distinct tasks:

  • Single-Arm Cup Stacking: 300 demonstration episodes.
  • Dual-Arm Cup Stacking: 50 demonstration episodes.
  • Whiteboard Eraser Rotation: 50 episodes using a complex three-finger gripper. The dataset consisted of RGB images (480x640) and joint positions sampled at a frequency of 25 Hz.

Results and Discussion

The proposed pipeline demonstrated significant improvements over baseline edge deployment and approached the performance of high-end server setups.

Inference Efficiency

The combination of ISU and SQ reduced prediction time on the RDK X5 from 0.614s to 0.103s. Total inference time dropped from 0.161s (baseline) to 0.041s. Notably, the TEDA method achieved a faster control loop than a baseline setup running on a high-end PC (Intel i9 + RTX 4060), which took 0.066s.

Task Success Rates

In the single-arm cup stacking task, the success rate increased from 68% (baseline) to 88%, nearing the PC-based performance of 92%. In more complex dual-arm tasks, the optimized pipeline significantly outperformed the baseline, which struggled with motion jitter due to low inference frequencies.

Conclusion

This work demonstrates that high-performance imitation learning models can be effectively deployed on affordable embedded hardware through targeted optimization. By prioritizing parallelism (TEDA) and efficient data structures (ISU), the "resource gap" can be bridged without sacrificing robotic dexterity. Future research will explore more aggressive 8-bit quantization and the scalability of TEDA to even more resource-constrained environments.

Summary updated

BibTeX
@inproceedings{ge2024bridging,
  author = {Haizhou Ge and Ruixiang Wang and Zhu-ang Xu and Hongrui Zhu and Ruichen Deng and Yuhang Dong and Zeyu Pang and Guyue Zhou and Junyu Zhang and Lu Shi},
  title = {{Bridging the Resource Gap: Deploying Advanced Imitation Learning Models Onto Affordable Embedded Platforms}},
  booktitle = {ROBIO},
  year = {2024},
  doi = {10.1109/robio64047.2024.10907641},
}
Figure