Introduction
Standard neural networks often treat input features as independent, failing to account for how one feature might influence another before affecting the output. This limitation prevents models from distinguishing between direct and indirect causal effects, which is critical for high-stakes domains like healthcare or finance. We present Ante-Hoc Causal Explanations (AHCE), a framework that incorporates causal structure directly into the neural network architecture via a "Layer 0" of connections. This allows for the quantification of both direct and indirect effects while maintaining high predictive performance.
Traditional explainability methods like SHAP or Integrated Gradients typically treat the model as a black box with independent inputs. However, real-world features are often interconnected. For instance, socioeconomic status might influence education level, which in turn influences income. A standard network cannot distinguish the direct impact of education from the indirect impact of socioeconomic status. AHCE addresses this by building a "glass box" model that respects a known causal graph.
The AHCE Framework
The core of AHCE is the $N^{Ind}$ architecture, which introduces feedforward connections between input neurons based on a provided causal graph. This "Layer 0" enables the network to explicitly model feature-to-feature interactions.
To train this architecture effectively, the authors employ a two-phase training strategy:
- Phase 1: The main network is trained while input-to-input connections remain frozen.
- Phase 2: The entire model is trained, including the input connections, using a regularization term to ensure that internal feature predictions align with the observed data.
Causal effects are quantified using two new metrics: Average Direct Causal Effect (ADCE) and Average Indirect Causal Effect (AICE). To make these calculations computationally feasible for high-dimensional data, the framework utilizes a second-order Taylor approximation (Hessian-based) and a data-binning strategy.
Experimental Evaluation
The framework was evaluated on synthetic data and real-world benchmarks including Auto-MPG, Lung Cancer, and the Sachs protein signaling dataset.
Key results include:
- Accuracy in Attribution: AHCE significantly outperformed baselines like Causal SHAP in matching ground-truth causal effects on synthetic data (RMSE of 0.06 vs 0.26).
- Performance Stability: As shown in the training curves, the two-phase approach allows the model to learn causal structures without degrading prediction accuracy.
- Computational Efficiency: The Hessian-based approximation and binning strategy provided 3 to 10-fold speedups on complex flight simulation datasets.
Discussion and Conclusion
AHCE moves beyond post-hoc explanations by embedding causality into the model architecture. This is particularly relevant for fairness, as it can reveal biases hidden in indirect effects that direct-effect-only models might miss. While the current framework requires a pre-defined causal graph and assumes no latent confounders, it represents a significant step toward inherently interpretable and causally-aware machine learning. Future work may involve integrating automated causal discovery to remove the dependency on expert-provided graphs.
Summary updated