Back to Trending
Repository
rguo12

rguo12/awesome-causality-algorithms

An index of algorithms for learning causality with data

3.3kstars
476forks
2issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: unconfoundedness-assumption

#1 Repository of the week

1
TINIX TRENDING·Topic: multilabel-classification

#1 Repository of the week

1
TINIX TRENDING·Topic: baselines

#1 Repository of the week

awesome-causality-algorithms Awesome

An index of algorithms in

  • machine learning for causal inference: solves causal inference problems
  • causal machine learning: solves ML problems

Reproducibility is important! We will remove those methods without open-source code unless it is a survey/review paper.

Please cite our survey paper if this index is helpful.

@article{guo2020survey,
  title={A survey of learning causality with data: Problems and methods},
  author={Guo, Ruocheng and Cheng, Lu and Li, Jundong and Hahn, P Richard and Liu, Huan},
  journal={ACM Computing Surveys (CSUR)},
  volume={53},
  number={4},
  pages={1--37},
  year={2020},
  publisher={ACM New York, NY, USA}
}

Table of Contents

Toolboxes

Comprehensive

NameCodeComment
causal-learnPythonCausal Discovery, Causal Representation Learning, Statistical Tests.
Trustworthy AIPythonCausal Structure Learning, Causal Disentangled Representation Learning, gCastle (or pyCastle, pCastle).
YLearnPythonPython package for causal discovery, causal effect identification/estimation, counterfactual inference, policy learning, etc.

Treatment Effect Estimation / Uplift Modeling

NamePaper/DocumentationVenueCodeComment
DoWhyTutorial on Causal Inference and Counterfactual ReasoningKDD 2018PythonPython library for causal inference that supports explicit modeling and testing of causal assumptions.
EconMLCausal Inference and Machine Learning in Practice with EconML and CausalMLKDD 2021PythonPython package that applies the power of machine learning techniques to estimate individualized causal responses from observational or experimental data.
CausalMLCausalml: Python package for causal machine learningarXivPythonUplift modeling and causal inference with machine learning algorithms
JustCauseUnderlying thesisNAPythonFor evaluation of heterogeneous treatment effect estimators on common reference as well as synthetic data.
WhyNotDocumentationNAPythonAn experimental sandbox for causal inference and decision making in dynamics.
scikit-upliftDocumentation and User guide for uplift modelingNAPythonUplift modeling in scikit-learn style in python.
DoubleMLDouble/debiased machine learning for treatment and structural parametersEconometrics Journal 2018PythonDouble machine learning framework for causal parameters; also available in R.
CausalPyNANAPythonBayesian and quasi-experimental causal inference (synthetic control, DiD, RDD, IV) built on PyMC.

Causal Discovery

NamePaperVenueCodeComment
Bench PressBenchpress: a scalable and versatile workflow for benchmarking structure learning algorithms for graphical models — Rios et al.arXiv 2021CodeReproducible and scalable execution and benchmarks of 41 structure learning algorithms supporting multiple language
causal-learnCausal-learn: Causal Discovery in Python — Zheng et al.JMLR 2024PythonCausal Discovery, Causal Representation Learning, Statistical Tests.
TETRAD R/JavaTETRAD: A Toolbox for Causal Discovery — Ramsey et al.CI 2018R/JavaCausal Discovery Toolbox from CMU
CausaldagNANACodePython package for the creation, manipulation, and learning of Causal DAGs
CausalNexNANAPythonA toolkit for causal reasoning with Bayesian Networks.
CausalDiscoveryToolboxCausal Discovery Toolbox: Uncover causal relationships in Python — Kalainathan and GoudetarXiv 2019Python
pgmpyNANAPythonProbabilistic graphical models, structure learning and causal inference.
TigramiteNANAPythonCausal discovery and inference for time series (PCMCI and variants).
DoDiscoverNANAPythonPyWhy library for causal discovery, including with latent confounders.
CausicaNANAPythonDeep end-to-end causal inference (DECI) and related models from Microsoft.
LiNGAMNANAPythonImplementations of the LiNGAM family of non-Gaussian causal discovery methods.
Causal ChambersCausal chambers as a real-world physical testbed for AI methodology — Gamella et al.Nature Machine Intelligence 2025PythonReal-world datasets with interventions and validated ground-truth graphs from two physical devices; the Python package loads the data and graphs and includes simulators.
causal-automataNANAPythonA relatively fast, GPU-native causal discovery and DAG structure learning package in JAX/NumPy via synchronous cellular automata and a 1D topological elevation field.

Root Cause Analysis

NamePaperVenueCodeComments
Chaos GeniusNANAPythonML powered analytics engine for outlier/anomaly detection and root cause analysis.

Causal Effect Estimation

Survey Papers

NamePaperVenue
Yao et al.A survey on causal inference — Yao et al.TKDD

With i.i.d Data

Individual Treatment Effect (ITE) / Conditional Average Treatment Effect (CATE)

Deep Learning based methods
NamePaperVenueCode
TARNet, Counterfactual RegressionEstimating individual treatment effect: generalization bounds and algorithms — Shalit et al.ICML 2017Python
BNN, BLRLearning representations for counterfactual inference — Johansson et al.ICML 2016Python
Causal Effect VAECausal effect inference with deep latent-variable models — Louizos et al.NeurIPS 2017Python
DragonnetAdapting neural networks for the estimation of treatment effects — Shi et al.NeurIPS 2019Python
SITERepresentation Learning for Treatment Effect Estimation from Observational Data — Yao et al.NeurIPS 2018Python
GANITEGANITE: Estimation of Individualized Treatment Effects using Generative Adversarial Nets — Yoon et al.ICLR 2018Python
Perfect MatchPerfect match: A simple method for learning representations for counterfactual inference with neural networks — Schwab et al.arXiv 2018Python
Intact-VAEIntact-VAE: Estimating treatment effects under unobserved confounding — Wu and FukumizuICLR 2022NA
CausalEGMCausalEGM: a general causal inference framework by encoding generative modeling — Liu et al.arXiv 2022Python
Classic Methods
NamePaperVenueCode
Tree based Methods
NamePaperVenueCode
Causal ForestEstimation and inference of heterogeneous treatment effects using random forests — Wager and AtheyJASA 2017R, Python
Causal MARS, Causal Boosting, Pollinated Transformed Outcome ForestsSome methods for heterogeneous treatment effect estimation in high-dimensions — Powers et al.arXiv 2017R, R
Bayesian Additive Regression Trees (BART)Bayesian nonparametric modeling for causal inference — HillJCGS 2011Python
Meta Learner
NamePaperVenueCode
X-learnerMetalearners for estimating heterogeneous treatment effects using machine learning — Künzel et al.PNAS 2019R, R
R-learnerQuasi-oracle estimation of heterogeneous treatment effects — Nie and WagerBiometrika 2021R

Average Treatment Effect (including ATT and ATC)

NamePaperVenueCode
Propensity Score MatchingThe central role of the propensity score in observational studies for causal effects — Rosenbaum and RubinBiometrika 1983Python
Inverse Probability ReweightingThe central role of the propensity score in observational studies for causal effects — Rosenbaum and RubinBiometrika 1983R
Doubly Robust EstimationDoubly robust estimation in missing data and causal inference models — Bang and RobinsBiometrics 2005R
Doubly Robust Estimation for High Dimensional DataDoubly robust matching estimators for high dimensional confounding adjustment — Antonelli et al.Biometrics 2016R
TMLEtmle: An R package for targeted maximum likelihood estimation — Gruber and van der LaanJSS 2011R
Entropy BalancingEntropy balancing for causal effects: A multivariate reweighting method to produce balanced samples in observational studies — HainmuellerPolitical Analysis 2012R
CBPS(Covariate Balancing Propensity Score)Covariate balancing propensity score — Imai and RatkovicJRSS-B 2014R
Approximate Residual BalancingApproximate residual balancing: debiased inference of average treatment effects in high dimensions — Athey et al.JRSS-B 2018R
Causal BootstrappingCausal bootstrapping — Little and BadawyarXiv 2019Matlab

Instrumental Variable (IV)

NamePaperVenueCode
DeepIVDeep iv: A flexible approach for counterfactual prediction — Hartford et al.ICML 2017Python
PDSLassoPDSLASSO: Stata module for post-selection and post-regularization OLS or IV estimation and inference — Ahrens et al.SSC 2018STATA

Dose-Response Curve (Continuous Treatment)

NamePaperVenueCode
Causal Dose-Response Curves / Causal Curvescausal-curve: A Python Causal Inference Package to Estimate Causal Dose-Response Curves — KobroslyJOSS 2020Python
Dose response networks (DRNets)Learning Counterfactual Representations for Estimating Individual Dose-Response Curves — Schwab et al.arXiv 2019Python

Vectorized Treatments

NamePaperVenueCode
Causal Effect Inference for Structured TreatmentsCausal Effect Inference for Structured Treatments — Kaddour et al.NeurIPS 2021Python

Multiple Causes

NamePaperVenueCode
DeconfounderThe blessings of multiple causes — Wang and BleiarXiv 2018Python

Multiple Outcomes

NamePaperVenueCode
Multiple Responses in Uplift ModelsEstimating and Visualizing Business Tradeoffs in Uplift Models — WeissBlogPython

Difference-in-Differences / Regression Discontinuity

NamePaperVenueCode
Staggered Difference-in-DifferencesDifference-in-differences with multiple time periods — Callaway and Sant'AnnaJ. Econometrics 2021R
Regression Discontinuity (rdrobust)Robust nonparametric confidence intervals for regression-discontinuity designs — Calonico et al.Econometrica 2014R/Python/Stata

Mediation Analysis

NamePaperVenueCode
mediationA general approach to causal mediation analysis — Imai et al.Psychological Methods 2010R

Sensitivity Analysis

NamePaperVenueCode
sensemakrMaking sense of sensitivity: extending omitted variable bias — Cinelli and HazlettJRSS-B 2020R

Non-i.i.d Data

Panel Data / Time Series

NamePaperVenueCode
Synthetic Control MethodUsing synthetic controls: Feasibility, data requirements, and methodological aspects — AbadieJEL 2021R
Synthetic Difference in DifferencesSynthetic difference in differences — Arkhangelsky et al.NBER 2019R
Python
Causal ImpactInferring causal impact using Bayesian structural time-series models — Brodersen et al.AoAS 2015R
Python
Time Series DeconfounderTime Series Deconfounder: Estimating Treatment Effects over Time in the Presence of Hidden Confounders — Bica et al.ICML 2020Code
Recurrent Marginal Structural NetworksForecasting Treatment Responses Over Time Using Recurrent Marginal Structural Networks — LimNeurIPS 2018Python
Longitudinal Targeted Maximum Likelihood EstimationTargeted maximum likelihood estimation for dynamic and static longitudinal marginal structural working models — Petersen et al.J. Causal Inference 2014R
Causal TransformerCausal Transformer for Estimating Counterfactual Outcomes — Melnychuk et al.arXiv 2022Python

Network Data (with or without Interference)

NamePaperVenueCode
Network DeconfounderLearning Individual Causal Effects from Networked Observational Data — Guo et al.WSDM 2020Python
Causal Inference with Network EmbeddingsUsing embeddings to correct for unobserved confounding — Veitch et al.arXiv 2019Python
Linked Causal Variational Autoencoder (LCVA)Linked Causal Variational Autoencoder for Inferring Paired Spillover Effects — Rakesh et al.CIKM 2018Python
Method-of-moments EstimatorsCausal Inference under Network Interference with Noise — Li et al.arXiv 2021Code

Causal Machine Learning

Surveys

NamePaperVenueCode
Causal ML SurveyCausal Machine Learning: A Survey and Open Problems — Kaddour et al.arXiv 2022NA

OoD Generalization

NamePaperVenueCode
DomainBedIn Search of Lost Domain Generalization — Gulrajani and Lopez-PazICLR 2020Code
WILDSWilds: A benchmark of in-the-wild distribution shifts — Koh et al.ICML 2021Code
IBM OoDRepository for theory and methods for Out-of-Distribution (OoD) generalization by IBM ResearchNACode
OoD BenchOod-bench: Benchmarking and understanding out-of-distribution generalization datasets and algorithms — Ye et al.arXiv 2021Code
BEDS-BenchBEDS-Bench: Behavior of EHR-models under Distributional Shift--A Benchmark — Avati et al.arXiv 2021Code
Survey THUTowards out-of-distribution generalization: A survey — Shen et al.arXiv 2021NA

Graph OoD Generalization

NamePaperVenueCode
CIGALearning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs — Chen et al.NeurIPS 2022Code
Survey THUOut-of-distribution generalization on graphs: A survey — Li et al.arXiv 2022NA

Recommendation Systems

Inverse Propensity Scoring / Doubly Robust

NamePaperVenueCode
Top-K Off-policy CorrectionTop-k off-policy correction for a REINFORCE recommender system — Chen et al.WSDM 2019Python
Unbiased Offline Recommender LearningUnbiased Recommender Learning from Missing-Not-At-Random Implicit Feedback — Saito et al.WSDM 2020Python
Unbiased Offline Recommender EvaluationUnbiased offline recommender evaluation for missing-not-at-random implicit feedback — Yang et al.RecSys 2018Python
IPS EstimatorRecommendations as treatments: Debiasing learning and evaluation — Schnabel et al.ICML 2016Python

Hidden Confounding

NamePaperVenueCode
Deconfounded RecsysCausal Inference for Recommender Systems — Wang et al.RecSys 2020Python

Domain Adaptation

NamePaperVenueCode
Causal Embedding for RecommendationCausal embeddings for recommendation — Bonner and VasileRecSys 2018Python
Domain Adversarial Matrix FactorizationTowards Resolving Propensity Contradiction in Offline Recommender Learning — Saito and NomuraIJCAI 2022Code

Disentanglement

NamePaperVenueCode
Causal Embedding for User Interest and ConformityDisentangling User Interest and Conformity for Recommendation with Causal Embedding — Zheng et al.WWW 2021Python

Learning to Rank

NamePaperVenueCode
Policy-aware EstimatorPolicy-aware unbiased learning to rank for top-k rankings — Oosterhuis and de RijkeSIGIR 2020Python
Heckman^{rank}Correcting for Selection Bias in Learning-to-rank Systems — Ovaisi et al.arXiv 2020Code
Unbiased LambdaMartUnbiased LambdaMART: An Unbiased Pairwise Learning-to-Rank Algorithm — Hu et al.WWW 2019Code
IPW_rank and the Dual Learning AlgorithmUnbiased Learning to Rank with Unbiased Propensity Estimation — Ai et al.SIGIR 2018Python
Propensity SVM-rankUnbiased learning-to-rank with biased feedback — Joachims et al.WSDM 2017Python

Off-line Policy Evaluation/Optimization (for Contextual Bandit or RL)

NamePaperVenueCode
Optimal Kernel BalancingPolicy Evaluation with Latent Confounders via Optimal Balance — Bennett and KallusarXiv 2019Python
BanditNetDeep learning with logged bandit feedback — Joachims et al.ICLR 2018Python
Counterfactual Risk Minimization (POEM)Counterfactual risk minimization: Learning from logged bandit feedback — Swaminathan and JoachimsICML 2015Python
Self Normalized EstimatorThe self-normalized estimator for counterfactual learning — Swaminathan and JoachimsNeurIPS 2015Python
Open Bandit PipelineOpen Bandit Dataset and Pipeline: Towards Realistic and Reproducible Off-Policy Evaluation — Saito et al.NeurIPS 2021Python

Natural Language Processing

NamePaperVenueCode
A Review of Using Text to Remove Confounding from Causal EstimatesText and Causal Inference: A Review of Using Text to Remove Confounding from Causal Estimates — Keith et al.ACL 2020NA
Causal Analysis with LexiconsDeconfounded lexicon induction for interpretable social science — Pryzant et al.NAACL 2018Python
Causal Text EmbeddingsUsing Text Embeddings for Causal Inference — Veitch et al.arXiv 2019Python
Handling Missing/Noisy TreatmentChallenges of Using Text Classifiers for Causal Inference — Wood-Doughty et al.EMNLP 2018Python
Causal Inferences Using TextsHow to make causal inferences using texts — Egami et al.arXiv 2018NA

Counterfactual Explanations

PaperVenueCode
Explaining machine learning classifiers through diverse counterfactual explanations — Mothilal et al.arXiv 2019Python
Efficient search for diverse coherent explanations — RussellFAccT 2019Python
Counterfactual explanations without opening the black box: Automated decisions and the GDPR — Wachter et al.Harvard JL&T 2017

Counterfactual Fairness

PaperVenueCode
Counterfactual fairness — Kusner et al.NeurIPS 2017Python
Pc-fairness: A unified framework for measuring causality-based fairness — Wu et al.NeurIPS 2019Code
Path-specific counterfactual fairness — ChiappaAAAI 2019Code
Counterfactual fairness in text classification through robustness — Garg et al.AIES 2019Code

Reinforcement Learning

NamePaperVenueCode
Deconfounded RLDeconfounding reinforcement learning in observational settings — Lu et al.arXiv 2018Python
Structural Nested Models / G-estimationStructural nested models and G-estimation: the partially realized promise — Vansteelandt and JoffeStatistical Science 2014NA
Counterfactual-Guided Policy Search (CF-GPS)Woulda, Coulda, Shoulda: Counterfactually-Guided Policy Search — Buesing et al.arXiv 2018NA

Multi-Armed Bandit/Causal Bandit

NamePaperVenueCode
Causal BanditsCausal bandits: Learning good interventions via causal inference — Lattimore et al.NeurIPS 2016NA
Offline+MABCombining Offline Causal Inference and Online Bandit Learning for Data Driven Decisions — Ye et al.arXiv 2020NA
B-kl-UCB, B-TSTransfer learning in multi-armed bandit: a causal approach — Zhang and BareinboimAAMAS 2017NA
Incremental ModelContextual Multi-Armed Bandits for Causal Marketing — Sawant et al.arXiv 2018NA

Large Language Models

NamePaperVenueCode
PyWhy-LLMCausal reasoning and large language models: Opening a new frontier for causality — Kıcıman et al.arXiv 2023Python

Causal Discovery

for i.i.d. Data

Classic Methods

NamePaperVenueCode
IC algorithmA theory of inferred causation — Pearl and VermaKR 1991Python
PC algorithmCausation, Prediction, and Search — Spirtes et al.Book 2000Python R Julia
FCI algorithmCausation, Prediction, and Search — Spirtes et al.Book 2000R Julia

Continuous Optimization

PaperVenueCode
DAGs with NO TEARS: Continuous optimization for structure learning — Zheng et al.NeurIPS 2018Code
DAG-GNN: DAG Structure Learning with Graph Neural Networks — Yu et al.ICML 2019Code
Learning Sparse Nonparametric DAGs — Zheng et al.AISTATS 2020Code
Amortized Inference for Causal Structure Learning — Lorch et al.NeurIPS 2022Code
DAGMA: Learning DAGs via M-matrices and a Log-Determinant Acyclicity Characterization — Bello et al.NeurIPS 2022Code
Deep End-to-end Causal Inference (DECI) — Geffner et al.arXiv 2022Code

Learning IV

NamePaperVenueCode
Learning IVLearning instrumental variables with structural and non-gaussianity assumptions — Silva and ShimizuJMLR 2017Code

Distinguishing Cause from Effect (Bivariate)

NamePaperVenueCode
BMLiNGAMBayesian estimation of causal direction in acyclic structural equation models with individual-specific confounder variables and non-Gaussian distributions — Shimizu and BollenJMLR 2014Python
SloppyIdentifiability of Cause and Effect using Regularized Regression — Marx and VreekenKDD 2019R
RECICause-effect inference by comparing regression errors — Blöbaum et al.AISTATS 2018in CausalDiscoveryToolbox
bQCDDistinguishing cause from effect using quantiles: Bivariate quantile causal discovery — Tagasovska et al.ICML 2020Code
CGNNLearning functional causal models with generative neural networks — Goudet et al.Springer 2018Code

Conditional Independence Tests (for Constraint-based Algorithms)

NamePaperVenueCode
RCITApproximate kernel-based conditional independence tests for fast non-parametric causal discovery — Strobl et al.J. Causal Inference 2019R

Causal Discovery with Probabilistic Logic Programming

NamePaperVenueCode
Causal PSLScalable Probabilistic Causal Structure Discovery — Sridhar et al.IJCAI 2018Java

Scalable Ensemble Causal Discovery

NamePaperVenueCode
Scalable and Hybrid Ensemble-Based Causality DiscoveryScalable and Hybrid Ensemble-Based Causality Discovery — Guo et al.SMDS 2020Python

with Temporal Data

NamePaperVenueCode
TCDF: Temporal Causal Discovery FrameworkCausal discovery with attention-based convolutional neural networks — Nauta et al.MAKE 2019Pytorch
PCMCIDetecting and quantifying causal associations in large nonlinear time series datasets — Runge et al.Science Advances 2019Python

Similar Projects

Discover other similar projects and AI models.

Repository
fulifeng/Causal_Reading_Group

We will keep updating the paper list about machine learning + causal theory. We also internally discuss related papers between NExT++ (NUS) and LDS (USTC) by week.

515
Mar 3, 2023
RepositoryPython
cdt15/lingam

Python package for causal discovery based on LiNGAM.

513
Nov 28, 2026
RepositoryRust
deepcausality-rs/deep_causality

Dynamic Causality in Rust

283
Nov 29, 2026
Repository
msuzen/looper

A resource list for causality in statistics, data science and physics

268
Aug 1, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryPython
py-why/dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.

8.4k
Nov 17, 2026
RepositoryJupyter Notebook
py-why/EconML

ALICE (Automated Learning and Intelligence for Causation and Economics) is a Microsoft Research project aimed at applying Artificial Intelligence concepts to economic decision making. One of its goals is to build a toolkit that combines state-of-the-art machine learning techniques with econometrics in order to bring automation to complex causal inference problems. To date, the ALICE Python SDK (econml) implements orthogonal machine learning algorithms such as the double machine learning work of Chernozhukov et al. This toolkit is designed to measure the causal effect of some treatment variable(s) t on an outcome variable y, controlling for a set of features x.

4.9k
Nov 23, 2026
RepositoryJupyter Notebook
matheusfacure/python-causality-handbook

Causal Inference for the Brave and True. A light-hearted yet rigorous approach to learning about impact estimation and causality.

3.5k
Oct 6, 2026
RepositoryPython
py-why/causal-learn

Causal Discovery in Python. Learning causality from data.

1.7k
Nov 27, 2026