Abstract
We consider the problem of learning the underlying structure of a general discrete pairwise Markov network. Existing approaches that rely on empirical risk minimization may perform poorly in settings with noisy or scarce data. To overcome these limitations, we propose a computationally efficient and robust learning method for this problem with near-optimal sample complexities. Our approach builds upon distributionally robust optimization (DRO) and maximum conditional log-likelihood. The proposed DRO estimator minimizes the worst-case risk over an ambiguity set of adversarial distributions within bounded transport cost or f-divergence of the empirical data distribution. We show that the primal minimax learning problem can be efficiently solved by leveraging sufficient statistics and greedy maximization in the ostensibly intractable dual formulation. Based on DRO’s approximation to Lipschitz and variance regularization, we derive near-optimal sample complexities matching existing results. Extensive empirical evidence with different corruption models corroborates the effectiveness of the proposed methods.
Introduction
Markov Random Fields (MRFs), or Markov Networks, are fundamental tools for modeling high-dimensional dependencies in fields ranging from computer vision to social network analysis. A central challenge in utilizing these models is "structure learning": the process of identifying the direct connections (edges) in the underlying graph from observed data.
Traditionally, structure learning algorithms rely on Empirical Risk Minimization (ERM). ERM assumes that the training data is an accurate representation of the true underlying distribution. However, real-world datasets are frequently contaminated by sensor noise, transmission errors, or even adversarial manipulation. In these scenarios, standard ERM-based methods, such as Sparse Logistic Regression (SLR), often overfit to noise, resulting in "spiky" graphs characterized by false positives or missing true dependencies. While heuristic regularization (e.g., $L_1$ or $L_2$ penalties) is often employed to mitigate this, these methods lack a rigorous probabilistic interpretation of robustness.
Methodology: Distributionally Robust Structure Learning
To address the limitations of ERM, we propose a Distributionally Robust Structure Learning (DRSL) framework. Instead of minimizing loss on the observed empirical distribution, our framework minimizes the maximum possible loss over an ambiguity set—a neighborhood of distributions centered around the empirical data.
Ambiguity Sets and Tractability
We explore two primary methods for defining these neighborhoods:
- Wasserstein Distance: Based on optimal transport theory, this defines the ball by the cost of moving probability mass.
- KL Divergence: Based on relative entropy, defining the ball via information-theoretic distance.
While primal minimax problems (minimizing a maximum) are typically computationally difficult, we derive dual formulations that transform these into efficiently solvable convex optimization problems. Our approach decomposes the global graph learning problem into parallelizable node-wise sub-problems, where each node's neighbors are identified using a robust version of logistic regression.
Theoretical Foundations
Our framework provides a sound probabilistic interpretation for robustness. For example, choosing a Wasserstein ambiguity set is shown to be a principled generalization of standard $L_{2,1}$ regularization. Furthermore, we provide sample complexity bounds proving that our robust methods require a similar number of samples to achieve high confidence as non-robust methods, effectively providing robustness "at little cost."
Experimental Evaluation
We evaluated our proposed methods—Wasserstein DRSL (WDRSL) and KL-divergence DRSL (KLDRSL)—against the state-of-the-art Sparse Logistic Regression (SLR) baseline. We used synthetic datasets with known ground truths, specifically Diamond and Grid graph structures, and applied various corruption models:
- Noiseless: Clean data for baseline comparison.
- Huber’s Contamination: A fraction of samples are replaced by random noise.
- Independent Failure: Individual bits are randomly flipped, simulating sensor glitches.
Key Results and Discussion
In nearly all experimental configurations, the proposed DRO methods significantly outperformed the SLR baseline.
Resilience to Noise
A critical finding is the resilience of DRSL to data corruption. As illustrated in Figure 5, while the performance of standard SLR degrades rapidly under Huber contamination or independent noise, WDRSL maintains a high probability of success in recovering the true graph structure. For instance, in a Huber model with 50% noise, WDRSL could still recover the structure with approximately 50% success, whereas SLR failed completely.
Scalability and Complexity
The robust methods also demonstrated superior performance as the complexity of the graph increased. Figure 4 shows that as the number of classes (alphabet size) for the discrete variables grows, the gap between DRSL and SLR widens. For a 6-class diamond graph with 3,000 samples, WDRSL achieved ~90% success, while the baseline failed to recover the graph even with 10,000 samples.
Conclusion
This work introduces a principled and computationally efficient approach to structure learning for discrete MRFs. By shifting from empirical risk to distributionally robust optimization, we achieve significant gains in accuracy and resilience to noise. While the current work focuses on discrete pairwise networks, future research will explore extending this framework to continuous variables and higher-order interactions, as well as optimizing the per-iteration computational cost for massive-scale graphs.
Summary updated