FedProx (Federated Proximal) is a generalization of Federated Averaging (FedAvg) that adds a proximal penalty—(μ/2) * ||w - w_t||²—to each client's local objective function. This proximal term limits the divergence of locally trained models from the global model w_t, directly addressing the client drift problem caused by heterogeneous, non-IID data distributions across clinical sites.
Glossary
FedProx

What is FedProx?
FedProx is a federated learning framework that introduces a proximal term to the local objective function, constraining local model updates to remain close to the global model and providing robustness to statistical heterogeneity and partial participation.
The framework introduces a γ-inexactness parameter that allows clients to perform variable amounts of local computation, solving the straggler problem by accepting partial solutions from resource-constrained nodes. By bounding local updates and tolerating incomplete work, FedProx provides theoretical convergence guarantees under statistical and systems heterogeneity, making it essential for real-world healthcare deployments where patient cohorts and computational resources vary significantly across institutions.
Key Features of FedProx
FedProx introduces a proximal term to the local objective function, providing theoretical and practical robustness to the statistical and systems heterogeneity inherent in real-world federated networks.
Proximal Term Regularization
The core innovation of FedProx is the addition of a proximal term to the local subproblem. Instead of minimizing the local empirical loss alone, each client minimizes h_k(w; w^t) = F_k(w) + (μ/2) ||w - w^t||².
- μ (mu): A tunable hyperparameter that controls the penalty for deviating from the global model
w^t. - Effect: This term restricts local updates from drifting too far when trained on highly skewed non-IID data, bounding the solution space.
- Benefit: Prevents the pathological divergence often seen in standard FedAvg when local datasets are statistically heterogeneous.
γ-Inexactness for Partial Participation
FedProx introduces a γ-inexactness condition to handle systems heterogeneity, specifically stragglers and partial participation. Instead of requiring clients to solve their local problems to a fixed precision, the framework allows for variable amounts of local computation.
- Mechanism: A client's local update
wis accepted if||∇h_k(w; w^t)|| ≤ γ_k ||∇h_k(w^t; w^t)||, whereγ_k ∈ [0, 1]. - Straggler Mitigation: Slower clients can compute a less precise (higher γ) update and still contribute, rather than being dropped entirely.
- Convergence Guarantee: The method provides convergence guarantees that depend on the local inexactness, ensuring robustness to variable system performance.
Statistical Heterogeneity Robustness
FedProx is specifically designed to stabilize training across non-IID data partitions, a common failure mode for standard FedAvg.
- Client Drift Correction: The proximal term acts as a corrective force, pulling local models back toward the global consensus, mitigating the client drift caused by divergent local optima.
- Theoretical Foundation: The framework provides a convergence analysis that explicitly accounts for statistical dissimilarity across clients, offering a more realistic theoretical model than the IID assumption.
- Practical Impact: Empirically demonstrates more stable and faster convergence than FedAvg on heterogeneous partitions of standard vision and language datasets.
Generalization of FedAvg
FedProx is a strict generalization of the standard Federated Averaging (FedAvg) algorithm, allowing practitioners to recover the baseline behavior seamlessly.
- μ = 0: Setting the proximal term coefficient to zero reduces the local objective to the standard empirical risk minimization used in FedAvg.
- γ = 0: Setting the inexactness parameter to zero requires clients to solve their local subproblem exactly, mirroring the standard assumption of full local epochs.
- Flexibility: This design allows for a smooth transition from standard FedAvg to the robust FedProx framework by simply tuning
μandγ, facilitating easy adoption in existing pipelines.
FedProx vs. FedAvg vs. SCAFFOLD
A technical comparison of three foundational federated optimization algorithms across their mechanisms for handling statistical heterogeneity, client drift, and partial participation.
| Feature | FedProx | FedAvg | SCAFFOLD |
|---|---|---|---|
Core Mechanism | Adds proximal term to local objective | Local SGD with weighted averaging | Control variates correct client drift |
Client Drift Mitigation | |||
Partial Participation Robustness | |||
Requires Client State | |||
Convergence on Non-IID Data | Guaranteed with bounded dissimilarity | May diverge under high heterogeneity | Guaranteed with variance reduction |
Communication Overhead | Same as FedAvg | Baseline | 2x per round (control variates) |
Hyperparameter Sensitivity | Moderate (μ tuning required) | Low | Low |
Theoretical Convergence Rate | O(1/T) for non-convex | O(1/T) for IID only | O(1/T) for non-convex |
Frequently Asked Questions
Clear, technical answers to the most common questions about the FedProx framework, its proximal term, and how it handles heterogeneous data and stragglers in federated learning.
FedProx (Federated Proximal) is a federated learning optimization framework that adds a proximal term to the local objective function on each client. This term penalizes the squared Euclidean distance between the local model weights and the global model weights, mathematically expressed as (μ/2) * ||w - w_t||², where μ is a tunable hyperparameter. By limiting the divergence of local updates from the global model, FedProx provides theoretical robustness to statistical heterogeneity (non-IID data distributions) and systems heterogeneity (varying compute and network capabilities across clients). Unlike standard Federated Averaging (FedAvg), which requires all clients to complete a fixed number of local epochs, FedProx allows for partial work—clients can return inexact solutions based on their available resources, making it resilient to stragglers without discarding their partially computed updates.
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
Key concepts and algorithms that complement or contrast with the FedProx framework for handling heterogeneity in federated learning.
Federated Averaging (FedAvg)
The foundational algorithm that FedProx generalizes. In FedAvg, clients perform multiple local stochastic gradient descent (SGD) steps before sending model updates to the server for weighted averaging. Unlike FedProx, FedAvg lacks a proximal term, making it vulnerable to client drift when local data distributions are non-IID. The server aggregates updates using a simple weighted average proportional to local dataset sizes.
SCAFFOLD
An alternative algorithm that corrects for client drift using control variates. SCAFFOLD maintains a server-side control variate and client-side control variates that estimate the update direction of the global model. The difference between these variates is used to correct local updates, reducing variance caused by data heterogeneity. Unlike FedProx's proximal term, SCAFFOLD requires clients to maintain persistent state across rounds.
Proximal Term (μ)
The defining mechanism of FedProx. A quadratic penalty is added to the local objective function that measures the Euclidean distance between the local model and the global model. The hyperparameter μ (mu) controls the strength of this regularization:
- μ = 0: Reduces to standard FedAvg
- μ > 0: Anchors local updates to the global model, limiting divergence
- Large μ: Increases convergence stability but may slow personalization
Inexact Local Solvers
FedProx introduces the concept of γ-inexactness to accommodate heterogeneous system resources. Instead of requiring a fixed number of local epochs, clients can solve their local subproblems to varying degrees of accuracy based on available compute. A local update is γ-inexact if the gradient norm is bounded by γ times the gradient norm at the starting point. This provides a theoretical framework for straggler resilience without discarding partial work.
Statistical Heterogeneity
The primary challenge FedProx addresses. In real-world federated networks, client data distributions are non-IID (not independent and identically distributed). This causes local SGD updates to drift toward different local minima, slowing or preventing global convergence. FedProx's proximal term explicitly bounds this drift by penalizing the parameter divergence between local and global models, providing theoretical convergence guarantees under heterogeneous conditions.
Partial Participation
A realistic federated learning scenario where only a subset of clients participate in each training round due to connectivity, battery, or availability constraints. FedProx provides theoretical convergence guarantees under partial participation, unlike standard FedAvg which assumes full or uniformly random participation. The proximal term stabilizes training when the active client set varies significantly between rounds, making it robust to real-world deployment conditions.

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