Inferensys

Glossary

FedAdam

FedAdam is a federated optimization algorithm within the FedOpt framework where the server uses the Adam optimizer to adaptively update the global model based on aggregated client gradients.
Governance lead reviewing model governance framework on laptop, policy documents visible, executive office setup.
FEDERATED OPTIMIZATION ALGORITHM

What is FedAdam?

FedAdam is a federated optimization algorithm where the central server uses the Adam optimizer to adaptively update the global model based on aggregated client gradients.

FedAdam is a server-side optimizer within the FedOpt framework, an alternative to simple weighted averaging in Federated Averaging (FedAvg). Instead of directly averaging client-submitted model updates (deltas), the server treats the aggregated update as a pseudo-gradient and applies the Adam adaptive optimization algorithm. This incorporates momentum and per-parameter adaptive learning rates, which can accelerate convergence and improve stability, particularly in scenarios with heterogeneous client data or partial participation.

The algorithm operates by having the server maintain its own first and second moment estimates (like standard Adam) for the global model parameters. Each round, the server computes a weighted average of client updates, then uses this vector to update its moments and apply the Adam update rule. This makes FedAdam part of a family of adaptive federated optimizers, alongside FedYogi and FedAdagrad, designed to handle the complex optimization landscape of decentralized training more effectively than vanilla averaging.

FEDERATED OPTIMIZATION TECHNIQUE

Key Features of FedAdam

FedAdam is a federated optimization algorithm within the FedOpt framework where the server uses the Adam optimizer to adaptively update the global model based on aggregated client gradients.

01

Server-Side Adaptive Optimization

Unlike standard Federated Averaging (FedAvg) which performs a simple weighted average of client updates, FedAdam applies the Adam optimizer on the server. The server treats the aggregated client update as a pseudo-gradient and uses Adam's adaptive learning rates (maintaining first-moment and second-moment estimates) to update the global model. This provides per-parameter learning rate adjustments based on past update history.

02

Mitigation of Client Drift

A primary benefit of FedAdam is its robustness to statistical heterogeneity (non-IID data). The adaptive moment estimation helps correct for client drift, where local models diverge due to optimizing on different data distributions. By adjusting update magnitudes parameter-by-parameter, FedAdam can stabilize convergence paths that would oscillate or diverge under simple averaging.

03

FedOpt Framework Implementation

FedAdam is a canonical example within the generalized FedOpt framework. This framework abstracts the server update step as: server_optimizer.apply_gradients(aggregated_client_deltas). FedAdam instantiates this with an Adam optimizer. Other variants in the same family include FedYogi and FedAdagrad, which use different adaptive optimizers on the server.

04

Hyperparameter Tuning & Server Learning Rate

Introduces key server-side hyperparameters beyond the client learning rate:

  • Server learning rate (η): The global step size for the Adam update.
  • Adam β₁, β₂: Exponential decay rates for the moment estimates (typically 0.9 and 0.999).
  • ε: A small constant for numerical stability. Tuning these is critical for performance, as the server learning rate often needs to be larger than the client learning rate used in FedAvg.
05

Convergence Acceleration on Heterogeneous Data

Empirical and theoretical analyses show FedAdam can achieve faster convergence than FedAvg, particularly under high data heterogeneity. The adaptive updates can navigate complex loss landscapes more efficiently. The convergence guarantee typically requires assumptions like bounded client gradients and convexity, but demonstrates improved dependency on data variance terms compared to FedAvg.

06

Communication & Computation Overhead

FedAdam maintains the same communication pattern as FedAvg—clients send model deltas, server broadcasts the new global model. The added computational cost is minimal and confined to the server, which must maintain and update the moment vectors for all model parameters. This makes it a practical upgrade from FedAvg without increasing client-side burden or communication frequency.

SERVER-SIDE OPTIMIZER COMPARISON

FedAdam vs. Other Federated Averaging Algorithms

A comparison of core federated optimization algorithms, focusing on the server's aggregation and update mechanism.

Algorithm / FeatureFedAdamFedAvg (Baseline)FedAvgMFedProx

Core Server Update Rule

Applies Adam optimizer (adaptive moments) to aggregated pseudo-gradients

Simple weighted average of client model deltas

Weighted average with a momentum buffer

Weighted average of client updates computed with a proximal term

Primary Optimization Goal

Fast convergence; handles client update variance

Foundation for collaborative training

Stabilized convergence; reduces oscillation

Mitigates client drift from data heterogeneity

Adaptive Learning Rates

Server-Side Momentum

Via Adam's first moment (m)

Explicit Client Drift Mitigation

Handles Non-IID Data

Moderate (via adaptation)

Poor

Improved over FedAvg

Good (explicit constraint)

Communication Efficiency

Standard (one update per round)

Standard (one update per round)

Standard (one update per round)

Standard (one update per round)

Key Hyperparameters

Server learning rate (η), β₁, β₂, ε

Server learning rate (η)

Server learning rate (η), momentum (ρ)

Server learning rate (η), proximal term (μ)

Part of FedOpt Framework

FEDADAM

Implementations and Frameworks

FedAdam is a federated optimization algorithm within the FedOpt framework where the server uses the Adam optimizer to adaptively update the global model based on aggregated client gradients.

01

Core Algorithm Mechanics

FedAdam replaces the simple weighted averaging step in Federated Averaging (FedAvg) with an adaptive optimizer on the server. The server maintains first-moment (m) and second-moment (v) estimates of the aggregated client gradients. It then applies the Adam update rule:

  • Server computes pseudo-gradient: Δ = Σ (weightᵢ * client_deltaᵢ)
  • Updates moments: m = β₁*m + (1-β₁)Δ, v = β₂v + (1-β₂)*Δ²
  • Applies correction and update: θ = θ - η * (m̂ / (√v̂ + ε)) This adapts the global learning rate per parameter, often leading to faster and more stable convergence than FedAvg, especially with heterogeneous client data.
02

Within the FedOpt Framework

FedAdam is a specific instantiation of the generalized FedOpt framework. FedOpt abstracts the server aggregation step as an optimization problem, allowing the use of any gradient-based optimizer:

  • FedAvg: Server optimizer = SGD
  • FedAdam: Server optimizer = Adam
  • FedYogi: Server optimizer = Yogi
  • FedAdagrad: Server optimizer = Adagrad This framework provides a unified view for analyzing and developing new federated optimization algorithms by decoupling client-side local SGD from the server's update rule.
03

Key Hyperparameters

Tuning FedAdam requires setting server-specific hyperparameters in addition to standard federated learning ones:

  • Server Learning Rate (η): The global step size. Often set lower than client LR.
  • β₁, β₂: Exponential decay rates for the moment estimates (e.g., 0.9, 0.999).
  • ε: A small constant for numerical stability (e.g., 1e-8).
  • Client Learning Rate & Local Epochs: Control local optimization depth.
  • Momentum vs. Adaptive Methods: FedAdam's β₁ provides momentum-like acceleration, while β₂ provides per-parameter adaptive scaling, distinguishing it from FedAvgM which uses a single momentum scalar.
04

Advantages Over FedAvg

FedAdam addresses several limitations of vanilla FedAvg:

  • Faster Convergence: Adaptive per-parameter learning rates can accelerate progress, especially in early training or with sparse gradients.
  • Improved Stability: Automatic scaling of updates can be more robust to varying gradient magnitudes across clients.
  • Handling Heterogeneity: Can better navigate the complex loss landscapes arising from non-IID data by adapting the server update direction.
  • Reduced Hyperparameter Sensitivity: Less sensitive to the exact choice of server learning rate compared to FedAvg's SGD step.
05

Implementation Considerations & Trade-offs

Deploying FedAdam introduces specific system and algorithmic considerations:

  • Increased Server Memory: The server must store two additional moment tensors (m, v) equal in size to the model, doubling server-state memory overhead.
  • Communication Cost Unchanged: Client-server communication costs are identical to FedAvg; only the server's aggregation logic changes.
  • Client-Server Mismatch: The adaptive update is computed from aggregated gradients, not true gradients, which can bias moment estimates. Techniques like FedAdam with correction adjust for this.
  • Convergence Guarantees: Theoretical analysis is more complex than for FedAvg but proofs exist under similar assumptions of bounded gradients and convexity.
06

Related Algorithms & Variants

FedAdam is part of a family of adaptive federated optimizers:

  • FedYogi: Uses a more conservative update for the second moment (v), which can be more stable in non-stationary federated settings.
  • FedAdagrad: Adapts learning rates based on the sum of historical squared gradients, often too aggressive decay in deep learning.
  • FedAvgM (Momentum): Incorporates a simpler momentum term without per-parameter adaptation.
  • Adaptive Federated Optimization (AFO): A broader class exploring how to best leverage adaptive methods on the server while accounting for client sampling and data heterogeneity.
FEDADAM

Frequently Asked Questions

FedAdam is a federated optimization algorithm within the FedOpt framework where the server uses the Adam optimizer to adaptively update the global model based on aggregated client gradients.

FedAdam is a federated optimization algorithm where the server applies the Adam optimizer to the aggregated client updates instead of performing a simple weighted average. It works by having clients compute gradients or model deltas locally and send them to the server. The server then treats the aggregated update as a pseudo-gradient and applies Adam's adaptive moment estimation—maintaining and updating first-moment (m) and second-moment (v) estimates—to compute the new global model parameters. This adapts the server's update direction and step size based on the history of aggregated updates, often leading to faster and more stable convergence, especially under heterogeneous client data.

Key Mechanism:

  1. Server broadcasts global model w_t to selected clients.
  2. Clients perform local SGD for E epochs, producing a model delta Δ_i.
  3. Server aggregates deltas: Δ = Σ (n_i / n) * Δ_i.
  4. Server updates its Adam moments: m = β1*m + (1-β1)*Δ, v = β2*v + (1-β2)*Δ².
  5. Server computes bias-corrected moments and updates global model: w_{t+1} = w_t - η * (m_hat / (√v_hat + ε)).
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.