Graph kernels and Gaussian processes for relational reinforcement learning

Kurt Driessens, Jan Ramon, Thomas GärtnerMachine Learning 2006

Abstract

Relational Reinforcement Learning (RRL) is a system based on Q-learning in relational state-action spaces, designed for environments without a natural vector representation. This paper investigates using Gaussian processes (GPs) to approximate Q-values. To handle relational data, we propose graph kernels as a covariance function. To address numerical instability in standard GP updates, we employ incremental QR-factorization. Experiments in the Blocks World and Tetris demonstrate that GPs with graph kernels compete with or outperform regression trees and instance-based regression.

Introduction

Standard Reinforcement Learning (RL) typically relies on representing the environment as a fixed-length vector of constants. However, many complex domains are inherently relational, involving objects and their interrelationships (e.g., "Block A is on Block B"). Relational Reinforcement Learning (RRL) addresses these structured environments. Previous RRL systems used first-order regression trees or instance-based learning, which often suffer from data inefficiency or sensitivity to example ordering. This work proposes a kernel-based approach using Gaussian Processes to provide a more robust and principled framework for Q-value approximation in relational domains.

Methodology

Gaussian Processes for Q-Value Approximation

Instead of a point estimate, Gaussian Processes (GPs) provide a probability distribution over functions. In the context of RRL, the GP approximates the mapping between relational state-action pairs and their corresponding Q-values. This probabilistic approach allows the agent to maintain an estimate of uncertainty, which is crucial for balanced exploration and exploitation.

Gaussian Process approximation of a target function under varying parameters, illustrating the model's flexibility and uncertainty estimation.

Relational Representation via Graph Kernels

To enable GPs to process relational data, states and actions are represented as labeled directed graphs. The similarity between these structures is computed using walk-based graph kernels. These kernels count common sequences of labels (walks) between two graphs, effectively measuring their structural similarity. To control generalization, the graph kernel is embedded within a Gaussian Radial Basis Function (RBF), where a single bandwidth parameter $\gamma$ determines the degree of similarity required for generalization.

Numerical Stability via QR-Factorization

A significant challenge in applying GPs to RL is the redundancy of data; agents frequently revisit similar states, leading to ill-conditioned or low-rank covariance matrices. Standard matrix inversion becomes unstable in these scenarios. The authors introduce an incremental QR-factorization update mechanism. This approach ensures numerical stability and improves efficiency, reducing the update complexity from $O(N^2)$ to $O(d^2)$, where $d$ represents the dimension of the active feature space.

Experimental Evaluation

The proposed system, RRL-KBR (Kernel-Based Regression for RRL), was evaluated on two benchmarks:

  • Blocks World: Tasks included stacking all blocks or achieving specific configurations. RRL-KBR demonstrated superior learning curves, reaching optimal performance in fewer episodes than tree-based methods (RRL-TG) and generalizing well to larger numbers of blocks.
  • Tetris: In this stochastic environment, the agent predicted the value of "afterstates." The QR-factorization method proved to be approximately 200 times faster than standard inversion and prevented the "peak and crash" behavior caused by numerical errors in standard GP implementations.

Conclusion

Combining Gaussian Processes with graph kernels provides a powerful framework for relational reinforcement learning. The use of QR-factorization is essential for maintaining numerical stability in the face of redundant relational data. Future work includes exploring more computationally efficient graph kernels and fully integrating uncertainty-based exploration strategies to further leverage the probabilistic nature of Gaussian Processes.

Summary updated

Abstract

RRL is a relational reinforcement learning system based on Q-learning in relational state-action spaces. It aims to enable agents to learn how to act in an environment that has no natural representation as a tuple of constants. For relational reinforcement learning, the learning algorithm used to approximate the mapping between state-action pairs and their so called Q(uality)-value has to be very reliable, and it has to be able to handle the relational representation of state-action pairs. In this paper we investigate the use of Gaussian processes to approximate the Q-values of state-action pairs. In order to employ Gaussian processes in a relational setting we propose graph kernels as a covariance function between state-action pairs. The standard prediction mechanism for Gaussian processes requires a matrix inversion which can become unstable when the kernel matrix has low rank. These instabilities can be avoided by employing QR-factorization. This leads to better and more stable performance of the algorithm and a more efficient incremental update mechanism. Experiments conducted in the blocks world and with the Tetris game show that Gaussian processes with graph kernels can compete with, and often improve on, regression trees and instance based regression as a generalization algorithm for RRL.
BibTeX
@article{driessens2006graph,
  author = {Kurt Driessens and Jan Ramon and Thomas Gärtner},
  title = {{Graph kernels and Gaussian processes for relational reinforcement learning}},
  journal = {Machine Learning},
  year = {2006},
  url = {https://openreview.net/forum?id=IP8KIGJmC6},
}

Loading related content...

Figure