Causal Regularization Using Domain Priors

Abbavaram Gowtham Reddy, Sai Srinivas Kancheti, Vineeth N. Balasubramanian, Amit Sharma

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.

Introduction

Standard neural networks are primarily "correlation machines," trained to minimize prediction error without inherently distinguishing between causal relationships and coincidental correlations. For instance, in a BMI prediction model, a specific dataset might suggest that high calorie intake leads to low BMI due to the presence of elite athletes. Such a model fails to capture the true causal mechanism and generalizes poorly. While post-hoc interpretability methods exist, they do not guide the learning process. This paper introduces CREDO (Causal REgularization using Domain priOrs), a framework that incorporates human domain knowledge directly into the training phase to ensure models learn physically or logically sound relationships.

Methodology: Gradient Matching with CREDO

The core innovation of CREDO is gradient matching. Rather than forcing the model to output specific values, CREDO aligns the model’s partial derivatives—representing how the output changes in response to input changes—with the derivatives of a "domain prior function" $g(T)$.

CREDO aligns the learned causal effects of a neural network with domain priors by matching gradients.

This approach offers significant advantages:

  1. Flexibility: Experts can specify qualitative "shapes" (e.g., monotonicity, diminishing returns) instead of precise numerical targets.
  2. Efficiency: It sidesteps complex interventional calculus during training.

CREDO distinguishes between three types of causal effects to provide granular control:

  • Controlled Direct Effect (ACDE): The effect of an input when all other variables are held constant.
  • Natural Direct Effect (ANDE): The effect of an input when mediating variables are allowed to change naturally.
  • Total Causal Effect (ATCE): The combined direct and indirect effect of a variable on the output.

When the exact functional form of a prior is unknown, a hyperparameter search identifies the optimal "shape" that respects qualitative constraints while maximizing validation accuracy.

Experimental Evaluation

The researchers evaluated CREDO across 12 datasets, including synthetic causal graphs (e.g., BNLearn benchmarks like SANGIOVESE and SACHS), custom non-linear benchmarks (logarithmic/trigonometric), and real-world datasets (COMPAS, Boston Housing, Titanic).

Key Results

  • Causal Alignment: In the SANGIOVESE dataset, CREDO reduced the discrepancy between learned and true causal effects by over 100x compared to standard Empirical Risk Minimization (ERM).
  • Performance Stability: Across most benchmarks, CREDO maintained test accuracy within 1% of unregularized models while significantly improving causal correctness.
  • Fairness and Ethics: On the COMPAS dataset, CREDO successfully enforced fairness by setting the prior for protected attributes (like race) to zero, effectively removing their direct causal influence without compromising predictive power.
  • Robustness: Models trained with CREDO demonstrated superior robustness to noise. By relying on stable causal structures rather than fragile correlations, their performance degraded more slowly under input perturbations.

Discussion and Conclusion

CREDO demonstrates that causality can effectively serve as a regularization term, steering models away from "cheating" via spurious correlations. Unlike traditional monotonic networks, CREDO accommodates arbitrary shapes, such as U-shaped or J-shaped curves common in medical and physical domains.

However, the framework relies on the accuracy of human experts. Incorrect priors can degrade model performance. Furthermore, regularizing "Total Effects" requires knowledge of the underlying causal graph, which may not always be available. Future research may focus on automated prior discovery or methods to detect inconsistencies between expert priors and observed data. In summary, CREDO provides a robust path toward building neural networks that are not only accurate but also causally grounded and fair.

Summary updated

BibTeX
@inproceedings{reddy2022causal,
  author = {Abbavaram Gowtham Reddy and Sai Srinivas Kancheti and Vineeth N. Balasubramanian and Amit Sharma},
  title = {{Causal Regularization Using Domain Priors}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=dzn5aBE1vU9},
}
Figure