Transformed Distribution Matching for Missing Value Imputation

He Zhao, Ke Sun, Amir Dezfouli, Edwin V. Bonilla

Overview

Missing data is a universal challenge in data science, affecting everything from incomplete electronic health records to faulty industrial sensor readings. To effectively "impute" or fill in these missing values, algorithms must accurately capture the underlying distribution of the data.

Transformed Distribution Matching (TDM) is a novel, unsupervised method for missing value imputation. Instead of matching data distributions in the raw data space, TDM matches them in a learned latent space. By leveraging invertible neural networks to capture complex data geometry, TDM achieves state-of-the-art performance across various missing-data scenarios without requiring complex hyperparameter tuning.

The Problem with Raw Space Distribution Matching

A recent and promising approach to imputation is Distribution Matching (DM). The core assumption of DM is that any two random batches of data sampled from the same dataset should exhibit the same distribution.

Previous methods, such as OTImputer, attempt to match these batches using Optimal Transport (OT) based on a simple quadratic (Euclidean) distance in the raw data space. However, real-world data rarely exists in simple, flat spaces; it often lies on complex, non-linear manifolds. In these scenarios, raw Euclidean distance is a poor measure of similarity. Relying on it can lead to "hallucinated" imputations that fail to respect the true structural integrity of the dataset.

The TDM Approach

To overcome the limitations of raw-space matching, the authors introduce Transformed Distribution Matching. TDM learns a mapping to a latent space where the data's complex geometry is effectively "unfolded," making quadratic distance a meaningful and accurate metric once again.

Key components of the TDM architecture include:

  • Invertible Neural Networks (INNs): The transformation from raw to latent space is performed by an INN. This is a critical architectural choice: invertible maps mathematically guarantee the preservation of mutual information between the input and the latent representation. This naturally prevents "model collapse"—a common failure mode in unsupervised learning where a network maps every input to a single point just to perfectly (but uselessly) match distributions.
  • Optimal Transport (OT): Within the latent space, TDM minimizes the 2-Wasserstein distance between data batches to align their distributions.
  • Simultaneous Learning: The algorithm elegantly updates both the missing values and the neural network parameters simultaneously in a single training loop.
  • Exact Network Simplex Method: Unlike prior works that rely on approximations like the Sinkhorn divergence, TDM utilizes the exact network simplex method, yielding more stable and performant optimization.

Experimental Validation

The researchers rigorously evaluated TDM against 10 competing benchmark algorithms using 12 datasets from the UCI Machine Learning Repository. These datasets spanned various scales and domains, including large-scale sets (California Housing, Letter Recognition), domain-specific sets (QSAR Biodegradation, Blood Transfusion), and small-scale sets (Concrete Slump).

Crucially, the models were tested across four distinct missingness mechanisms:

  1. MCAR (Missing Completely at Random)
  2. MAR (Missing at Random)
  3. MNAR (Missing Not at Random) - Tested under two different configurations, this is the most challenging scenario where the missingness itself is biased by the data values.

Key Insights and Results

Why TDM Works

  • Geometry Matters: The fundamental insight of TDM is that raw data distance is often misleading. By transforming data into a latent space, the model successfully identifies "neighbors" that are contextually similar, rather than just numerically close.
  • Invertibility as a Regularizer: Preventing model collapse typically requires complex constraints or "InfoMax" terms. TDM demonstrates that an invertible architecture satisfies the InfoMax principle inherently, keeping the algorithm robust and mathematically elegant.
  • Unsupervised Efficacy: TDM does not require ground-truth labels during training or a specific downstream task to guide it. It simply learns the intrinsic structure of the data.

Performance Highlights

  • State-of-the-Art Accuracy: TDM consistently achieved the lowest Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) across almost all datasets and missingness mechanisms.
  • Downstream Success: To test practical utility, imputed datasets were used to train a Support Vector Machine (SVM). TDM-imputed data yielded higher classification accuracy than competing imputation methods, frequently approaching the accuracy of the original, complete ground-truth data.
  • Training Stability: Compared to previous OT-based imputers that can overfit or exhibit erratic training dynamics, TDM's training curves proved significantly more stable.

Limitations and Future Directions

While TDM represents a significant step forward, the authors note a few current limitations:

  1. Computational Cost: Because it relies on training a neural network, TDM is roughly 2 to 3 times slower per iteration than simpler, non-parametric OT methods (though this performance gap narrows on larger datasets).
  2. Continuous Data Only: Currently, TDM is designed exclusively for real-valued, continuous data. It cannot natively handle categorical variables.

Future research will focus on exploring more efficient neural architectures to accelerate training and extending the TDM framework to accommodate mixed data types, bridging the gap between continuous and categorical missing value imputation.

Summary updated

BibTeX
@inproceedings{zhao2023transformed,
  author = {He Zhao and Ke Sun and Amir Dezfouli and Edwin V. Bonilla},
  title = {{Transformed Distribution Matching for Missing Value Imputation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=2QN83W1i1z},
}
Figure