Introduction
Graph Neural Networks (GNNs) have revolutionized the analysis of structured data, yet they often operate as "black boxes," relying on purely data-driven correlations. This reliance makes them susceptible to spurious correlations—irrelevant features that happen to align with labels in training data but fail in real-world, out-of-distribution (OOD) scenarios. This paper introduces Causal Logic Graph Representation Learning (CLGL), a framework designed to bridge the gap between raw data processing and human-like reasoning by injecting "expertise logic" into the learning process.
The Challenge of Spurious Correlations
Standard GNNs typically optimize for Empirical Risk Minimization (ERM), which can lead models to latch onto "confounders." For instance, in a molecular graph, a model might incorrectly associate a specific irrelevant side chain with toxicity simply because it appeared frequently in the training set. Human experts, conversely, use specific logic—such as identifying functional groups or linguistic contrasts—to make decisions. CLGL aims to systematically lead GNNs to adopt this same expertise logic, enhancing both performance and robustness.
The CLGL Framework
CLGL treats expertise logic as a causal guide for representation learning. The framework is built upon several key components:
- Structural Causal Model (SCM): The authors provide a theoretical foundation proving that increasing the mutual information between a model's representation and expertise logic effectively reduces the influence of hidden confounders.
- Logic Learning Loss: The GNN is trained to minimize the KL divergence between its internal representations and the outputs of a pre-defined "expert" model ($r$). This expert model encodes domain knowledge, such as identifying topological cycles or sentiment-bearing conjunctions.
- Interchange Intervention: To ensure the logic remains consistent across different contexts, the framework swaps node representations between graphs. This forces the model to focus on the underlying causal factors rather than over-fitting to specific graph instances.
Experimental Evaluation
The researchers evaluated CLGL against standard ERM and state-of-the-art causal methods (like IRM and DIR) across several benchmarks:
- Spurious-Motif: A benchmark for robustness against biased data.
- Motif-Variant: A new synthetic dataset featuring varied motif shapes to create a larger gap between training and testing distributions.
- Graph-SST5 & Graph-Twitter: Real-world sentiment analysis datasets where linguistic logic (e.g., identifying contrast words like "but") was used as the expertise guide.
Results and Analysis
CLGL consistently outperformed baselines in both In-Distribution (ID) and Out-of-Distribution (OOD) settings. One of the most significant findings is that CLGL successfully minimizes the KL divergence between the model's representations and the intended expertise logic, which directly correlates with improved accuracy.
Key performance highlights include:
- Robustness: On the Spurious-Motif dataset with high bias (0.9), CLGL achieved 43.31% accuracy, compared to 33.61% for ERM.
- Generalization: On the Motif-Variant (ID) dataset, CLGL reached 97.57% accuracy, outperforming the next best baseline by over 3%.
- Real-World Utility: In OOD sentiment analysis (Graph-SST5), CLGL showed a clear lead (42.13%) over standard approaches (39.39%), demonstrating that linguistic expertise logic helps models generalize better than raw graph processing.
Conclusion and Future Work
CLGL demonstrates that GNNs are "natural students" capable of adopting human-like logic when properly guided. By focusing on the why (causal factors) rather than just the what (raw data), models become significantly more resilient to noise and bias. While the current framework requires manual definition of expertise logic, future work aims to automate this process, extracting logic directly from large-scale datasets to further scale the benefits of causal representation learning.
Summary updated