NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Multivariate Models with Parametric Conditionals

Dmitrij Schlesinger, Boris Flach, Alexander Shekhovtsov

Abstract

We consider deep multivariate models for heterogeneous collections of random variables. In the context of computer vision, such collections may e.g. consist of images, segmentations, image attributes, and latent variables. When developing such models, most existing works start from an application task and design the model components and their dependencies to meet the needs of the chosen task. This has the disadvantage of limiting the applicability of the resulting model for other downstream tasks. Here, instead, we propose to represent the joint probability distribution by means of conditional probability distributions for each group of variables conditioned on the rest. Such models can then be used for practically any possible downstream task. Their learning can be approached as training a parametrised Markov chain kernel by maximising the data likelihood of its limiting distribution. This has the additional advantage of allowing a wide range of semi-supervised learning scenarios.

Introduction

In traditional machine learning, models are typically designed with a fixed inference direction. For instance, classification models optimize $p(\text{label} | \text{image})$, while generative models focus on $p(\text{image} | \text{latent})$. This task-specific design is restrictive; a generative model often requires an auxiliary encoder for inference, and these components may not be mathematically consistent. Furthermore, as the number of variables increases—incorporating segmentations, multiple attributes, and various latent spaces—the number of possible factorizations grows exponentially. This paper proposes a "universal" approach: modeling the joint distribution of all variables through their conditional distributions, allowing a single model to perform diverse tasks like classification, generation, and in-painting without retraining.

Methodology

The core of the proposed framework is modeling a collection of variables $x = (x_1, x_2, \dots, x_m)$ by defining the conditional distribution for each group given all others: $p(x_i | x_{-i})$. The joint distribution is implicitly defined as the limiting distribution of a Markov Chain Monte Carlo (MCMC) process that iteratively samples from these conditionals.

Learning and Consistency

Training involves maximizing the data likelihood of the MCMC process's steady state. The authors derive a Recurrent Lower Bound, analogous to the ELBO in Variational Autoencoders, specifically for Markov chains. A critical challenge in this approach is ensuring "consistency"—that the individual conditionals correspond to a single valid joint distribution. The training objective implicitly enforces detailed balance, a necessary condition for consistency.

Figure 1: Validation of consistency. As the training chain length increases, the Frobenius norm of the difference between learned weight matrices and their transposes decreases, indicating that the model naturally learns symmetric weights and satisfies detailed balance.

As shown in Figure 1, the "chain length" ($n$) used during training acts as a regularizer: larger $n$ values enforce stricter consistency and symmetry in the model's parameters, while smaller $n$ allows for greater expressive power at the cost of consistency.

Experimental Results

The model was evaluated across several benchmarks, demonstrating its versatility and performance.

MNIST and Fashion MNIST

Despite not being optimized for a single task, the "universal" model achieved 99.04% accuracy on MNIST and 88.61% on Fashion MNIST. In generative tasks, it achieved an FID score of 35.87 on Fashion MNIST, significantly outperforming standard VAEs (52.66).

CelebA-HQ: Multi-Modal Versatility

On the CelebA-HQ dataset, the model handled a complex set of variables: images, 18-segment masks, 40 binary attributes, and two latent variable sets. Once trained, the model can "clamp" any subset of variables and sample the remainder. For example, one can fix an image and a specific attribute (like "glasses") to generate the corresponding segmentation and latent style.

Figure 5: Multi-variable modeling on CelebA-HQ. The model successfully captures the joint distribution of images, segmentations, and attributes, allowing for flexible conditional inference across different modalities.

Beyond standard generation, the model successfully performed complex inference tasks it was never explicitly trained for, such as in-painting (reconstructing faces from partially obscured images) and image demixing (separating two pixel-mixed images).

Discussion and Limitations

While the approach offers unprecedented flexibility, it faces computational challenges. MCMC sampling is inherently slow; training the CelebA model required approximately four days on an NVIDIA H100 GPU, and high-quality generation requires hundreds of MCMC steps. Additionally, the current framework lacks explicit control over "mixing times," which can impact inference practicality if the chain converges slowly. Future work may explore accelerating the MCMC process or integrating these models with diffusion-based frameworks to improve scalability to higher resolutions.

Summary updated

BibTeX
@misc{schlesinger2026deep,
  author = {Dmitrij Schlesinger and Boris Flach and Alexander Shekhovtsov},
  title = {{Deep Multivariate Models with Parametric Conditionals}},
  year = {2026},
  eprint = {2602.01953},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.01953},
}
Figure