RobotxR1: Enabling Embodied Robotic Intelligence on Large Language Models through Closed-Loop Reinforcement Learning

Liam Boyle, Nicolas Baumann, Paviththiren Sivasothilingam, Michele Magno, Luca Benini

TL;DR

RobotxR1 brings DeepSeek-style reinforcement learning reasoning (R1-Zero) into robotics by moving beyond static math datasets to interactive, closed-loop continuous control. By coupling small language models (1.5B–3B parameters) with a Model Predictive Controller (MPC) inside a driving simulator, the framework trains edge-deployable models that adapt to language prompts—allowing an onboard 3B model to outperform cloud-tethered GPT-4o on autonomous driving control tasks.

What Problem Does This Paper Address?

Running Large Language Models (LLMs) on robots typically requires continuous cloud connectivity to handle massive parameter counts. However, offloading inference introduces network latency, security vulnerabilities, and connection dropouts—unacceptable risks for real-time robotic systems like Autonomous Driving Systems (ADS).

While small language models (SLMs) can run locally on embedded hardware, they typically struggle with reasoning and structured control parameter tuning. Standard distillation via Supervised Fine-Tuning (SFT) teaches models abstract patterns from static text, but true robotic intelligence requires grounding in sensory feedback and physical consequence. Meanwhile, recent Reinforcement Learning with Verifiable Rewards (RLVR) breakthroughs like DeepSeek-R1-Zero have unlocked reasoning capabilities in LLMs, but exclusively on static datasets (e.g., math and code puzzles) rather than continuous, interactive physical environments.

Methods

RobotxR1 adapts the R1-Zero recipe into an embodied, closed-loop Reinforcement Learning (RL) pipeline using Group Relative Policy Optimization (GRPO) with Low-Rank Adaptation (LoRA), separating autonomy into two core modules:

  1. DecisionxR1 (Behavior Reasoning): A Retrieval-Augmented Generation (RAG)-supported model that ingests robot state trajectory histories and binary-classifies whether the vehicle is adhering to human behavioral instructions (e.g., "Is the car driving on the racing line?"). Trained via RLVR on formatting and correctness rewards.
  2. MPCxR1 (Control Adaptability): An embodied agent placed in a direct closed loop with an autonomous driving simulator and a kinematic Model Predictive Controller (MPC). In response to open-vocabulary instructions (e.g., "Drive smoothly at 2 m/s"), the model generates low-level MPC weights, bounds, and safety margins. The car executes these in simulation, and the model receives a composite reward based on:
  3. $R_{\text{drive}}$: Relative Root Mean Square Error (RMSE) reduction compared to the default MPC policy.
  4. $R_{\text{fmt}}$: Structural formatting and reasoning tags (<reasoning>...</reasoning>).
  5. $R_{\text{param}}$: Penalties for hallucinated or unparseable control parameters.

The models (Qwen2.5 1.5B and 3B) are trained with SFT first, followed by closed-loop RLVR. Training requires only a single consumer GPU (e.g., RTX 3090), and the final models are quantized (Q5_K_M) for real-time edge deployment on an onboard NVIDIA Jetson Orin AGX.

                    ┌──────────────┐
  Human Prompt ───> │  DecisionxR1 │ (Adherence Check)
                    └──────┬───────┘
                           │ (if adjustment needed)
                           v
                    ┌──────────────┐
                    │    MPCxR1    │
                    └──────┬───────┘
                           │ Generates MPC weights/bounds
                           v
                    ┌──────────────┐
                    │ Low-level MPC│ <──> Simulator / Real Car
                    └──────────────┘

Datasets

  • Decision-Making Dataset: 200 state trajectories collected in simulation across 8 distinct driving modes (e.g., centerline tracking, reversing, raceline tracking), programmatically labeled with binary adherence rules and paired with prompts to form 1,600 prompt-trajectory combinations.
  • Control Training Set ($\mathcal{B}$): 4 behavioral prompts evaluated on a simple circular track (Circle map) during RL training.
  • Evaluation Benchmark ($\mathcal{B}'$): 20 randomized, rephrased behavioral prompts across 4 tasks evaluated on a distinct, unseen, complex track ("The Grand Tour" map) to measure generalization and zero-shot open-vocabulary transfer.

Key Insights and Ideas

  • Embodied RL Beats Cloud Scale: A 3B-parameter model trained through direct physical simulation feedback achieved superior control adaptation compared to frontier models like GPT-4o, demonstrating that domain-grounded interaction matters more than sheer parameter scale.
  • SFT + RLVR Synergy: Pure RLVR on tiny models causes high failure rates (hallucinated parameters). SFT acts as essential scaffolding for syntax and domain vocabulary, while closed-loop RLVR provides the trial-and-error grounding needed to tune parameters effectively.
  • Reasoning Becomes Shorter, Not Longer: Unlike mathematical reasoning tasks (such as DeepSeek-R1) where test-time compute encourages expansive Chains of Thought (CoT), embodied RL drove the models to produce significantly shorter, more concise outputs over training, aligning with recent observations in spatial reasoning.

Key Results

  • Control Adaptability: Qwen2.5-3B (SFT + RLVR) achieved an overall improvement score of 63.3% across tracking and smoothness metrics on the unseen track, outperforming cloud-bound GPT-4o (58.5%) and the SFT-only 3B baseline (50.4%, which also suffered parameter extraction failures).
  • Impact of Interaction on SLMs: For the 1.5B model, adding closed-loop RLVR boosted control adaptability from 11.3% to 41.5%—a massive 20.2 percentage-point improvement over SFT alone, while eliminating parameter parsing errors.
  • Decision Accuracy: On behavior classification, two-stage training (SFT + RLVR) raised Qwen2.5-1.5B accuracy from 47.09% (base) and 68.80% (SFT) to 82.83%.
  • Physical Deployment: Running on a 1:10-scale racecar powered by a Jetson Orin AGX, a quantized 3B model delivered ~38.8 tokens/s (~8.3 s latency), successfully resolving induced vehicle oscillations and executing compound instructions in the real world.

Limitations and Future Work

  • Training Parallelization Bottleneck: Because LLM generation is orders of magnitude slower than lightweight neural network policies, current simulations cannot exploit massive GPU parallelization (e.g., Isaac Gym).
  • Solver Brittleness: Tightly coupling an LLM within an RL loop to an external numerical solver (ROS-based MPC) means invalid or extreme parameter combinations can occasionally crash the solver and halt training.
  • Domain Specificity: The current formulation is customized for racing-car kinematics and MPC parameterizations; adapting it to manipulators or quadrupeds will require designing task-specific control representations and verification metrics.

Summary updated

BibTeX
@inproceedings{boyle2025robotxr,
  author = {Liam Boyle and Nicolas Baumann and Paviththiren Sivasothilingam and Michele Magno and Luca Benini},
  title = {{RobotxR1: Enabling Embodied Robotic Intelligence on Large Language Models through Closed-Loop Reinforcement Learning}},
  booktitle = {Conference on Robot Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Ggu7Hh2xnn},
}
Figure