Shapley-Guided Utility Learning for Effective Graph Inference Data Valuation

Hongliang Chi, Qiong Wu, Zhengyi Zhou, Yao Ma

Introduction: The Inference-Time Label Gap

In machine learning, "data valuation" typically seeks to answer a retrospective question: Which training data points were most helpful in training the model? However, Graph Neural Networks (GNNs) present a unique challenge. Because GNNs rely on message passing, a node's prediction depends heavily on its neighboring nodes not just during training, but also during inference (test-time).

If we want to understand which specific neighbor most influenced a model's prediction at test time, we encounter a major roadblock known as The Label Gap. Standard valuation techniques, such as Shapley values, require a "utility function"—usually model accuracy—to determine a data point's worth. At test time, ground-truth labels for target nodes are unavailable, making it impossible to calculate accuracy and, consequently, data value. Existing methods that attempt to predict accuracy as a proxy often fail to generalize to unseen graph structures or are too computationally expensive for large-scale networks.

To bridge this gap, researchers have introduced Shapley-Guided Utility Learning (SGUL), a novel framework designed to quantify the importance of a node's neighbors during GNN inference without relying on ground-truth test labels.

The SGUL Framework: Core Innovations

SGUL overcomes the limitations of prior utility learning methods through three key technical innovations:

1. Transferable Feature Extraction

Instead of relying on node-specific identifiers that fail to generalize, SGUL extracts a set of "transferable" features that serve as proxies for predictive performance. These are divided into:

  • Data-specific features: Metrics such as edge homophily and representation distance to the training set.
  • Model-specific features: Metrics derived from the model's output, including prediction confidence, entropy, and confidence gaps.

2. Structure-Aware Constraints

Graphs possess inherent topological dependencies. To respect this structure, SGUL applies a "Precedence Constraint." This ensures that during the valuation process, a neighbor node is only considered if its "ancestors" in the GNN's message-passing tree are also present, maintaining the logical flow of information.

3. Shapley-Guided Optimization

The core mathematical breakthrough of SGUL is the Shapley Value Decomposition Theorem. The authors prove that if the utility function is defined as a linear combination of the extracted features, the final Shapley value is simply a linear combination of "Feature Shapley Values."

This theorem allows the model to directly optimize for the Shapley value rather than taking the traditional, indirect route of predicting accuracy first and calculating values later. This direct optimization is significantly more accurate and computationally efficient.

Experimental Validation and Key Insights

The researchers evaluated SGUL across seven diverse real-world graph datasets, encompassing both homophily (e.g., Cora, Citeseer, Pubmed, CS, Physics) and heterophily (e.g., Amazon-ratings, Roman-empire) networks, as well as the large-scale ogbn-arxiv dataset.

Performance was primarily measured using node-dropping experiments. By ranking neighbors by their calculated value and removing them sequentially, a superior valuation method should cause the model's accuracy to degrade more rapidly (measured by a lower Area Under the Curve, or AUC).

  • Superior Accuracy: SGUL consistently achieved the lowest AUC in node-dropping tests across both inductive and transductive settings, proving its efficacy in identifying the most critical "load-bearing" neighbors.
  • Exceptional Scalability and Memory Efficiency: Because SGUL optimizes values directly via the Decomposition Theorem, it avoids storing the massive accuracy datasets required for every possible subset of neighbors. On the Amazon-ratings dataset, SGUL used only 14% of the memory required by accuracy-based optimization baselines. Furthermore, on the massive ogbn-arxiv dataset (over 160,000 nodes), SGUL ran smoothly while sophisticated baselines like GNNEvaluator crashed due to Out of Memory (OOM) errors.
  • Interpretability: The framework's learned weights reveal why certain nodes are valuable. Across almost all datasets, "Negative Entropy" and "Target Class Confidence" emerged as the most important features driving neighbor valuation.

Limitations and Future Directions

While SGUL represents a significant step forward in graph data valuation, the authors note a few areas for future exploration:

  • Linearity Assumption: The current optimization relies on a linear relationship between features and utility. While this enables the elegant direct optimization theorem, exploring non-linear utility functions could capture more complex dynamics, albeit likely at the cost of computational efficiency.
  • Feature Engineering: The transferable features, though robust, are currently hand-crafted. Integrating automated feature learning or graph-aware embeddings into the utility learning phase could yield further improvements.
  • Task Scope: The current framework is tailored for node classification. Extending SGUL to graph-level tasks or link prediction remains an exciting open challenge.

Ultimately, SGUL provides an effective, highly scalable, and interpretable approach to understanding exactly which neighbors matter most when a Graph Neural Network makes a decision.

Summary updated

BibTeX
@inproceedings{chi2025shapley,
  author = {Hongliang Chi and Qiong Wu and Zhengyi Zhou and Yao Ma},
  title = {{Shapley-Guided Utility Learning for Effective Graph Inference Data Valuation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=8X74NZpARg},
}
Figure