Shapley-Guided Utility Learning for Effective Graph Inference Data Valuation

Hongliang Chi, Qiong Wu, Zhengyi Zhou, Yao Ma

Abstract

Graph Neural Networks (GNNs) have demonstrated remarkable performance in various graph-based machine learning tasks, yet evaluating the importance of neighbors of testing nodes remains largely unexplored due to the challenge of assessing data importance without test labels. To address this gap, we propose Shapley-Guided Utility Learning (SGUL), a novel framework for graph inference data valuation. SGUL innovatively combines transferable data-specific and model-specific features to approximate test accuracy without relying on ground truth labels. By incorporating Shapley values as a preprocessing step and using feature Shapley values as input, our method enables direct optimization of Shapley value prediction while reducing computational demands. SGUL overcomes key limitations of existing methods, including poor generalization to unseen test-time structures and indirect optimization. Experiments on diverse graph datasets demonstrate that SGUL consistently outperforms existing baselines in both inductive and transductive settings. SGUL offers an effective, efficient, and interpretable approach for quantifying the value of test-time neighbors.

Introduction

In Graph Neural Networks (GNNs), a node's prediction is intrinsically tied to its structural context. While the features of the node itself are critical, the "power of the neighbor"—the influence exerted by adjacent nodes—often dictates the model's final output. While research into training data valuation (e.g., Data Shapley) has matured, valuing data at inference time remains a significant challenge. Specifically, how do we quantify the importance of a neighbor for a test node when we lack the ground-truth labels necessary to measure accuracy?

This paper introduces Shapley-Guided Utility Learning (SGUL), the first framework designed to quantify the value of test-time neighbors without requiring ground-truth labels. SGUL addresses the "Label Gap" and the computational bottlenecks of traditional utility learning by leveraging a novel linear decomposition theorem and transferable features.

The Challenges of Test-Time Valuation

Evaluating neighbor importance at test time faces two primary hurdles:

  1. The Label Gap: Traditional data valuation relies on a utility function, typically defined by model accuracy. At inference time, the absence of ground-truth labels makes it impossible to calculate accuracy directly, necessitating a surrogate or "proxy" utility.
  2. Generalization and Efficiency: Existing utility learning models, which attempt to predict accuracy for various data subsets, often fail to generalize to unseen graph structures. Furthermore, they are computationally expensive, often requiring massive memory to store accuracy-level data for every possible subset of neighbors.

The SGUL Framework

SGUL shifts the paradigm from predicting accuracy to directly predicting data value. Its architecture is built upon three pillars:

1. Structure-Aware Shapley Values

Building on cooperative game theory, SGUL employs a "Precedence Constraint." This ensures that when calculating a node's value, the graph's connectivity is respected. A neighbor is only considered part of a coalition if it is structurally connected to the existing subgraph, ensuring the valuation is grounded in the GNN's actual message-passing mechanism.

2. Transferable Feature Extraction

To bridge the label gap, SGUL extracts proxy features that correlate with model performance. These are categorized into:

  • Data-Specific Features: These include edge cosine similarity and the representation distance between the test node and the training set.
  • Model-Specific Features: These leverage the GNN's internal state, including prediction confidence, negative entropy, and confidence gaps.

3. Shapley-Guided Optimization

The core innovation of SGUL is the Shapley Value Decomposition Theorem. The authors prove that if a utility function is linear, the Shapley value of a player is a linear combination of the Shapley values of the input features. This allows SGUL to be trained to minimize the error in Shapley value prediction directly, rather than the error in accuracy prediction. This direct optimization is both more accurate and significantly more efficient than indirect methods.

Experimental Evaluation

The framework was evaluated on seven diverse real-world datasets, including citation networks (Cora, Citeseer, Pubmed), co-authorship graphs (CS, Physics), and challenging heterophily scenarios (Amazon-ratings, Roman-empire). Scalability was tested on the OGB-Arxiv benchmark, involving over 27,000 testing neighbor nodes.

Key Results

  • Superior Valuation Accuracy: In "node-dropping" experiments—where nodes ranked as "high value" are removed to observe the impact on model performance—SGUL consistently produced the steepest declines in accuracy. This demonstrates its superior ability to identify truly critical neighbors.
  • Efficiency Gains: SGUL-Shapley is significantly faster and more memory-efficient than accuracy-based variants. On the Amazon-ratings dataset, SGUL required only 14% of the memory used by baseline models.
  • Robustness: The method outperformed established baselines such as ATC, DoC, and GNNEvaluator across both inductive and transductive settings, regardless of the underlying GNN architecture (e.g., SGC or GCN).

Discussion and Future Work

SGUL demonstrates that model confidence (entropy and confidence gaps) can serve as a robust surrogate for ground-truth labels in structural assessment. By assuming a linear utility function for features, the authors transformed a complex combinatorial problem into a manageable regression task.

However, limitations remain. The current reliance on a linear utility function ($U = w^T x$), while effective in practice, may not capture the highly non-linear behaviors inherent in some GNN operations. Future research could explore non-linear utility functions that maintain the efficiency of the Shapley decomposition. Additionally, moving from hand-crafted features to automated feature discovery or end-to-end representation learning could further enhance the framework's versatility across broader graph tasks like link prediction.

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