Sample-Based Hybrid Mode Control: Asymptotically Optimal Switching of Algorithmic and Non-Differentiable Control Modes

Yilang Liu, Haoxiang You, Ian AbrahamarXiv 2025 · DOI

Introduction

Agile robotic systems, such as quadrupeds, must frequently transition between discrete states—like making or breaking contact with the ground—to perform complex maneuvers. Traditional hybrid control manages these transitions by coordinating continuous control inputs with discrete mode changes. However, modern robotics often relies on "black box" controllers, such as deep reinforcement learning (RL) policies or complex Model Predictive Control (MPC) algorithms, which are typically non-differentiable. This non-differentiability, combined with the combinatorial explosion of possible mode sequences over long horizons, makes optimal control planning exceptionally difficult.

The Challenges of Hybrid Control

Two primary hurdles prevent the seamless integration of diverse control strategies in robotics:

  1. Non-Differentiability: Many high-performance controllers cannot be integrated into standard gradient-based optimization toolkits because their internal logic is not differentiable.
  2. Combinatorial Explosion: Deciding the optimal control mode for every timestep creates a search space that grows exponentially ($O(M^T)$), rendering long-horizon planning computationally infeasible for complex systems.

Sample-Based Hybrid Mode Control

To address these issues, this research proposes a sample-based framework that shifts optimization from per-timestep control to "mode-level" scheduling.

Integer-Based Formulation

Instead of optimizing high-dimensional continuous control signals, the algorithm optimizes three discrete variables: the choice of mode ($m$), the start time ($\mu$), and the duration ($\nu$). By parameterizing the problem based on mode duration, the search space is effectively compressed, making long-horizon tasks manageable.

Iterative Refinement and Sampling

The method employs an iterative approach. Starting from a default sequence, it repeatedly searches for a single "switch"—a specific mode, start time, and duration—that minimizes the total cost. To ensure efficiency, the framework uses uniform sampling without replacement to explore the space of possible switches. This reduces complexity from exponential to polynomial while maintaining theoretical guarantees of Asymptotic Convergence to the optimal switching sequence.

Key Results

The proposed method was evaluated in both high-fidelity simulations and real-world experiments using a Unitree Go2 quadruped.

Complex Behavior Synthesis

The framework successfully coordinated a highly agile three-phase maneuver: a stabilizing foot stand (Mode 1), a high-speed MPC-based jump flip (Mode 2), and a stabilizing handstand (Mode 3). This demonstrates the ability to treat disparate algorithms—RL policies and MPC—as interchangeable "modes" within a single unified plan.

A Unitree Go2 quadruped robot performing a multi-mode maneuver: transitioning from a stabilizing foot stand to an MPC-based jump flip, and finally to a stabilizing handstand.

Quantitative Performance and Optimality

In comparative tests against standard sampling methods like Model Predictive Path Integral (MPPI) and the Cross-Entropy Method (CEM), the proposed approach consistently achieved lower cumulative costs and a smaller optimality gap, particularly as the planning horizon increased.

Performance comparison of the proposed Hybrid Mode Control against MPPI, Predictive Sampling, and the Cross Entropy Method across different control horizons.

In quadruped simulations, the proposed method achieved a cumulative cost of 13.519, significantly outperforming single-policy baselines (PPO-only: 34.03). Furthermore, the algorithm demonstrated real-time capability, running at 50 Hz on a standard laptop CPU during physical robot deployments.

Conclusion

Sample-Based Hybrid Mode Control provides a robust and efficient way to sequence non-differentiable control policies for agile robotics. By reformulating the problem as an integer-based optimization and leveraging iterative sampling, the system achieves complex maneuvers with provable optimality. Future work will focus on improving model robustness in unstructured environments and exploring the integration of data-driven dynamics models to reduce reliance on explicit physics engines.

Summary updated

BibTeX
@misc{liu2025sample,
  author = {Yilang Liu and Haoxiang You and Ian Abraham},
  title = {{Sample-Based Hybrid Mode Control: Asymptotically Optimal Switching of Algorithmic and Non-Differentiable Control Modes}},
  year = {2025},
  eprint = {2510.19074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.19074},
}
Figure