Skip to main content
QUICK REVIEW

[Paper Review] Incorporating Interpretable Output Constraints in Bayesian Neural Networks

Wanqian Yang, Lars Lorch|arXiv (Cornell University)|Oct 21, 2020
Bayesian Modeling and Causal InferenceComputer Science23 references6 citations
TL;DR

This paper proposes Output-Constrained Bayesian Neural Networks (OC-BNNs), a framework that incorporates interpretable, user-specified output constraints—such as clinical rules or fairness criteria—into Bayesian neural networks via a sampling-based prior. The method enables black-box inference while ensuring posterior predictions satisfy constraints, demonstrating improved constraint adherence and uncertainty calibration across healthcare, criminal justice, and credit scoring tasks.

ABSTRACT

Domains where supervised models are deployed often come with task-specific constraints, such as prior expert knowledge on the ground-truth function, or desiderata like safety and fairness. We introduce a novel probabilistic framework for reasoning with such constraints and formulate a prior that enables us to effectively incorporate them into Bayesian neural networks (BNNs), including a variant that can be amortized over tasks. The resulting Output-Constrained BNN (OC-BNN) is fully consistent with the Bayesian framework for uncertainty quantification and is amenable to black-box inference. Unlike typical BNN inference in uninterpretable parameter space, OC-BNNs widen the range of functional knowledge that can be incorporated, especially for model users without expertise in machine learning. We demonstrate the efficacy of OC-BNNs on real-world datasets, spanning multiple domains such as healthcare, criminal justice, and credit scoring.

Motivation & Objective

  • To address the challenge of incorporating domain-specific, interpretable functional knowledge—such as clinical rules or fairness constraints—into Bayesian neural networks (BNNs) where traditional priors are uninterpretable in parameter space.
  • To develop a probabilistic framework that formalizes reasoning with output constraints in the Bayesian setting, ensuring consistency with uncertainty quantification.
  • To enable domain experts without machine learning expertise to specify meaningful constraints directly in functional form.
  • To demonstrate the practical utility of OC-BNNs on real-world, high-dimensional datasets across healthcare, criminal justice, and credit scoring.

Proposed method

  • A sampling-based prior is constructed by evaluating how well sampled BNN outputs satisfy user-defined output constraints over input space.
  • The prior assigns higher probability to BNN parameters whose predictions are consistent with the specified constraints, effectively biasing the posterior toward constraint-compliant functions.
  • The framework supports both single-task and amortized inference across multiple tasks via a shared constraint-aware prior.
  • The method is fully compatible with black-box BNN inference algorithms, such as stochastic gradient Langevin dynamics (SGLD), enabling scalable training.
  • Constraints are encoded as functional conditions on the output, such as $ y \in [a,b] $, monotonicity, or equality to a known formula, and are evaluated during sampling.
  • The approach generalizes to both regression and classification tasks, with no need for architectural modifications.

Experimental results

Research questions

  • RQ1Can interpretable output constraints—such as clinical rules or fairness criteria—be effectively encoded into Bayesian neural networks without sacrificing uncertainty quantification?
  • RQ2How can functional knowledge expressed as constraints be translated into a prior over BNN parameters while remaining amenable to black-box inference?
  • RQ3Does enforcing output constraints improve model behavior in real-world, high-stakes applications such as healthcare and criminal justice?
  • RQ4How does the OC-BNN framework compare to standard BNNs in terms of predictive accuracy, uncertainty calibration, and constraint satisfaction?
  • RQ5Can the constraint enforcement mechanism be amortized across multiple tasks without loss of fidelity or computational tractability?

Key findings

  • On a clinical action prediction task, the OC-BNN achieved the lowest recourse effort (0.379) compared to BNN (Full) at 0.419 and BNN (Blind) at 0.529, indicating closer alignment with ground-truth interventions.
  • In the recidivism prediction task with biased training data, the OC-BNN successfully enforced a racial fairness constraint, correcting for model bias without sacrificing accuracy.
  • On the credit scoring task, the OC-BNN reduced recourse effort and improved fairness for underrepresented subpopulations, demonstrating effective constraint-based regularization.
  • All models achieved comparable test accuracy (0.890–0.895), confirming that constraint enforcement did not degrade predictive performance.
  • The OC-BNN maintained proper uncertainty quantification and produced well-calibrated posterior predictions, even in low-data regions.
  • The sampling-based prior enabled effective constraint enforcement across diverse, real-world datasets, validating the framework’s generality and practicality.

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.