FedProx is a federated optimization algorithm that modifies the local client objective by adding a proximal term to constrain local updates, directly mitigating client drift caused by data heterogeneity. It is a generalization of the foundational Federated Averaging (FedAvg) algorithm, where each client minimizes its loss function plus a penalty based on the distance from the current global model parameters. This regularization discourages local models from diverging too far during their independent training epochs, leading to more stable and efficient convergence when client data is not identically distributed.
Glossary
FedProx

What is FedProx?
FedProx is a federated optimization algorithm designed to improve convergence under statistically heterogeneous (non-IID) data by adding a proximal term to the local client objective function.
The algorithm introduces a hyperparameter, mu (μ), which controls the strength of the proximal regularization. A higher μ value forces local updates to stay closer to the global model, which is beneficial for highly heterogeneous data but may slow learning if data is more uniform. FedProx also accommodates system heterogeneity by allowing variable amounts of local work (epochs) across clients, making it robust to stragglers. Its primary contribution is providing a simple yet effective modification to the local subproblem that addresses a core instability in standard federated averaging.
Key Features of FedProx
FedProx introduces a modified local objective function to address the core challenge of client drift in federated learning. Its key features are engineering solutions for stable convergence under statistical heterogeneity.
Proximal Term
The defining mechanism of FedProx is the addition of a proximal term to the standard local loss function. This term penalizes the distance between the local model parameters and the global model parameters received at the start of the round.
- Mathematical Formulation: The local objective becomes
F_k(w) + (μ/2) * ||w - w^t||^2, whereF_k(w)is the original local loss,wis the local model,w^tis the global model, andμis the proximal hyperparameter. - Primary Function: This L2 regularization acts as an anchor, constraining local updates to remain closer to the global model. It directly counteracts the divergence force caused by optimizing on non-IID data.
μ (mu) Hyperparameter
The proximal parameter μ controls the strength of the regularization applied by the proximal term. It is a critical tuning knob that balances local model improvement with global model alignment.
- μ = 0: The algorithm reduces to standard Federated Averaging (FedAvg), with no constraint on client drift.
- μ > 0: Introduces the proximal constraint. A larger μ value forces local models to stay closer to the global model, improving stability but potentially slowing per-client learning on unique local data.
- Adaptive Tuning: In practice, μ can be tuned or scheduled. A common strategy is to use a moderately small, fixed value (e.g., 0.01 to 0.1) to provide stability without overly hindering local optimization.
Heterogeneous Local Computation
FedProx explicitly accounts for system heterogeneity by allowing clients to perform varying amounts of local work. This is a pragmatic feature for real-world edge deployments where devices have different computational capacities and availability.
- Variable Epochs/Batches: Instead of a fixed number of local epochs, clients can perform a variable number of stochastic gradient steps, potentially stopping early if constrained.
- Theoretical Handling: The algorithm's convergence analysis accommodates this variability, provided each client's local optimization reaches an approximate minimum of its proximal-augmented objective. This makes it robust to stragglers and device dropouts.
Mitigation of Client Drift
The primary design goal of FedProx is to mitigate client drift, the phenomenon where local client models diverge from the global objective due to non-IID data.
- Root Cause: In FedAvg, clients minimize their local loss
F_k(w)without regard for the global state, leading to updates that point in different directions. Averaging these divergent updates results in slow, unstable convergence. - FedProx Solution: By minimizing
F_k(w) + (μ/2)||w - w^t||^2, each client's update is a compromise between improving its local performance and staying aligned with the global model. This ensures updates from heterogeneous clients are more aligned in the parameter space, leading to more effective and stable aggregation.
Generalization of FedAvg
FedProx is a strict generalization of the classic FedAvg algorithm. This means FedAvg is a specific instance of the FedProx framework under certain conditions.
- Theoretical Inclusion: When the proximal parameter
μ = 0and all clients perform a fixed, identical number of local epochs, the FedProx local objective reduces to the standard FedAvg local objective. - Practical Implication: This relationship allows practitioners to view FedProx not as a wholly different algorithm, but as an enhanced, more robust version of FedAvg. It provides a smooth migration path: starting with FedAvg (μ=0) and introducing the proximal term (μ>0) if convergence issues due to data heterogeneity are observed.
Convergence Guarantees
FedProx provides formal convergence guarantees under more realistic assumptions than prior work, specifically accounting for non-IID data and system heterogeneity.
- Key Assumption: It assumes each client finds an approximate minimizer (γ-inexact solution) of its proximal-augmented local objective, which models variable local computation.
- Guarantee: Under this assumption and standard smoothness conditions, FedProx is proven to converge to a stationary point of the global objective at a rate of
O(1/√T)for non-convex functions, whereTis the number of communication rounds. - Significance: This theoretical foundation provides confidence that the algorithm will work reliably even when client data distributions are statistically heterogeneous and computational resources are uneven.
FedProx vs. FedAvg: Key Differences
A technical comparison of the foundational FedAvg algorithm and its FedProx extension, which addresses client drift in heterogeneous data environments.
| Feature / Mechanism | Federated Averaging (FedAvg) | FedProx |
|---|---|---|
Core Objective Modification | ||
Local Objective Function | Standard empirical risk minimization (ERM) on client data. | ERM + a proximal term penalizing deviation from the global model. |
Primary Design Goal | Efficient communication via multi-epoch local training. | Mitigate client drift caused by statistical heterogeneity (non-IID data). |
Key Hyperparameter | Number of local epochs (E). | Proximal term weight / strength (μ). |
Client Update Computation | Minimizes local loss: min_w L_k(w). | Minimizes regularized loss: min_w L_k(w) + (μ/2) * ||w - w^t||^2, where w^t is the global model. |
Impact on Local Optimization | Clients can diverge significantly from the global model, especially with many local epochs. | Constrains local updates to remain closer to the global model, reducing divergence. |
Convergence Behavior on Non-IID Data | Can suffer from slow convergence, oscillation, or bias due to client drift. | Provides more stable convergence and can reach a higher-accuracy solution under high heterogeneity. |
Theoretical Guarantees | Convergence proven under IID or bounded dissimilarity assumptions. | Convergence proven under more relaxed data heterogeneity assumptions, accounting for the proximal term. |
Communication Efficiency | High (fewer rounds due to more local computation per round). | Comparable to FedAvg; the proximal term does not inherently increase communication frequency. |
Computational Overhead per Client | Standard local SGD computation. | Slightly higher due to the proximal term gradient calculation, but often negligible. |
Compatibility with Personalization | Base algorithm for many personalized FL methods (e.g., FedPer, FedRep). | The proximal regularization can be viewed as a form of implicit personalization, anchoring to a shared global point. |
Typical Use Case | Environments with relatively homogeneous client data or limited heterogeneity. | Environments with significant data skew across clients (e.g., different user writing styles, sensor locations). |
Frequently Asked Questions
FedProx is a foundational algorithm in federated learning designed to address the core challenge of statistical heterogeneity. These questions cover its mechanism, advantages, and practical implementation.
FedProx is a federated optimization algorithm that modifies the local training objective on each client by adding a proximal term to constrain local updates, directly mitigating client drift caused by non-IID data. In standard Federated Averaging (FedAvg), clients minimize their local loss function, which can cause their models to diverge significantly from the global optimum when their data is heterogeneous. FedProx adds a regularization term, μ/2 * ||w - w^t||^2, to the local objective, where w is the local model being optimized, w^t is the global model received at the start of round t, and μ is a hyperparameter. This term penalizes the local model for straying too far from the global model, effectively anchoring the local optimization. Clients perform a variable amount of local work, and the algorithm accommodates system heterogeneity by allowing clients to return partially converged solutions. The server then aggregates these proximal-constrained updates using standard weighted averaging.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
FedProx is part of a family of algorithms designed to address the core challenges of federated optimization, particularly statistical heterogeneity and system constraints. These related techniques offer alternative approaches to stabilizing training and improving convergence.
Federated Averaging (FedAvg)
Federated Averaging (FedAvg) is the foundational algorithm upon which FedProx builds. It coordinates multiple clients to train a shared model by having each client perform multiple local epochs of Stochastic Gradient Descent (SGD) on its data before the server aggregates the updates via a weighted average.
- Core Mechanism: Simple averaging of client model parameters.
- Limitation: Prone to client drift under non-IID data, as local objectives diverge from the global goal.
- Relationship to FedProx: FedProx modifies the local client objective in FedAvg by adding a proximal term to explicitly constrain updates, directly mitigating FedAvg's drift weakness.
SCAFFOLD
SCAFFOLD (Stochastic Controlled Averaging for Federated Learning) is another major algorithm addressing client drift. Instead of modifying the objective function, it uses control variates—correction terms stored on both server and clients—to reduce the variance between client updates.
- Core Mechanism: Maintains a global and local control variate to estimate and correct for update bias.
- Key Difference from FedProx: SCAFFOLD adds a correction term to the gradient, while FedProx adds a regularization term to the loss. Both aim to align local and global optimization.
- Use Case: Particularly effective when client drift is caused by gradient variance, not just parameter divergence.
FedNova
FedNova (Federated Normalized Averaging) tackles heterogeneity in client local workloads. When clients perform different numbers of local steps (due to varying data sizes or compute power), their updates have inconsistent magnitudes, biasing aggregation.
- Core Mechanism: Normalizes each client's update based on its local optimization progress before averaging.
- Problem Solved: Prevents clients that perform more steps from disproportionately influencing the global model.
- Complementarity with FedProx: FedNova addresses step-based heterogeneity, while FedProx addresses data-distribution heterogeneity. They can be conceptually combined.
FedOpt Framework
The FedOpt framework generalizes server-side aggregation. Instead of simple averaging (as in FedAvg), it allows the server to apply adaptive optimizers like Adam, Yogi, or Adagrad to the aggregated client updates.
- Core Mechanism: Treats aggregated client gradients as a pseudo-gradient for a server-side optimizer.
- Example: FedAdam uses the Adam optimizer on the server, which can accelerate convergence and adapt to sparse updates.
- Relationship to FedProx: FedProx is a client-side modification. FedOpt is a server-side modification. They operate on different parts of the federated loop and can be used together.
Client Drift
Client drift is the core problem FedProx is designed to mitigate. It refers to the phenomenon where local client models diverge from the global objective during local training, especially under non-IID data.
- Cause: Each client's local SGD steps move its parameters towards the optimum of its own data distribution, which may differ from the global optimum.
- Consequence: Divergent client updates can cancel each other out or introduce noise during aggregation, slowing or preventing convergence.
- FedProx's Solution: The proximal term
(μ/2) * ||w - w^t||^2penalizes the local modelwfor straying too far from the global modelw^treceived at the start of the round.
Proximal Point Methods
FedProx is inspired by classical proximal point methods in optimization. These methods stabilize iterative algorithms by ensuring each new iterate stays close to the previous one.
- Mathematical Foundation: The proximal operator finds a point that minimizes the sum of the objective function and a quadratic penalty based on distance from a reference point.
- Application in FedProx: The global model from the previous round serves as the reference point (
w^t). The proximal term ensures local updates are bounded, which is crucial in the distributed, heterogeneous setting. - Benefit: Provides theoretical convergence guarantees even for non-convex objectives and heterogeneous data, a key advancement over basic FedAvg.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us