Abstract
This paper proposes an inverse optimal control method which enables a robot to incrementally learn a control objective function from a collection of trajectory segments. By saying incrementally, it means that the collection of trajectory segments is enlarged because additional segments are provided as time evolves. The unknown objective function is parameterized as a weighted sum of features with unknown weights. Each trajectory segment is a small snippet of optimal trajectory. The proposed method shows that each trajectory segment, if informative, can pose a linear constraint to the unknown weights, thus, the objective function can be learned by incrementally incorporating all informative segments. Effectiveness of the method is shown on a simulated 2-link robot arm and a 6-DoF maneuvering quadrotor system, in each of which only small demonstration segments are available.
Introduction
Inverse Optimal Control (IOC) aims to recover the underlying cost function that an expert minimizes during a task. Traditional IOC methods typically require complete, continuous trajectories over an entire time horizon. However, real-world data is often fragmented due to sensor failures, occlusions, or experts providing only brief corrective demonstrations. Existing approaches to handle missing data, such as interpolation or complex probabilistic modeling, are often computationally expensive or risk introducing "hallucinated" data. This work addresses the challenge of learning objective functions directly from sparse, disjointed trajectory snippets.
Methodology
The proposed framework treats every informative snippet of data as a piece of a larger puzzle, leveraging optimality conditions to transform trajectory segments into linear constraints.
- Linear Parameterization: The unknown objective function is modeled as a weighted sum of known features (e.g., energy, tracking error), where the goal is to identify the weight vector $\omega$.
- Optimality Constraints: By applying the Bellman optimality condition or Pontryagin’s Maximum Principle, the authors derive equations that optimal trajectories must satisfy.
- Costate Elimination: A significant hurdle in IOC is the unknown "costate" (marginal value of a state). The authors developed a mathematical method to eliminate costates, creating a direct linear relationship between observed trajectory segments and the weights $\omega$.
- Incremental Learning: As new segments are observed, the algorithm updates a fixed-size "knowledge matrix" ($W$) using incremental least squares. This ensures a constant memory footprint regardless of the amount of data collected.
Experimental Evaluation
The method was validated on two simulated systems: a 2-link robot arm and a 6-DoF quadrotor UAV. For the robot arm, the objective was to minimize effort and tracking error. For the quadrotor, a complex 13-state system, the objective included specialized attitude error terms. In both cases, "expert" trajectories were generated with known weights, and the algorithm attempted to recover these weights from randomly selected short time intervals.
Results and Discussion
The experiments demonstrated that full trajectories are not necessary for accurate learning. Even brief segments of a quadrotor's flight can reveal its priorities between speed and stability.
Key findings include:
- Accuracy: The algorithm perfectly recovered ground-truth weights for the robot arm using as few as two small segments.
- Information Content: Segments near the end of a trajectory, where movement is minimal, often fail the "rank condition" and provide little information. Conversely, "informative" segments with sufficient excitation allow for rapid convergence. As seen in the results table, Trial 4 fails with a single uninformative segment, but Trial 5 succeeds by adding a second informative one.
- Efficiency: By avoiding the "inner-loop" trajectory optimization required by many IOC methods, this approach is orders of magnitude faster and maintains a constant memory footprint.
Conclusion
This research presents a robust and efficient method for incremental IOC from demonstration segments. Future work will explore "model-free" extensions where system dynamics are learned alongside the objective function, as well as improving robustness to real-world sensor noise and addressing the challenges of feature engineering.
Summary updated