Learning to Synthesize Programs as Interpretable and Generalizable Policies

By Dweep Trivedi, Jesse Zhang, Shao-Hua Sun, Joseph J. Lim. 2021

96 citations recorded by the source corpus.

Recently, deep reinforcement learning (DRL) methods have achieved impressive performance on tasks in a variety of domains. However, neural network policies produced with DRL methods are not human-interpretable and often have difficulty generalizing to novel scenarios. To address these issues, prior works explore learning programmatic policies that are more interpretable and structured for generalization. Yet, these works either employ limited policy representations (e.g. decision trees, state machines, or predefined program templates) or require stronger supervision (e.g. input/output state pairs or expert demonstrations). We present a framework that instead learns to synthesize a program, which details the procedure to solve a task in a flexible and expressive manner, solely from reward signals. To alleviate the difficulty of learning to compose programs to induce the desired agent behavior from scratch, we propose to first learn a program embedding space that continuously parameterizes diverse behaviors in an unsupervised manner and then search over the learned program embedding space to yield a program that maximizes the return for a given task. Experimental results demonstrate that the proposed framework not only learns to reliably synthesize task-solving programs but also outperforms DRL and program synthesis baselines while producing interpretable and more generalizable policies. We also justify the necessity of the proposed two-stage learning scheme as well as analyze various methods for learning the program embedding.

Subfields: Artificial Intelligence, Reinforcement Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Sergey Levine
  2. Pieter Abbeel
  3. Yoshua Bengio
  4. Ruslan Salakhutdinov
  5. Mohit Bansal
  6. Quoc V. Le
  7. Chelsea Finn
  8. Jianfeng Gao

In Reinforcement Learning

  1. Sergey Levine
  2. Pieter Abbeel
  3. Nicolas Manfred Otto Heess
  4. Yuxi Li
  5. Shimon Whiteson
  6. Chelsea Finn
  7. Timothy P. Lillicrap
  8. Shixiang Shane Gu

Citations in the corpus