Fair and efficient contribution valuation for vertical federated learning

Zhenan Fan, Huang Fang, Xinglu Wang, Zirui Zhou, Jian Pei, Michael P. Friedlander, Yong Zhang

TL;DR

VerFedSV is a novel framework for fairly and efficiently valuing client contributions in Vertical Federated Learning (VFL). By leveraging training-time embeddings and matrix completion techniques, it provides provably fair Shapley-based valuations without the prohibitively expensive requirement of retraining models for every possible client subset.

What Problem Does This Paper Address?

In Vertical Federated Learning (VFL), different organizations (clients) hold different features for the same set of individuals. To keep these clients motivated and ensure equitable reward distribution, we need a way to measure exactly how much each client’s data contributes to the final model's performance.

The "gold standard" for this is the Shapley value from cooperative game theory. However, calculating it is a computational nightmare: it requires retraining the model for every possible combination of clients—an exponential task ($2^M$ for $M$ clients). While solutions exist for Horizontal FL, VFL presents a unique challenge: the global model is typically a concatenation of local models that are never shared, making it impossible to simply "add" models together to test different subsets.

Methods

The authors introduce VerFedSV (Vertical Federated Shapley Value). Instead of retraining models from scratch, VerFedSV defines utility based on the decrease in loss observed during specific time stamps of the training process.

The Synchronous Challenge: Matrix Completion

In synchronous VFL, clients only upload embeddings for a specific mini-batch at each step. To calculate a fair Shapley value, the server needs to know what all clients' embeddings would have been for all data points at that moment. The authors prove that these embedding matrices are approximately low-rank. They use low-rank matrix completion to fill in the missing data, allowing the server to estimate the utility of any client subset without extra communication or retraining.

The Asynchronous Advantage

In asynchronous settings, clients update at different speeds based on their hardware and bandwidth. The authors show that VerFedSV naturally accounts for this: a client who updates more frequently contributes more to the loss reduction and thus receives a higher valuation. This "more work leads to more rewards" property is a key feature of their asynchronous adaptation.

Scalability

To handle a large number of clients, the authors employ Monte Carlo sampling, approximating the Shapley sum by randomly sampling permutations of clients rather than calculating every possible subset.

Datasets

The researchers evaluated VerFedSV using four diverse real-world datasets commonly used in machine learning benchmarks:

  • Adult: Census data for income prediction.
  • Web: A dataset for web page classification.
  • Covtype: Forest cover type prediction.
  • RCV1: A large collection of manually labeled newswire stories.

These datasets cover both binary and multi-class classification tasks with varying numbers of features and clients.

Key Insights and Ideas

  • Low-Rank Embeddings: A major "aha" moment is the theoretical and empirical proof that embedding matrices in VFL are low-rank. This is because models change slowly between iterations and data points often share underlying similarities. Verification of low-rankness across datasets
  • Fairness by Design: VerFedSV satisfies the four fundamental Shapley fairness criteria: balance, symmetry, zero element, and additivity.
  • Resource Awareness: In the asynchronous setting, the metric doesn't just value data quality; it values the computational effort (update frequency) provided by the client, which is vital for practical industrial applications.
  • Retraining-Free: By shifting the valuation from "final model performance" to "cumulative loss reduction during training," the authors bypass the exponential overhead of traditional Shapley calculations.
Figure 1: Approximated ϵ-rank of embedding matrices.

Key Results

  • Fairness Verification: The experiments showed that clients with identical features received identical valuations, while clients providing only random Gaussian noise received near-zero valuations (less than 2% of the total value).
  • Sensitivity to Heterogeneity: As shown in Figure 2, the difference in valuation between a baseline client and a perturbed client is directly proportional to the level of noise (feature heterogeneity) added. Valuation difference vs feature heterogeneity
  • Efficiency: The runtime for VerFedSV estimation scales linearly with the number of training data points and time-stamps, making it practical for large-scale deployments.
  • Correlation with Baselines: VerFedSV showed high Kendall’s rank correlation (up to 1.0 on some datasets) with SHAP, a centralized feature importance baseline, indicating it accurately captures true data value.
Valuation difference vs feature heterogeneity

Limitations and Future Work

  • Sybil Attacks: The authors noticed that if a client "cheats" by adding clones of themselves (identical features), the total reward for that group increases. They suggest that future work should include secure statistical testing to identify and exclude redundant or near-identical datasets before training begins.
  • Privacy Concerns: While VFL is designed for privacy, the use of embeddings for valuation might introduce new leakage risks. Exploring the integration of VerFedSV with Differential Privacy is a suggested next step.
  • Hyperparameter Tuning: While the method is relatively robust, the rank parameter $r$ in matrix completion needs to be chosen carefully to ensure accuracy.

Summary updated

BibTeX
@inproceedings{fan2024fair,
  author = {Zhenan Fan and Huang Fang and Xinglu Wang and Zirui Zhou and Jian Pei and Michael P. Friedlander and Yong Zhang},
  title = {{Fair and efficient contribution valuation for vertical federated learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=sLQb8q0sUi},
}
Figure