Abstract
Estimating the probability distribution of an arbitrary subset of unobserved variables given any subset of observed variables is a fundamental challenge in unsupervised learning. This paper introduces Arbitrary Conditioning with Energy (ACE), a novel framework that decomposes this complex combinatorial problem into a sequence of one-dimensional conditionals. By modeling these conditionals with highly expressive energy-based models (EBMs) and a supporting proposal network, ACE achieves state-of-the-art performance on conditional likelihood estimation and data imputation. Unlike prior methods, ACE avoids restrictive architectural constraints, enabling it to scale to high-dimensional data and naturally handle heterogeneous (mixed continuous and discrete) datasets.
Introduction
In standard density estimation, the goal is typically to learn the joint distribution of all variables in a dataset. However, practical applications often require inferring unobserved features from a partial set of observations—a task known as arbitrary conditioning. For instance, in medical diagnostics, a clinician may need to estimate the likelihood of various conditions based on a fluctuating set of available patient metrics.
Modeling arbitrary conditional distributions is difficult because the number of possible combinations of observed and unobserved variables grows exponentially with the number of features. Previous attempts to solve this with a single model, such as ACFlow or VAEAC, often rely on restrictive architectural biases. These include the requirement for invertible normalizing flows or the assumption of conditional independence, both of which limit model expressivity and complicate the handling of mixed data types.
Methodology
ACE addresses the challenge of arbitrary conditioning through two primary innovations: an autoregressive decomposition and the use of energy-based models with a proposal network.
Autoregressive 1D Decomposition
Using the chain rule of probability, ACE breaks down a multi-dimensional conditional distribution into a product of one-dimensional conditional distributions. This transformation simplifies the problem from predicting an arbitrary set of variables simultaneously to predicting a single variable at a time, conditioned on all currently known information. This framework allows the model to handle any combination of missing features by processing them sequentially.
Energy-Based Models and Proposal Networks
To model these 1D conditionals, ACE employs energy functions parameterized by unrestricted neural networks. While EBMs offer high expressivity, they are notoriously difficult to train because their normalizing constants (partition functions) are often intractable.
ACE overcomes this by training a "proposal network" in tandem with the energy network. The proposal network outputs a tractable Mixture of Gaussians, which is used to estimate the EBM's normalizing constant via importance sampling during training. To manage the combinatorial variety of inputs, ACE utilizes a weight-sharing scheme where a single network processes the data alongside a binary mask indicating which features are observed.
Experimental Evaluation
The authors evaluated ACE across a diverse range of benchmarks to test its versatility and scaling capabilities:
- UCI Tabular Datasets: Five standard datasets (POWER, GAS, HEPMASS, MINIBOONE, BSDS) were used to measure arbitrary conditional likelihoods and imputation accuracy.
- MNIST: The dataset was flattened into 784-dimensional vectors to evaluate scaling in high-dimensional spaces and performance in image inpainting.
- UCI Adult: This dataset, containing both continuous and discrete features, served as a testbed for handling heterogeneous data types.
Key Results
ACE consistently outperformed existing baselines across all evaluated metrics.
Likelihood and Imputation
ACE achieved state-of-the-art arbitrary conditional log-likelihoods on all five UCI datasets at missing data rates of 0%, 10%, and 50%. In data imputation tasks, ACE demonstrated superior precision, achieving lower Normalized Root-Mean-Square Error (NRMSE) than ACFlow and VAEAC.
High-Dimensional Scaling and Mixed Data
On the MNIST dataset, ACE reached a joint bits-per-dimension (BPD) of 1.42 and an inpainting PSNR of 16.81, significantly outperforming ACFlow (3.09 BPD, 13.75 PSNR). Furthermore, on the UCI Adult dataset, ACE's ability to model discrete and continuous variables without the change-of-variables constraints required by flows resulted in much higher log-likelihoods (2.38) compared to VAEAC (-7.25).
Discussion and Future Work
One of the primary insights of this work is that a simple 1D decomposition, when paired with expressive EBMs, can outperform more complex, constrained architectures. However, several challenges remain. Because ACE is autoregressive, the order in which unobserved variables are processed can slightly affect the final likelihood estimate. While the authors introduced a variance penalty to mitigate this, achieving inherent order-invariance is a goal for future research. Additionally, the sequential nature of autoregressive evaluation means that inference speed is slower than single-pass models, particularly as the number of missing variables increases.
Summary updated