English

Contextual Directed Acyclic Graphs

Machine Learning 2024-02-21 v2 Machine Learning

Abstract

Estimating the structure of directed acyclic graphs (DAGs) from observational data remains a significant challenge in machine learning. Most research in this area concentrates on learning a single DAG for the entire population. This paper considers an alternative setting where the graph structure varies across individuals based on available "contextual" features. We tackle this contextual DAG problem via a neural network that maps the contextual features to a DAG, represented as a weighted adjacency matrix. The neural network is equipped with a novel projection layer that ensures the output matrices are sparse and satisfy a recently developed characterization of acyclicity. We devise a scalable computational framework for learning contextual DAGs and provide a convergence guarantee and an analytical gradient for backpropagating through the projection layer. Our experiments suggest that the new approach can recover the true context-specific graph where existing approaches fail.

Keywords

Cite

@article{arxiv.2310.15627,
  title  = {Contextual Directed Acyclic Graphs},
  author = {Ryan Thompson and Edwin V. Bonilla and Robert Kohn},
  journal= {arXiv preprint arXiv:2310.15627},
  year   = {2024}
}

Comments

To appear in the Proceedings of the 27th International Conference on Artificial Intelligence and Statistics