A* Lasso for Learning a Sparse Bayesian Network Structure for Continuous Variables

Jing Xiang, Seyoung KimNeurIPS 2013

TL;DR

Researchers at Carnegie Mellon University have developed A* Lasso, a single-stage algorithm that efficiently learns the structure of Bayesian networks for continuous variables. By combining A* search with Lasso-based scoring, the method finds optimal network structures significantly faster than traditional dynamic programming while avoiding the accuracy pitfalls of common "two-stage" pruning techniques.

The Challenge of Learning Bayesian Networks

Bayesian networks are powerful tools for representing how variables depend on one another. However, learning these structures from data is notoriously difficult—an NP-hard problem. The primary culprit is the Directed Acyclic Graph (DAG) constraint: the resulting network must have directed edges but cannot contain any cycles (loops).

In high-dimensional settings (where you have many variables but limited data), most researchers rely on a "two-stage" approach:

  1. Pruning: Narrow down the list of potential "parents" for each variable.
  2. Searching: Find the best DAG within that restricted space.

The problem? In high dimensions, the first stage often accidentally prunes the correct parents, leading to a suboptimal final model. Existing "exact" methods that don't prune are often too slow, requiring exponential time and memory.

The A* Lasso Approach

The authors propose A* Lasso, which merges the search and scoring into a single, streamlined process.

1. Dynamic Programming with Lasso

The team framed the problem as finding the optimal ordering of variables. If you know the order, you can ensure no cycles exist by only allowing a variable to have parents that appear earlier in the list. They used Lasso (L1-regularized linear regression) to score how well a set of parents explains a variable.

2. A* Search Strategy

To avoid checking every possible variable ordering (which is what standard Dynamic Programming does), they used an A* search strategy over the state space of variable subsets.

State space graph illustrating the subsets of variables explored during the search process.

This algorithm uses a cost function $f(n) = g(n) + h(n)$:

  • $g(n)$: The actual cost (Lasso score) of the variables already ordered.
  • $h(n)$: An "admissible heuristic" that estimates the cost to order the remaining variables.

Their clever insight was that by ignoring the DAG constraint for the remaining variables, they could calculate a heuristic that is guaranteed to never overestimate the true cost (making it "admissible"). This allows the algorithm to safely prune large sections of the search space that couldn't possibly lead to an optimal solution.

3. Scalable Heuristics

For very large networks, even A* can be slow. The authors introduced a "limited queue" scheme. Instead of keeping all possible paths in memory, they discard the least promising ones. Crucially, they distribute these discards across different "depths" of the search to prevent the algorithm from becoming too "greedy" early on.

Key Insights and Results

The authors evaluated A* Lasso using simulated benchmark networks (ranging from 6 to 56 nodes), larger synthetic "tiled" networks, and real-world daily stock price data for 125 companies in the S&P 500.

  • Single-Stage is Superior: By not pruning the search space before the search begins, A* Lasso avoids the "missing parent" problem that plagues two-stage methods like L1MB.
  • Efficiency: A Lasso visited significantly fewer states than standard Dynamic Programming—sometimes only 10% of the search space*—while still guaranteeing an optimal solution. The efficiency of the search is tied to the "strength" of the relationships in the data; stronger edges allow the algorithm to prune the search space more aggressively.
  • Accuracy: In recovering complex 3-node relationship patterns ("v-structures"), A* Lasso consistently outperformed existing methods like SBN and L1MB.
  • Real-World Performance: On the S&P 500 dataset, A Lasso achieved lower prediction errors* on a hidden test set compared to all other tested methods, even when using the speed-optimized heuristic version.
Prediction error comparison showing A* Lasso variants achieving lower errors than L1MB and SBN methods.

Limitations and Future Work

While A Lasso is a major step forward, the authors note that for extremely large graphs (hundreds or thousands of variables), the memory requirements of the A "OPEN list" can still be a bottleneck.

The "limited queue" heuristic helps, but it sacrifices the guarantee of finding the absolute mathematical optimum. Future work might involve even more sophisticated heuristics or parallelizing the A* search to handle the massive datasets common in genomics or global finance.

Summary updated

BibTeX
@inproceedings{xiang2013lasso,
  author = {Jing Xiang and Seyoung Kim},
  title = {{A* Lasso for Learning a Sparse Bayesian Network Structure for Continuous Variables}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
}
Figure