Learning Tree Conditional Random Fields

Joseph K. Bradley, Carlos GuestrinICML 2010

Introduction

Conditional Random Fields (CRFs) are powerful discriminative models widely used in natural language processing and computer vision to model the conditional distribution $P(Y|X)$. However, while parameter learning for CRFs is well-studied, learning the structure of these models—determining which variables in the output $Y$ should be connected—remains notoriously difficult.

In generative models (like learning $P(Y)$), the classic Chow-Liu algorithm efficiently finds the optimal tree structure using Mutual Information. CRFs, however, are complicated by the partition function $Z(X)$. This global normalization term depends on the entire input $X$ and the entire structure of $Y$, meaning the log-likelihood does not neatly decompose into independent edge scores. Previous attempts to bypass this involved expensive greedy searches or $\ell_1$-regularization techniques that often produce intractable, high-treewidth graphs.

Tree CRF Structure

This paper introduces an efficient, scalable method to learn the structure of tree-structured CRFs using a Maximum Spanning Tree (MST) approach. By deriving a novel local edge-weighting score called Decomposable Conditional Influence (DCI), the authors avoid the computational nightmare of the CRF partition function while outperforming existing methods on both synthetic and real-world datasets.

Methods: Edge Scoring for Tree CRFs

The authors propose an MST-based framework where the primary innovation lies in the edge scoring function. To scale to large problems, they explore a class of "Local Linear Entropy Scores" that only require evaluating local subsets of the data.

  1. Global Conditional Mutual Information (CMI): The theoretical gold standard. However, it is computationally intractable as the dimensionality of $X$ grows because it requires conditioning on the entire input space.
  2. Piecewise Likelihood: A common approximation treating each factor independently. The authors demonstrate this fails because it tends to create "star" graphs centered around nodes with strong local evidence (where $Y_i$ is strongly correlated with $X_i$), rather than discovering true structural relationships between $Y$ variables.
  3. Local CMI: A localized version of CMI. While an improvement over piecewise likelihood, it still struggles to recover true edges when local $X \to Y$ potentials are very strong.
  4. Decomposable Conditional Influence (DCI): The paper’s primary contribution. DCI measures the log-probability of an edge minus the log-probabilities of its endpoints in a disconnected model. Effectively, it isolates the added value of an interaction between $Y_i$ and $Y_j$, successfully filtering out the "noise" of strong local $X \to Y$ influences.

Key Insights

A significant theoretical contribution of the paper is a negative result: the authors prove that no local linear entropy score can perfectly satisfy the "Score Decay Assumption" for all possible tree CRFs. This implies that any efficient local score is technically a heuristic.

Despite this, the authors show that using local inputs ($X_i \subset X$) is absolutely necessary for scalability. If every edge score depends on the entire vector $X$, the structure learning algorithm becomes as expensive as the intractable inference it attempts to avoid. Furthermore, projecting a model onto a tree structure using DCI often yields better predictive performance than using a disconnected model or a poorly-learned complex graph.

Experimental Results

The authors evaluated their approach on both synthetic datasets and a real-world fMRI brain-imaging task.

  • Synthetic Models: The authors generated chain and tree structures with varying strengths of associative and random factors, including "cross factors" (where $Y_i$ is influenced by $X_{i+1}$). DCI consistently outperformed Local CMI and the state-of-the-art $\ell_1$-regularized pseudolikelihood method (Schmidt et al.) in recovering the true hidden edges of the graph.
  • Scalability and Performance: The proposed DCI method is remarkably fast. As the number of training examples increases, DCI maintains high edge recovery rates and test accuracy while keeping training time drastically lower than global methods.
Performance Comparison
  • fMRI Application: The method was applied to a "zero-shot learning" task to predict 218 semantic features from 500 brain voxels. Tree CRFs learned via DCI showed significant improvements in log-likelihood and squared error over disconnected baselines. Learning the structure and parameters took only 2-3 times longer than training a simple disconnected model.

Limitations and Future Work

The current method is strictly constrained to tree structures (treewidth 1). While trees allow for exact and efficient inference, many real-world dependencies are cyclic. Additionally, the method relies on a known mapping between specific inputs $X_i$ and outputs $Y_i$; the quality of the structure learning is bounded by the quality of this initial feature selection. Future directions include extending these local scores to learn "thin junction trees" (treewidth > 1) and applying the method to relational data with templated structures.

Summary updated

BibTeX
@inproceedings{bradley2010learning,
  author = {Joseph K. Bradley and Carlos Guestrin},
  title = {{Learning Tree Conditional Random Fields}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
  url = {https://openreview.net/forum?id=SJZFlsbOZH},
}
Figure