pFedMe (Personalized Federated Learning with Moreau Envelopes) is an optimization framework that reformulates the federated learning objective as a bi-level problem using the Moreau envelope as a regularized loss function. Unlike standard Federated Averaging, which forces all clients toward a single global minimum, pFedMe allows each client to optimize its own personalized model while maintaining proximity to the global model through a proximal term controlled by a hyperparameter λ. This decoupling prevents the global model from being pulled toward conflicting local optima, a critical advantage when dealing with non-IID data distributions across healthcare institutions.
Glossary
pFedMe

What is pFedMe?
pFedMe is a personalized federated learning algorithm that decouples local model optimization from global model learning using Moreau envelopes, enabling clients to pursue distinct objectives without diverging destructively from the shared model.
The algorithm operates in alternating phases: clients solve a local subproblem using an iterative proximal gradient descent to find their personalized models, then transmit only the difference between the personalized and global models back to the server for aggregation. This communication-efficient design reduces the number of rounds required for convergence compared to Per-FedAvg and Ditto, while providing stronger theoretical convergence guarantees for non-convex objectives. pFedMe is particularly suited for clinical settings where patient demographics vary significantly across sites, enabling each hospital to maintain a site-specific diagnostic model without compromising the shared knowledge encoded in the global parameters.
Key Features of pFedMe
pFedMe decouples personalized model optimization from global model learning using Moreau envelopes, allowing each client to pursue a distinct local objective while maintaining proximity to the global consensus.
Moreau Envelope Decomposition
pFedMe reformulates the federated optimization problem using Moreau envelopes, a mathematical tool from convex analysis. This decomposes the learning objective into two distinct subproblems:
- Global model learning: Solved at the server level to find a shared consensus
- Personalized model optimization: Solved locally by each client using a proximal term
The Moreau envelope smooths the local loss landscape, making the optimization more stable and allowing each client to find a personalized solution that is close but not identical to the global model.
L2-Norm Regularization for Personalization
The algorithm introduces an L2-norm regularization term between the personalized model and the global model. This proximal term acts as a mathematical tether:
- Prevents the local model from diverging too far from the global consensus
- Allows sufficient flexibility to adapt to non-IID local data distributions
- The regularization strength λ controls the personalization degree
A larger λ keeps models closer to the global consensus, while a smaller λ permits greater local adaptation. This provides a tunable knob for balancing generalization and personalization.
Bi-Level Optimization Framework
pFedMe employs a bi-level optimization structure that separates concerns cleanly:
- Inner loop: Each client solves its own personalized objective using the Moreau envelope, typically with multiple local update steps
- Outer loop: The server aggregates the personalized models to update the global model
This decoupling means clients can perform multiple local epochs without suffering from the client drift that plagues standard FedAvg. The inner optimization finds a true personalized solution rather than just taking a few gradient steps.
Client Drift Mitigation
Standard FedAvg suffers from client drift when local data distributions are heterogeneous—each client's updates pull the global model in conflicting directions. pFedMe addresses this by:
- Allowing each client to optimize toward its own personalized objective rather than a shared one
- Using the Moreau envelope to maintain a controlled proximity to the global model
- Eliminating the tension between local adaptation and global consistency
This results in faster convergence and higher final accuracy, especially in highly non-IID settings common in healthcare data silos.
Theoretical Convergence Guarantees
pFedMe provides rigorous convergence analysis under standard assumptions:
- Proves convergence for both strongly convex and non-convex loss functions
- Achieves a convergence rate of O(1/T) for strongly convex objectives
- Demonstrates that the Moreau envelope smoothing improves the conditioning of the local optimization problem
These theoretical foundations make pFedMe suitable for safety-critical healthcare applications where predictable convergence behavior is essential for regulatory approval and clinical validation.
Communication Efficiency
By allowing clients to perform multiple local update steps within the inner optimization loop, pFedMe reduces the frequency of communication rounds:
- Clients solve their personalized subproblem more thoroughly before communicating
- Fewer communication rounds are needed to reach a target accuracy compared to FedAvg
- The global model update uses standard aggregation, maintaining compatibility with existing federated infrastructure
This is particularly valuable in healthcare settings where bandwidth is constrained or communication costs are high across institutional boundaries.
pFedMe vs. Other Personalization Approaches
A technical comparison of pFedMe against standard personalization methods in federated learning, evaluating optimization decoupling, heterogeneity handling, and convergence properties.
| Feature | pFedMe | Per-FedAvg | Ditto | FedPer |
|---|---|---|---|---|
Personalization Mechanism | Moreau envelope bi-level optimization | Model-Agnostic Meta-Learning (MAML) initialization | Proximal regularization term in local objective | Split architecture: global base, local head |
Optimization Decoupling | Full decoupling of local and global objectives | Partial; shared initial weights | Partial; L2 penalty constrains divergence | Structural; layer-wise separation |
Handles Statistical Heterogeneity | ||||
Handles System Heterogeneity | ||||
Local Computation Overhead | Higher; solves inner optimization subproblem | Higher; computes Hessian-vector products | Lower; standard SGD with added penalty | Lower; only head layers personalized |
Convergence Rate | Linear convergence to stationary point | Sublinear under non-i.i.d. data | Linear with bounded client dissimilarity | Linear for shared layers; head-dependent |
Communication Efficiency | Standard; transmits full model weights | Standard; transmits full model weights | Standard; transmits full model weights | Higher; only base layers communicated |
Theoretical Guarantee | ϵ-accuracy with O(1/ϵ) communication rounds | Convergence to stationary point of meta-objective | Bounded personalization benefit vs. global model | No formal convergence rate for heterogeneous heads |
Frequently Asked Questions
Clear, technical answers to the most common questions about the pFedMe personalized federated learning algorithm, its mechanisms, and its advantages in heterogeneous healthcare environments.
pFedMe is a personalized federated learning algorithm that decouples personalized model optimization from global model learning using Moreau envelopes. Unlike standard Federated Averaging (FedAvg) which forces all clients toward a single global consensus, pFedMe allows each client to pursue a distinct local objective while still benefiting from the global model's structural knowledge.
The core mechanism works as follows:
- Bi-level optimization: The global server optimizes a shared model, while each client solves a local Moreau envelope-regularized subproblem that penalizes deviation from the global model but does not force exact alignment.
- Moreau envelope smoothing: This mathematical construct creates a smoothed version of the local loss function, allowing clients to find personalized minima that are close to—but distinct from—the global optimum.
- Alternating updates: Clients perform multiple local gradient steps to solve their personalized subproblem before sending updates back to the server, which then aggregates these to refine the global model.
This decoupling is particularly valuable in healthcare federated learning, where patient populations at different hospitals exhibit significant statistical heterogeneity. A hospital specializing in geriatric care can maintain a model tuned to its demographic while still learning from pediatric data at other institutions.
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
Explore the core concepts and algorithms that enable tailoring global federated models to the specific data distributions of individual clients, balancing generalization with local adaptation.
Moreau Envelopes
The mathematical foundation of pFedMe, a Moreau envelope is a smoothing technique from convex optimization. It decouples the personalized model optimization from the global model learning by creating a regularized subproblem for each client. This allows clients to pursue distinct local objectives without diverging destructively from the global consensus, effectively handling statistical heterogeneity in non-IID data distributions.
Per-FedAvg
A precursor to pFedMe that explicitly optimizes the Model-Agnostic Meta-Learning (MAML) objective in a federated setting. Per-FedAvg finds a shared initial model from which clients can rapidly adapt to their local data with only a few gradient steps. Unlike pFedMe's proximal regularization, Per-FedAvg focuses on learning a sensitive initialization that maximizes personalization speed.
Ditto
A personalization framework that adds a proximal term to the local objective function. This L2 regularization penalty encourages the local model to remain close to the global model while still optimizing for the client's specific empirical risk. Ditto's simplicity makes it a strong baseline, but pFedMe's Moreau envelope formulation provides a more theoretically principled separation of global and local objectives.
Client Clustering
An alternative personalization strategy that partitions clients into groups with similar data distributions before performing standard Federated Averaging within each cluster. Techniques like Clustered Federated Learning recursively separate clients based on the similarity of their local model updates. This prevents divergent local objectives from degrading the global model, but requires explicit cluster identification unlike pFedMe's implicit personalization.
FedRep
An algorithm that partitions the neural network into a shared global representation and a personalized local head. The base layers learn a common feature extractor across all clients, while the final classification layers remain unique to each client. This structural approach to personalization addresses data heterogeneity by allowing clients to maintain distinct decision boundaries on top of shared features.
Federated Meta-Learning
A 'learning to learn' paradigm that trains a model initialization across clients such that it can rapidly adapt to a new local task with only a few gradient steps. Unlike pFedMe's per-round personalization, meta-learning optimizes for fast adaptation at deployment time. This approach is particularly valuable when new clients join the federation and need to personalize quickly with limited local data.

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