[Paper Review] Deep Convolutional Neural Networks for Pairwise Causality
This paper proposes using deep convolutional neural networks (CNNs) to infer pairwise causal direction from scatter plots of observational data, treating each attribute pair as a 2D image. The approach achieves state-of-the-art performance via a weighted ensemble with gradient-boosted classifiers, outperforming prior methods—especially under data-scarce conditions—on the NIPS 2013 Cause-Effect Pairs challenge.
Discovering causal models from observational and interventional data is an important first step preceding what-if analysis or counterfactual reasoning. As has been shown before, the direction of pairwise causal relations can, under certain conditions, be inferred from observational data via standard gradient-boosted classifiers (GBC) using carefully engineered statistical features. In this paper we apply deep convolutional neural networks (CNNs) to this problem by plotting attribute pairs as 2-D scatter plots that are fed to the CNN as images. We evaluate our approach on the 'Cause- Effect Pairs' NIPS 2013 Data Challenge. We observe that a weighted ensemble of CNN with the earlier GBC approach yields significant improvement. Further, we observe that when less training data is available, our approach performs better than the GBC based approach suggesting that CNN models pre-trained to determine the direction of pairwise causal direction could have wider applicability in causal discovery and enabling what-if or counterfactual analysis.
Motivation & Objective
- Address the challenge of inferring causal direction between two variables using only observational data, where traditional conditional independence tests fail due to lack of conditioning variables.
- Overcome limitations of existing statistical methods like gradient-boosted classifiers (GBC) that rely on handcrafted features and may underperform with sparse data.
- Explore whether deep learning, specifically CNNs, can learn causal direction directly from visual patterns in scatter plots without explicit feature engineering.
- Investigate the generalization and robustness of CNN-based models when training data is limited, a common real-world constraint.
- Develop an ensemble framework combining CNNs and GBCs to leverage complementary strengths and achieve superior performance on causal discovery benchmarks.
Proposed method
- Convert each pairwise data instance into a 200×200 grayscale scatter plot: for continuous attributes, points are plotted directly; for binary or categorical attributes, bin frequencies are mapped to color intensities.
- Train a 15-layer CNN with five stages, each containing two convolutions and one max-pooling layer, to classify causal direction (X→Y, Y→X, or neither) from the scatter plot images.
- Use a separate gradient-boosted classifier (GBC) trained on handcrafted statistical features (e.g., asymmetry in regression residuals, noise distribution) to predict the same three-class causal label.
- Create a weighted ensemble model by combining CNN and GBC probabilities: $ p^e_k = w \cdot p^c_k + (1-w) \cdot p^g_k $, where $ w \in [0,1] $ is tuned on a validation set.
- Apply data augmentation by swapping X and Y to generate symmetric training examples, improving model generalization and robustness.
- Evaluate models using accuracy and AUC, with AUC computed as per the official NIPS 2013 challenge metric, and validate performance on full and sparse training data splits.
Experimental results
Research questions
- RQ1Can deep convolutional neural networks effectively learn to infer causal direction from visual patterns in scatter plots without relying on handcrafted statistical features?
- RQ2How does the performance of a CNN-based approach compare to state-of-the-art gradient-boosted classifiers (GBC) on the NIPS 2013 Cause-Effect Pairs benchmark?
- RQ3Does the CNN-based method generalize better than GBC when training data is scarce, particularly with fewer than 100 observations per attribute pair?
- RQ4Can a weighted ensemble of CNN and GBC models achieve superior performance by combining their complementary strengths?
- RQ5Is the CNN model transferable across datasets without retraining, given its reliance on raw scatter plot images rather than domain-specific features?
Key findings
- The weighted ensemble of CNN and GBC achieved an AUC of 0.825 on the Kaggle test set, surpassing the state of the art and securing the first rank on the private leaderboard.
- On the full training data, the ensemble achieved 79.3% accuracy and 0.831 AUC on the validation set, outperforming both standalone CNN (72.5% accuracy, 0.779 AUC) and GBC (77.8% accuracy, 0.805 AUC) models.
- When training data was reduced to 100–1000 observations per instance, the CNN-based model consistently outperformed the GBC-based model in both accuracy and AUC, demonstrating superior robustness to data sparsity.
- The CNN model achieved 73.3% accuracy and 0.769 AUC on the test set, showing strong performance even without feature engineering, and remained competitive despite lower scores than GBC on full data.
- The model’s performance on sparse data suggests that CNNs can learn intrinsic causal patterns from visual structure, making them more suitable for real-world applications with limited observations.
- The success of the ensemble model indicates that CNNs and GBCs are complementary: CNNs capture visual patterns while GBCs leverage statistical invariances, and their fusion enhances overall predictive power.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.