Safe and Optimal Learning from Preferences via Weighted Temporal Logic with Applications in Robotics and Formula 1
Ruya Karagulle, Cristian-Ioan Vasile, Necmiye Ozay
TL;DR
This paper addresses safe learning from human feedback by encoding task specifications and preferences in $WSTL$, enabling safety guarantees while learning weights that best explain observed data. It introduces two complementary techniques—structural pruning and a $\log$-transform—that reduce problem size and linearize the optimization, respectively, allowing an exact MILP formulation. The approach is validated on both a robot navigation task and real-world Formula 1 data, demonstrating that it can capture nuanced preferences and reveal interpretable insights into performance factors. The work advances safe, optimal, and interpretable learning from demonstrations, rankings, and comparisons with practical implications for autonomous robotics and competitive settings like Formula 1 racing.
Abstract
Autonomous systems increasingly rely on human feedback to align their behavior, expressed as pairwise comparisons, rankings, or demonstrations. While existing methods can adapt behaviors, they often fail to guarantee safety in safety-critical domains. We propose a safety-guaranteed, optimal, and efficient approach to solve the learning problem from preferences, rankings, or demonstrations using Weighted Signal Temporal Logic (WSTL). WSTL learning problems, when implemented naively, lead to multi-linear constraints in the weights to be learned. By introducing structural pruning and log-transform procedures, we reduce the problem size and recast the problem as a Mixed-Integer Linear Program while preserving safety guarantees. Experiments on robotic navigation and real-world Formula 1 data demonstrate that the method effectively captures nuanced preferences and models complex task objectives.
