arXiv:2608.31120cs.LGAug 2026

Manuscript Offprint

arXiv:2608.31120

On the Complexity of the Compatibility Problem for Succinctly Encoded Conditional Distributions

Guy Emerson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The motivation for this paper is the investigation of the trade-offs implicit in probabilistic models used in machine learning. Models are often used to make predictions in the form of conditional probabilities. However, a pair of conditional distributions p(x∣y)p(x|y) and p(y∣x)p(y|x) may not be compatible with any joint distribution p(x,y)p(x,y). Given two such conditionals, determining if there exists a compatible joint is known as the compatibility problem. For discrete random variables, when the conditionals are encoded as probability tables, the compatibility problem has a known solution, which is computationally tractable. In this paper, we formalise and study a succinct version of the problem, encoding conditional distributions as arithmetic circuits. This is applicable to practical applications of probabilistic modelling in high-dimensional settings, including neural network models. We show that, for succinct circuit representations of conditionals, the compatibility problem is intractable. In the case that all probabilities are non-zero, the problem is co-NP-complete. In the case that probabilities can be zero, we give examples to demonstrate that several notions of compatibility can be distinguished, and we prove that multiple versions of the problem are PSPACE-complete. Furthermore, we show that, assuming the polynomial hierarchy does not collapse, there exist compatible succinct conditionals whose joint cannot be expressed succinctly. Implications of these results for probabilistic modelling and machine learning are discussed.

1 Introduction

A joint distribution p(x,y)p(x,y) over X×Y\mathcal{X} \times \mathcal{Y} implicitly defines conditional distributions p(x∣y)=p(x,y)∑x′p(x′,y)p(x|y) = \frac{p(x,y)}{\sum_{x'} p(x',y)} and p(y∣x)=p(x,y)∑y′p(x,y′)p(y|x) = \frac{p(x,y)}{\sum_{y'} p(x,y')}. Conversely, determining whether conditional distributions p(x∣y)p(x|y) and p(y∣x)p(y|x) are compatible with some joint distribution p(x,y)p(x,y) is known as the compatibility problem (Arnold and Press, 1989). It can be solved as a constraint satisfaction problem using techniques from linear algebra (Arnold et al., 2004).

However, if either of the spaces X and Y are large, iterating over all points is computationally expensive. A number of authors have sought more efficient algorithms (for example: Tian et al., 2008; Ip and Wang, 2009; Chen, 2010; Kuo and Wang, 2011; Yao et al., 2014; Kuo et al., 2017; Miranda and Zaffalon, 2020). However, the question remains how far the cost can be reduced.

In fact, in high-dimensional settings, it would be prohibitive to even store a distribution as an enumeration of all values. In practice, a probabilistic model might store only a small number of parameters, which can be used to calculate any particular probability. In other words, the probabilistic model is a succinct representation, in the sense of Galperin and Wigderson (1983), but applied to distributions rather than graphs. However, to our best knowledge, the compatibility problem has not been studied in the succinct setting. In this paper, we formalise such a probability distribution as a succinct arithmetic circuit (Darwiche, 2003) with a further constraint that all values can be expressed succinctly (that is, with a bounded number of digits).

This setting includes Bayesian networks, where inference is known to be #P-complete (Roth, 1996). At first sight, it seems possible that the compatibility problem might be simpler than Bayesian inference, since the conditionals are provided as input, and do not need to be computed from scratch.

The main result of this paper is that the succinct compatibility problem is intractable. If all probabilities are non-zero, the problem is co-NP-complete, because incompatibilities can be identified locally. If probabilities can be zero, the non-zero conditional probabilities define a directed graph over X×Y\mathcal{X} \times \mathcal{Y}. This graph may have multiple strongly connected components, and we could require compatibility in all components (strong compatibility), or in at least one (weak compatibility). We show the strong and weak compatibility problems are both PSPACE-complete.

If a joint exists, we may also wish to know whether it can be expressed succinctly. We define two notions of tractable compatibility, a weaker one requiring that each probability value requires only polynomially many digits to express, and a stronger one requiring that the joint can be represented as a succinct circuit. We show that determining compatibility with a tractably valued joint is still PSPACE-complete, while determining compatibility with a succinctly expressible joint is only Σ2P\Sigma_2^P-complete. Assuming that Σ2P≠PSPACE\Sigma_2^P \neq \text{PSPACE}, these results mean that there are families of compatible succinct conditionals whose joints have succinctly expressible values but which nonetheless cannot be represented as succinct circuits.

References (19)