Uncertainty-Based Smooth Policy Regularisation for Reinforcement Learning with Few Demonstrations
Yujie Zhu, Charles A. Hepburn, Matthew Thorpe, Giovanni Montana
TL;DR
This work introduces SPReD, a framework for uncertainty-aware, smooth policy regularisation from demonstrations in reinforcement learning with sparse rewards. By modeling two Q-value distributions from an ensemble of critics (demonstration actions vs. current policy actions), SPReD replaces binary imitation decisions with continuous weights that scale the behaviour cloning loss. It presents two weighting schemes: SPReD-P (probabilistic likelihood of demonstration superiority) and SPReD-E (exponential advantage weighting), both offering gradient-variance reduction and adaptive imitation strength. Theoretical analysis proves variance reduction and adaptive behavior under uncertainty, while experiments across eight robotics tasks show substantial gains (up to 14× in complex manipulation) and robustness to demonstration quality and quantity. Overall, SPReD delivers state-of-the-art sample efficiency with modest computational overhead, suggesting practical impact for learning from limited demonstrations in real-world robotics.
Abstract
In reinforcement learning with sparse rewards, demonstrations can accelerate learning, but determining when to imitate them remains challenging. We propose Smooth Policy Regularisation from Demonstrations (SPReD), a framework that addresses the fundamental question: when should an agent imitate a demonstration versus follow its own policy? SPReD uses ensemble methods to explicitly model Q-value distributions for both demonstration and policy actions, quantifying uncertainty for comparisons. We develop two complementary uncertainty-aware methods: a probabilistic approach estimating the likelihood of demonstration superiority, and an advantage-based approach scaling imitation by statistical significance. Unlike prevailing methods (e.g. Q-filter) that make binary imitation decisions, SPReD applies continuous, uncertainty-proportional regularisation weights, reducing gradient variance during training. Despite its computational simplicity, SPReD achieves remarkable gains in experiments across eight robotics tasks, outperforming existing approaches by up to a factor of 14 in complex tasks while maintaining robustness to demonstration quality and quantity. Our code is available at https://github.com/YujieZhu7/SPReD.
