Introduction
In high-performance robotics, the ability to execute optimal trajectories in real-time is a fundamental requirement. However, solving Optimal Control Problems (OCPs) online is often computationally prohibitive, particularly for systems with high degrees of freedom. A common strategy to circumvent this is "Learning from Optimal Control" (LfOC). In this paradigm, a machine learning model—frequently utilizing Dynamical Motion Primitives (DMPs)—is trained on a set of pre-computed optimal trajectories to serve as a fast, online controller.
Despite its popularity, LfOC faces two primary hurdles: the difficulty of quantifying the "suboptimality gap" (the performance loss compared to a true numerical solver) and the inefficiency of data generation. Most current approaches rely on uniform grid sampling, which often leads to over-sampling simple regions and under-sampling complex, high-sensitivity areas of the state space.
Methodology
This research bridges the gap between classical control theory and imitation learning by introducing a "cost-aware" sampling algorithm. The methodology relies on three core components:
1. Dynamical Motion Primitives (DMPs)
DMPs are used as the underlying function approximator. Their primary advantage in robotics is global stability; they guarantee that a robot will reach its goal even if the specific trajectory is suboptimal, providing a necessary safety net for learned controllers.
2. Sensitivity Analysis via the HJB Equation
The authors leverage the Hamilton-Jacobi-Bellman (HJB) equation to perform sensitivity analysis. By solving a "backward-time" version of the OCP, they calculate the gradient of the optimal value function (the "cost-to-go") at the terminal state. This "backward trick" mathematically transforms the problem of moving a goal point into a problem of moving a starting point, allowing the use of established sensitivity results.
3. First-Order Cost Estimation and Adaptive Sampling
Using the gradient derived from the HJB equation, the system can estimate the optimal cost for a new goal point via a first-order Taylor expansion. This allows the algorithm to predict the cost of a new trajectory without actually solving a new, expensive OCP.
The proposed adaptive sampling scheme only triggers a full OCP solver if the discrepancy between the DMP’s predicted cost and the estimated optimal cost exceeds a user-defined threshold. This results in a non-uniform training grid that is dense only where the control problem is most difficult.
Experimental Validation
The approach was validated using a numerical simulation of a non-linear 2D system characterized by state-dependent gains. This benchmark compared the proposed adaptive strategy against traditional uniform sampling.
Key Results
- Data Efficiency: The adaptive algorithm covered the target region using only 15 samples. To achieve comparable precision, a naive uniform grid required 39 samples, representing a reduction in training data requirements of over 60%.
- Estimation Accuracy: The first-order approximation of the value function proved highly robust. Even within the non-linear system, the maximum absolute error between the estimated cost and the ground truth was only 1.07.
- Intelligent Gridding: The resulting sampling grids were visibly denser in regions of high cost-function sensitivity, confirming that the algorithm successfully identifies and prioritizes "hard" regions of the state space.
Discussion and Future Work
While the method significantly reduces the computational and memory overhead for real-time optimal control, it currently relies on the local validity of Taylor expansions. If a new goal is too far from previously sampled points, the estimate's reliability decreases. Additionally, the current framework assumes the invertibility of the system's dynamics, which may pose challenges for highly complex or underactuated systems.
Future research will focus on scaling this framework to higher-dimensional manipulators and extending the sensitivity analysis to handle other varying parameters, such as changing obstacle positions or fluctuating robot mass.
Summary updated