Probabilistic Counterfactual Inference for Discrete Outcomes in Gaussian-Process Causal Models

arXiv:2610.08689 · cs.LG · Submitted 2026-10-06 · 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: "Probabilistic Counterfactual Inference for Discrete Outcomes in Gaussian-Process Causal Models".

Jane: The gist: This paper introduces a unified probabilistic framework for counterfactual inference in Gaussian-process structural causal models (GP-SCMs) with heterogeneous variable types, deriving exact noise-abduction procedures for binary, categorical,

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

Title and authors: Tom: So we're looking at this paper called "Probabilistic Counterfactual Inference for Discrete Outcomes in Gaussian-Process Causal Models." It’s dealing with how to do counterfactual inference when you have continuous variables but some of those variables are discrete, like categories or binary things.

Jane: That sounds complicated. Can you explain what that actually means for someone who just uses a normal AI model? I'm picturing a person walking and they ask, "What if I had chosen option A instead of option B?"

Lu: Basically, this paper introduces a unified framework that pairs Gaussian process predictors with explicit noise mechanisms to handle those different types of discrete outcomes. It tackles binary, categorical, and ordinal variables in one go by deriving exact noise-abduction procedures for each type.

Meng: Exact procedures sound good on paper, but how does that translate to something we can actually deploy at scale? We’re talking about production systems here.

Lalam: The core idea is defining a counterfactual query as three steps: Abduction, Action, and Prediction, where the hard part is the Abduction step because it depends entirely on the structural equations of your model.

Tom: Exactly. And this paper focuses heavily on that first step. They show how to isolate the factual noise using different coupling mechanisms depending on what kind of discrete variable you have.

Jane: So for a binary outcome, they use a uniform threshold against the class probability, and for categorical outcomes with three or more classes, they use a vector of independent Gumbel perturbations in what they call the Gumbel-max coupling.

Lu: And for ordinal outcomes, which are ordered like "small" to "medium" to "large," they use a single shared Gaussian noise variable pushed through the factual and counterfactual cutpoints of the same monotone threshold function.

Meng: That sounds like a lot of different specialized math tools just to handle different data types. How much computational overhead is this compared to just using a standard Gaussian process model?

Tom: The paper shows that each of these specific couplings reproduces the fitted model’s observational and interventional distributions exactly. They prove consistency in Corollary one which means intervening at the factual parent value itself recovers the observed factual outcome with certainty <ref:2610.08689#pg1>.

Jane: That sounds like a very strong claim. If you can reproduce the exact distributions, it means your inference is perfectly matching what the structural causal model predicts for those specific scenarios.

Lu: The real meat of this work is showing how these couplings work together to achieve that consistency and proving that they are the right choice based on variable type. They validate this theoretically and experimentally using synthetic SCMs with known ground-truth counterfactuals.

Title and authors: Meng: But what happens when the underlying structure isn't perfectly specified? Does this framework still hold up if our initial model assumptions are slightly off?

Tom: That’s where they show some interesting results regarding misspecification. They found that "Misspecification is invisible to the fit—but only in one direction, and only partly correctable." For instance, fitting a categorical estimator to data whose true mechanism is the ordinal cut-point model leaves the TVint at the same order as the correctly specified rows, but TVcf is still off by roughly zero point two five.

Jane: So even if you get your basic fit right on one part, a small error creeps into your counterfactual prediction, but they show that refitting those nodes with their ordinal estimator recovers most of that gap, by factors of three point four and six point one in some cases while TVint moves by far less.

Lu: That suggests the coupling choice itself is more important than just tuning the Gaussian process fit within a single family of estimators, because "the choice of coupling, not the quality of the underlying GP fit, is what determines counterfactual accuracy."

Tom: It confirms that structural knowledge about a variable's type should constrain the admissible couplings before you even look at your data because "the gap between type-appropriate couplings dwarfs the gains reported from tuning within a single family."

Meng: That’s practical. If we know our variables are ordinal, we should be using that specific ordinal coupling, not just defaulting to some generic approach. What about the implementation side? How sure are we in these results when we look at real traffic?

Lalam: The full estimator involves a nested Monte Carlo approach where the pair of the factual outcome and its counterfactual counterpart has to be a single draw from the joint posterior to ensure Corollary one holds exactly <ref:2610.08689#pg1>.

Jane: That sounds computationally heavy, but it’s what makes it rigorous. It’s not just plugging in a mean; you have to sample both parts together for that exact guarantee of consistency.

Tom: And they also show how this works with ordinal nodes by using a learned mechanism parameterization where cutpoints are inferred jointly with the latent function, allowing them to estimate the noise posterior as a "continuous mixture of truncated normals rather than a single one" when averaging over both fF and theta.

Lu: That joint estimation of cutpoints is key because it lets them handle situations where the actual boundaries of your variable are unknown without needing prior domain knowledge about those boundaries.

Meng: If we have to learn those parameters jointly, what’s the cost? Does that learning process itself become a bottleneck when running inference on live data?

Title and authors: Lalam: The oracle isolates the coupling, showing that "roughly nine tenths of it is the coupling, not the Gaussian Process." This means you can focus your computational effort on selecting the right mechanism rather than chasing every possible GP configuration.

Tom: It's clear that ablation results confirm this: "Abduction is what does the work (skipping it costs an order of magnitude in accuracy on the Single-parent SCM)." The coupling choice matters more than the complexity of the GP model structure itself.

Jane: So, to wrap up, this paper is really about providing a mathematically sound way to perform counterfactual inference on causal models that have mixed continuous and discrete variables by giving us specific, exact noise abduction procedures for each type.

Lu: It moves beyond just continuous variables and shows how to handle the complexity introduced by categorical and ordinal nodes in GP-SCMs using tailored couplings.

Meng: For deployment, the implication is that we need to be very careful about our model architecture when designing causal graphs that include these mixed node types, because the wrong coupling choice will cause significant errors.

Lalam: The limitations they state are important: one of them is that this validation is against synthetic SCMs with known mechanisms, and another is structural because "no mechanism that abducts noise once and reuses it across interventions can be optimal simultaneously for every pair of interventional distributions."

Tom: That structural constraint means we can't just rely on observational fit to tell us the best coupling; we have to start there based on the variable type.

Jane: So, while this work is validated on synthetic data, it gives us a concrete recipe for how to set up those couplings for real-world applications involving mixed discrete outcomes in causal models.

Lu: The full title of this paper is "Probabilistic Counterfactual Inference for Discrete Outcomes in Gaussian-Process Causal Models," and the results show that choosing the correct coupling mechanism based on variable type leads to exactly reproduced distributions and more robust counterfactual predictions when compared to simply tuning within a single family.

Meng: For us in production, knowing this distinction between fitting errors and structural coupling errors is valuable because it tells us where our model is actually breaking down.

Lalam: This paper provides the tools for that diagnosis, showing that we can distinguish between fitting issues and structural coupling issues by observing how TVint behaves when fitted to ordinal data versus categorical data.

Tom: It’s a solid piece of work because it isolates the coupling as the primary driver of accuracy, which is what we need when moving from theory to shipped models.

Jane: And this framework, "Probabilistic Counterfactual Inference for Discrete Outcomes in Gaussian-Process Causal Models," gives us a much clearer path forward for building robust causal AI systems that can handle these mixed data types reliably.

The paper's summary: Tom: So, we’re looking at the summary of this paper, "Probabilistic Counterfactual Inference for Discrete Outcomes in Gaussian-Process Causal Models." Basically, they show you how to use these Gaussian process models to figure out what would have happened if you had chosen a different option when some of those options are discrete—like binary choices or categories.

Jane: That’s a big deal for people who build AI systems that need to make decisions under uncertainty. They introduce this unified framework that handles binary, categorical, and ordinal variables all at once by using specific noise abduction procedures tailored to each type of data.

Lu: The core idea is defining the counterfactual query as three steps: Abduction, Action, and Prediction. They say the hard part is the Abduction step because it depends entirely on how your structural equations are set up.

Meng: So they’re showing you how to isolate that factual noise using different coupling mechanisms depending on whether you’ve got a binary outcome or an ordinal one.

Tom: For binary outcomes, they use a uniform threshold against the class probability. For categorical outcomes with three or more classes, they use a vector of independent Gumbel perturbations in what they call the Gumbel-max coupling.

Jane: And for ordinal outcomes, which are ordered like small to medium to large, they use a single shared Gaussian noise variable pushed through the factual and counterfactual cutpoints of the same monotone threshold function.

Lu: They prove that each of these specific couplings reproduces the fitted model’s observational and interventional distributions exactly. That consistency is shown in Corollary one which means intervening at the factual parent value itself recovers the observed factual outcome with certainty.

Tom: And they show some interesting results regarding misspecification. They found that "Misspecification is invisible to the fit—but only in one direction, and only partly correctable." For instance, fitting a categorical estimator to data whose true mechanism is the ordinal cut-point model leaves the TVint at the same order as the correctly specified rows, but TVcf is still off by roughly zero point two five.

Jane: So even if you get your basic fit right on one part, a small error creeps into your counterfactual prediction, but they show that refitting those nodes with their ordinal estimator recovers most of that gap by factors of three point four and six point one in some cases while TVint moves by far less.

Lu: The real meat is showing how these couplings work together to achieve that consistency and proving that they are the right choice based on variable type. They validate this theoretically and experimentally using synthetic SCMs with known ground-truth counterfactuals.

Tom: They confirm that the choice of coupling, not just the quality of the Gaussian process fit within a single family, is what determines counterfactual accuracy.

Jane: It confirms that structural knowledge about a variable's type should constrain the admissible couplings before you even look at your data because "the gap between type-appropriate couplings dwarfs the gains reported from tuning within a single family."

Meng: That means if we know our variables are ordinal, we should be using that specific ordinal coupling instead of just defaulting to some generic approach.

Lu: And they show how you can infer unknown ordinal cutpoints by modeling them as learned mechanism parameters, so you don't need prior domain knowledge about those boundaries.

Tom: The full estimator involves a nested Monte Carlo approach where the pair of the factual outcome and its counterfactual counterpart has to be a single draw from the joint posterior to ensure Corollary one holds exactly.

Jane: That sounds computationally heavy, but it’s what makes it rigorous. It’s not just plugging in a mean; you have to sample both parts together for that exact guarantee of consistency.

Lu: The oracle isolates the coupling, showing that "roughly nine tenths of it is the coupling, not the Gaussian Process." This means you can focus your computational effort on selecting the right mechanism rather than chasing every possible GP configuration.

Tom: Ablation results confirm this: "Abduction is what does the work (skipping it costs an order of magnitude in accuracy on the Single-parent SCM)." The coupling choice matters more than the complexity of the GP model structure itself.

Jane: This paper provides a concrete recipe for how to set up those couplings for real-world applications involving mixed discrete outcomes in causal models. Next, they look at how this applies to ordinal variables using a continuous mixture of truncated normals when averaging over both the factual outcome and theta s ∼ N (ˆθ, Σθ).

The paper's improvements: Tom: So, we're looking at how they suggest improving this framework for when things go wrong with our models. They highlight that "Misspecification is invisible to the fit—but only in one direction, and only partly correctable."

Jane: That means if you’re fitting a categorical estimator to data whose true mechanism is actually ordinal, you can still get your main accuracy metric at the same level as the right rows but your counterfactual error keeps drifting around zero point two five.

Lu: But they show that refitting those specific nodes with their ordinal estimator recovers most of that gap by factors of three point four and six point one in some cases while TVint moves by far less.

Tom: So it points back to the coupling choice being more important than just tuning within a single family of estimators. That's the core mechanic they’re pushing.

Jane: They argue that structural knowledge about a variable's type should constrain the admissible couplings before you even look at your data because "the gap between type-appropriate couplings dwarfs the gains reported from tuning within a single family."

Lu: They also show how you can infer unknown ordinal cutpoints by modeling them as learned mechanism parameters, so you don't need prior domain knowledge about those boundaries.

Tom: The full estimator requires a nested Monte Carlo approach where the pair of factual outcome and its counterfactual counterpart has to be a single draw from the joint posterior to ensure Corollary one holds exactly.

Jane: That sounds computationally heavy, but it’s what makes it rigorous. It’s not just plugging in a mean; you have to sample both parts together for that exact guarantee of consistency.

Lu: They also show how ordinal variables can be handled by using a learned mechanism parameterization where cutpoints are inferred jointly with the latent function, allowing them to estimate the noise posterior as a "continuous mixture of truncated normals rather than a single one" when averaging over both fF and theta s ∼ N (ˆθ, Σθ).

Tom: That joint estimation of cutpoints is key because it lets them handle situations where the actual boundaries of your variable are unknown without needing prior domain knowledge about those boundaries.

Jane: So, while this work is validated on synthetic SCMs with known mechanisms, the authors state that no mechanism that abducts noise once and reuses it across interventions can be optimal simultaneously for every pair of interventional distributions.

Lu: That structural constraint means we can't just rely on observational fit to tell us the best coupling; we have to start there based on the variable type.

Tom: Ablation results confirm this: "Abduction is what does the work (skipping it costs an order of magnitude in accuracy on the Single-parent SCM)." The coupling choice matters more than the complexity of the GP model structure itself.

Jane: This paper provides a concrete recipe for how to set up those couplings for real-world applications involving mixed discrete outcomes in causal models. Next, they look at how this applies to ordinal variables using a continuous mixture of truncated normals when averaging over both the factual outcome and theta s ∼ N (ˆθ, Σθ).

Conclusion: Tom: So, to wrap up, this paper is about taking Gaussian process structural causal models and making them work better for discrete variables by introducing these specific noise abduction procedures for binary, categorical, and ordinal outcomes.

Jane: It shows that if you use the right coupling mechanism—the uniform threshold for binary stuff or the Gumbel-max coupling for categories—you can reproduce the model's distributions exactly.

Lu: The big shift is showing how these couplings work together to achieve that consistency, proving it holds true across observational and interventional data.

Meng: For us shipping models, it means we need to be very careful about our causal graphs when they involve these mixed node types because the wrong coupling choice will cause significant errors in deployment.

Lalam: I’m confident that the structural constraint—that you can't use a single noise mechanism optimally for every pair of interventional distributions—is what grounds this method.

Tom: And they show that "the gap between type-appropriate couplings dwarfs the gains reported from tuning within a single family." So, focus on the structure first.

Jane: It gives us a way to diagnose errors better too, because when you fit ordinal data with a categorical estimator, you see TVint at the same order as correctly specified rows but TVcf is still off by zero point two five.

Lu: They also show that for ordinal nodes, they can infer unknown cutpoints by modeling them as learned mechanism parameters rather than just using fixed values from the start.

Meng: So we’re talking about a system that can learn the structure of the data itself to make those inferences exact, which is important when we don't have perfect domain knowledge on every single variable boundary.

Lalam: I think it makes causal inference much more robust for real-world AI because it moves past just fitting a curve and actually models the underlying noise process correctly.

Tom: So in short, this paper, "Probabilistic Counterfactual Inference for Discrete Outcomes in Gaussian-Process Causal Models," proves that choosing the right coupling based on variable type is what determines counterfactual accuracy.

Jane: It’s a solid piece of work because it isolates the coupling as the primary driver of accuracy, which is what we need when moving from theory to shipped models.

Lu: The limitations they state are important: one of them is that this validation is against synthetic SCMs with known mechanisms, and another is structural because no single noise mechanism can be optimal for every pair of interventional distributions.

Meng: So it stops working in the sense that we can't guarantee optimality across all possible intervention scenarios at once, which is a big caveat for scaling this up.

Lalam: But the way they handle ordinal variables with a continuous mixture of truncated normals when averaging over both fF and theta gives us a very solid path forward for those ordered data types.

Juliette Sinnott, Amir-Hossein Karimi, Mohammad Kohandel

Department of Applied Mathematics, University of Waterloo · Department of Electrical and Computer Engineering, University of Waterloo · Vector Institute for Artificial Intelligence

cs.LG

Submitted: 2026-10-06

Updated: 2026-10-06

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

Importance score: 77/100

The gist: The gist: This paper introduces a unified probabilistic framework for counterfactual inference in Gaussian-process structural causal models (GP-SCMs) with heterogeneous variable types, deriving exact

Key concepts

Counterfactual Inference
This involves answering 'what if' questions about a causal model, such as what would happen to a variable if it had taken a different value than what was actually observed. The process typically requires identifying the underlying noise and then using that information to predict the outcome under an alternative scenario.
Noise-Abduction Mechanisms
These are specific mathematical procedures used to isolate the underlying, unobserved noise in a causal model based on the type of outcome variable. The paper introduces distinct methods—like a uniform threshold for binary data or Gumbel perturbations for categorical data—to find the most consistent noise structure.
Coupling Misspecification
This refers to using an inappropriate mathematical relationship (coupling) between different parts of the model, such as fitting an ordinal outcome with a categorical coupling. The results show that this mismatch significantly degrades counterfactual accuracy, even when the overall model fit looks good.
GP-SCMs
Gaussian-process structural causal models are a type of statistical model used to represent causal relationships where some variables have continuous values (like those modeled by a Gaussian process) and others might be discrete. The paper extends this framework to handle these mixed variable types.

Summary

The gist: This paper introduces a unified probabilistic framework for counterfactual inference in Gaussian-process structural causal models (GP-SCMs) with heterogeneous variable types, deriving exact noise-abduction procedures for binary, categorical, and ordinal outcomes and proving that each reproduces its fitted model’s observational and interventional distributions exactly.

Counterfactual Inference Framework

The paper defines counterfactual queries as asking what would have happened if a variable had taken a different value given an observation xF. These steps are Abduction, Action, and Prediction. Typically, the most challenging step in this process is Abduction because the method to isolate the factual noise depends on the form of the structural equations.

Noise-Abduction Mechanisms

The paper introduces three distinct coupling mechanisms for discrete outcomes based on variable type. For a binary outcome, a single scalar noise Ur ∼ Uniform(0, 1), thresholded against the class probability is used as the unique coupling consistent with two Bernoulli marginals under monotonicity. For categorical outcomes with C ≥ 3 unordered classes, a vector of C independent Gumbel perturbations is used in the Gumbel-max coupling. For ordinal outcomes, a single shared Gaussian Nr pushed through the factual and counterfactual cutpoints of the same monotone threshold function is used in the comonotone coupling.

Compatibility and Consistency

The paper proves that each coupling reproduces its fitted model’s observational and interventional distributions exactly. The consistency is demonstrated in Corollary 1, which states that intervening at the factual parent value itself recovers the observed factual outcome with certainty.

Model Misspecification and Robustness

The results show that Misspecification is invisible to the fit — but only in one direction, and only partly correctable. Fitting the categorical estimator to data whose true mechanism is the ordinal cut-point model leaves TVint at the same order as the correctly specified rows, while TVcf is still off by roughly 0.25. In contrast, refitting these nodes with Proposition 2’s ordinal estimator recovers most of that gap, by factors of 3.4 and 6.1, while TVint moves by far less. Furthermore, More data does not fix the wrong coupling is shown because TVint keeps improving while TVcf flattens onto a floor near 0.21–0.24 when the coupling is wrong.

Conclusion on Coupling Choice

The paper concludes that the choice of coupling, not the quality of the underlying GP fit, is what determines counterfactual accuracy. The structural knowledge of a variable's type should constrain the admissible couplings before any data is seen because the gap between type-appropriate couplings dwarfs the gains reported from tuning within a single family.

Validation and Implementation

The method is validated on synthetic SCMs with known ground-truth counterfactuals, showing that for the Chain SCM’s terminal node, its fitted equation is unchanged between the two arms, yet its counterfactual accuracy improves because it is fed a more accurate mediator counterfactual. The full estimator involves a nested Monte Carlo approach where the pair (fF,˜fc) must be a single draw from the joint posterior to ensure Corollary 1 holds exactly. The oracle isolates the coupling, showing that roughly nine tenths of it is the coupling, not the Gaussian Process.

Ordinal Counterfactuals

For ordinal nodes, Proposition 2 uses a learned mechanism parameterization where cutpoints are inferred jointly with the latent function. This approach allows for the estimation of the noise posterior as a continuous mixture of truncated normals rather than a single one when averaging over both fF r and θ. The consistency check shows that if p(θ) = δθ0, the estimator reduces exactly to the construction used in Chu and Ghahramani’s original work.

Limitations

Two limitations are noted: first, validation is against synthetic SCMs with known mechanisms, and second, the constraint is structural because no mechanism that abducts noise once and reuses it across interventions can be optimal simultaneously for every pair of interventional distributions. The coupling family is a modelling decision made on structural grounds, not one the observational fit can be trusted to reveal at any sample size.

Reproducibility

The paper states that Our theoretical claims are proved in full in Appendix A.6, with assumptions stated alongside each result and the Gaussian process background they build on recalled in Appendix A.1. All experiments use synthetic SCMs whose generating equations are given explicitly in §4 and Appendix A.2, so exact ground-truth counterfactuals are available in closed form rather than estimated. The full training and evaluation protocol (sample sizes, seeds, and Monte Carlo budgets) is specified in Appendix A.3, and a Monte Carlo convergence check is included there.

Ablation Results

Ablating the estimator confirms the coupling rather than the GP itself. Abduction is what does the work (skipping it costs an order of magnitude in accuracy on the Single-parent SCM). The oracle isolates the coupling, showing that roughly nine tenths of it is the coupling, not the Gaussian Process. The comparison shows that the gap between type-appropriate couplings dwarfs the gains reported from tuning within a single family.

Improvements for AI systems

  1. Improved Counterfactual Inference for Discrete Outcomes: The system can now compute exact conditional noise-abduction procedures for binary variables using a uniform threshold for binary variables, Gumbel-max race for nominal categories, and a latent Gaussian cut-point model for ordinal ones, instead of relying on additive Gaussian noise which is insufficient.

  2. Enhanced Model Robustness to Coupling Misspecification: The system can detect when the coupling is incorrect by observing that forcing a false order onto nominal data instead degrades the fitted equation itself, rather than just affecting the counterfactual error, leading to more structurally sound model selection.

  3. Accurate Ordinal Counterfactual Prediction: For ordinal variables, the system can compute counterfactual class probabilities using a comonotone coupling where a single shared Gaussian Nr, pushed through the factual and counterfactual cutpoints of the same monotone threshold function is used, providing a theoretically grounded method for handling ordered data.

  4. Data-Driven Cutpoint Inference: The system can infer unknown ordinal cutpoints by modeling them as learned mechanism parameters, allowing it to handle situations where the cutpoints of a variable are unknown without requiring prior domain knowledge of the boundaries.

  5. Superior Error Diagnosis: The system can distinguish between fitting errors and structural coupling errors; specifically, when fitting the categorical estimator to ordinal data, it can observe that TVint at the same order as the correctly specified rows, while TVcf is still off by roughly 0.25, allowing for precise diagnosis of where model failure occurs.

  6. Improved Uncertainty Quantification in Counterfactuals: By using a nested Monte Carlo approach involving marginalising over both the GP posterior and θ (s) ∼ N (ˆθ, Σθ), the system provides a more rigorous and accurate estimate of counterfactual uncertainty compared to simply using the plug-in posterior mean.

Abstract

Counterfactual inference in Gaussian-process structural causal models (GP-SCMs) has been developed primarily for continuous endogenous variables, limiting applicability to causal graphs that contain discrete child nodes with continuous parents. We introduce a unified probabilistic framework for counterfactual inference with heterogeneous variable types by pairing GP predictors with explicit exogenous noise mechanisms. For discrete outcomes, we derive exact conditional noise-abduction procedures using a uniform threshold for binary variables, a Gumbel-max race for nominal categories, and a latent Gaussian cut-point model for ordinal ones. In each case, we propagate abducted noise through interventions while accounting for posterior uncertainty in the GP latent functions, and prove that the resulting mechanisms reproduce the fitted model's observational and interventional distributions. On synthetic SCMs with known ground-truth counterfactuals, we evaluate estimation accuracy, consistency, and robustness to coupling misspecification. A key finding is that applying a categorical coupling to ordinal data inflates counterfactual error roughly threefold even when observational fit remains comparable, and that this error does not diminish with more data. As the training set grows, the fitted structural equation converges to the truth while the counterfactual error flattens onto a floor. In the reverse direction, forcing a false order onto nominal data instead degrades the fitted equation itself. The choice of coupling must therefore be justified on structural grounds rather than read off the fit.

Sources

Related papers