FL-Market: Trading Private Models in Federated Learning

Shuyuan Zheng, Yang Cao, Masatoshi Yoshikawa, Huizhong Li, Qiang Yan · DOI

TL;DR

FL-Market is the first model marketplace designed to protect data privacy against both model buyers and untrusted brokers. By combining Federated Learning (FL) with Local Differential Privacy (LDP), it allows data owners to sell model updates rather than raw data, using a novel deep-learning-based auction (DM-RegretNet) and an optimized aggregation mechanism (OptAggr) to maximize model accuracy within a buyer's budget.

What Problem Does This Paper Address?

Machine learning thrives on data, but acquiring high-quality private data is expensive and risky. While "model marketplaces" have emerged as a solution—where buyers purchase trained models instead of raw datasets—most existing platforms rely on a trusted broker. In these setups, the broker has full access to the raw data to perform training, creating a single point of failure and a massive privacy risk.

Furthermore, even if the broker is bypassed using Federated Learning (where data stays on the owner's device), the model updates (gradients) sent to the server can still leak sensitive information. The challenge is creating a marketplace where:

  1. Data owners never share raw data.
  2. Data owners can formally control their privacy loss using Local Differential Privacy (LDP).
  3. An untrusted broker can still coordinate training and fairly compensate owners based on the quality (noise level) of their contributions.

Methods

The authors propose FL-Market, a framework involving three parties: data owners, a model buyer, and an FL broker. The process is illustrated in the trading framework below:

Fig. 2: FL-Market Trading Framework.

Key technical contributions include:

  • OptAggr (Optimal Aggregation): Standard Federated Learning usually weights updates based on the size of an owner's dataset. However, in a marketplace where different owners choose different privacy levels (adding different amounts of noise), this is suboptimal. OptAggr uses convex quadratic programming to find the mathematically optimal weights that minimize the total error of the aggregated global gradient.
  • DM-RegretNet (Deterministic Multi-Unit RegretNet): To handle the auctioning of "privacy units," the authors turned to automated mechanism design. They improved upon RegretNet, a deep-learning framework for auctions. Standard RegretNet is randomized, which can lead to "invalid gradients" if it accidentally assigns zero privacy to all participants in a round. DM-RegretNet introduces a deterministic allocation and a "soft argmax" trick to ensure the system is both stable and differentiable for training.

Datasets

The researchers evaluated FL-Market using the NSL-KDD dataset, a standard benchmark for network intrusion detection.

  • Scale: 125,973 training samples and 22,544 test samples.
  • Distribution: Samples were distributed among 1,000 simulated data owners using two methods: IID (data is similar across owners) and Non-IID (data classes are partitioned using a Dirichlet distribution to simulate real-world variety).

Key Insights and Ideas

  • Privacy as a Commodity: The paper treats privacy loss ($\epsilon$) as a divisible good that can be bought and sold. Data owners bid their "privacy valuation"—how much they want to be paid for a specific level of privacy risk.
  • The "Untrusted Broker" Shift: By moving LDP to the local side (before the gradient ever leaves the owner's device), the broker is reduced to a mere coordinator who never sees "clean" gradients, let alone raw data.
  • Noise-Aware Weighting: A major "aha" moment is the realization that if Owner A provides a very noisy update (high privacy) and Owner B provides a clean one (low privacy), the broker should trust Owner B more. OptAggr formalizes this intuition into an optimization problem.
  • Deterministic vs. Randomized Auctions: In typical economic auctions, randomization is fine. In ML training, randomization can be catastrophic. If a randomized auction fails to "buy" enough privacy in a specific round, the resulting model update is essentially garbage (infinite variance). DM-RegretNet's deterministic nature is crucial for training stability.

Key Results

  • Higher Accuracy: Models trained via FL-Market achieved significantly higher accuracy compared to baselines using standard aggregation methods.
  • Budget Efficiency: DM-RegretNet effectively maximized the utility of the buyer's budget, purchasing the "best" gradients available while respecting owners' privacy budgets.
  • Incentive Compatibility: The auction mechanism proved to be "truthful" in practice. As shown in the paper's evaluations, the degree of truthfulness and individual rationality violations were near zero, meaning owners are best off bidding their actual privacy valuations.
  • Robustness: Unlike standard RegretNet, DM-RegretNet maintained a 0% "invalid gradient rate," ensuring that every training round contributed meaningfully to the model.

Limitations and Future Work

The authors acknowledge a few areas for further exploration:

  • Strategic Buyers: While the auction is truthful for sellers (data owners), the paper does not fully explore if buyers could strategically manipulate the market.
  • Task Complexity: The experiments focused on logistic regression. Scaling this to massive deep neural networks with millions of parameters may introduce new computational bottlenecks in the OptAggr solver.
  • Arbitrage: Future work is needed to ensure the marketplace is "arbitrage-free," preventing users from gaming the system by splitting or merging their identities.

Summary updated

Abstract

The difficulty in acquiring a sufficient amount of training data is a major bottleneck for machine learning (ML) based data analytics. Recently, commoditizing ML models has been proposed as an economical and moderate solution to ML-oriented data acquisition. However, existing model marketplaces assume that the broker can access data owners' private training data, which may not be realistic in practice. In this paper, to promote trustworthy data acquisition for ML tasks, we propose FL-Market, a locally private model marketplace that protects privacy not only against model buyers but also against the untrusted broker. FL-Market decouples ML from the need to centrally gather training data on the broker's side using federated learning, an emerging privacy-preserving ML paradigm in which data owners collaboratively train an ML model by uploading local gradients (to be aggregated into a global gradient for model updating). Then, FL-Market enables data owners to locally perturb their gradients by local differential privacy and thus further prevents privacy risks. To drive FL-Market, we propose a deep learning-empowered auction mechanism for intelligently deciding the local gradients' perturbation levels and an optimal aggregation mechanism for aggregating the perturbed gradients. Our auction and aggregation mechanisms can jointly maximize the global gradient's accuracy, which optimizes model buyers' utility. Our experiments verify the effectiveness of the proposed mechanisms.
BibTeX
@inproceedings{zheng2022fl,
  author = {Shuyuan Zheng and Yang Cao and Masatoshi Yoshikawa and Huizhong Li and Qiang Yan},
  title = {{FL-Market: Trading Private Models in Federated Learning}},
  booktitle = {IEEE Big Data},
  year = {2022},
  url = {https://openreview.net/forum?id=dmCcBpjuyy},
}

Loading related content...

Figure