Abstract
We propose a single neural probabilistic model based on variational autoencoder that can be conditioned on an arbitrary subset of observed features and then sample the remaining features in "one shot". The features may be both real-valued and categorical. Training of the model is performed by stochastic variational Bayes. The experimental evaluation on synthetic data, as well as feature imputation and image inpainting problems, shows the effectiveness of the proposed approach and diversity of the generated samples.
Introduction
In many real-world scenarios, data is often incomplete. Whether it is a patient's missing lab results, an obscured region in an image, or unrecorded values in a survey, the ability to infer missing information from available context is crucial. Existing solutions typically fall into two categories: fixed conditional models, which require a predefined set of inputs and outputs, and autoregressive models, which can handle arbitrary missingness but are computationally expensive due to their sequential nature.
The Variational Autoencoder with Arbitrary Conditioning (VAEAC) addresses these challenges by providing a single generative model capable of predicting any missing subset of features based on whatever features are currently observed. By learning to model all possible conditional distributions simultaneously, VAEAC enables efficient, "one-shot" generation of missing data.
Methodology
VAEAC extends the standard Variational Autoencoder (VAE) framework by introducing a flexible conditioning mechanism. The architecture is composed of three primary neural networks:
- The Prior Network: This network acts as the core of the arbitrary conditioning. It receives the observed features and a binary mask (indicating which features are missing) to predict the parameters of the latent space distribution.
- The Generative Network (Decoder): This component takes a sample from the latent space along with the observed features to reconstruct all missing values in a single pass.
- The Proposal Network (Encoder): Utilized exclusively during the training phase, this network observes the full data vector to guide the model in mapping inputs to the latent space effectively.
Key Innovations
- Arbitrary Masking: During training, the model is exposed to a wide variety of random masks. This forces the network to learn how to condition on any possible subset of features rather than a fixed input-output mapping.
- Normal-Gamma Prior: To ensure numerical stability and prevent latent parameters from diverging, the authors implement a specific statistical prior to regularize the latent space.
- One-Shot Generation: Unlike autoregressive models that fill in data point-by-point, VAEAC generates all missing features simultaneously, resulting in significant computational speedups.
Experimental Evaluation
The authors evaluated VAEAC across two distinct domains: feature imputation using five UCI Machine Learning Repository datasets (WhiteWine, Yeast, Mushroom, Zoo, and Phishing) and image inpainting using benchmarks such as MNIST, Omniglot, and CelebA.
Feature Imputation Results
VAEAC demonstrated superior or competitive performance against established imputation methods like MICE, MissForest, and GAIN. As shown in the results for real-valued datasets, VAEAC consistently achieved lower error rates.
For instance, on the WhiteWine dataset, VAEAC achieved a Normalized Root Mean Square Error (NRMSE) of 0.850, significantly outperforming GAIN's 0.97.
Image Inpainting Results
In image tasks, VAEAC excelled at handling multi-modality—the ability to generate multiple plausible completions for a single input. On the CelebA dataset, VAEAC achieved higher Peak Signal-to-Noise Ratios (PSNR) than specialized models like Context Encoders across various masking patterns.
Beyond quality, the model's efficiency is a standout feature. On the MNIST dataset, VAEAC generated 100 samples in just 0.7ms, representing a 1,400x speedup over the Universal Marginalizer (UM), which required 1 second for the same task.
Discussion and Limitations
While VAEAC offers a powerful and fast solution for arbitrary conditioning, it has certain limitations. The model's performance is sensitive to the mask distribution; if the missing data pattern at test time differs significantly from those seen during training, accuracy may decrease. Additionally, like many VAE-based models, the generated images can exhibit slight blurriness. Finally, the model assumes conditional independence of missing features given the latent variable, which, while enabling one-shot sampling, may overlook some fine-grained local correlations.
Future work may involve incorporating adversarial losses to improve image sharpness and exploring more complex output distributions to capture deeper dependencies between missing features.
Summary updated