Introduction
Markov networks (or Markov Random Fields) are powerful tools for modeling joint probability distributions, but they suffer from a major "tractability gap." General inference in these networks is #P-hard, and learning their weights usually requires iterative optimization routines that call inference as a sub-procedure.
To keep models usable, researchers typically restrict themselves to "thin junction trees"—models with very low treewidth (usually 2 or 3). However, low treewidth is a highly restrictive condition that prevents the model from capturing complex, high-order dependencies. This paper introduces LEM (Learning Efficient Markov Networks), an algorithm that learns Markov networks with high treewidth that nonetheless remain computationally tractable. By exploiting context-specific independence and determinism, LEM discovers complex model structures that allow for polynomial-time inference and closed-form weight learning, significantly outperforming traditional thin junction tree approaches.
Methodology: Feature Trees and Context-Specific Independence
The authors argue that treewidth is an overly pessimistic measure of complexity. They aim to learn models that have high treewidth (capturing more detail) but remain efficient by exploiting context-specific independence (CSI)—where variables become independent only under certain conditions or assignments.
To achieve this, the LEM algorithm builds a Feature Tree, a representation related to AND/OR graphs and arithmetic circuits. The process involves:
- Recursive Partitioning: The algorithm searches for a "feature" (a partial assignment of variables) that divides the state space into subspaces.
- Conditional Independence: Within these subspaces, it checks if the remaining variables decompose into independent subsets.
- LMIP Subroutine: To find these subsets, they use "Low Mutual Information Partitioning," which groups variables that have high mutual information and separates those that do not.
Unlike standard junction trees that represent dependencies globally, Feature Trees capture dependencies that change based on the values of the variables. This allows the model to represent distributions that would require an exponentially large junction tree in a much more compact, polynomial-sized structure.
The authors provide probabilistic guarantees that if the underlying distribution is "coverable" by features of a certain length $k$, LEM will find a structure that satisfies "nested context independence." Because the algorithm learns a structure that is essentially decomposable in a context-specific way, it can learn weights in closed form rather than relying on expensive gradient descent.
Experimental Evaluation and Results
The algorithm was evaluated on five distinct datasets: Alarm (synthetic ICU monitoring), Adult (census income data), MSNBC (web-clickstream data), and real-world sensor data for Temperature and Traffic.
Key Findings
- Better Accuracy: LEM consistently achieved higher log-likelihood on test data compared to $L_1$ regularization and thin junction tree learners across almost all datasets.
- Tractable Inference: Despite having a more complex structure than thin junction trees, inference on LEM-learned models took only milliseconds. The learned feature graphs typically scaled between $O(n^2)$ and $O(n^3)$, making them comparable in size to junction trees but far more expressive.
- Efficiency vs. Quality: While $L_1$ methods are faster to train, they often produce intractable models. LEM is slower to train than $L_1$ but significantly faster than traditional structure learners like the Della Pietra (DL) algorithm, while providing much better query accuracy.
Limitations and Future Work
While LEM presents a significant step forward, it has limitations. The learning process is computationally intensive; the exhaustive search version scales at $O(n^k)$, which becomes prohibitive as the feature length $k$ increases. To mitigate this, the authors introduced a greedy version that builds features incrementally, making it practical for real-world high-dimensional data.
Additionally, the method relies on finding independent partitions in the data. In extremely dense, highly-correlated datasets where context-specific independence is rare, the advantages of LEM might diminish. Finally, the current framework is designed for binary and discrete variables. Extending this to continuous domains using context-specific properties remains an open challenge for future research.
Summary updated