State Similarity Based Approach for Improving Performance in RL

Sertan Girgin, Faruk Polat, Reda AlhajjIJCAI 2007

Abstract

This paper employs state similarity to improve reinforcement learning performance. This is achieved by first identifying states with similar sub-policies. Then, a tree is constructed to be used for locating common action sequences of states as derived from possible optimal policies. Such sequences are utilized for defining a similarity function between states, which is essential for reflecting updates on the action-value function of a state onto all similar states. As a result, the experience acquired during learning can be applied to a broader context. Effectiveness of the method is demonstrated empirically.

Introduction

In complex Reinforcement Learning (RL) environments, agents often face tasks composed of repeating subtasks scattered throughout the state space. Standard RL algorithms typically learn solutions for these subtasks independently, leading to redundant exploration and slow convergence. While Hierarchical RL (HRL) addresses this through higher-level skills, it often requires extensive manual domain knowledge. This paper proposes a method to implicitly share learned solutions across similar states on the fly by identifying states that share similar local behaviors.

Methods: State Similarity and Path Trees

The approach is grounded in the concept of MDP Homomorphisms, where different states are considered equivalent if they share identical transition and reward dynamics. To discover these equivalencies inductively, the authors introduce a path tree data structure.

State transition diagrams illustrating the concept of state equivalence and similarity.

As the agent explores, it records short sequences of actions and rewards, termed $\pi$-histories. These are stored in a rooted tree where nodes represent unique sequences and track the states that generated them. Two states are deemed "similar" if they share a high ratio of common action-reward sequences. When the agent updates the Q-value for a state $s$, it queries the path tree and applies a "virtual" update to all highly similar states $s'$. To ensure the similarity metric reflects the agent's current policy, the path tree uses an eligibility decay rate to prune older, stale data.

Experimental Results

The method was evaluated on standard benchmarks, including a Six-Room Maze and the Taxi Problem (in $5 \times 5$ and $12 \times 12$ configurations). These environments contain repeating structures that the state-similarity approach can exploit for faster learning.

Performance comparison in the Taxi domain, showing the proposed method (q w/ equ.) outperforming standard Q-learning and SMDP-Q.

Key findings include:

  • Rapid Convergence: In the Six-Room Maze, Q-learning augmented with equivalent state updates converged in fewer than 20 episodes, matching the performance of Sarsa($\lambda$).
  • Outperforming Hand-Coded Baselines: In the Taxi domain, the proposed method eventually outperformed SMDP Q-learning, which was provided with hand-coded macro-actions (options).
  • Scalability: The performance gap between standard Q-learning and the similarity-based approach widened significantly as environment complexity increased, demonstrating the value of semantic state sharing in larger domains.

Conclusion

By linking states with similar local behaviors, the agent effectively creates abstractions without needing explicit subgoal definitions. This "semantic replay" is shown to be far more efficient than naive experience replay. Future work will focus on adapting the method for continuous action and reward spaces by utilizing partial matching and neighborhood-based similarity metrics.

Summary updated

BibTeX
@inproceedings{girgin2007state,
  author = {Sertan Girgin and Faruk Polat and Reda Alhajj},
  title = {{State Similarity Based Approach for Improving Performance in RL}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2007},
  url = {https://openreview.net/forum?id=rJZD5Efu-S},
}
Figure