Sparse Logistic Regression Learns All Discrete Pairwise Graphical Models

Shanshan Wu, Sujay Sanghavi, Alexandros G. Dimakis

Introduction

In machine learning and statistics, structure learning is the challenge of discovering the underlying network of dependencies—the Markov graph—between variables based solely on observed data. For example, in a complex system or social network, can we deduce the direct influences between entities just by observing their joint behaviors?

For years, researchers have used logistic regression with sparsity constraints (like the $\ell_1$ norm) to solve this for binary data, such as Ising models. However, the mathematical proofs guaranteeing the success of this approach usually relied on a restrictive technical condition called incoherence. Essentially, incoherence requires that the variables aren't too correlated with one another. If a model didn't satisfy this hard-to-verify condition, the algorithm wasn't theoretically guaranteed to work.

Recent "distribution-free" algorithms, like Sparsitron, were developed to bypass this incoherence requirement. Unfortunately, they often suffered from worse scaling as the number of possible values for each variable (the alphabet size, $k$) increased. This paper revisits the classical approach, proving that regularized logistic regression is surprisingly powerful and can learn the structure of any discrete pairwise graphical model without needing the incoherence assumption.

Methodology and Theoretical Innovations

The authors analyze a "node-wise" approach to structure learning: to find the neighbors of a specific node, the algorithm treats it as a classification problem where all other nodes act as the features.

  • For Binary Data (Ising Models): The approach uses standard $\ell_1$-constrained logistic regression.
  • For General Discrete Models: The authors employ $\ell_{2,1}$ group-norm constrained logistic regression. Because an edge between two non-binary variables is represented by a group of parameters, the $\ell_{2,1}$ constraint encourages "group sparsity"—ensuring that either the entire edge exists in the model, or none of it does.

The Theoretical Breakthrough: Instead of following the traditional "restricted strong convexity" proof path—which inherently necessitates the incoherence assumption—the authors utilize sharp generalization error bounds. They demonstrate that if the algorithm minimizes the loss on the training data, the resulting model must be close to the true model in terms of its predictions. This generalization bound can be mathematically massaged into a bound on the accuracy of individual edge weights, eventually guaranteeing the recovery of the correct graph structure.

Key Results and Sample Complexity

A major insight of this paper is that we don't always need entirely new algorithms; sometimes, a better theoretical lens reveals that classical tools are more robust than previously believed.

By using the $\ell_{2,1}$ group norm, the authors achieve a sample complexity scaling of $\tilde{O}(k^4)$. This is a strict improvement over the previous state-of-the-art $\tilde{O}(k^5)$ established by algorithms like Sparsitron.

Comparison of sample complexity across different algorithms.

The total number of samples $N$ required to recover the graph scales as $O(\lambda^2 k^4 \exp(14\lambda) \ln(nk/\rho) / \eta^4)$, where $\lambda$ is the model width and $\eta$ is the minimum edge weight. Furthermore, the algorithm runs in $\tilde{O}(n^2)$ time using mirror descent, making it computationally feasible for large networks.

Empirical Validation

Because the paper's primary contributions are theoretical, the authors use targeted synthetic datasets to validate their proofs against older theories.

They specifically constructed Diamond-shaped Graphs designed to violate the traditional "incoherence" condition. Previous theories would predict that logistic regression might fail on these structures.

Diamond-shaped graph experiments showing successful recovery even when incoherence exceeds 1.

As shown in the experiments, the incoherence value grows well beyond 1 (the threshold where previous theories break down) as the number of nodes increases. Despite this, the $\ell_{2,1}$-constrained approach successfully recovers the graph, requiring significantly fewer samples to achieve a 100% success rate compared to benchmark algorithms.

Limitations and Future Work

While this work significantly advances the theoretical backing of logistic regression for structure learning, some limitations remain:

  • Exponential Scaling with Width: The sample complexity still depends exponentially on the model width ($\exp(\lambda)$). While common in this field, it means the algorithm will struggle with highly dense or heavily connected graphs.
  • Dependence on Minimum Edge Weight: The $1/\eta^4$ dependence on the minimum edge weight ($\eta$) is somewhat high. The authors note that improving this scaling is an open challenge.
  • Beyond Pairwise Interactions: The current proofs are limited to pairwise graphical models. A natural next step for future research is to extend these generalization-based proofs to models with higher-order interactions (e.g., three or more variables interacting simultaneously).

Summary updated

BibTeX
@inproceedings{wu2019sparse,
  author = {Shanshan Wu and Sujay Sanghavi and Alexandros G. Dimakis},
  title = {{Sparse Logistic Regression Learns All Discrete Pairwise Graphical Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure