Abstract
Traditional Inverse Reinforcement Learning (IRL) often fails in exploratory tasks where expert demonstrations are non-monotonic and sub-optimal. We present Probabilistic Temporal Ranking (PTR), a novel IRL framework that utilizes the temporal progression of a demonstration as a self-supervised signal for reward learning. By assuming that progress generally improves over time, PTR effectively learns reward functions from messy, non-monotonic exploratory data. Our results demonstrate that PTR significantly outperforms traditional IRL methods in both human alignment and real-world robotic ultrasound tasks.
Introduction
Inverse Reinforcement Learning (IRL) typically operates on a "frequentist" assumption: states visited more often by an expert are assumed to be high-reward. This paradigm works well for tasks like lane-keeping in autonomous driving, where the expert maintains a steady state. However, it fails in discovery or search tasks, such as a clinician using an ultrasound probe to find a tumor. In these scenarios, the expert spends the majority of their time in "sub-optimal" states while searching. A standard IRL agent would mistakenly conclude that the act of searching is the goal itself, rather than finding the target. This paper introduces Probabilistic Temporal Ranking (PTR) to learn reward functions from these "messy," non-monotonic demonstrations where progress isn't a straight line.
Methodology
The core idea behind PTR is a self-supervised hypothesis: in a goal-oriented task, states observed later in a demonstration are progressively more likely to have higher rewards than those seen earlier.
Latent Representation and Reward Modeling
To handle high-dimensional visual inputs like ultrasound frames, the framework employs a Convolutional Variational Autoencoder (CVAE) to compress images into a manageable latent space. Rewards are then modeled using a Gaussian Process (GP) prior over this latent space, ensuring that visually similar states are assigned similar rewards while providing a measure of epistemic uncertainty.
Temporal Ranking with Probabilistic Slack
Instead of regressing to absolute reward values, the model learns from pairwise comparisons. For any two frames in a sequence, if frame $B$ occurs after frame $A$, the model assumes $Reward(B) > Reward(A)$. To handle "dips" in performance—such as when an expert briefly loses the target—the model incorporates a Bernoulli trial over a sigmoid function. This provides "probabilistic slack," allowing the model to tolerate occasional non-monotonicity in the demonstration without breaking the learning process. For larger datasets, the authors introduce ML-PTR, a neural network approximation that replaces the GP with a Fully Connected Network (FCN) for faster end-to-end training.
Experimental Evaluation
The researchers evaluated PTR across several domains, with a primary focus on autonomous medical ultrasound scanning.
The custom dataset featured 10 kinesthetic demonstrations of a human searching for a target (a blob of Blu-Tack) inside a gel-filled phantom. This setup included approximately 5,000 ultrasound images and 5,000 human preference annotations for evaluation. The task is particularly challenging because the target is only visible in a small fraction of the total search time.
Results and Discussion
PTR demonstrated a high degree of alignment with human intuition and successful robotic deployment.
Human Alignment
In the ultrasound task, PTR's inferred rewards showed a strong correlation with human rankings (Kendall’s $\tau \approx 0.76$), significantly outperforming MaxEnt IRL ($\tau \approx -0.01$) and T-REX ($\tau \approx 0.26$). This confirms that ignoring frequency in favor of temporal order is a superior strategy for search tasks.
Robotic Performance
When deployed on a real robotic arm, the PTR-based policy consistently found and centered the target object. In contrast, the MaxEnt IRL policy was extremely noisy and frequently failed to locate the target, often getting stuck in the "searching" behavior it had incorrectly identified as the goal.
Interpretability
Saliency maps indicate that the model correctly identifies the visual features of the target object as the primary source of reward, rather than background noise or the edges of the container.
Conclusion and Future Work
PTR provides a robust framework for learning from exploratory demonstrations by leveraging temporal order as a free label. While the method assumes a goal-oriented task and may struggle with cyclic or complex locomotion tasks, it represents a significant step forward for medical robotics. Future work will explore integrating PTR with active exploration strategies and applying it to more diverse clinical imaging tasks where expert search behavior is common.
Summary updated