Training Factor Graphs with Reinforcement Learning for Efficient MAP Inference

Michael L. Wick, Khashayar Rohanimanesh, Sameer Singh, Andrew McCallumNeurIPS 2009

TL;DR

This paper tackles the challenge of finding the most probable configuration (MAP inference) in complex, large-scale factor graphs, which are common in structured prediction. They propose a novel approach using reinforcement learning (RL) to train the model's parameters, enabling the system to learn efficient "jumps" between configurations and escape local optima, achieving state-of-the-art results on ontology alignment.

What Problem Does This Paper Address?

Many real-world problems, like understanding relationships between concepts in different ontologies, can be modeled using large, relational factor graphs. However, finding the most likely assignment of hidden variables (MAP inference) in these graphs is computationally very difficult. Traditional methods like Markov Chain Monte Carlo (MCMC) often get stuck in "local optima," meaning they find a good solution but not the absolute best one, because they struggle to navigate through configurations that temporarily have lower scores. The paper aims to overcome this limitation by learning a more intelligent search strategy for MAP inference.

Methods

The core innovation is framing MAP inference as a Reinforcement Learning (RL) problem. Instead of directly optimizing model parameters for maximum likelihood, they treat the factor graph's parameters as a log-linear function approximator and learn them using Temporal Difference (TD) learning, a common RL technique.

Here's a breakdown:

  • MDP Formulation: The problem of finding the MAP configuration is cast as a Markov Decision Process (MDP).
  • States: Each state represents a complete assignment of the hidden variables in the factor graph.
  • Actions: An action involves modifying a subset of the hidden variables to transition to a new state. A "proposer" function is used to constrain the action space, making it manageable.
  • Reward Function: The reward is designed to encourage the system to reach the ground truth configuration. It's defined as the residual improvement in a performance metric (like F1 score) when transitioning from one state to another.
  • Efficient Q-Value Computation: They leverage linear function approximation for Q-values (expected future reward). Crucially, they show how these Q-values can be computed efficiently by only considering factors in the neighborhood of the modified variables, avoiding the need to compute full marginals.
  • Modified Watkin's Q(λ) Algorithm: They adapt a standard RL algorithm (Watkin's Q(λ)) to train the factor graph parameters. This algorithm uses eligibility traces to efficiently update parameters based on the learned Q-values and rewards.

Datasets

The paper evaluates their approach on two ontology alignment datasets provided by the Illinois Semantic Integration Archive (ISIA):

  1. Course Catalog: Two ontologies, one for course catalogs with 104 concepts and 4360 data records.
  2. Company Profile: Two ontologies, one for company profiles with 219 concepts and 23139 data records.

They perform two-fold cross-validation on these datasets.

Key Insights and Ideas

  • RL for Escaping Local Optima: The most significant insight is that framing MAP inference as an RL problem allows the system to learn a policy that explicitly seeks to maximize long-term reward, thereby enabling it to learn "fruitful downward jumps" and escape local optima that plague traditional MCMC methods.
  • Parameter Learning as Policy Learning: By learning the parameters of the factor graph through RL, they are effectively learning a policy for efficient inference. This policy guides the search towards better configurations.
  • Efficient Gradient Updates: The ability to compute Q-values and gradients by only considering local factors is a key enabler for scaling this approach to large factor graphs. This bypasses the computationally expensive step of calculating marginals.
  • Generalizable Inference: The learned RL policy can be applied to unseen test data, demonstrating a form of generalizable inference.

Key Results

The proposed RL-based approach achieved significant improvements:

  • Ontology Alignment: On the course catalog dataset, their method achieved a 48% reduction in error compared to the state-of-the-art (greedy agglomerative inference on a conditional random field).
  • Robustness to Local Optima: In experiments designed to test robustness, their RL approach was better at escaping random initial configurations and local optima compared to Metropolis-Hastings, even when initialized in difficult regions.
  • Competitive Performance: The RL system outperformed other baseline systems like Piecewise, Contrastive Divergence (MH-CD1), and SampleRank (MH-SR) on both datasets, demonstrating its effectiveness.

Limitations and Future Work

  • Limitations: The paper acknowledges that while their RL approach is better at escaping local optima than Metropolis-Hastings, the stochastic method is still capable of escaping optima, but perhaps not as quickly. The paper also mentions the combinatorial complexity of state and action spaces as a challenge they address.
  • Future Work: The authors suggest investigating additional RL paradigms for training models, such as actor-critic methods. They also propose exploring further RL techniques for training models.

Summary updated

BibTeX
@inproceedings{wick2009training,
  author = {Michael L. Wick and Khashayar Rohanimanesh and Sameer Singh and Andrew McCallum},
  title = {{Training Factor Graphs with Reinforcement Learning for Efficient MAP Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2009},
  url = {https://openreview.net/forum?id=HJ4IxP-ObH},
}
Figure