Skip to main content
QUICK REVIEW

[Paper Review] Verification of deep probabilistic models

Krishnamurthy Dvijotham, Marta Garnelo|arXiv (Cornell University)|Dec 6, 2018
Adversarial Robustness in Machine LearningComputer Science8 references13 citations
TL;DR

This paper proposes a novel verification framework for deep probabilistic models, such as neural processes and variational autoencoders, that ensures model outputs satisfy linear constraints with high probability over latent variable sampling for all conditioning inputs. By leveraging convex duality and probabilistic bounds via the error function, the method efficiently computes rigorous lower bounds on compliance probability, successfully verifying expected properties like monotonicity and convexity in functional regression tasks.

ABSTRACT

Probabilistic models are a critical part of the modern deep learning toolbox - ranging from generative models (VAEs, GANs), sequence to sequence models used in machine translation and speech processing to models over functional spaces (conditional neural processes, neural processes). Given the size and complexity of these models, safely deploying them in applications requires the development of tools to analyze their behavior rigorously and provide some guarantees that these models are consistent with a list of desirable properties or specifications. For example, a machine translation model should produce semantically equivalent outputs for innocuous changes in the input to the model. A functional regression model that is learning a distribution over monotonic functions should predict a larger value at a larger input. Verification of these properties requires a new framework that goes beyond notions of verification studied in deterministic feedforward networks, since requiring worst-case guarantees in probabilistic models is likely to produce conservative or vacuous results. We propose a novel formulation of verification for deep probabilistic models that take in conditioning inputs and sample latent variables in the course of producing an output: We require that the output of the model satisfies a linear constraint with high probability over the sampling of latent variables and for every choice of conditioning input to the model. We show that rigorous lower bounds on the probability that the constraint is satisfied can be obtained efficiently. Experiments with neural processes show that several properties of interest while modeling functional spaces can be modeled within this framework (monotonicity, convexity) and verified efficiently using our algorithms

Motivation & Objective

  • To develop a formal verification framework for deep probabilistic models that ensures outputs satisfy desired properties with high probability over latent variable sampling.
  • To address the limitations of worst-case verification in probabilistic models, which often yield vacuous or overly conservative results.
  • To enable efficient, scalable verification of properties such as monotonicity, convexity, and semantic invariance in models like neural processes and conditional VAEs.
  • To provide computationally tractable lower bounds on the probability that model outputs satisfy linear constraints, even under stochasticity in latent variables.

Proposed method

  • Formulates verification as ensuring that for all conditioning inputs x in a set X, the probability that cᵀf(x,z) + d ≥ 0 is bounded by ε, i.e., P(cᵀf(x,z) + d ≥ 0) ≤ ε.
  • Uses convex duality to derive a dual function G(λ, z) that upper-bounds the linear form cᵀf(x,z) + d, enabling probabilistic relaxation.
  • Applies weak duality to bound the violation probability via P(G(λ, z) ≥ 0) + P(z ∉ [α, β]), where [α, β] is a bounded region of latent space.
  • Expresses the probability P(G(λ, z) ≥ 0) in closed form using the complementary error function (erfc), leveraging the Gaussian distribution of z.
  • Optimizes the bound over dual variables λ and bounds α, β using gradient descent, parameterizing β = α + η² to enable unconstrained optimization.
  • Employs reparameterization to handle non-standard normal latent variables by transforming them into standard normal variables.

Experimental results

Research questions

  • RQ1Can we verify that deep probabilistic models produce outputs satisfying linear constraints with high probability across all conditioning inputs?
  • RQ2How can we efficiently compute lower bounds on the probability that a model's output satisfies a given specification, such as monotonicity or convexity?
  • RQ3Can the proposed framework be applied to functional regression models like neural processes to verify structural properties of the predicted functions?
  • RQ4Does the method yield non-vacuous, non-conservative bounds in practice, even when latent variables are sampled from a Gaussian distribution?

Key findings

  • The verification framework successfully computes non-vacuous, rigorous lower bounds on the probability that model outputs satisfy linear constraints, even in high-dimensional latent spaces.
  • For neural processes trained on cumulative distribution functions, the method verified that predicted outputs remain within expected bounds (e.g., [0,1]) with probability ≥ 0.99 over target input intervals.
  • The upper and lower bounds on predictions increased monotonically with input δ, confirming expected CDF-like behavior across the domain.
  • The optimization of the probabilistic bound via gradient descent over λ, α, and β converged efficiently in practice, despite the non-convexity of the problem.
  • The method demonstrated that neural processes can be verified to produce outputs consistent with known functional properties such as monotonicity and boundedness.

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.