Node-Level Data Valuation on Graphs

Simone Antonelli, Aleksandar BojchevskiTMLR 2025

Abstract

How much is a node worth? We answer this question using an emerging set of data valuation techniques, where the value of a data point is measured via its marginal contribution when added to the (training) dataset. Data valuation has been primarily studied in the i.i.d. setting, giving rise to methods like influence functions, leave-one-out estimation, data Shapley, and data Banzhaf. We conduct a comprehensive study of data valuation approaches applied to graph-structured models such as graph neural networks in a semi-supervised transductive setting. Since all nodes (labeled and unlabeled) influence both training and inference we construct various scenarios to understand the diverse mechanisms by which nodes can impact learning. We show that the resulting node values can be used to identify (positively and negatively) influential nodes, quantify model brittleness, detect poisoned data, and accurately predict counterfactuals.

Introduction

In traditional machine learning, data points are typically assumed to be independent and identically distributed (i.i.d.). Valuing a data point in this context is straightforward: one can observe how model performance changes when a specific sample is removed. However, graph-structured data—such as social networks, citation webs, and co-purchase graphs—violates this assumption. In a graph, a node's value is derived not only from its individual features but also from its structural connectivity. Removing a single node can disrupt message-passing pathways, affecting its entire neighborhood. This paper presents the first comprehensive study of node-level data valuation for Graph Neural Networks (GNNs) in semi-supervised, transductive settings.

Methodology: Valuing Nodes in a Connected World

The core challenge is defining "value" when data points are interdependent. The authors evaluate several frameworks:

  1. Game-Theoretic Approaches: Methods like Data Shapley and Data Banzhaf calculate a node's value $\phi(i)$ as a weighted average of its marginal contributions across various data subsets.
  2. Predictive Notions: Datamodels involve training a linear surrogate model to map the presence of node subsets to the resulting GNN utility (e.g., accuracy).
  3. Graph-Specific Methods: The study examines the Precedence-Constrained Winter Value (PCW) and introduces an optimized variant, PCWP, designed to account for graph topology.
Mathematical definition and visual representation of node-level data valuation.

A critical distinction introduced is the difference between a node's influence during the training phase versus its "overall" influence, which includes its role during inference in transductive learning.

Experimental Framework

The researchers benchmarked these methods across diverse graph types, including citation graphs (CoraML, PubMed), co-purchase graphs (Photo, Computers), and heterophilic graphs (Texas, Wisconsin). The study highlights the importance of Maximal Sample Reuse (MSR). Methods like $\alpha$-Banzhaf and Datamodels that repurpose every model evaluation to update values for all nodes in a subset proved significantly more efficient and accurate than traditional approaches.

Key Insights

The Block-Diagonal Influence Pattern

Nodes generally exert a positive influence on others of the same class and a negative influence on nodes of different classes. This "block-diagonal" behavior suggests that adding more data for one category can inadvertently confuse the model regarding other categories.

The Critical Role of Test Nodes

In transductive settings, unlabeled "test" nodes are not passive. Some act as vital bridges for information flow, exerting more influence on model performance than many labeled training nodes.

Illustration of marginal contribution $\Delta(\mathcal{S}, i)$ in a graph context across different subsets.

Model Brittleness

GNN predictions are often remarkably fragile. For over 50% of nodes, removing 15 or fewer "support" nodes can cause the model's prediction to flip. This quantification of brittleness is a key utility of node valuation.

Results and Transferability

Data Banzhaf ($\alpha$-BANZ) and Datamodels (DM) emerged as the most effective methods for identifying influential nodes and detecting poisoned data. Furthermore, node values calculated on simple models (like SGC) transferred well to complex ones (like GAT), suggesting that node value is largely an intrinsic property of the data and graph structure.

Conclusion and Future Directions

While computationally intensive, node-level data valuation provides a powerful lens for understanding GNN behavior. Future work will focus on disentangling feature-based value from structural value and developing "value-aware" GNN architectures that are more robust to the removal of highly influential nodes.

Summary updated

BibTeX
@article{antonelli2025node,
  author = {Simone Antonelli and Aleksandar Bojchevski},
  title = {{Node-Level Data Valuation on Graphs}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=tNyApIqDSJ},
}
Figure