Neural Autoregressive Flows for Markov Boundary Learning

Khoa Nguyen, Bao Duong, Viet Huynh, Thin NguyenarXiv 2026 · arXiv

TL;DR

The paper introduces FANS (Flows for ANy-Subset), a novel neural autoregressive flow model designed to efficiently estimate conditional entropy for any arbitrary subset of variables. When paired with a polynomial-time greedy search algorithm (FANSITEMB), it delivers a highly scalable, theoretically grounded framework for discovering Markov boundaries and accelerating downstream causal discovery in complex, nonlinear datasets.

What Problem Does This Paper Address?

In causal machine learning, finding the Markov Boundary (MB) of a target variable—the minimal set of its parents, children, and spouses—is a fundamental step. Knowing the MB allows you to completely shield the target variable from the rest of the network, maximizing predictive performance while drastically reducing the feature space.

However, finding the MB in large networks with complex, nonlinear relationships is notoriously difficult. Traditional constraint-based methods rely on conditional independence (CI) tests, which are notoriously sample-inefficient and prone to cascading errors in high dimensions. On the flip side, score-based methods often rely on rigid assumptions (like linear Gaussian data) or computationally heavy kernel methods that require training entirely separate models for every single subset evaluation.

This paper tackles these bottlenecks by introducing a flexible, information-theoretic scoring framework that scales to high-dimensional, nonlinear continuous data without needing separate models for each subset query.

Methods

The authors propose a two-pronged framework consisting of a novel density estimator and an efficient search strategy:

  1. FANS (Flows for ANy-Subset): This architecture adapts Masked Autoregressive Flows (MAFs) to compute the conditional entropy $H(T|S)$ for a target $T$ given any arbitrary subset of variables $S$. Instead of retraining models for different subsets, FANS uses a single, amortized model equipped with a dynamic weight masking mechanism inspired by the Lottery Ticket Hypothesis. This maximizes parameter sharing and connection utilization across different subsets. To boost efficiency in sparse networks, the authors also introduce a compact version of FANS that scales hidden layers based on the maximum expected boundary size ($M$) rather than the total number of variables ($d$).
Illustration of the weight masking mechanism in FANS (Non-compact vs. Compact versions).
  1. FANSITEMB: A greedy, parallelizable search algorithm that uses FANS to minimize conditional entropy. It operates in two phases: a growing phase that adds variables highly associated with the target, and a shrinking phase that prunes away false positives. The algorithm runs in polynomial time and is backed by rigorous theoretical error bounds.
  2. FANSITE-DCD: To show the downstream utility of their method, the authors integrate FANSITEMB into Differentiable Causal Discovery (DCD). By using the learned MBs to construct a "moral graph" mask, they restrict the subsequent Directed Acyclic Graph (DAG) search space to a minimal, highly accurate subspace, preventing the optimization process from getting stuck in local minima.

Datasets

The authors evaluated their framework on both synthetic and real-world benchmarks:

  • Synthetic Data: Erdos-Rényi causal DAGs scaling from $d = 30$ to $d = 5000$ nodes. These included linear Gaussian structural equation models (SEMs), nonlinear SEMs generated via Gaussian Processes with RBF kernels, and mixed noise distributions (e.g., Laplace, Gumbel, Exponential).
  • Real/Semi-Real Biology Networks: Four public gene regulatory networks (GRNs) commonly used in causal discovery benchmarks: Sachs, SynTReN, SERGIO, and ARTH150.
TABLE I. Real datasets

Key Insights and Ideas

  • Amortization via Dynamic Masking: The "aha moment" of FANS is that a single autoregressive flow can learn to approximate marginal and conditional distributions for any subset of variables simultaneously. Dynamic masking bypasses the combinatorial nightmare of training exponential numbers of models.
  • Exploiting Network Sparsity: Real-world causal graphs (like gene regulatory networks) are typically sparse. By restructuring the neural network's hidden layers to scale with the maximum expected neighborhood size ($M \ll d$), the compact FANS model slashes parameter counts and training times without sacrificing expressiveness.
  • Moral Graphs as Causal Training Wheels: Differentiable causal discovery methods often struggle with uniform regularization penalties that fail to account for varying local densities. Pre-computing a reliable moral graph with FANSITEMB provides a clean, restricted search space that drastically accelerates DAG convergence.

Key Results

Markov Boundary Discovery

FANSITEMB consistently outperformed constraint-based, score-based, and hybrid baselines.

  • On the nonlinear d30-G dataset, FANSITEMB achieved an F1-score of 91.2%, vastly outperforming the kernel score-based method KMB (61.84%) and the differentiable baseline DAT-Moral (21.28%).
  • Scalability: In large-scale settings ($d = 5000$), FANSITEMB successfully completed execution with high accuracy (99.61% F1-score), whereas traditional methods like IAMB and KMB timed out past the 10-hour limit.

Causal Discovery (DAG Estimation)

When plugged into a differentiable causal discovery pipeline (FANSITE-DCD), the method established a new state-of-the-art for nonlinear structure learning:

  • On the d100-1 nonlinear dataset, FANSITE-DCD achieved a Structural Hamming Distance (SHD) of 25.6, a marked improvement over the previous state-of-the-art SDCD (38.0) and standard DAGMA (58.8).
  • It also yielded significantly higher Area Under the Precision-Recall Curve (AUC-PR) scores across all real-world biological datasets.

Limitations and Future Work

While highly effective, the paper notes a few areas for improvement:

  • Continuous Focus: The current implementation of FANS is tailored specifically for continuous variables due to the nature of normalizing flows. Extending this framework to seamlessly handle purely discrete or mixed data types is an open avenue.
  • Hyperparameter Sensitivity: The performance of the compact model relies on a well-chosen threshold for the maximum subset size ($M$). In highly irregular or dense graphs where the true MB size exceeds $M$, the compact model's performance boundaries could be tested.

Summary updated

Abstract

Recovering Markov boundary -- the minimal set of variables that maximizes predictive performance for a response variable -- is crucial in many applications. While recent advances improve upon traditional constraint-based techniques by scoring local causal structures, they still rely on nonparametric estimators and heuristic searches, lacking theoretical guarantees for reliability. This paper investigates a framework for efficient Markov boundary discovery by integrating conditional entropy from information theory as a scoring criterion. We design a novel masked autoregressive network to capture complex dependencies. A parallelizable greedy search strategy in polynomial time is proposed, supported by analytical evidence. We also discuss how initializing a graph with learned Markov boundaries accelerates the convergence of causal discovery. Comprehensive evaluations on real-world and synthetic datasets demonstrate the scalability and superior performance of our method in both Markov boundary discovery and causal discovery tasks.
BibTeX
@misc{nguyen2026neural,
  author = {Khoa Nguyen and Bao Duong and Viet Huynh and Thin Nguyen},
  title = {{Neural Autoregressive Flows for Markov Boundary Learning}},
  year = {2026},
  eprint = {2603.20791},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.20791},
}
Figure