Advancing Edge Classification through High-Dimensional Causal Modeling of Node-Edge Interplay

Duanyu Feng, Li Ding, Hongru Liang, Wenqiang LeiarXiv 2026

TL;DR

The Causal Edge Classification Framework (CECF) is the first method to apply causal inference principles to edge classification by treating high-dimensional edge features as "treatments" and node features as "confounders." By using adversarial learning to eliminate the confounding bias of nodes on edges, CECF learns balanced representations that significantly boost classification accuracy. It serves as a flexible, plug-and-play enhancement that consistently improves upon standard Graph Neural Networks (GNNs) and state-of-the-art topological models.

What Problem Does This Paper Address?

While predicting whether a link exists (link prediction) is a heavily studied problem in graph machine learning, categorizing the type of an existing link (edge classification) has received far less attention. Applications range from identifying malicious traffic in IoT networks to categorizing functional interactions between proteins.

A major limitation of current edge classification methods is that they treat node and edge features as independent entities, combining them via simple operations like concatenation or aggregation. However, in the real world, node features often causally influence edge features. For example, in an IoT network, the properties of the connected devices (nodes) inherently shape the duration and volume of the network traffic (edges). Ignoring this interplay introduces confounding bias and noise, leading to suboptimal classification performance. The authors set out to explicitly model and mitigate this causal confounding.

Methods

The authors propose CECF (Causal Edge Classification Framework), which reformulates edge classification through the lens of causal inference:

  1. Causal Graph Construction: Node features are defined as the context/confounder ($Z$), edge features are treated as a high-dimensional treatment ($T$), and the final edge class is the outcome ($Y$).
Figure 1: A Basic Causal Graph and Node-Edge Interplay Modeling.
  1. Adversarial Balanced Counterfactual Representation: In traditional causal inference, one would generate counterfactual samples (e.g., "what would this edge look like if connected to different nodes?"). However, generating counterfactuals for high-dimensional features is incredibly difficult. CECF bypasses this by using adversarial learning. A treatment-prediction network ($\pi$) tries to predict edge features from node embeddings, while the GNN encoder ($\phi$) is trained to make its node embeddings less predictive of those edge features. This forces the network to learn node and edge representations that are independent of each other, neutralizing the confounding effect.
  2. High-Dimensional Treatment Processing: Unlike standard causal models designed for one-dimensional treatments (which use spline functions), CECF uses a neural network to embed high-dimensional edge features and applies an $\ell_2$-norm loss to measure representation discrepancies.
  3. Cross-Attention Layer: Finally, a cross-attention mechanism blends the de-confounded node representations and edge embeddings to predict the edge class ($Y$).
Figure 2: Overview of the Causal Edge Classification Framework (CECF). It leverages adversarial learning within a causal framework for edge classification, explicitly modeling the interplay between high-dimensional nodes and edges features.

Datasets

The framework was evaluated on six distinct benchmark datasets:

  • Bitcoin-alpha & Epinions: Social trust networks where edges represent trust/distrust ratings and edge features are text embeddings of user comments.
  • HSPPI: A protein-protein interaction network where node features are protein sequences and edge features represent co-expression.
  • NID: An IoT network dataset where nodes are IP addresses and edge features consist of network flow statistics (duration, bytes, packets).
  • Reddit: A hyperlink network mapping community interactions, using text property vectors as edge features.
  • MAG: A large-scale citation network where edges represent co-authored papers.

Key Insights and Ideas

  • The Confounding is Real: Using Canonical Correlation Analysis (CCA), the authors proved that node and edge features in standard datasets are highly correlated (with CCA scores up to 0.911 in the NID dataset). This strongly validates their initial hypothesis about node-edge interplay.
  • Causality is a Specialized Tool: CECF is highly effective only when strong node-edge interplay exists (initial CCA > 0.5). On datasets like MAG, where the interplay is weak (CCA < 0.2), forcing a causal framework actually degrades performance. This provides a clear diagnostic rule for practitioners: check the CCA score before applying causal modeling.
  • Correcting Feature Over-Reliance: Shapley value analysis revealed that standard GNNs often over-rely heavily on edge features while ignoring nodes. CECF corrects this imbalance, leading to a much more stable and holistic use of graph data.

Key Results

  • Standalone GNN Boost: Adding CECF to standard GNN backbones (GCN, GAT, ChebNet) yielded standalone performance gains of 2% to 5% in Balanced Accuracy (BACC) and Macro-F1 scores across most datasets.
  • New State-of-the-Art: Because CECF is architecture-agnostic, it can be plugged into other advanced frameworks. Combining CECF with TopoEdge (a state-of-the-art model for topological class imbalance) consistently outperformed TopoEdge alone by 1% to 10%, setting new state-of-the-art benchmarks.
  • Efficiency Over Alternatives: Compared to alternative statistical causal methods like the Hilbert-Schmidt Independence Criterion (HSIC) penalty—which suffers from quadratic computational complexity $O(B^2)$—CECF trains significantly faster. On the large HSPPI dataset, the HSIC variant exploded training time to over 3200 seconds, whereas CECF kept it under a practical 300 seconds (less than 2x the base GNN training time).

Limitations and Future Work

  • Interpretability: While the causal graph structure is clear, the high-dimensional nature of the learned representations makes it difficult to explain exactly which features drive specific edge classifications. Future work could integrate post-hoc explainability methods.
  • Generic Causal Assumptions: The current framework assumes a generic node-influences-edge structure. Incorporating domain-specific priors (e.g., specific biological rules for protein networks) could refine the causal graph construction.
  • Adversarial Overhead: Although faster than HSIC, adversarial training still introduces computational overhead. The authors suggest exploring ways to bake confounding mitigation directly into the primary loss function to eliminate the need for an adversarial network entirely.

Summary updated

BibTeX
@misc{feng2026advancing,
  author = {Duanyu Feng and Li Ding and Hongru Liang and Wenqiang Lei},
  title = {{Advancing Edge Classification through High-Dimensional Causal Modeling of Node-Edge Interplay}},
  year = {2026},
  eprint = {2605.00374},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.00374},
}
Figure