AIMech AI

FedMA (Federated Matched Averaging via Layer-Wise Bayesian Nonparametric Matching)

Algorithms AIMech:FedMaFederatedMatchedAveragingViaLayerWiseBayesianNonparametricMatching DRAFT
Aliases: FedMA, Federated Matched Averaging, Federated Learning with Matched Averaging
A layer-wise permutation-aware federated learning algorithm (FedMA, Algorithm 1) for modern neural networks (FC layers, CNN channels, and RNN/LSTM hidden states) that accounts for neuron permutation invariance W_1 Pi_j, Pi_j^T W_2 by matching and averaging hidden elements (neurons, convolutional channels, or recurrent states) bottom-up one layer at a time: at layer n, the server solves a Bayesian nonparametric Beta-Bernoulli Process MAP (BBP-MAP, Eq. 6) assignment problem via iterative Hungarian bipartite matching to align client weights {W_{j,n}}_{j=1}^J into global weights W_{G,n} = (1/J) sum_j W_{j,n} Pi_{j,n} (adaptively expanding layer width L in [max_j L_j, sum_j L_j] when distances exceed threshold epsilon), broadcasts W_{G,n}, and has clients permute layer n+1 via Pi_{j,n}^T W_{j,n+1} and retrain remaining layers n+1,...,N with layers 1,...,n frozen.
Identity Notes & Concept Scope Distinct from coordinate-wise parameter averaging (FedAvg, FedProx) which ignores the permutation invariance of neural network hidden units and averages misaligned neurons, from single-round one-shot Probabilistic Federated Neural Matching (PFNM, which applies only to shallow fully connected networks without layer-wise freezing and retraining), and from FedDF (AIMech:FedDfEnsembleDistillationForRobustModelFusionInFederatedLearning, which fuses models in output logit space using unlabeled server data rather than matching weights layer-by-layer via Hungarian assignment).

Claims & Grounded Evidence

4 Claims
Mechanism #r408-permutation-invariance-of-fc-cnn-and-lstm-layers-and-hungarian-matching
Section 2 establishes exact permutation invariance across fully connected layers (W_1 Pi_j, Pi_j^T W_2, Eq. 2), convolutional channels Conv(x, Pi_{j,n-1}^T W_{j,n}) Pi_{j,n} (Eq. 3), and recurrent hidden-to-hidden matrices Pi^T H Pi (Eq. 4), and formulates matched averaging (Eq. 5) as minimizing sum_{i=1}^L sum_{j,l} pi_{li}^j c(w_{jl}, theta_i) via coordinate-descent Hungarian bipartite matching with MAP solutions theta_i = (1/J) sum_{j,l} pi_{li}^j w_{jl}.
Mechanism #r408-bbp-map-nonparametric-adaptive-width-and-bottom-up-layer-freezing
Using the Beta-Bernoulli Process MAP objective (Eq. 6) with distance threshold epsilon and size penalty f(L'), FedMA dynamically adapts each global layer width L in [max_j L_j, sum_j L_j] by spawning new global neurons for unmatched client features, while Algorithm 1 matches and freezes layers bottom-up from n = 1 to N-1 so deeper layers retrain on aligned representations before being matched.
Limitation #r408-layer-wise-communication-rounds-and-cubic-hungarian-matching-complexity-limitation
FedMA requires N-1 sequential layer-wise matching-and-retraining rounds per global pass and incurs Hungarian matching complexity between O(D L^2 + L^3) in the best case and O(D (J L)^2 + (J L)^3) in the worst case per layer (Appendix E), and cannot directly match across residual skip connections without architectural constraints.
Application #r408-heterogeneous-vgg9-cifar10-and-lstm-shakespeare-application
Evaluated on heterogeneous CIFAR-10 with VGG-9, MNIST with CNNs, and Shakespeare next-character prediction with LSTM models, outperforming FedAvg and FedProx in test accuracy, communication efficiency (bits vs. accuracy), and skewed domain-bias handling.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:FederatedLearning
Federated Learning
narrow_match FedMA is a layer-wise permutation-matching FederatedLearning aggregation algorithm for deep neural networks.

Evidence Sources & Primary Literature

3 Sources
Source ID Publication / Document Type / Access Reference & Checksum
r408-primary-pdf
Hongyi Wang, Mikhail Yurochkin, Yuekai Sun, Dimitris Papailiopoulos, Yasaman Khazaeni
primary paper
full_text
ID: https://openreview.net/forum?id=BkluqlSFDS
sha256:765b7000ef57…
r408-arxiv-abs
Hongyi Wang, Mikhail Yurochkin, Yuekai Sun, Dimitris Papailiopoulos, Yasaman Khazaeni
primary paper
abstract_only
ID: https://arxiv.org/abs/2002.06440
sha256:ebd912597f8b…
r408-metadata-cr
Hongyi Wang, Mikhail Yurochkin, Yuekai Sun, Dimitris Papailiopoulos, Yasaman Khazaeni
primary paper
abstract_only
ID: https://openreview.net/forum?id=BkluqlSFDS
sha256:0f1307375bcc…

Ontology & Grounding Topology

Open in interactive network graph →
CONCEPT KIND Algorithms AIMech:FedMaFederatedMatchedAveragingViaLayerWiseBayesianNonparametricMatching FedMA (Federated... 4 claims · 3 sources AIO GROUNDING AIO:FederatedLearning (1)

Curation Provenance

Curator: Antigravity
Method: ai_assisted
Model: Gemini
Created: 2026-10-19T08:11:00Z
Updated: 2026-10-19T08:11:00Z
Source File: data/curated/FedMaFederatedMatchedAveragingViaLayerWiseBayesianNonparametricMatching.yaml · Schema: curated_concept.yaml

Explore across X-Mech

Related computational & biological Mechs: Embedding Map Network Graph ProteinTraitsMech (ESM-2 pLM) DUFMech (Domain pLM) TraitMech CultureMech All 14 X-Mech Repositories