DiSProD: Differentiable Symbolic Propagation of Distributions for Planning

Palash Chatterjee, Ashutosh Chapagain, Weizhe Chen, Roni Khardon

Abstract

Planning in continuous state and action spaces remains a significant challenge, particularly when environments exhibit stochastic transitions and sparse rewards. We present DiSProD (Differentiable Symbolic Propagation of Distributions), an online planner that constructs a symbolic graph to propagate probability distributions over future trajectories. By leveraging Taylor approximations and an independence assumption, DiSProD provides a differentiable representation of a policy's value, enabling efficient gradient-based optimization. Our evaluation across stochastic control tasks and real-world robotic platforms demonstrates that DiSProD outperforms state-of-the-art planners in handling noise, reward sparsity, and high-dimensional action spaces.

Introduction

Autonomous agents operating in the real world must navigate environments characterized by uncertainty and limited feedback. Traditional planning approaches typically fall into two categories: sampling-based methods and gradient-based methods. Sampling-based planners, such as the Cross-Entropy Method (CEM) or Model Predictive Path Integral (MPPI) control, are flexible but often suffer from high variance in stochastic settings, requiring a prohibitive number of samples to estimate policy values accurately. Conversely, gradient-based planners offer computational efficiency but are frequently limited to deterministic models or require pre-trained value functions.

DiSProD bridges this gap by treating uncertainty as a differentiable component within the planning process. Instead of aggregating individual sampled trajectories, DiSProD propagates the mean and variance of state distributions through a symbolic computation graph, allowing for direct gradient-based optimization of action sequences.

Methodology: Symbolic Distribution Propagation

The core of DiSProD is the Analytic Computation Graph, which represents the evolution of state distributions over a finite planning horizon.

Taylor Approximations for Non-linear Dynamics

To maintain tractability in non-linear systems, DiSProD employs symbolic Taylor expansions. Specifically, it uses a second-order expansion to approximate the mean of the subsequent state and a first-order expansion for the variance. This approach allows the planner to capture the effects of system dynamics on the distribution without the computational overhead of full Monte Carlo simulation.

Independence Assumption and Differentiability

To ensure the math remains scalable, DiSProD assumes that state variables are independent factors. This allows for the efficient propagation of product distributions. Because the entire propagation process is encoded in a symbolic graph, the expected value of a policy becomes analytically differentiable. This enables the use of standard first-order optimizers, such as Adam, to optimize action variables directly.

Stochastic Policies and Exploration

DiSProD optimizes over a distribution of actions rather than a single deterministic sequence. In environments with sparse rewards, increasing the variance of the action distribution effectively broadens the search space. This "soft" exploration allows the agent to discover reward signals that deterministic planners might overlook.

Experimental Evaluation

The researchers evaluated DiSProD against several baselines, including CEM and MPPI, across diverse environments:

  1. Stochastic Control Tasks: Modified versions of OpenAI Gym's CartPole, Mountain Car, and Pendulum, where a noise parameter ($\alpha$) was introduced to test robustness.
  2. Robotic Simulation: Navigation tasks for a TurtleBot in Gazebo, spanning 16 distinct maps with varying obstacle configurations.
  3. Real-World Hardware: Field deployments using an Unmanned Ground Vehicle (Jackal) and an Unmanned Surface Vessel (Heron) to validate real-time performance and obstacle avoidance.

Key Insights and Results

Robustness to Stochasticity

In the Pendulum and CartPole tasks, DiSProD demonstrated superior resilience to transition noise. While the performance of sampling-based methods like CEM degraded rapidly as noise increased, DiSProD maintained stable performance by analytically accounting for the variance in the state transitions.

Overcoming Reward Sparsity

The Mountain Car environment was used to test the planner's ability to handle sparse rewards. With a planning horizon of 200 steps, traditional planners failed to reach the goal because their random samples rarely encountered the reward signal. DiSProD’s ability to optimize action variance allowed it to successfully navigate to the goal by "spreading" its search distribution until the reward was found.

Scaling to High-Dimensional Action Spaces

Sampling-based methods often struggle with the "curse of dimensionality." In a modified Mountain Car task with 50 action variables (where 49 were redundant "distractors"), DiSProD remained efficient. Because it relies on gradients rather than random search, it could ignore the redundant dimensions, whereas CEM required 100 times more samples to achieve similar results.

Real-World Deployment

The planner successfully controlled the Jackal UGV and Heron USV in real-time. Notably, in the case of the Heron boat, DiSProD used intermediate states as waypoints for a PID controller, demonstrating its utility in complex, multi-layered control architectures.

Limitations and Future Work

While DiSProD offers significant advantages, it is not without limitations. The calculation of symbolic derivatives (specifically Hessians for second-order approximations) is computationally intensive, making DiSProD up to seven times slower than simpler sampling methods per iteration. Additionally, the algorithm requires differentiable transition and reward functions, which may necessitate "smoothing" discrete environmental features. Future work involves integrating DiSProD with model-based reinforcement learning, where the transition model is learned from data rather than provided a priori.

Conclusion

DiSProD introduces a powerful framework for planning under uncertainty by shifting the focus from trajectory sampling to symbolic distribution propagation. By making the propagation of uncertainty differentiable, it enables robust, high-dimensional planning that excels in the presence of noise and sparse feedback, providing a promising path forward for complex robotic control.

Summary updated

BibTeX
@inproceedings{chatterjee2023disprod,
  author = {Palash Chatterjee and Ashutosh Chapagain and Weizhe Chen and Roni Khardon},
  title = {{DiSProD: Differentiable Symbolic Propagation of Distributions for Planning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=lQsgmXpCyV},
}
Figure