Simultaneous Missing Value Imputation and Structure Learning with Groups

Pablo Morales-Alvarez, Wenbo Gong, Angus Lamb, Simon Woodhead, Simon Peyton Jones, Nick Pawlowski, Miltiadis Allamanis, Cheng Zhang

VISL (missing Value Imputation with Structural Learning) is a novel framework designed to simultaneously learn the underlying relationships between groups of variables and perform missing value imputation. By combining a structured latent space with a Graph Neural Network (GNN) decoder and continuous optimization, VISL scales to high-dimensional datasets and outperforms existing methods in both structure discovery and data recovery.

The Challenge of Incomplete, Grouped Data

In many real-world scenarios, data is both incomplete and organized into semantic groups. For instance, in education, a student's test results might have many missing entries (they didn't answer every question), and those questions naturally cluster into topics like "Algebra" or "Geometry."

Existing "structure learning" methods—which aim to discover the directed graphs representing how variables influence one another—face three major hurdles:

  1. Missing Data: Most algorithms require complete datasets to function effectively.
  2. Granularity: They typically focus on individual variables, whereas practitioners often need insights at the group (e.g., topic or industry) level.
  3. Scalability: Traditional Bayesian methods for finding graphs are computationally expensive and struggle to scale to thousands of variables.

To tackle these issues, the authors introduce VISL, targeting large-scale, partially observed data with pre-defined group structures.

The VISL Framework

VISL is built on a Variational Autoencoder (VAE) architecture, introducing several key innovations to handle structure and missingness simultaneously.

The VISL framework architecture and graphical model
  • Structured Latent Space: Instead of a single monolithic latent vector, the model partitions the latent space into $M$ parts, each corresponding to a specific group of variables.
  • GNN-based Decoder: The decoder uses a Graph Neural Network to model interactions between these latent groups. The "message passing" within the GNN is governed by a learned adjacency matrix $G$, which represents the discovered structure.
  • Continuous Optimization for DAGs: To ensure the learned graph is a Directed Acyclic Graph (DAG), the authors use a differentiable "DAG-ness" regularizer. This allows the use of standard gradient-based optimization rather than expensive combinatorial searches.
  • Bayesian Graph Inference: The graph $G$ is treated as a latent variable. The model uses the Gumbel-softmax trick to backpropagate through the discrete edge selections.
  • Two-Stage Training for Imputation: To fill in missing values effectively, information needs to flow both "forward" (parent to child) and "backward" (child to parent). VISL uses a two-stage process: first learning the directed structure, then fixing it and training "backward edges" specifically to improve imputation performance.

Key Insights and Innovations

  • Structure as a Regularizer: One of the most important findings is that learning the structure actually helps imputation. By forcing the model to respect a learned graph, it avoids overfitting to "spurious correlations" that often plague standard VAEs when data is sparse.
  • Group-Wise Efficiency: Modeling relationships between groups (e.g., math topics) rather than individual variables (e.g., specific test questions) significantly reduces the complexity of the graph search space, making the model much more scalable.
  • The "Backward Edge" Necessity: In a pure DAG, information only flows one way. However, if you know a student got a "hard" question right (the child node), it tells you something about their mastery of the "foundational" topic (the parent node). VISL’s two-stage training allows for this bidirectional information flow during imputation without violating the acyclic nature of the learned structure.

Evaluation and Results

The model was rigorously evaluated across synthetic datasets, a semi-synthetic healthcare benchmark (Neuropathic Pain), and a massive real-world education dataset (Eedi Topics) featuring over 6,000 students and 74.1% missing values.

  • Superior Structure Discovery: On synthetic data, VISL achieved an F1-score for adjacency of 0.74, vastly outperforming traditional methods like PC (0.49) and newer deep learning approaches like DAG-GNN (0.46).
  • Robust Imputation: In the Neuropathic Pain dataset, VISL achieved the highest AUPR (0.6597) and AUROC (0.9392), proving it can handle imbalanced medical data better than standard imputation tools like MICE or Missforest.
  • Real-World Impact: On the Eedi education data, domain experts (teachers) evaluated the discovered topic relationships. VISL’s relationships were rated significantly higher for "sensibility" (3.6/5.0) compared to baselines (2.0/5.0). The model even suggested curriculum changes—like moving "Venn Diagrams" to an earlier school year—that were validated by education experts.

Limitations and Future Directions

While VISL discovers structural relationships that satisfy the causal Markov assumption under equilibrium, the inferred structure is not strictly "causal" without further experimental interventions. Additionally, the model currently assumes data is Missing Completely At Random (MCAR) or Missing At Random (MAR). Future work could extend this to "Missing Not At Random" (MNAR) scenarios, which are common in real-world surveys, and incorporate more sophisticated graph priors to further refine the discovered structures.

Summary updated

BibTeX
@inproceedings{moralesalvarez2022simultaneous,
  author = {Pablo Morales-Alvarez and Wenbo Gong and Angus Lamb and Simon Woodhead and Simon Peyton Jones and Nick Pawlowski and Miltiadis Allamanis and Cheng Zhang},
  title = {{Simultaneous Missing Value Imputation and Structure Learning with Groups}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=4rm6tzBjChe},
}
Figure