Skip to main content
QUICK REVIEW

[Paper Review] Matching Learned Causal Effects of Neural Networks with Domain Priors

Sai Srinivas Kancheti, Abbavaram Gowtham Reddy|arXiv (Cornell University)|Nov 24, 2021
Bayesian Modeling and Causal InferenceComputer Science7 citations
TL;DR

This paper proposes CREDO, a neural network regularization method that aligns learned causal effects with domain priors by gradient-matching between the model’s causal effects and expert-provided prior functions. The method improves model robustness and fairness while maintaining high accuracy across 12 benchmark datasets.

ABSTRACT

A trained neural network can be interpreted as a structural causal model (SCM) that provides the effect of changing input variables on the model's output. However, if training data contains both causal and correlational relationships, a model that optimizes prediction accuracy may not necessarily learn the true causal relationships between input and output variables. On the other hand, expert users often have prior knowledge of the causal relationship between certain input variables and output from domain knowledge. Therefore, we propose a regularization method that aligns the learned causal effects of a neural network with domain priors, including both direct and total causal effects. We show that this approach can generalize to different kinds of domain priors, including monotonicity of causal effect of an input variable on output or zero causal effect of a variable on output for purposes of fairness. Our experiments on twelve benchmark datasets show its utility in regularizing a neural network model to maintain desired causal effects, without compromising on accuracy. Importantly, we also show that a model thus trained is robust and gets improved accuracy on noisy inputs.

Motivation & Objective

  • To address the limitation of neural networks learning spurious correlations instead of true causal relationships when training data contains both causal and correlational patterns.
  • To enable expert users to inject domain knowledge about causal effects—such as monotonicity, zero effects, or specific functional forms—into neural network training.
  • To distinguish and regularize both direct and total causal effects, ensuring more accurate and trustworthy model behavior.
  • To improve model robustness to noisy inputs and out-of-distribution data by enforcing correct causal structure.
  • To enhance fairness in machine learning by enforcing zero causal effect of protected attributes on predictions

Proposed method

  • Formalize direct and total causal effects as gradients of the neural network output with respect to input features.
  • Define a differentiable domain prior function that encodes expert knowledge about the expected shape or sign of causal effects (e.g., positive, negative, monotonic, zero).
  • Introduce a gradient-matching regularizer that minimizes the L2 distance between the gradient of the neural network’s causal effect and the gradient of the domain prior function.
  • Optimize the neural network with a composite loss combining standard prediction loss and the causal regularization loss.
  • Support both direct and total causal effect regularization by computing gradients over the relevant paths in the computational graph.
  • Allow flexible priors: users can specify partial or complete causal knowledge, including functional forms like diminishing returns or U-shaped curves

Experimental results

Research questions

  • RQ1Can a neural network be trained to learn causal effects that align with expert-provided domain priors, even when training data contains confounding correlations?
  • RQ2How does gradient-matching between learned causal effects and domain priors improve model robustness to noisy or out-of-distribution inputs?
  • RQ3Can the proposed method enforce fairness by setting the causal effect of protected attributes to zero, without degrading predictive accuracy?
  • RQ4Does the method generalize across diverse datasets with unknown or complex causal graphs and varying types of domain priors?
  • RQ5How does the method compare to existing fairness algorithms in terms of both fairness metrics and causal attribution accuracy?

Key findings

  • CREDO successfully enforces domain priors on causal effects across 12 benchmark datasets, including COMPAS, AutoMPG, and Boston Housing, with minimal accuracy drop.
  • On the SANGIOVESE and AutoMPG datasets, CREDO models maintained higher accuracy than ERM under increasing Gaussian noise (variance 1.0), showing improved robustness.
  • In fairness evaluation, CREDO improved Disparate Impact from 0.77 (ERM) to 0.84 on the COMPAS dataset for African American vs. white individuals, indicating reduced proxy discrimination.
  • On the Boston Housing dataset, CREDO achieved zero ACDE (Average Causal Direct Effect) for the Black population (0.00 vs. 0.10 for ERM), outperforming standard fairness methods in causal attribution.
  • CREDO achieved a Demographic Parity Difference of 0.66, outperforming ERM (0.86) and matching EG (0.45) while better preserving causal fidelity.
  • Ablation studies confirmed that regularization strength and prior correctness significantly affect performance, with incorrect priors leading to degraded accuracy

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.