Learning Trajectory Preferences for Manipulators via Iterative Improvement

Ashesh Jain, Brian Wojcik, Thorsten Joachims, Ashutosh Saxena

Teaching high-degree-of-freedom (DoF) robots to move "correctly" is notoriously difficult. What qualifies as a "correct" movement depends heavily on the user, the object being manipulated, and the surrounding environment. This paper introduces a co-active learning framework where robots learn trajectory preferences not from perfect expert demonstrations, but from simple, iterative improvements provided by the user. By merely nudging a robot’s trajectory to be "slightly better," users can train a Baxter robot to handle fragile eggs or sharp knives safely in just a few minutes.

The Challenge of Optimal Demonstration

Traditional Learning from Demonstration (LfD) assumes that a human can provide an "optimal" example for the robot to mimic. However, for a robot arm with many joints (high DoF), physically guiding it through a perfect, smooth, and safe path is non-intuitive and physically taxing for most people.

Furthermore, "good" trajectories are highly contextual. A robot should move a glass of water differently than a heavy box of detergent, and it should avoid moving a sharp knife near a person even if a straight line is the most "efficient" path.

Evaluating different trajectory proposals, highlighting safe and unsafe paths for hazardous objects like knives.

Manually coding these rules for every possible scenario is impossible. The authors seek a way to learn these subtle, subjective preferences through natural, low-effort human interaction.

The Trajectory Preference Perceptron (TPP)

The authors propose the Trajectory Preference Perceptron (TPP), based on a co-active learning model. The process follows a simple, iterative loop:

  1. Proposal: The robot uses its current model to rank a set of sampled trajectories (generated via Rapidly-exploring Random Trees, or RRT) and shows the "best" one to the user.
  2. Feedback: The user provides an improved trajectory. Crucially, this doesn't have to be the best possible path—just one that is strictly better than what the robot proposed.
  3. Update: The robot updates its internal weight vector by moving it toward the features of the user's improved path and away from its own failed proposal.

To provide feedback, the researchers designed two interaction methods:

  • Re-ranking: The user picks a better trajectory from a list of pre-generated options.
  • Zero-G: The user physically moves the robot arm (using gravity compensation) to fix specific waypoints.
A user providing kinesthetic "Zero-G" feedback to adjust the robot's trajectory.

Feature Engineering for Context

The "secret sauce" of the TPP lies in the features the robot tracks. Instead of just looking at raw spatial coordinates, the model considers:

  • Object-Object Interactions: Is a sharp object near a human? Is a heavy object passing over a fragile one?
  • Robot Configuration: Is the arm in a contorted, awkward position?
  • Temporal Behavior: Is the object oscillating? Is it being kept upright (like a cup of coffee)?

By encoding object attributes (e.g., "fragile," "sharp") into the features, the robot can generalize. If it learns to move a glass of water carefully, it can apply that logic to a flower vase it has never seen before.

Experimental Setup and Key Results

The researchers evaluated their system using a "Grocery Checkout Dataset" comprising 16 distinct pick-and-place tasks involving items like cereal boxes, egg cartons, knives, and flower vases. They collected 1,300 expert-labeled trajectories to provide a ground-truth baseline for quantitative evaluation. Finally, they conducted a real-world user study where five non-expert users trained a Baxter robot on 10 tasks of varying difficulty.

Key Insights & Performance: * Sub-optimal is Sufficient: You don't need an expert to teach a robot. The TPP algorithm is mathematically proven to converge toward the user's hidden preference function even if the user only provides "slightly better" feedback. * High Efficiency: In the user study, it took an average of only 5.5 minutes and roughly 5 interactions (typically 3 re-ranks and 2 Zero-G corrections) for a user to train the robot to a satisfactory level for a specific task. * Robustness: TPP outperformed MMP-online (Maximum Margin Planning). While MMP assumes user feedback is strictly "optimal" and struggles with noisy input, TPP’s design specifically accounts for human imperfection, making it far more robust in the real world. * The "Zero-G" Advantage: Physical interaction (kinesthetic teaching) proved much more effective for fixing specific, localized errors (like a "contorted" elbow) than just choosing from a pre-generated list of paths.

Limitations and Future Work

While highly effective, the system has a few limitations. First, it relies heavily on Feature Engineering. The system depends on a pre-defined set of features (distances, spectrograms, etc.); if a user's preference depends on a feature the designers didn't include, the robot cannot learn it. Second, the system is limited by Discretization. Because the robot chooses from a sampled set of trajectories (RRT), if the "perfect" path isn't in the initial sample, the robot can only get as close as the samples allow.

For future work, the authors suggest integrating this framework with trajectory optimizers (like CHOMP) to smooth out the user-provided waypoints, as well as exploring better user interfaces to make the feedback loop even faster and more intuitive.

Summary updated

BibTeX
@inproceedings{jain2013learning,
  author = {Ashesh Jain and Brian Wojcik and Thorsten Joachims and Ashutosh Saxena},
  title = {{Learning Trajectory Preferences for Manipulators via Iterative Improvement}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
}
Figure