Abstract
Self-supervised learning methods that mask parts of the input data and train models to predict the missing components have led to significant advances in machine learning. These approaches learn conditional distributions $p(x_T \mid x_S)$ simultaneously, where $x_S$ and $x_T$ are subsets of the observed variables. In this paper, we examine the core problem of when all these conditional distributions are consistent with some joint distribution, and whether common models used in practice can learn consistent conditionals. We explore this problem in two settings. First, for the complementary conditioning sets where $S \cup T$ is the complete set of variables, we introduce the concept of path consistency, a necessary condition for a consistent joint. Second, we consider the case where we have access to $p(x_T \mid x_S)$ for all subsets $S$ and $T$. In this case, we propose the concepts of autoregressive and swap consistency, which we show are necessary and sufficient conditions for a consistent joint. For both settings, we analyze when these consistency conditions hold and show that standard discriminative models may fail to satisfy them. Finally, we corroborate via experiments that proposed consistency measures can be used as proxies for evaluating the consistency of conditionals $p(x_T \mid x_S)$, and common parameterizations may find it hard to learn true conditionals.
Introduction
Modern self-supervised learning (SSL) paradigms, such as those used in BERT or Masked Autoencoders, rely on predicting missing data from context. This process effectively trains a model on a vast array of conditional distributions $p(\text{masked} \mid \text{unmasked})$. While these models achieve high predictive accuracy (external validity), a fundamental theoretical question arises: are these learned conditional "pieces" internally consistent? That is, do they collectively imply a single, coherent joint distribution $p(x)$?
If a model predicts variable $A$ given $B$ and $B$ given $A$ in ways that cannot be reconciled into a single $p(A, B)$, the model lacks a consistent "world model." This paper formalizes this notion of internal consistency and investigates whether standard neural architectures can satisfy it.
Theoretical Framework for Consistency
The authors define three primary metrics to evaluate the coherence of learned conditionals:
- Path Consistency: This concept posits that if one reconstructs a joint distribution by sequentially "filling in" variables, the resulting distribution must be invariant to the order (the path) of variables chosen.
- Autoregressive Path Consistency: A generalization for autoregressive chains, proven to be a necessary and sufficient condition for a set of conditionals to be consistent with a joint distribution.
- Swap Consistency: A local, more computationally efficient check. For any two variables $i$ and $j$, the joint probability must satisfy $p(i|j)p(j) = p(j|i)p(i)$.
Theoretical analysis reveals that standard discriminative models, such as Multi-Layer Perceptrons (MLPs), are often "too flexible." To be perfectly consistent, their parameterization must be restricted to specific exponential families or simple "bag-of-words" distributions—constraints that high-capacity modern models likely violate.
Experimental Evaluation
The researchers evaluated these concepts using both synthetic and real-world datasets:
- Synthetic Bayesian Networks: Directed Acyclic Graphs (DAGs) with 10, 25, and 50 variables served as ground truth joint distributions, allowing for precise measurement of consistency errors.
- Natural Language (BookCorpus): A pre-trained BERT model was tested to see how its internal consistency behaves on real-world text.
Key Results
A critical finding is the high correlation between the proposed metrics and the ground truth consistency. In synthetic experiments, the Pearson correlation between Swap Consistency and Autoregressive consistency reached as high as 0.99. This validates Path and Swap consistency as reliable proxies for a model's internal logic when the true joint distribution is unknown.
Further results showed that standard MLPs struggle to learn true conditionals even with increased depth or embedding size. Interestingly, standard Transformers were outperformed by a specialized "set-invariant" parameterization proposed by the authors. For BERT, consistency improved significantly as context length increased (Swap Consistency error dropped from 0.43 to 0.09 as context grew from 8 to 256 tokens), yet it never reached perfect consistency.
Conclusion
This work highlights a significant gap between predictive performance and internal coherence in SSL models. While current architectures are powerful, they do not naturally satisfy the symmetry and consistency requirements of a true joint distribution. The proposed Path and Swap metrics provide a practical way to monitor this "internal disagreement." Future research is needed to design architectures that inherently encode these fundamental consistency constraints.
Summary updated