Confounding-Aware Client Selection in Federated Learning via Causal Mediation Analysis

Xiaoyang Yi, Yuru Bao, RiHao Chang, Binhan Yang, Jian ZhangNeurIPS 2026

TL;DR

In Federated Learning, paying distributed clients via reverse auctions often backfires by selecting the cheapest participants rather than the best ones, creating a race to the bottom that ruins global model accuracy. CausalAFL fixes this "lemons market" by using causal inference to untangle a client's true contribution from noisy bids and hidden confounding factors. By calibrating bids to reflect expected performance gains alongside resource costs, it helps servers recruit high-value data owners without blowing their budget.

What Problem Does This Paper Address?

Imagine trying to crowdsource a massive machine learning model without ever seeing the contributors' raw data. That is the promise of Federated Learning (FL). Because training models burns battery power and compute cycles, traditional "volunteer-only" FL often drives away participants with great data while letting low-effort "free-riders" tag along.

To fix this, researchers introduced Auction-based Federated Learning (AFL). Here, a model buyer sets a budget, a central server acts as an auctioneer, and clients ("sellers") submit bids representing what it costs them to train the model. Typically, the lowest bids win.

Here is the catch: a bid is just a price tag, and price tags are terrible indicators of quality. When the server sees a high bid, it faces an information asymmetry problem—is this an elite client with a massive, balanced dataset that requires heavy computation, or just a slow, inefficient device with terrible data? Because standard auctions blindly favor low bids, high-cost, high-quality sellers get priced out, while low-cost, low-quality sellers dominate. Economists call this a lemons market trap, and in FL, it tanks the global model's performance ceiling.

Methods

Instead of treating the server as a passive bargain-hunter, the authors propose CausalAFL, turning the auctioneer into a market designer using Causal Mediation Analysis (CMA)—a statistical method for figuring out how cause leads to effect across different pathways.

Figure 2: The overall framework of CausalAFL. Specifically, CausalAFL construct a generative causal graph model to estimate causal mediation pathways. By disentangling confounding effects, high-cost sellers can more accurately signal data quality and avoid being outbid by noise, thus improve both global model performance and social welfare.

First, the authors model each client's cost using standard energy consumption equations alongside a "data usage cost" (measured locally via the $L_2$ distance between a client's class distribution and an ideal balanced distribution, preserving privacy). What's novel is how they map the auction onto a causal graph:

  • Treatment ($T$): The client’s resource cost.
  • Mediator ($M$): The submitted bid (cost plus strategic padding and market noise).
  • Outcome ($Y$): Marginal contribution—how much the client actually improves global accuracy and social welfare.
Figure 3: The partial mediation graph for CausalAFL, with both the direct path T →Y and the indirect path T →M →Y .

Hidden "confounders" (like dataset size and data skew) warp the relationships between cost, bids, and accuracy. Because the server can't observe private client states directly, CausalAFL uses dataset size and the $L_2$ data usage cost as observable proxy variables ($X$) to infer latent confounders ($Z_{TM}$ and $Z_{MY}$).

On the server, CausalAFL trains a Variational Autoencoder (VAE)-style dual architecture (an inference network and a generative network) by maximizing the Evidence Lower Bound (ELBO). Once trained, this generative causal model simulates counterfactuals to calculate the Average Treatment Effect (ATE)—decomposed into direct effects ($T \rightarrow Y$) and indirect effects ($T \rightarrow M \rightarrow Y$). Finally, the server adds an ATE-guided term to calibrate the raw bids before picking the top $K$ winners, rewarding winners proportionally to their marginal contributions.

Datasets

CausalAFL is evaluated on six standard image classification benchmarks—no new datasets are introduced:

  • CIFAR-10 & CIFAR-100 (trained using ResNet-18)
  • FashionMNIST (FMNIST), EMNIST-Digits, EMNIST-Letters, and Kuzushiji-MNIST (KMNIST) (trained using a 4-layer CNN)

To simulate real-world chaos, data is split across 20 simulated sellers using a Dirichlet distribution controlled by parameter $\alpha$ ($\alpha \in \{1.0, 0.1, 0.01\}$), where smaller $\alpha$ means extreme non-IID data heterogeneity.

Key Insights and Ideas

  • Auctions need causal glasses: Previous AFL mechanisms treated bids as simple math (cost + noise). Framing the cost-bid-contribution pipeline as a causal graph reveals why naive auctions fail: unobserved confounders disguise valuable data as "overpriced" bids.
  • Privacy-friendly proxies work: Clients don't need to hand over their data distributions to fix confounding bias. Sending simple scalars—dataset size and a locally computed $L_2$ distribution divergence—gives the VAE enough signal to disentangle true quality from noise.
  • The "Goldilocks" winner pool: More participants isn't always better under a fixed budget. If too many sellers win, the budget gets diluted, individual incentives drop, and noisy clients sneak in to drag down accuracy.

Key Results

CausalAFL consistently beats 11 baselines (spanning standard FL like FedAvg, personalized FL like Ditto, auction FL like K-FLA, and causal FL like FedCIFL) across all six datasets and heterogeneity levels.

  • Thriving in extreme heterogeneity ($\alpha = 0.01$): When data is heavily skewed, standard FedAvg collapses to 12.68% accuracy on CIFAR-100, and auction-based K-FLA hits 30.04%. CausalAFL reaches 39.17%.
  • Broad benchmark dominance: At $\alpha = 0.01$, CausalAFL achieves top marks across the board, including 54.68% on CIFAR-10, 78.06% on EMNIST-L, 86.64% on FMNIST, and 91.15% on KMNIST.
  • Tuning market size: On CIFAR-100 ($\alpha = 0.01$) with 20 total sellers, varying the number of winners from 2 to 18 pushed accuracy from 24.07% to 43.80%, while social welfare peaked at 301.50 with 14 winners before declining due to budget dilution.

Limitations and Future Work

While the authors do not include a dedicated limitations section, two practical constraints stand out from their experiments and formulation:

  • Pool dilution: In their seller study, increasing the total candidate pool from 14 to 30 (while keeping winners fixed at 10) caused test accuracy on CIFAR-100 to drop from 40.95% to 32.92%. The authors note that a larger pool introduces more noisy, low-quality nodes that, if not filtered out early, dilute high-quality gradients.
  • Reliance on causal assumptions: As noted in the conclusion, bid calibration relies on specific causal identification and proxy "informativeness" assumptions holding true, alongside an assumption that the ideal global class distribution is uniformly balanced ($1/N$).

Summary updated

Abstract

Federated Learning (FL) enables collaborative model training across clients while preserving data privacy. However, FL typically relies on voluntary client participation with uniform rewards, which can lead to high-quality clients dropping out due to inadequate incentives and low-quality clients taking a free-ride, both of which degrade overall model performance. However, existing incentive mechanisms fail to capture the true contribution value of a client’s data to the global model, and often skew client selection toward cost compression rather than quality enhancement, thereby exacerbating confounding bias. To address this, we propose CausalAFL, a causal-based framework that reduces information asymmetry and corrects for confounding factors. Specifically, CausalAFL builds a complete causal chain connecting client information, bid, and marginal contribution. By jointly optimizing an inference network and a generative network within a variational inference framework, it precisely adjusts for causal bias. Maximizing the evidence lower bound objective allows CausalAFL to separate true contribution from noise and highlight the value of high-quality clients. A social welfare objective that quantifies both natural direct and indirect effects guides the server to prioritize these clients, resulting in improved global model accuracy and social welfare. Experiments on multiple datasets demonstrate that CausalAFL can guide clients to adjust their bids, leading to winners with higher contributions, confirming its effectiveness.
BibTeX
@inproceedings{yi2026confounding,
  author = {Xiaoyang Yi and Yuru Bao and RiHao Chang and Binhan Yang and Jian Zhang},
  title = {{Confounding-Aware Client Selection in Federated Learning via Causal Mediation Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qnyQCVffeL},
}
Figure