Federated Learning with Energy-Based Structured Probabilistic Inference

Dario Fenoglio, Daniil Kirilenko, Martin Gjoreski, Marc Langheinrich

TL;DR

This paper introduces a novel approach to federated learning (FL) aggregation by framing it as a structured probabilistic inference problem using Conditional Random Fields (CRFs). By modeling client reliability and their interdependencies, this method significantly improves model performance, especially in challenging non-IID data scenarios, outperforming existing robust aggregation techniques.

What Problem Does This Paper Address?

Federated learning (FL) enables training machine learning models across decentralized data sources without centralizing raw data. A core challenge in FL is aggregating the model updates from individual clients to form a global model. The standard approach, Federated Averaging (FedAvg), weights client contributions based on their local data size. However, this can be suboptimal when clients have heterogeneous data distributions (non-IID), varying data quality, or different local training dynamics. This heterogeneity can lead to client drift and slow or unstable convergence. While robust aggregation methods exist to mitigate these issues, they often rely on fixed heuristics and don't explicitly model the complex relationships and varying reliability among clients. This paper addresses this gap by proposing a more sophisticated, adaptive server-side aggregation mechanism.

Methods

The paper's core innovation lies in treating the server aggregation step as a structured probabilistic inference problem, specifically using Conditional Random Fields (CRFs). Here's a breakdown:

  • CRF Formulation: A fully connected graph is constructed where each node represents a participating client in a communication round. The "observations" at each node are the local model updates (deltas) and sample counts from the clients. The "hidden variables" are discrete labels representing client reliability.
  • Unary Potentials: These potentials measure how reliable an individual client's update appears. They are derived from statistics comparing the client's update to a robust reference update (computed as the coordinate-wise median of all client updates). This captures individual client trustworthiness.
  • Pairwise Potentials: These potentials model the interactions between clients. They penalize assigning very different reliability labels to clients whose updates are similar (high affinity). This encourages compatible reliability assignments among clients with similar contributions.
  • Mean-Field Inference: Since exact inference in dense CRFs is intractable, the paper employs the mean-field approximation. This iterative process estimates the posterior distribution over client reliability labels, allowing the server to refine the aggregation weights.
  • CRF-Guided Aggregation Weight: The final aggregation weight for each client is a combination of its base FedAvg weight (proportional to sample count) and its inferred reliability score from the CRF. This allows the server to dynamically adjust how much each client's update contributes to the global model.

Datasets

The paper evaluates its method on three standard image classification datasets:

  • MNIST: A dataset of handwritten digits.
  • CIFAR-10: A dataset of 10 classes of everyday objects.
  • CIFAR-100: A dataset of 100 classes of everyday objects.

For experiments, client data was partitioned using Dirichlet label skew to induce statistical heterogeneity, simulating non-IID scenarios. They also included IID (Independent and Identically Distributed) results as a sanity check.

Key Insights and Ideas

  • Client Reliability is Dynamic and Interdependent: The paper's central insight is that client contributions to the global model are not static and depend on both their individual characteristics and their relationships with other clients. This is a departure from simpler weighting schemes.
  • Structured Inference for Better Aggregation: Framing aggregation as structured inference (CRF) allows the server to leverage richer information (update geometry, pairwise similarities) than just sample counts or simple outlier suppression.
  • Robustness and Performance Gains in Non-IID Settings: The CRF approach demonstrably improves performance in non-IID settings, where client updates can diverge significantly. This suggests that adaptive, context-aware aggregation is crucial for handling data heterogeneity.
  • Complementarity with Client-Side Regularization: The results show that CRF-guided aggregation can complement client-side techniques like FedProx, suggesting that adaptive server-side weighting can further enhance models already employing local regularization.
  • Interpretability of Reliability Scores: The unary potentials are derived from interpretable statistics (cosine agreement, relative distance, norm anomaly), making the inferred client reliability scores understandable.

Key Results

  • Improved Test Accuracy: CRF-guided aggregation consistently improved test accuracy over standard FedAvg and other robust aggregation baselines on MNIST, CIFAR-10, and CIFAR-100 under severe Dirichlet label skew.
  • Best Performance on Challenging Benchmarks: On CIFAR-10 and CIFAR-100, CRF-FedAvg and CRF-FedProx achieved the highest average accuracies, outperforming all other methods. For instance, on CIFAR-100, CRF-FedAvg achieved the highest accuracy.
  • Faster and More Stable Convergence: Validation loss curves showed that CRF-guided aggregation converges more rapidly and stably, especially on CIFAR-10, compared to methods like geometric median or trimmed mean, which can be slower or plateau at higher loss values.
  • Competitive in IID Settings: In IID settings, where client updates are already aligned, CRF variants performed comparably to the best baselines, indicating that the method does not significantly harm performance when its adaptive assumptions are less critical.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Fixed CRF Hyperparameters: The current implementation uses a fixed CRF hyperparameter configuration across experiments. A sensitivity analysis could identify optimal settings for different datasets, models, and heterogeneity regimes.
  • Hand-Designed Potentials: The unary and pairwise potentials are hand-designed based on update geometry. Future work could explore learned or adaptive potentials to potentially improve performance.
  • Robustness to Malicious Clients: The current evaluation focuses on statistical heterogeneity. Future work should investigate the method's robustness against adversarial or Byzantine client behavior.
  • Scalability and Graph Sparsification: The fully connected client graph adds server-side computation that scales quadratically with the number of clients. For very large federations, sparse graph constructions or approximate neighbor selection might be necessary.
  • Broader Evaluation: The evaluation was conducted on a limited set of datasets and architectures. Larger-scale FL benchmarks, cross-device simulations, and partial-participation settings would provide stronger evidence of scalability and generalizability.

Summary updated

BibTeX
@inproceedings{fenoglio2026federated,
  author = {Dario Fenoglio and Daniil Kirilenko and Martin Gjoreski and Marc Langheinrich},
  title = {{Federated Learning with Energy-Based Structured Probabilistic Inference}},
  booktitle = {SPIGM @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=yYHgJkXRDT},
}
Figure