Data Compression for Learning MRF Parameters

Khaled S. Refaat, Adnan DarwicheIJCAI 2015

Markov Random Fields (MRFs) are essential for modeling complex dependencies in fields ranging from computer vision to bioinformatics. However, parameter learning becomes a significant computational bottleneck when dealing with "incomplete" data—where some variables are missing values. In a standard maximum likelihood approach, probabilistic inference must be performed for every unique example in the dataset during each optimization iteration. For large-scale datasets, this requirement often makes training computationally prohibitive.

This paper introduces a "divide-project-and-compress" strategy that dramatically accelerates parameter learning by exploiting variables that are always observed. This method achieves speedups of up to two orders of magnitude while remaining mathematically exact.

The Divide-Project-and-Compress Strategy

The core of the proposed approach is to break the global learning problem into smaller, manageable sub-problems through three key steps:

  1. Decomposition: The authors identify variables that are always observed across the entire dataset. They prove that if two factors in a factor graph share only variables that are always observed, the connection between these factors can be effectively severed for calculating data likelihood. This splits a large, complex MRF into several smaller, independent sub-networks.
  2. Projection: For each resulting sub-network, the dataset is "projected" by discarding all variables that are not part of that specific sub-network.
  3. Compression: While high-dimensional datasets rarely contain duplicate rows, the projected datasets—which focus on only a few variables—exhibit massive redundancy. The authors compress these by grouping identical rows and maintaining a count of their occurrences.
Decomposition of a grid MRF into independent sub-networks by exploiting always-observed variables.

By summing the results from these smaller, compressed sub-problems, the gradient and likelihood of the original model can be calculated exactly, avoiding the approximations common in other speed-up techniques.

Key Results and Scaling

The researchers evaluated their method across 11 network structures, including synthetic grids and real-world medical and genetic models. The performance gains were substantial:

  • Massive Speedups: The method was 253x faster than standard gradient descent on a 100-variable chain network and 130x faster on a 10x10 grid.
  • Scaling with Data: A critical finding is that the speedup is directly proportional to the dataset size. As the dataset grows, the compression ratio of the sub-networks improves, leading to even greater relative savings.
  • Enabling Complex Learning: For the Family2Recessive network (385 factors), standard methods failed to produce results within 24 hours. Using this decomposition technique, the authors successfully learned the parameters in just 55 minutes.
Speed-up gains relative to dataset size across different network configurations, showing improved efficiency as data volume increases.

Conclusion

The "divide-project-and-compress" framework demonstrates that exact inference on compressed data can be significantly faster than approximate inference on raw data. While the method's effectiveness depends on the presence of "always observed" variables—a common trait in real-world datasets—it provides a powerful tool for scaling MRF training without sacrificing mathematical rigor. Future work may explore applying these principles to structure learning, where the graph topology itself is unknown.

Summary updated

BibTeX
@inproceedings{refaat2015data,
  author = {Khaled S. Refaat and Adnan Darwiche},
  title = {{Data Compression for Learning MRF Parameters}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2015},
  url = {https://openreview.net/forum?id=BkZDWBzdbH},
}
Figure