Skip to main content
QUICK REVIEW

[Paper Review] The Random Conditional Distribution for Higher-Order Probabilistic Inference

Zenna Tavares, Xin Zhang|arXiv (Cornell University)|Mar 25, 2019
Adversarial Robustness in Machine LearningComputer Science35 references3 citations
TL;DR

This paper introduces the random conditional distribution—a higher-order probabilistic construct that treats distributional properties (like expectation, variance, and entropy) as random variables—enabling direct conditioning on these properties within probabilistic programming. Implemented in the Omega language, it allows expressive, composable inference over uncertain distributional characteristics, demonstrated in fairness and robustness applications with 98.8% average robustness across 10 sampled parameters in 86 seconds.

ABSTRACT

The need to condition distributional properties such as expectation, variance, and entropy arises in algorithmic fairness, model simplification, robustness and many other areas. At face value however, distributional properties are not random variables, and hence conditioning them is a semantic error and type error in probabilistic programming languages. On the other hand, distributional properties are contingent on other variables in the model, change in value when we observe more information, and hence in a precise sense are random variables too. In order to capture the uncertain over distributional properties, we introduce a probability construct -- the random conditional distribution -- and incorporate it into a probabilistic programming language Omega. A random conditional distribution is a higher-order random variable whose realizations are themselves conditional random variables. In Omega we extend distributional properties of random variables to random conditional distributions, such that for example while the expectation a real valued random variable is a real value, the expectation of a random conditional distribution is a distribution over expectations. As a consequence, it requires minimal syntax to encode inference problems over distributional properties, which so far have evaded treatment within probabilistic programming systems and probabilistic modeling in general. We demonstrate our approach case studies in algorithmic fairness and robustness.

Motivation & Objective

  • Address the lack of composable, automated mechanisms to condition on distributional properties such as expectation, variance, and entropy in probabilistic programming languages.
  • Overcome the semantic and type-level inconsistency in treating distributional properties as fixed values when they are inherently uncertain and context-dependent.
  • Enable expressive modeling of uncertainty over distributional properties by introducing a higher-order random variable whose realizations are conditional distributions.
  • Demonstrate the utility of this construct in real-world problems such as algorithmic fairness and model robustness, where constraints on distributional behavior are critical.
  • Provide a formal, measure-theoretic foundation for probabilistic programming that supports nested and conditional inference over distributional statistics.

Proposed method

  • Define the random conditional distribution $X \parallel \Theta$ as a higher-order random variable whose realizations are conditional random variables, enabling uncertainty over distributional properties.
  • Integrate the construct into the Omega probabilistic programming language, which treats measure-theoretic objects as primitives, ensuring type safety and semantic consistency.
  • Extend standard distributional operations (e.g., expectation, variance) to apply to random conditional distributions, so that the expectation of such a distribution becomes a distribution over expectations.
  • Use nested inference and probabilistic inference engines to compute and condition on these higher-order constructs, enabling queries like 'what is the distribution of expected outcomes given observed constraints?'
  • Apply the framework to real-world problems by encoding fairness and robustness constraints as distributional properties to be conditioned upon.
  • Leverage sampling and approximate inference (e.g., via fast gradient sign method) to evaluate robustness and fairness, with parameters sampled under the random conditional distribution constraint.

Experimental results

Research questions

  • RQ1How can distributional properties such as expectation and variance be treated as random variables in a type-safe and composable way within probabilistic programming?
  • RQ2What formal and semantic foundation enables conditioning on uncertain distributional properties without violating type or semantic rules in probabilistic languages?
  • RQ3Can higher-order probabilistic constructs like random conditional distributions unify diverse inference problems such as fairness verification and adversarial robustness?
  • RQ4How efficiently can inference over distributional properties be performed in practice, particularly in complex models like neural networks?
  • RQ5To what extent can prior knowledge about input distributions be encoded declaratively using random conditional distributions to improve model behavior?

Key findings

  • The random conditional distribution enables conditioning on distributional properties such as expectation and variance, treating them as random variables rather than fixed values.
  • In a fairness case study, the framework allows conditioning a classifier to satisfy equality of opportunity by randomizing and constraining the probability of positive classification across groups.
  • For robustness, the method achieved 96.6%–100% robustness across 1,000 inputs in 9 out of 10 sampled parameter configurations, with an average of 98.8% robustness.
  • The approach generated 10 robust parameters in only 86 seconds, demonstrating computational efficiency despite approximation in inference and solver precision.
  • The framework supports composable, declarative modeling of constraints on distributional behavior, reducing the need for complex, hand-crafted generative models.
  • The method improves model behavior in fairness and robustness tasks without competing directly with existing optimization-based methods, instead providing a higher-level, expressive alternative.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.