Learning Intrinsic Symbolic Rewards in Reinforcement Learning

Hassam Ullah Sheikh, Shauharda Khadka, Santiago Miret, Somdeb Majumdar, Mariano Phielipp

TL;DR

This paper introduces LISR, a novel framework that learns intrinsic rewards as low-dimensional symbolic trees instead of complex neural networks. This approach makes rewards more interpretable and leads to competitive or superior performance compared to existing methods across various reinforcement learning tasks.

What Problem Does This Paper Address?

Reinforcement Learning (RL) agents often struggle with sparse or absent environmental rewards, making it difficult to learn effective policies. A common solution is to hand-engineer dense "surrogate" rewards, but this requires domain expertise and can lead to policies that deviate from the true objective. Alternatively, neural networks can learn to generate these dense rewards, but they act as "black boxes," lacking interpretability. This paper tackles the challenge of discovering interpretable and effective intrinsic rewards that can guide RL agents without relying on human heuristics or opaque neural network models.

Methods

LISR combines two key ideas: Symbolic Regression (SR) and Evolutionary Algorithms (EA) with Policy Gradient (PG) methods.

  • Symbolic Regression for Rewards: Instead of a neural network, LISR uses symbolic trees to represent reward functions. These trees are composed of basic mathematical and logical operators (like addition, multiplication, sine, cosine, etc.) and map an agent's observations directly to a scalar reward. This makes the reward functions significantly simpler and more interpretable than neural network-based rewards.
  • Evolutionary Algorithms for Discovery: A population of these symbolic trees (SR learners) is evolved using EA. The fitness of each tree is determined by how well an RL policy trained with its generated rewards performs on the task. Through mutation and crossover, the EA searches for optimal symbolic reward functions.
  • Policy Gradient Learning: Once a symbolic reward function is discovered, it's used to train an RL policy (using standard PG methods like Soft Actor-Critic for continuous control and Maxmin DQN for discrete control).
  • Shared Replay Buffer: LISR also incorporates a shared replay buffer, allowing both the EA (which evolves policies) and the SR learners (which generate rewards) to share experiences, accelerating learning and exploration.

Datasets

The paper evaluates LISR on several standard RL benchmarks:

  • Continuous Control: Mujoco environments (HalfCheetah, Ant, Hopper, Swimmer).
  • Discrete Control: Atari games (LunarLander, Amidar) and Pygame environments (PixelCopter, Catcher).
  • Multiplayer: Google Research Football environments (Run to Score, Empty Goal, 3 vs 1 with Keeper).

Key Insights and Ideas

  • Interpretability through Simplicity: The core insight is that low-dimensional symbolic trees can be surprisingly effective reward generators, offering a significant advantage in interpretability over high-dimensional neural networks. This "limited explainability" could be crucial for safety-critical applications.
  • EA as a Reward Search Mechanism: Using evolutionary algorithms to search for optimal reward functions is a novel approach. It effectively decouples the reward discovery process from the policy learning process.
  • Synergy between EA and PG: The combination of EA for reward discovery and PG for policy learning, facilitated by a shared replay buffer, creates a powerful framework that leverages the strengths of both approaches.
  • Symbolic Rewards Outperform Curiosity: In many experiments, LISR significantly outperforms the Intrinsic Curiosity Module (ICM), a popular neural network-based intrinsic reward method, highlighting the effectiveness of symbolic rewards.

Key Results

  • Continuous Control: LISR consistently outperforms baseline EA and SR-only approaches. It also significantly outperforms Curiosity in 3 out of 4 Mujoco environments, demonstrating its ability to learn effective policies even when Curiosity fails.
  • Discrete Control: LISR outperforms all baselines in Atari and Pygame environments. Notably, in PixelCopter and Catcher, SR learners alone (relying purely on discovered symbolic rewards) achieve maximum performance.
  • Google Research Football: LISR demonstrates competitive performance against IMPALA, a state-of-the-art distributed RL framework, even without access to the environment's dense rewards.

Limitations and Future Work

  • Sample Efficiency: The paper acknowledges that LISR is less sample-efficient than established methods like SAC, primarily because it lacks a pre-defined dense reward signal and must first search for an optimal reward function.
  • Search Bottleneck: The evolutionary search for the reward function is identified as a bottleneck.
  • Future Directions: The authors suggest exploring alternative search mechanisms like Monte-Carlo Tree Search (MCTS) and methods to halt the search once a sufficiently good reward function is found. Further work will also focus on improving the interpretability of the discovered symbolic functions.

Summary updated

BibTeX
@inproceedings{sheikh2022learning,
  author = {Hassam Ullah Sheikh and Shauharda Khadka and Santiago Miret and Somdeb Majumdar and Mariano Phielipp},
  title = {{Learning Intrinsic Symbolic Rewards in Reinforcement Learning}},
  booktitle = {IJCNN},
  year = {2022},
  doi = {10.1109/ijcnn55064.2022.9892256},
}
Figure