Marformer: A Transformer for Predicting Missing Data Distributions

arXiv:2610.12379 · cs.LG, stat.ME · Submitted 2026-10-08 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "Marformer: A Transformer for Predicting Missing Data Distributions".

Jane: As a meticulous researcher, I have thoroughly reviewed both provided texts regarding "Marformer." The information is rich, detailing its architecture, training methodology,

Tom: First, who's behind it and why it matters.

Paper summary: Tom: So, to recap, this paper "Marformer: A Transformer for Predicting Missing Data Distributions" proposes a Transformer trained to directly predict conditional marginal distributions given any set of observed values. The central thesis is that these conditional marginals are the key ingredients for calculating Bayes risk and Value of Information.

Jane: Essentially, they argue that by learning these marginals directly, you can compute how much uncertainty you have about missing data and what the expected gain would be from getting more information before making a decision.

Lu: They achieve this by using a Transformer architecture that constructs hidden-vector representations for each distribution and iteratively refines them through attention mechanisms to other distributions. This is like BERT predicting missing words in context, but applied to probability distributions instead of text.

Meng: The main claim they make is that this model is generic because it doesn't need you to specify the exact generative model family or prior over the data-generating process when you train it.

Lalam: And they achieve this by fitting these conditional marginals directly using conditional maximum likelihood, which means no prior over the model parameters is required for training. This allows them to do this without needing deep domain knowledge of how that data was generated.

Tom: That sounds like a powerful way to bypass the need for heavy prior specification in complex inference problems. So, what does this actually change for us in terms of decision-making?

Jane: It changes how we approach uncertainty. Instead of relying on a single joint model, you get a collection of conditional distributions designed specifically to support conditional inference, which is very useful when you only have partial information.

Conclusion: Tom: So looking at "Marformer: A Transformer for Predicting Missing Data Distributions" by Prabhav Singh and the team at UT Austin, it seems this work is a practical application of Transformer technology to solve missing data problems. The focus is on directly predicting those conditional marginals, which are central for things like Bayes risk and Value of Information.

Jane: In simple terms, the implication is that we can build tools that help people make better real-world decisions under incomplete information without needing to know exactly what the underlying data model is.

Lu: They show that this approach is competitive with classical methods when enough training data is available and fast inference, even running in a single pass for all missing values, can be achieved.

Meng: From an engineering side, it means we can expect faster tools than some of the generative baselines they compared it against, which is substantial for deployment speed.

Lalam: And because the Marformer outputs are well-calibrated across various readouts, it suggests that you can trust the predicted probabilities for making actual choices.

Tom: So in conclusion, this paper shows a way to use modern AI architectures to tackle a very common problem in real decisions—missing data—without requiring deep prior knowledge of the data structure.

Prabhav Singh, Xiheng Tom Wang, Haojun Shi, Jason Eisner

University of Texas at Austin · Johns Hopkins University · Yale University

cs.LG, stat.ME

Submitted: 2026-10-08

Updated: 2026-10-08

Comments: 45 pages, 19 figures; presented in part in a COLM 2026 keynote

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 87/100

The gist: As a meticulous researcher, I have thoroughly reviewed both provided texts regarding "Marformer." The information is rich, detailing its architecture, training methodology, comparative performance

Key concepts

Conditional Marginals
These are the probability distributions of missing variables given what we have already observed. The Marformer's main goal is to accurately predict these missing pieces. By predicting these conditional probabilities, researchers can calculate important metrics like Bayes risk and the Value of Information (VOI), which tells us how much benefit we gain from making one more observation.
Marformer Architecture
The Marformer uses a Transformer architecture, similar to BERT. It creates a hidden vector for every variable's distribution and then uses self-attention to iteratively refine these vectors by looking at the relationships between different variables. This allows it to learn how variables depend on each other without needing a full joint distribution model.
Single-Pass Inference
A major advantage of the Marformer is that once trained, it can predict all missing marginal distributions in just one forward pass. This makes inference extremely fast compared to generative models. The training process is optimized specifically for this single-pass prediction capability, meaning it can quickly estimate missing data when needed.

Terminology

Summary

As a meticulous researcher, I have thoroughly reviewed both provided texts regarding Marformer. The information is rich, detailing its architecture, training methodology, comparative performance across different domains (Bayesian Networks and Gaussian data), and specific empirical findings related to calibration and inference.

Here is a comprehensive, detailed synthesis of the Marformer paper based on the provided excerpts:


Comprehensive Research Summary: The Marformer Model for Conditional Marginal Inference

The Marformer is introduced as a novel deep learning architecture, specifically a Transformer-based model, designed for the direct prediction of conditional marginal distributions given any set of observed values. Its primary goal is to compute Bayes risk and Value of Information (VOI) by approximating these missing marginals efficiently. Unlike generative models that attempt to reconstruct the full joint distribution, the Marformer operates directly on conditional probabilities, offering significant advantages in terms of computational speed and reduced reliance on prior domain knowledge.

Core Architecture and Mechanism

The Marformer functions similarly to BERT in its core mechanism: it constructs a hidden-vector representation for each distribution p(X i) and iteratively refines these representations through self-attention mechanisms across different distributions, i.e., attending to other variables p(X j).

  1. Input and Encoding: The model takes an input specifying a set of random variables (X) along with their observed values and the missing values that need prediction. It utilizes compositional entity embeddings to effectively capture structured variables, employing an encoder-only design without positional order dependency.

  2. Refinement via Attention: The core computational process involves encoding the observed inputs, constructing a residual stream of vectors, and passing these through layers that employ multi-head self-attention and feedforward modules. This allows related variables to learn dependencies via a relational attention mechanism, enabling the model to predict attributes by analogy based on learned relationships between variables.

  3. Output: The final layer outputs a parameter vector theta specifying the predicted marginal distribution p theta(X i X s = x s) for each variable, conditioned on the observed set X s.

Training Objective and Inference

The model is trained using a conditional log-likelihood objective. This encourages the predicted marginal distributions to match the true conditional distributions of the data.

The training objective is formally stated as:

E x in Train [E s about P*(S x r) [- p theta(xi i xi s)] + L 2(theta) |2| 2 squared (Eq. 19)]

This objective is structured to maximize the log-likelihood of the observed data by minimizing the negative log-likelihood of the missing variables, while simultaneously applying an L 2 regularization term on the parameters theta.

Inference Efficiency: A key strength is its amortized, single-pass inference. Once trained, it can predict all missing marginals simultaneously in one forward pass by sharing computation across all missing values. This inference process is fully defined by this forward pass, meaning training optimizes the model directly for accurate inference.

Training Strategy and Generalization

The Marformer is trained using a masking strategy analogous to masked autoencoding (like BERT). It is trained by masking some variables and training the model to predict these masked values from the remaining observed values. This generalized approach is then applied at test time to predict the originally missing values, provided the missingness mechanism adheres to Missing Completely At Random (MCAR) or Missing At Random (MAR) assumptions.

The training process is robust across different data structures:

  • Domain 1 (Bayesian Networks - BN): Data generation involves sampling from Directed Acyclic Graphs (DAGs) with binary attributes and a target parent density c. The model is compared against Expectation-Maximization (EM) and MAP-EM baselines.

  • Domain 2 (Gaussian Data): This domain involves multivariate Gaussian distributions constrained by a Wishart prior on the covariance matrix and Dirichlet priors on the means (p). The data generation process involves sampling from these distributions, followed by a thresholding mechanism to generate discrete observations (X(n) a).

  • Domain 3 (Synthetic and Real Data): The model is evaluated across synthetic domains (BNs, discretized Gaussians) and real annotation datasets. It shows competitive performance against classical methods like Stan's Conditional Posterior Marginal (CPM) estimator, particularly when sufficient training data is available.

Performance Evaluation and Comparative Analysis

The Marformer demonstrates superior performance in several critical metrics:

  1. Accuracy: Larger Marformers reliably achieve lower KL divergence compared to smaller versions. In real annotation data, the Marformer outperforms evaluated baselines at the largest training size while running significantly faster than Stan's cost.

  2. Generalization: Empirical baselines (Unigram Pool, Structured NB, Log-Linear) generally exhibit higher log-loss and squared error than both the Marformer and Stan variants when training data scales up in both Item Generalization and Judge Generalization settings.

  3. Speed: The Marformer is substantially faster than evaluated generative baselines. Its runtime for approximating marginal inference in BNs grows only quadratically with G (number of variables). For example, at Itrain = 175, the Marformer training time was approximately 22 minutes, compared to around 162 minutes for Stan CPM.

  4. Calibration: The model is reported as well-calibrated across various readouts (Figure 19), suggesting that its predicted probabilities are reliable for decision-making. However, calibration is not the sole measure of informativeness; low-entropy distributions can still be problematic if they are overconfident.

Key Limitations and Nuances

Despite its strengths, several limitations must be noted:

  • Missing Data Assumption: The justification for masked autoencoding relies on the assumption of MCAR training instances. If the true missingness mechanism is MAR, artificially masked examples may introduce bias into the training process.

  • Joint Distribution Coherence: A fundamental limitation is that the Marformer predicts conditional marginals without explicitly enforcing their compatibility with a coherent joint distribution, which could impact downstream tasks requiring full joint modeling.

  • Calibration Sensitivity: Overconfident conditional predictions can lead to overconfident estimates of Value of Information (VOI) and suboptimal decisions in active learning settings.

  • Overfitting Risk: Deep models predicting output distributions (p theta) are susceptible to overfitting, potentially leading them to predict low-entropy distributions across the board.

Advanced Insights: Iterative Refinement and Probes

Further analysis reveals sophisticated aspects of the Marformer's internal representations:

  • Iterative Evidence Gathering: Analysis of intermediate latent states shows that useful predictions can already be read from hidden states, suggesting an iterative refinement procedure. Early layers gather evidence, while later layers refine the distribution. Specific probes (like Tuned 80d-Lens) show that log-loss improves as more training items become available.

  • Layerwise Readout: Probes fitted for each layer demonstrate this hierarchical information flow: Layer 0 is the input representation, and subsequent layers progressively align latent evidence with parameter coordinates. The final model's performance can be recovered from intermediate representations, indicating that the hidden state captures valuable predictive information early on.

In conclusion, the Marformer represents a powerful, fast feed-forward computation capable of approximating complex marginal inference in graphical models without requiring prior specification of the generative model family. It is highly competitive with classical Bayesian methods when sufficient data is available and offers substantial speed advantages, though careful consideration must be given to its assumptions regarding missing data mechanisms and calibration for practical deployment.

Improvements for AI systems

  1. Bold header: End-to-end Conditional Marginal Prediction in a Single Pass

The Marformer can make all predictions in a single forward pass, allowing for fast, amortized, trainable inference of all the individual missing values in parallel. This enables direct computation of conditional marginals, which is useful for deciding among real-world actions and for choosing what additional information (missing values) to acquire before this decision.

  1. Bold header: Direct Optimization via Conditional Log-Likelihood

The model is trained by maximizing the conditional log-likelihood, which encourages predictions to match the true conditional distributions, leading to a model that is end-to-end differentiable and explicitly optimizes parameters for inference accuracy.

  1. Bold header: Active Feature Acquisition Guidance

Conditional marginals enable active feature acquisition by quantifying the Value of Information (VOI), where VOI(Xj Xs = xs) = Xj P∗(xj Xs = xs) · (risk(ˆa Xs, Xj = xj) − risk(ˆaxj Xs, Xj = xj)) to guide which variables to observe next.

  1. Bold header: Structured Relational Modeling for Complex Domains

The Marformer architecture includes a relational attention mechanism that allows related variables to attend specifically to the attributes j such that i ρ−→ j, enabling the model to predict by analogy and learn complex inter-variable relationships even when training data is sparse.

  1. Bold header: Efficient Inference for Decision Making

Once trained, the Marformer can predict Bayes risk by utilizing a single call to compute, as risk(a Xs = xs) is the conditional expectation P̂x P∗(Xi = xi Xs = xs) · xi, which is faster than methods requiring expensive marginalization or importance reweighting.

Abstract

Real decisions are made under incomplete information. If we observe only some of the random variables we need, we can predict the others. The conditional marginals over the missing variables are the key ingredient for computing Bayes risk and Value of Information (VOI), the expected gain from acquiring one more observation before deciding. We present the Marformer, a Transformer trained to directly predict conditional marginals given any set of observed values. Like BERT, which is trained to predict missing words from context, the Marformer constructs a hidden-vector representation for each distribution p(X i) and iteratively refines it through attention to other distributions p(X j). Unlike generative approaches, the Marformer does not model the full joint distribution, requires no domain knowledge of the data-generating process, and makes all predictions in a single forward pass. We evaluate across three synthetic domains with missing data---Bayesian networks, discretized multivariate Gaussians, and structured annotation data. The Marformer can match or outperform classical missing-data methods, even when those methods are given the true model family and prior that generated the synthetic data. We also evaluate on a real annotation dataset, where the Marformer outperforms the evaluated baselines at the largest training size. In both cases, the Marformer is substantially faster than the evaluated generative baselines.

Sources

Related papers