ZORMS-LfD: Learning From Demonstrations With Zeroth-Order Random Matrix Search

Olivia Dry, Timothy L. Molloy, Wanxin Jin, Iman Shames

Introduction

Learning from Demonstrations (LfD) is a cornerstone of modern robotics, enabling machines to acquire complex behaviors by observing expert performance. This is typically framed as an Inverse Optimal Control (IOC) problem, which is mathematically structured as a "bilevel" optimization. In this setup, the lower level solves an optimal control problem based on current parameters (such as costs or constraints), while the upper level adjusts those parameters to minimize the discrepancy between the model's output and the expert's demonstration.

However, the upper-level loss landscape is notoriously difficult to navigate. It is frequently non-convex, non-smooth, and non-differentiable, particularly when physical constraints—like obstacle avoidance—are introduced. Traditional first-order (gradient-based) methods rely on complex sensitivity calculations that often fail when the landscape lacks smoothness. Furthermore, most existing IOC frameworks are designed for discrete-time systems, leaving a significant gap for robots operating in continuous-time environments.

The ZORMS-LfD Framework

To address these challenges, we introduce Zeroth-Order Random Matrix Search for LfD (ZORMS-LfD). This framework bypasses the need for explicit gradient calculations by utilizing a zeroth-order optimization approach. Instead of computing a derivative, the algorithm estimates a descent direction by sampling the loss function at random points.

Technical Components

  • Zeroth-Order Oracle: The algorithm evaluates the loss at the current parameter $\theta$ and a perturbed version $\theta + \mu M$. The difference between these evaluations provides a "smoothed" estimate of the gradient, allowing the optimizer to navigate non-differentiable regions effectively.
  • Random Matrix Search: While standard zeroth-order methods typically use random vectors, ZORMS-LfD utilizes symmetric matrices sampled from the Gaussian Orthogonal Ensemble (GOE). This choice is motivated by the fact that many control parameters, such as cost weights, are naturally structured as matrices.
  • Exploiting Geometric Structure: By treating parameters as block-diagonal matrices, the framework achieves tighter complexity bounds and superior convergence guarantees compared to vector-based methods. This approach exploits the underlying symmetry inherent in control problems.
  • Parallelization: A key advantage of this method is its computational efficiency. Because the two loss evaluations required per iteration are independent, they can be executed in parallel, significantly accelerating the learning process.

Experimental Evaluation

We evaluated ZORMS-LfD across a diverse suite of benchmarks and real-world data:

  • Control Benchmarks: The algorithm was tested on Cartpole, a 2-link Robot Arm, a 6-DoF Quadrotor, and a 6-DoF Rocket Landing (including both unconstrained and constrained scenarios).
  • Human Motion Capture: We utilized the KIT Whole-Body Human Motion Dataset, specifically focusing on motion-capture data of a human waving.
  • Cross-Platform Transfer: To demonstrate the robustness of the learned models, the waving motion learned from human data was successfully implemented on a simulated Nao robot within the Webots environment.

Key Insights and Results

Efficiency and Speed

ZORMS-LfD demonstrates a significant leap in computational performance. In unconstrained continuous-time benchmarks, the method achieved an 80% reduction in compute time compared to the state-of-the-art first-order method (CPDP), while maintaining comparable accuracy. This speedup stems from the simplicity of the zeroth-order approach; while first-order methods require solving complex, coupled differential equations for gradients, ZORMS-LfD simply solves the "forward" control problem twice.

Robustness to Non-Smoothness and Noise

In constrained discrete-time problems, ZORMS-LfD outperformed first-order methods like SafePDP, which often struggled to compute valid gradients in non-smooth landscapes. Additionally, the framework proved resilient to Gaussian measurement noise in expert demonstrations, maintaining stable performance where other methods might diverge.

Theoretical Rigor

Beyond empirical success, this work provides the first theoretical convergence guarantees and complexity bounds for Inverse Optimal Control in continuous-time systems with constraints. This bridges a critical gap between optimization theory and practical robotic application.

Limitations and Future Work

While ZORMS-LfD is highly effective, its performance is intrinsically linked to the efficiency of the underlying "forward" optimal control solver. If the control problem itself is computationally prohibitive, the learning process will slow down accordingly. Furthermore, while the framework is capable of learning costs, constraints, and dynamics, our current experiments focused primarily on cost matrix estimation. Future research will explore the application of ZORMS-LfD to high-dimensional system dynamics and further refine hyperparameter selection strategies.

Summary updated

BibTeX
@article{dry2025zorms,
  author = {Olivia Dry and Timothy L. Molloy and Wanxin Jin and Iman Shames},
  title = {{ZORMS-LfD: Learning From Demonstrations With Zeroth-Order Random Matrix Search}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2025},
  doi = {10.1109/lra.2025.3592144},
}
Figure