EasyUUV: An LLM-Enhanced Universal and Lightweight Sim-to-Real Reinforcement Learning Framework for UUV Attitude Control

1Tsinghua University 2The University of Hong Kong 3Southwest Jiaotong University 4 New Jersey Institute of Technology

Accompnying Video

Figure👇: Overall architecture of the EasyUUV framework, which comprise three parts: (a) RL and adaptive S-Surface-based composite controller module; (b) parallelized reinforcement learning environment developed on NVIDIA Isaac Lab; and (c) multimodal LLM adjustment module for real-world adaption.

‎

architecture-image image.

Introduction

architecture-image image.

‎

Although notable progress has been made in Unmanned Underwater Vehicles (UUVs) attitude control, most existing approaches still face challenges in achieving broad generalizability, maintaining robustness under real-world disturbances, and improving deployment efficiency.

To address above challenges, this paper presents EasyUUV, an LLM-enhanced, universal, and lightweight Sim-to-Real reinforcement learning (RL) framework for robust attitude control of UUVs. Our main contributions are summarized as follows:

  • A universal and lightweight RL-based control framework: EasyUUV supports scalable Sim2Real attitude control through platform-agnostic modeling and a CUDA-accelerated parallelized RL training architecture. To enhance control performance under noise and disturbances, we further develop an A-S-Surface controller that integrates nonlinear control and adaptive compensation for improved robustness.
  • LLM-driven adaptive controller tuning: EasyUUV integrates a multimodal LLM-based module that adaptively adjusts controller parameters at runtime based on historical dynamic responses and real-time sensory feedback, enabling robust adaptation without retraining.
  • Zero-shot transfer and extensive experiments: We develop a low-cost UUV platform integrated with our LLM-enhanced Sim2Real RL framework, enabling zero-shot transfer of expert policies from simulation to reality. Validated through tank experiments and sea trials, EasyUUV showcases outperforming robustness and adaptivity across diverse conditions in attitude control.

Parallelized Simulation

Before training (~20ep)

After training (~400ep)

‎

  • The parallelized simulation environment is built on NVIDIA Isaac Lab, with CUDA/NVIDIA PhysX acceleration.
  • We implement MuJoCo-based hydrodynamic modeling, thruster dynamics modeling to capture the salient feature of the complex dynamics of UUV deployment.
  • Also, we implement domain randomization (DR) to improve policy generalization and real-world adaptability. During training, key parameters such as the CoB–CoM offset and controller gains are randomly perturbed to account for structural and dynamic variations.
  • For RTX4060, a typical low-end consumer-grade GPU, A total of 460 episodes (~3e7 timesteps) are completed in approximately 130 seconds, achieving rapid iteration and high performance.
architecture-image image.

‎

Image: Thrust (N) vs. Normalized PWM Value (corresponding to 1100–1900 μs) for the Blue Robotics T200 Thruster (16V Voltage).

Real-World Deployment

EasyUUV testbed 3D Model

  • Our EasyUUV hardware platform is a compact, low-cost (~$1000 USD), modular testbed designed for RL-based Sim2Real control, featuring 3D-printed ABS and aluminum construction for durability and ease of fabrication.
  • It employs eight eight custom-built thrusters with thrust characteristics similar to Blue Robotics T200 in a 6-DOF configuration for precise attitude control, with vibration isolation to reduce sensor interference.
  • An ESP32-WROOM microcontroller executes the A-S-Surface controller at 100Hz using simulation- and HIL-calibrated gains, receiving real-time commands via a low-latency RS-485 tether (≤10ms) that also runs the PyTorch JIT-based RL policy.
  • Sensor fusion uses a 9-DOF MPU9250 IMU with complementary filtering; the entire system fits in a 30L waterproof case, weighs under 20kg, and supports single-user operation.
  • By using off-the-shelf components and closely matching simulation dynamics, EasyUUV enables robust, portable, and research-grade Sim2Real transfer.
architecture-image image.
architecture-image image.

Experimental Results

Experiment Setup

architecture-image image.

‎

Experimental testbed for real-world validation of EasyUUV. (Tank Experiment).

‎

Simulation Results

Simulation videos (left: A-S-Surface, right: A-S-Surface+RL). The results underscore the advantage of integrating RL with adaptive control, especially multi-axis attitude tracking robustness.

architecture-image image.

Comparison of MSE across two tasks for different controllers, under both RL and non-RL settings (simulation). Left: w/o RL, Right: w/ RL.

architecture-image image. architecture-image image.

‎

Comparison of tracking response curves and compund error for different control strategies. Specifically, A-S-Surface converges the fastest and achieves the highest final reward, indicating superior learning efficiency. Besides, S-Surface shows slower convergence and lower reward, while PID performs worst with minimal improvement.

‎

We next examine the effect of DR for RL training. DR notably reduce performance loss, with SDR consistently achieving better out-of-domain performance and stability.

architecture-image image.

‎

The MSE results under varying DR levels.

‎

Real-World Deployment (Tank)

EasyUUV achieves strong disturbance rejection, can quickly recover from transient disturbances, and also demonstrates certain position-holding capability.

Pertubation Only.

Pertubation + Manual Disturbance.

architecture-image image. architecture-image image.

‎

Comparison of tracking response and compund error curves for different control tasks with and without RL policy (Real-world experiment). (a) Yaw+Roll. (b) Yaw+Pitch.

‎

architecture-image image.

‎

Tracking response curves of tank experiment (with manual disturbance)

‎

Tracking response curves and LLM-generated controller adjustments under turbulence scenario. LLM generate adjustment recommendation based on visual logs and textual data. The LLM can generate recommendation within 5s, and the performance significantly increase.

Real-World Deployment (Sea Trial)

We conduct outdoor experiment in a estuary at Shenzhen Bay Park, where the turbulent current poses a significant challenge to the attitude control. EasyUUV still achieved reasonable attitude control performance in this environment with strong uncertainty.

BibTeX

@inproceedings{easyuuv,
      title={{EasyUUV}: An LLM-Enhanced Universal and Lightweight Sim-to-Real Reinforcement Learning Framework for UUV Attitude Control},
      author={Xie, Guanwen and Xu, Jingzehua and Tang, Jiwei and Huang, Yubo and Zhang, Shuai and Li, Xiaofan},
      booktitle={IEEE International Conference on Robotics \& Automation (ICRA, in submission)},
  year={2026}}