Uncertainty-Based Smooth Policy Regularisation for Reinforcement Learning with Few Demonstrations

Yujie Zhu, Charles A. Hepburn, Matthew Thorpe, Giovanni Montana
9/19/2025
cs.LGcs.AIcs.RO

Official code: YujieZhu7/SPReD (0 stars, last commit 2025-09-05).

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.

View on arXivView PDF

Code Implementations(1)

YujieZhu7/SPReDOfficial100%
01PythonSep 5, 20251 years ago

Similar Papers

Cite this paper

@article{zhu2025uncertaintybased,
  title  = {Uncertainty-Based Smooth Policy Regularisation for Reinforcement Learning with Few Demonstrations},
  author = {Yujie Zhu and Charles A. Hepburn and Matthew Thorpe and Giovanni Montana},
  year   = {2025},
  eprint = {2509.15981},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.15981v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.15981.svg)](https://codeofpaper.com/paper/2509.15981)

Discussion