Monolithic vs. hybrid controller for multi-objective Sim-to-Real learning

Atakan Dag, Alexandre Angleraud, Wenyan Yang, Nataliya Strokina, Roel S. Pieters, Minna Lanz, Joni-Kristian Kamarainen

TL;DR

This paper compares monolithic and hybrid reinforcement learning (RL) controllers for multi-objective Sim-to-Real robotic tasks, specifically reaching a target while avoiding a dynamic obstacle. The authors demonstrate that a hybrid controller—which switches between pre-trained sub-policies—is significantly easier to train and achieves a superior success-failure trade-off compared to a single monolithic controller. Crucially, the hybrid approach allows operators to adjust safety thresholds on the fly without time-consuming retraining, and its performance successfully transfers to a physical Franka Emika Panda manipulator.

What Problem Does This Paper Address?

Deploying reinforcement learning from simulation to physical robots (Sim-to-Real) has seen great success in single-objective tasks like basic reaching or object manipulation. However, real-world robotic applications are inherently multi-objective: a robot must complete its primary task while simultaneously ensuring safety by avoiding collisions.

The traditional approach to multi-objective RL is to engineer a single monolithic controller using a multi-term reward function that balances rewards for reaching the goal against penalties for collisions. This introduces a massive "reward engineering" burden, requiring tedious tuning of reward weights. Furthermore, if the desired safety margins change, the entire monolithic network must be retrained from scratch. This paper investigates whether a hybrid controller—which uses a hard switching rule to toggle between specialized, pre-trained single-objective policies—can overcome these training inefficiencies and deliver a better Pareto-optimal trade-off between success and collision rates.

Methods

The authors implement both control architectures using the standard Deep Deterministic Policy Gradient (DDPG) algorithm for continuous action spaces.

  • Monolithic Controller: Combines all objectives into a single composite reward function: $$r = R_t + R_o + R_s$$ where $R_t$ is a dense reward based on distance to the target, $R_o$ is a sparse penalty for entering an obstacle's safety zone ($\tau_o$), and $R_s$ is a sparse reward for successfully reaching the target.

  • Hybrid Controller: Employs a dual-mode architecture that switches between an obstacle-avoidance policy ($\mu_1$) and a goal-reaching policy ($\mu_2$) based on a distance threshold ($\tau_{hyb}$).

  • The "Correlated" Innovation: Instead of training the hybrid sub-policies completely independently (which yielded poor results), the authors introduce correlated hybrid rewards. The avoidance policy $\mu_1$ is trained with a reward function that still includes target distance and success terms but heavily weights the obstacle penalty ($p_o = 10.0$). This shared reward structure effectively "glues" the two policies together, smoothing the transitions when the switching rule activates.
Simulation results showing the success vs. collision rate trade-off for monolithic and hybrid controllers.

Datasets

  • Simulation Environment: Built using CoppeliaSim and the PyRep API. Training involved random target placements within a designated rectangular zone and dynamic obstacles moving along randomized trajectories.
  • Physical Evaluation: Validated on a real-world setup featuring a Franka Emika Panda 7-DOF robotic arm. Target and obstacle tracking were handled via an Intel RealSense D435 camera and AprilTag fiducial markers. The controllers were evaluated across 5 distinct obstacle trajectory scenarios designed to test edge cases (e.g., obstacles blocking the path directly vs. moving parallel to it).

Key Insights and Ideas

  • Tuning Without Retraining: The standout advantage of the hybrid controller is its operational flexibility. By simply adjusting the distance threshold ($\tau_{hyb}$), users can change the robot's safety behavior instantly. The monolithic controller, by contrast, requires hours of retraining for every new safety threshold ($\tau_o$).
  • The Power of Correlated Rewards: Purely decoupled training for hybrid sub-policies fails. A policy trained only to avoid obstacles has no incentive to stay near the goal, leading to erratic behavior during switches. Mixing reward terms across both sub-policies provides the necessary contextual awareness for smooth handoffs.
  • Training Efficiency: Training a monolithic controller is highly sensitive to reward scaling and takes longer to converge because it must learn to balance conflicting gradients simultaneously.

Key Results

  • Superior Trade-offs: As shown in Figure 1, the hybrid controller (circles) consistently achieves higher success rates at lower collision rates than the monolithic controller (diamonds).
  • Sim-to-Real Consistency: The performance metrics successfully transferred to the physical robot, with real-world success and collision rates landing within $\pm20\%$ of the simulated results.
  • Scenario Testing: In direct comparisons across five distinct obstacle trajectories (Table I), the hybrid controller systematically outperformed the monolithic baseline. For instance, in Scenario 1, the hybrid controller achieved a $90\%$ success rate and $10\%$ collision rate on the real robot, whereas the monolithic controller managed only a $30\%$ success rate with a $70\%$ collision rate.
Fig. 2: Convergence of the monolithic controller. Top: per episode rewards (running average as the solid line and true values as shaded regions) for different values of τo. Bottom: Corresponding success and failure rates for different τo.

Limitations and Future Work

While the hybrid controller demonstrates clear advantages, the authors note a few limitations:

  • Heuristic Switching: The switching mechanism relies on a simple, hand-crafted distance threshold. In highly complex or high-dimensional environments, designing this rule manually becomes impractical.
  • Scope of Objectives: The study was limited to a dual-objective task (reach and avoid). Scaling this to many simultaneous objectives (e.g., joint limit avoidance, torque minimization, and multiple dynamic obstacles) remains unproven.

Future Directions: The authors point to automated learning of the hybrid switching rule as a vital next step, alongside expanding evaluations to a broader variety of multi-objective robotic tasks.

Summary updated

BibTeX
@inproceedings{dag2021monolithic,
  author = {Atakan Dag and Alexandre Angleraud and Wenyan Yang and Nataliya Strokina and Roel S. Pieters and Minna Lanz and Joni-Kristian Kamarainen},
  title = {{Monolithic vs. hybrid controller for multi-objective Sim-to-Real learning}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2021},
  doi = {10.1109/iros51168.2021.9636426},
}
Figure