We study personalized federated linear stochastic approximation (LSA), a framework which notably encompass personalized temporal difference learning. In this setting, heterogeneous agents collaborate to solve distinct linear fixed-point equations, each corresponding to an agent-specific learning problem. A central open question in personalized learning is whether a single method can adapt to an unknown level of heterogeneity by converging to each agent's personalized solution in all regimes while achieving a linear speedup in the number of agents when their learning problems are sufficiently similar. We answer this question affirmatively by introducing PF-LSA, a minimalist algorithm that mixes each agent's local stochastic update with the average update across agents, at no additional computational cost relative to standard federated methods. We prove that PF-LSA achieves best-of-both-worlds guarantees without any prior knowledge on the level of heterogeneity. Our analysis is based on a sharp decomposition of the error into consensus and disagreement components. The consensus error decays rapidly, whereas the disagreement error decays more slowly but becomes negligible in low-heterogeneity regimes.
1 INTRODUCTION
Linear stochastic approximation (LSA) is a fundamental problem in stochastic optimization, where the goal is to solve a system of linear equations whose coefficients are only available through stochastic estimates. It encompasses problems from optimization (Robbins & Monro, 1951; Défossez & Bach, 2015), control and telecommunications (Benveniste et al., 1990; Borkar & Borkar, 2008), and reinforcement learning (Tsitsiklis & Van Roy, 1996; Sutton & Barto, 2018). In the presence of noise, solving LSA problems generally requires a large number of samples (Bhandari et al., 2018). This may quickly become impractical in real-world settings where data collection is costly or distributed across multiple sources.
Federated stochastic approximation (Doan et al., 2019) has been developed as a way of improving the sample efficiency of stochastic approximation through collaboration. The promise of this paradigm is to accelerate the training by allowing agents to benefit from the experience of other agents. This provides a natural way of reducing overall sample complexity. Most federated approaches, such as Federated Averaging (FedAvg) (McMahan et al., 2017), rely on averaging local updates to learn a single shared model. While this is effective when agents are homogeneous, the performance can degrade significantly in the presence of heterogeneity across agents, where one model cannot perfectly fit all agents (Kairouz et al., 2021; Zhao et al., 2018).
To address this limitation, a growing body of work has focused on personalized federated learning, where the goal is to exploit data from other agents while still learning agent-specific solutions. Many approaches rely on structural assumptions to capture similarities between agents, such as clustering (Sattler et al., 2020), multi-task learning formulations (Smith et al., 2017; Mansour et al., 2020), or regularization-based methods (Li et al., 2020; T Dinh et al., 2020). While effective in certain regimes, these methods typically depend on prior assumptions about the structure of heterogeneity. More recent approaches aim to promote collaboration among sufficiently similar agents, but they rely on prior knowledge of inter-agent similarities, which is unavailable in practice (Philippenko et al., 2025).
In this work, we take a different perspective and propose a surprisingly simple approach. Instead of attempting to identify which agents should collaborate, we allow all agents to share information through a lightweight mixing of their stochastic updates. This approach is inspired by a form of inclusionism, where every contribution is accepted on the premise that useful ones will ultimately dominate less effective ones over time. To this end, we introduce PF-LSA (Personalized Federated Linear Stochastic Approximation), where agents use a linear combination of their own update together with the averaged update of all agents. Crucially, this is done without any consideration on the (non-)homogeneity of the agents. The algorithm is thus very minimalist, as it simply combines local updates with their global average, without imposing any explicit structure on agent similarity.
We show that, despite its simplicity, this approach is effectively able to exploit all available data while preserving personalization. Our contributions are summarized as follows:
• We introduce PF-LSA, a novel personalized federated method which mixes updates across all agents, interpolating between fully local learning and classical federated averaging (McMahan et al., 2017), with the relative importance of each part being determined by a single hyperparameter.
• We show that PF-LSA converges to the optimal solution of each individual agent, ensuring full personalization even when incorporating global information from other agents.
• We derive non-asymptotic convergence rates based on a decomposition into consensus and disagreement components. The consensus error decreases rapidly, while the disagreement term decreases more slowly but is smaller in more homogeneous settings.
• We show that, under mild heterogeneity, PF-LSA enables each agent to achieve a linear speedup.
Our results demonstrate that a minimal mixing strategy is sufficient to achieve the best of both worlds: full personalization together with the benefits of collaboration, without relying on restrictive assumptions about agent similarity. We first discuss related work in Section 2, and give context on LSA in Section 3. Then, we introduce our method and analyze it in Section 4. We then instantiate these results for TD learning in Section 5. Section 6 studies the numerical behaviour of our method. Finally, we conclude and discuss perspectives in Section 7.
2 RELATED WORK
Federated LSA and Federated Reinforcement Learning. Single-agent Linear Stochastic Approximation (LSA) has been widely studied (Robbins & Monro, 1951; Tsitsiklis & Van Roy, 1996; Bhandari et al., 2018). Federated approaches for LSA have also been proposed, generally with the aim of learning a single shared solution from multiple agents' data. Standard FedAvg (McMahan et al., 2017; Kairouz et al., 2021) extends to LSA by averaging local updates. In heterogeneous settings, FedAvg can diverge or bias the solution (Zhao et al., 2018), and local training methods with heterogeneity bias correction still optimize a common global objective. Recent work (Khodadadian et al., 2022; Wang et al., 2024; Labbi et al., 2025; 2026; Mangold et al., 2025) considers multiple agents collecting data under possibly different environments. For example, Khodadadian et al. (2022) propose federated versions of TD and Q-learning and prove linear convergence speedups in the number of agents under Markovian noise. Wang et al. (2024) study federated TD learning with heterogeneous environments, aggregating local updates to converge to the optimal value function of the mixture environment. Similarly, Mangold et al. (Mangold et al., 2024) analyze the FedLSA algorithm (a FedAvg-like method for linear fixed-point problems) and propose SCAFFLSA, which uses control variates to reduce client drift and achieve faster communication complexity. These federated LSA/RL methods demonstrate that multiple agents can accelerate learning (Khodadadian et al., 2022; Wang et al., 2024). However, they target a single global or mixture solution and do not address the fully personalized case. In short, existing federated LSA approaches focus on global objectives (or mixture objectives) and either ignore or correct heterogeneity in complex ways. By contrast, PF-LSA is designed to converge to each agent's own solution, while still attaining a linear speedup through simple gradient mixing.
Personalized Federated Learning. Personalized federated learning departs from federated averaging (FedAvg) by learning models adapted to each agent. A common approach is multi-task learning, where agents have related but distinct objectives. Smith et al. (2017); Mansour et al. (2020) formulate a problem where each agent learns its own model while sharing information through a shared representation or regularizer. A second approach is cluster-based, assuming that clients can be partitioned into clusters with similar data distributions; for instance, clustered FL (Sattler et al., 2020) alternates between grouping clients and training cluster-specific models. Other approaches, such as (Li et al., 2020; T Dinh et al., 2020) add personalization terms to standard federated optimization, optimizing a global model plus a personalization part, controlling the trade-off between the two with regularizers. These methods improve over FedAvg in non-IID settings (Zhao et al., 2018; Kairouz et al., 2021), but they rely on additional assumptions: multi-task and clustering approaches assume either low-rank/latent structure or well-separated client clusters (Smith et al., 2017; Sattler et al., 2020), which may not hold in practice. Regularization-based methods (e.g. (Li et al., 2020; T Dinh et al., 2020)) still implicitly optimize a global objective and generally require tuning of penalty hyperparameters. More recent approaches propose control-variate-style methods that allow each agent to converge to its own local solution, but require knowledge of pairwise agent data-distribution ratios, which are unavailable in practice (Zhang & Azizan, 2025). In contrast, our approach does not require such assumptions and simply aggregates updates from all agents, resulting in a remarkably simple algorithm.
3 BACKGROUND ON PERSONALIZED FEDERATED LINEAR STOCHASTIC APPROXIMATION
In personalized federated linear stochastic approximation, we consider a set of N agents, each of which has its own individual system of linear equations. The goal is to solve for each system individually, aiming to find a θc⋆ for each agent c∈[N] such that
Aˉcθc⋆=bˉc,
where for c∈[N], Aˉc∈Rd×d, bˉc∈Rd. Note that due to differences in each agent's local problem, the values of Aˉc's and bˉc's can be different from each other. Following prior work on LSA, we assume that each Aˉc satisfies the following contraction condition Mou et al. (2020).
A1. There exist a>0, η∞>0, such that η∞a≤1/2, and for η∈(0;η∞), c∈[N], u∈Rd, it holds for Z0c∼πc, that E1/2[∥(I−ηAc(Z0c))u∥2]≤(1−ηa)∥u∥.
Under this assumption, there is a unique solution θc⋆ for each linear system. In personalized federated LSA, neither matrices Aˉc nor vectors bˉc are observed directly. Instead, each agent c∈[N] has access to its own observation sequence (Zkc)k∈N, which are independent across agents. Agent c obtains estimates {(Ac(Zkc),bc(Zkc))}k∈N of Aˉc and bˉc, where Ac:Z→Rd×d and bc:Z→Rd are two measurable functions. We also define the error of estimation of Aˉc and bˉc as bc(z)=bc(z)−bˉc, Aˉc(z)=Ac(z)−Aˉc. This allows us to measure the noise at local solutions as
which are finite whenever the following assumption on {Zct}t≥0 holds.
A2. For each agent c, (Zck)k∈N are i.i.d. random variables with values in (Z,Z) and distribution πc satisfying Eπc[Ac(Zck)]=Ac and Eπc[b(Zck)]=bˉc, and we assume
This assumption will allow us to carefully track the impact of the noise in the computations. Finally, we define the following quantities, which measure the stochasticity and heterogeneity of the problem,
which we will use in our analysis to track noisy updates and to quantify the impact of heterogeneity.
Algorithm 1 PF-LSA: Personalized Federated Linear Stochastic Approximation
Input: η>0;0<β<1;T,N>0;θ10,…,θN0∈Rd
for t=0 to T−1 do
for c=1 to N do
Receive Zct+1, compute: gcZct+1(θct)=Ac(Zct+1)θct−bc(Zct+1) and send it to the central server end for
Server computes gmixt=N1∑c′=1NgcZct+1(θct) and broadcasts it to all agents
for c=1 to N do
Agent updates its model: θct+1=θct−ηβgcZct+1(θct)−η(1−β)gmixt
end for
end for
Return {θcT}c=1N
4 THE PF-LSA ALGORITHM
We now introduce and analyze PF-LSA, a new algorithm designed to solve the personalized federated LSA problem. At each round t≥0, every agent c∈[N] maintains a local parameter θct and receives a fresh observation Zct+1. Using this observation, the agent computes the local stochastic update Ac(Zct+1)θct−bc(Zct+1), and sends it to the central server. The server then averages the local updates and broadcasts the resulting global update back to all agents. Each agent combines this averaged update with its own local update through the mixing parameter β∈(0,1), leading to the recursion
The parameter β controls the relative importance of the local update in comparison with the global update: the first term favors local learning, while the second term enables collaboration by incorporating information from all agents. We give the pseudo-code of PF-LSA in Algorithm 1.
Next, in Section 4.1, we motivate the mixing mechanism by showing that the limit point of PF-LSA is the collection of local solutions, ensuring personalization. We then derive non-asymptotic rates in Section 4.2: a Lyapunov argument first gives a general but slow rate, which we then refine through a consensus/disagreement decomposition of the error, uncovering a faster convergence rate for the consensus. These results show that, for any positive mixing parameter, PF-LSA converges to the true local solutions, and that in suitable heterogeneous regimes it achieves personalization together with a linear speed-up from collaboration.
4.1 PF-LSA's LIMIT POINTS ARE THE SOLUTIONS OF INDIVIDUAL SYSTEMS
To establish the limit point of the PF-LSA algorithm, we identify the set of parameters that cancels out the deterministic update of the algorithm. By definition, any limit point of this algorithm (θ1∞,…,θN∞) must be a fixed-point, meaning that they must satisfy the stationary conditions
Solving these equations gives the following result, which shows that if PF-LSA converges, then its limit must coincide with each agent's optimal solution.
Theorem 4.1. Let {θct:c∈[N],t≥0} be the sequence of parameters of the PF-LSA algorithm with deterministic updates, η≤η∞ and 0<β≤1. Additionally assume that there exists (θ1∞,…,θN∞) such that (θ1t,…,θNt)t→∞(θ1∞,…,θN∞). Then, for all c∈[N], we have that
t→∞limθct=θc⋆.
Proof. The proof follows from solving (2). Indeed, averaging (2) over all the agents gives ∑c′=1NAˉc′(θc∞−θc⋆)=0. Plugging in the previous identity in (2) gives Aˉc(θc∞−θc⋆)=0 and the result follows from the uniqueness of the solution of the linear system Aˉcθc∞=bˉc□
This theorem highlights the core idea behind PF-LSA: as long as β>0, meaning that local parameters are given a slightly increased importance compared to the others, each agent converges to its individual solution. Notably, this holds for any value of β, highlighting the very different behavior of the method in the cases β=0 and β>0, and the fact that, as β→0, PF-LSA does not boil down to FedAvg. This phenomenon will allow us to choose very small values of β, which will be helpful for controlling the variance of the updates. Importantly, this will allow PF-LSA to achieve linear speed-up, and fast convergence, which we study in the remaining part of this section.
4.2 NON-ASYMPTOTIC CONVERGENCE RATES
Lyapunov. We now establish a non-asymptotic convergence rate of the PF-LSA algorithm. Precisely, we start by proving that PF-LSA converges towards each agent's personalized solution by analyzing a Lyapunov function tailored to the algorithm's updates. For any λ>0, we define
This Lyapunov function considers the agents’ local iterates by splitting the error into two parts: a consensus part, controlling the average of errors N1∑c′=1N(θc′t−θc′⋆) and a disagreement part, which controls the difference between agents’ local error and averaged error. Next, we show that, under suitable conditions on λ, the Lyapunov function contracts and converges to zero.
Theorem 4.2. Assume A1 and A2. Let 0<β≤1, and let η∈(0,min{η∞,16CA2a}). For any 0<λ≤1 such that (1−λ)ζ≤2aλ, and aηCA2λmax{β,λ}≤61, we have for every t≥0 that
E[Φλt]≤(1−ηβa)tΦλ0+a2η[β(1−N1)+Nλ]σˉε2.
The conditions on λ can always be satisfied: for instance, setting λ=min{1,max{4a2ζ2,6aηβCA2}} satisfies both conditions. The previous bound shows that PF-LSA indeed converges toward each agent's individualized solution for any level of heterogeneity. Although this result alone is not sufficient to establish linear speedup, this result provides a crucial ingredient for establishing linear speedup. Indeed, it allows us to control the disagreement component, which we combine with a refined analysis of the consensus dynamics below to derive sharper convergence guarantees and establish linear speedup in low-heterogeneity regimes.
Refined Convergence Bound. To better capture the dynamics of PF-LSA, we decompose the average MSE over agents into the consensus component eˉt and the disagreement component Dt,
Subsequently, we show that this decomposition reveals the two-clock structure of PF-LSA: a fast consensus clock and a slow disagreement clock. Next, we derive a recursion on the consensus mode.
Lemma 4.3 (Fast average recursion). Assume A1 and A2. Let η∈(0,min{η∞,16CA2a}), and 0<β≤1, for every t≥0, we have
The first term in Lemma 4.3, (1−ηa)t∥eˉ0∥22, corresponds to the consensus dynamics and contracts at the same rate as the initial error-forgetting term in single-agent LSA. Moreover, the variance term is of order ησˉε2/(aN), showing a linear variance reduction in the number of agents. The remaining term (2η2CA2+a4ηζ2)Dt is the price paid for personalization and heterogeneity. This term measures how much the consensus is perturbed by disagreement and by heterogeneity of the local operators. By combining this recursion with Theorem 4.2, we derive the following bound on the average MSE.
Theorem 4.4 (Unified all-heterogeneity bound). Assume A1 and A2. Let η∈(0,min{η∞,16CA2a}) and 0<β≤1. For any λ>0 such that (1−λ)ζ≤2aλ, and aηCA2λmax{β,λ}≤61, for every t≥0,
Theorem 4.4 makes the two-clock structure of PF-LSA explicit: a fast consensus clock (1−ηa)t and a slower personalization clock (1−ηβa/2)t. When heterogeneity is large, the slow mode dominates and PF-LSA recovers the single-agent LSA rate; when heterogeneity is small, the slow mode becomes negligible and the variance reduction (β+1/N) enables a linear speedup while preserving personalization. To characterize more precisely the convergence guarantees in different heterogeneity regimes, we instantiate the bound with the following explicit admissible choice of λ: λ=min{1,max{4a2ζ2,6aηβCA2}}, which allows us to characterize more precisely when collaboration is beneficial.
Low-Heterogeneity Regime. We first consider the regime in which the local operators are sufficiently similar, that is ζ2<a2/4. In this case, the admissible choice of λ introduced above does not saturate at 1. Instantiating Theorem 4.4 with this choice of λ yields the following simplified bound.
Corollary 4.5 (Low-heterogeneity regime). Assume A 1, A 2 and assume that ζ2<a2/4. Let η∈(0,min{η∞,16CA2a}), Then, for every 0<β≤1 and every t≥0,
The resulting bound highlights the favorable effect of low heterogeneity. The fast consensus component still contracts at rate (1−ηa)t, while the amplitude of the slow personalization component is controlled by D0+βa2ζ2∥eˉ0∥22. Hence, when the local operators are sufficiently similar and the discrepancy between the agents' optimal solutions is negligible compared with the initial consensus error, PF-LSA can simultaneously achieve personalization and linear speedup. We formalize this favorable regime in the following result.
Corollary 4.6 (Sample complexity in the low-heterogeneity regime). Assume A 1, A 2 and assume that ζ2<a2/4. Let ϵ>0 and choose β=1/N and the step size such that η≤min{η∞,16CA2a,144σˉε2aNϵ,96CA2∥eˉ0∥22aN2ϵ}. Then PF-LSA satisfies N1∑c=1NE∥ecT∥22≤ϵ provided
This corollary shows that, when the heterogeneity level ζ is small and the initial disagreement D0, which coincides with Δ⋆ when all agents have the same initialization and quantifies the average dispersion of the local optimal solutions around their mean, is negligible compared with the initial consensus error, that is when Nlog((D0+a2Nζ2∥eˉ0∥22)/ϵ)≤log(ϵ∥eˉ0∥22), PF-LSA, achieves a sample complexity of order O(1/(Nϵ)). This highlights a key property of PF-LSA: when the local problems are sufficiently similar relative to the common initial error, the algorithm simultaneously achieves personalization and a linear speedup in the number of agents. Intuitively, in this regime, the agents' updates remain sufficiently aligned for collaboration to reduce the effective variance, while the local component of the algorithm still drives each agent toward its own individualized solution. Importantly, this behavior emerges without any tuning of the mixing parameter and arises automatically whenever the problem lies in this favorable regime.
High-Heterogeneity Regime. We now consider the complementary regime in which the local operators are significantly different. In this case, the admissible choice of λ introduced above saturates at λ=1. Instantiating Theorem 4.4 with λ=1 yields the following result.
Corollary 4.7 (High-heterogeneity regime). Assume A 1, A 2 and assume that ζ2≥a2/4. Let η∈(0,min{η∞,16CA2a}). Then, for every 0<β≤1 and every t≥0, it holds that
The above bound makes explicit what changes in the highly heterogeneous regime. The fast consensus component still contracts at rate (1−ηa)t. However, the slow personalization component,
a2ζ2(1−2ηβa)t(D0+β∥eˉ0∥22), is no longer negligible. Thus, unlike in the low-heterogeneity regime, collaboration does not necessarily translate into a linear improvement of the overall convergence rate. Importantly, however, this slower dynamics is precisely what allows each agent to keep adapting toward its own individualized solution. Hence, even under arbitrarily large heterogeneity, PF-LSA retains personalization. The corresponding sample-complexity guarantee is given next.
Corollary 4.8 (Sample complexity in the high-heterogeneity regime). Assume A1, A2 and assume that ζ2≥a2/4. Let ϵ>0 and choose the step size such that η≤min{η∞,16CA2a,168ζ2σˉε2a3Nϵ} and set β=1/N. Then PF-LSA achieves N1∑c=1NE∥ecT∥22≤ϵ provided
This result illustrates the other side of the best-of-both-worlds behavior. Setting β=1/N still yields a 1/N reduction in the stochastic variance term. However, the personalization dynamics now evolves on the slower time scale 1−2Nηa, which introduces a factor N in the transient complexity. Consequently, the variance reduction obtained through collaboration can be offset by the slower personalization clock. This behavior is natural: when agents are highly heterogeneous, one cannot expect collaboration to accelerate the learning process, since their local learning problems are substantially different. In such a regime, the best one can reasonably expect is to recover the statistical complexity of independent learning, that O(1/ϵ) which is the case for PF-LSA. Thus, even when heterogeneity is large, PF-LSA falls back to the statistical rate of individualized learning while still preserving convergence toward each agent's own solution.
These results establish the desired best-of-both-worlds behavior of PF-LSA: when the agents are sufficiently similar, collaboration yields linear speedup; when they are highly heterogeneous, this speedup disappear, but personalization is preserved and the algorithm recovers the statistical behavior of single-agent learning, without requiring any prior knowledge of the heterogeneity level.
5 APPLICATION TO PERSONALIZED FEDERATED TD LEARNING
Background on TD Learning. In this section, we instantiate our results on Personalized Federated LSA for Personalized Federated Temporal Difference (TD) learning. Consider N Markov Decision Processes {(S,A,PcMDP,rc,γ)}c∈[N] with shared state space S, action space A, and discounting factor γ∈(0,1). Each agent c∈[N] has its own transition kernel PcMDP, where PcMDP(⋅∣s,a) specifies the transition probability from state s upon taking action a for this specific agent, as well as its own reward function rc:S×A→[0,1].
In Personalized Federated TD learning, each agent uses its own policy πc and aims to estimate its local value function. The goal is to approximate Vcπc, defined as, for s∈S and c∈[N],
In the following, we aim to approximate Vcπc(s) as a linear combination of features built using a mapping φ:S→Rd. Formally, we look for θ∈Rd such that the function V^θ(s)=φ⊤(s)θ properly estimates the true value. For c∈[N], we denote by μc the invariant distribution over S induced by πc and the transition kernel PcMDP of agent c. Our goal is to find a parameter θc∗ which is defined as the unique solution to the projected Bellman equation, see Tsitsiklis & Van Roy (1997), which defines the best linear approximation of Vcπc. This can be seen as a LSA problem (Patil et al., 2023; Wang et al., 2023), viewing the local optimum θc∗ as the solution of the system Aˉcθc∗=bˉc, where
In practice, when computing value functions, the tuples {(Sct,Act,Sct+1)}t∈N are sampled i.i.d.
TD 1. (Sct,Act,Sct+1) are generated i.i.d. with Sct∼μc, Act∼πc(⋅∣Sct), Sct+1∼PcMDP(⋅∣Sct,Act).
The generative model assumption TD 1 is common in TD learning (Dalal et al., 2018; Li et al., 2024; Patil et al., 2023; Samsonov et al., 2024). We also require the following assumption on the feature design matrix Σcφ=Eμc[φ(Sc0)φ(Sc0)⊤]∈Rd×d.
TD 2. Matrices Σcφ are non-degenerate with the minimal eigenvalue ν=minc∈[N]λmin(Σcφ)>0. Moreover, the feature mapping φ(⋅) satisfies sups∈S∥φ(s)∥≤1.
This assumption ensures the uniqueness of the optimal parameter θc⋆. Under TD 1 and TD 2 we check that the Personalized Federated LSA assumptions A1, and A2 hold with the following values.
Claim 5.1. Assume TD 1 and TD 2. Then the sequence of TD(0) updates satisfies A2 and A1 with
We refer to Mangold et al. (2024) for a proof of this claim.
Application of PF-LSA to TD learning. We can now instantiate the results of Section 4.2 in the setting of personalized TD learning. In particular, we derive two sample-complexity guarantees corresponding to the low- and high-heterogeneity regimes, determined by the level of heterogeneity of the local operators ζTD.
Corollary 5.2 (Sample complexity of personalized federated TD: low-heterogeneity regime). Assume TD 1 and TD 2, and suppose that ζTD2<(1−γ)2ν2/16, and set β=1/N. Let ϵ>0 and choose the step size such that
The low-heterogeneity condition takes a particularly interpretable form in TD learning: ζTD<4(1−γ)ν. Hence, shorter effective horizons (larger 1−γ) and better-conditioned feature representations (larger ν) allow for greater heterogeneity while remaining in the favorable regime. Moreover, the previous result shows that when the initial disagreement is negligible relative to the initial consensus error, PF-LSA achieves the desired linear-speedup rate O(1/(Nϵ)) while still converging to each agent's personalized TD solution. We now turn to the complementary high-heterogeneity regime.
Corollary 5.3 (Sample and communication complexity of personalized federated TD: high-heterogeneity regime). Assume TD 1 and TD 2, and suppose that ζTD2≥(1−γ)2ν2/16, and set β=1/N. Let ϵ>0 and choose the step size such that
The high-heterogeneity result illustrates the second side of the best-of-both-worlds behavior. Even when the local TD problems are substantially different, PF-LSA still estimates each agent's local value function to any desired precision, while recovering the same O(1/ϵ) dependence on the target accuracy as independent TD learning.
6 NUMERICAL EXPERIMENTS
In this section, we demonstrate the performance of PF-LSA under varying levels of heterogeneity. We consider the Garnet problem (Archibald et al., 1995; Geist et al., 2014), with n = 10 states embedded in d = 5 dimensions, a = 10 actions, and each state is linked to b = 3 others in the transition kernel. We aim to estimate the value function of the policy that chooses actions uniformly at
(a) ζker=0, ζrew=0
(b) ζker=0, ζrew=0.1
(c) ζker=0, ζrew=0.5
(d) ζker=0, ζrew=1
(e) ζker=1, ζrew=0
(f) ζker=1, ζrew=0.1
(g) ζker=1, ζrew=0.5
(h) ζker=1, ζrew=1
Figure 1: Average MSE over agents N1∑c=1N∥θct−θc⋆∥22 as a function of the number of iterations for PF-LSA, FedLSA, and Single agent LSA applied to personalized federated TD(0) under varying levels of heterogeneity of the transition kernels ζker and rewards ζrew, for a fixed number of agents N=10. The step-size used for Single agent LSA is η=0.2, for PF-LSA, we use η=0.2×N/2, and for FedLSA, we use η=0.2×N. For each algorithm, we report the average MSE over agents and variance over 5 runs.
random, in homogeneous and heterogeneous setups. The experiments were conducted on a machine equipped with a 13th Gen Intel(R) Core(TM) i9-13900H CPU running at 2.60 GHz.
PF-LSA properly handles heterogeneity. Figure 1 shows that PF-LSA remains stable and converges towards the personalized solutions across all considered levels of heterogeneity. When the agents are homogeneous, all methods converge to comparable limiting errors, although PF-LSA reaches this regime much faster than Single agent LSA. As the reward heterogeneity ζrew increases, FedLSA no longer converges to the personalized solutions and instead plateaus at a large error, reflecting the bias induced by learning a single global model. This effect is especially visible for ζrew∈{0.5,1}, where the error of FedLSA remains several orders of magnitude above that of PF-LSA. By contrast, PF-LSA keeps a low final error even in the most heterogeneous settings.
PF-LSA successfully accelerates the learning process. Compared with Single agent LSA, PF-LSA consistently reaches the low-error regime in significantly fewer iterations. This acceleration is already visible in the homogeneous setting and persists under both reward and transition-kernel heterogeneity. The improvement comes from the gradient-mixing mechanism, which allows each agent to benefit from the stochastic updates collected by all agents, thereby reducing the effective variance of the update. This is consistent with our theoretical prediction that, for β=1/N, the averaged component of the dynamics enjoys a linear speed-up in the number of agents. Empirically, PF-LSA typically matches or improves upon the final accuracy of Single agent LSA while requiring substantially fewer iterations to reach the same error level.
PF-LSA achieves the best of both worlds between FedLSA and single agent learning. The experiments highlight the complementary limitations of the two baselines. Single agent LSA is fully personalized, but it does not exploit the samples collected by the other agents and therefore converges slowly. On the other hand, FedLSA benefits from collaboration and can converge quickly in nearly homogeneous settings, but it learns a shared solution and becomes biased when the agents are heterogeneous. PF-LSA combines the advantages of both approaches: it uses global information through the averaged update, which accelerates learning, while retaining a local update component, which guarantees convergence to each agent's own solution. The results in Figure 1 therefore support the main message of the paper: a minimal gradient-mixing mechanism is sufficient to obtain fast collaborative learning without sacrificing personalization.
7 CONCLUSION AND PERSPECTIVES
We introduce PF-LSA, a minimalist federated algorithm for personalized LSA, that relies on a lightweight mixing of local updates. Remarkably, PF-LSA finds agent-specific optimal solutions without imposing any assumptions on the heterogeneity level, as is typical in federated learning. Our theoretical analysis establishes that PF-LSA achieves true personalization while still benefiting from collaboration across the network. These theoretical results build upon a precise non-asymptotic characterization of the error, which we decompose into "consensus", that is shared by all agents and "disagreement". We identify regimes in which this simple mechanism yields a linear speed-up over isolated learning. In particular, we show that collaboration is most effective when heterogeneity remains controlled, allowing information sharing to accelerate convergence while still guaranteeing convergence to each agent's optimal solution. Our work primarily aims to highlight the remarkable property of a very simple combination of local and global updates. Extending the present results beyond i.i.d. noise to Markovian settings would be an important step toward applications in reinforcement learning and temporal difference learning. More broadly, future work could explore algorithmic enhancements such as warm-start strategies to reduce early-stage disagreement and preconditioning methods to mitigate operator heterogeneity.
ACKNOWLEDGEMENTS
The work of S. Labbi, and P. Mangold has been supported by Technology Innovation Institute (TII), project Fed2Learn. The work of E. Moulines has been partly funded by the European Union (ERC-2022-SYG-OCEAN-101071601). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
REFERENCES
TW Archibald, KIM McKinnon, and LC Thomas. On the generation of markov decision processes. Journal of the Operational Research Society, 46(3):354–361, 1995.
A. Benveniste, M. Métivier, and P. Priouret. Adaptive Algorithms and Stochastic Approximations. Applications of mathematics. Springer-Verlag, 1990. ISBN 9783540528944. URL https://books.google.fr/books?id=vtuovgEACAAJ.
J. Bhandari, D. Russo, and R. Singal. A finite time analysis of temporal difference learning with linear function approximation. In Conference On Learning Theory, pp. 1691–1692, 2018.
Vivek S Borkar and Vivek S Borkar. Stochastic approximation: a dynamical systems viewpoint, volume 100. Springer, 2008.
G. Dalal, Balázs Szörényi, G. Thoppe, and S. Mannor. Finite sample analyses for TD(0) with function approximation. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
Alexandre Défossez and Francis Bach. Averaged least-mean-squares: Bias-variance trade-offs and optimal sampling distributions. In Artificial Intelligence and Statistics, pp. 205–213. PMLR, 2015.
Thinh Doan, Siva Maguluri, and Justin Romberg. Finite-Time Analysis of Distributed TD(0) with Linear Function Approximation on Multi-Agent Reinforcement Learning. In Proceedings of the 36th International Conference on Machine Learning, pp. 1626–1635. PMLR, May 2019. URL https://proceedings.mlr.press/v97/doan19a.html. ISSN: 2640-3498.
Matthieu Geist, Bruno Scherrer, et al. Off-policy learning with eligibility traces: a survey. J. Mach. Learn. Res., 15(1):289–333, 2014.
Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Kallista Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. Foundations and Trends® in Machine Learning, 14(1–2):1–210, 2021.
Sajad Khodadadian, Pranay Sharma, Gauri Joshi, and Siva Theja Maguluri. Federated reinforcement learning: Linear speedup under markovian sampling. In International Conference on Machine Learning, pp. 10997–11057. PMLR, 2022.
Safwan Labbi, Daniil Tiapkin, Lorenzo Mancini, Paul Mangold, and Eric Moulines. Federated ucbvi: Communication-efficient federated regret minimization with heterogeneous agents. In Yingzhen Li, Stephan Mandt, Shipra Agrawal, and Emtiyaz Khan (eds.), Proceedings of The 28th International Conference on Artificial Intelligence and Statistics, volume 258 of Proceedings of Machine Learning Research, pp. 1315–1323. PMLR, 03–05 May 2025. URL https://proceedings.mlr.press/v258/labbi25a.html.
Safwan Labbi, Paul Mangold, Daniil Tiapkin, and Eric Moulines. On global convergence rates for federated softmax policy gradient under heterogeneous environments. In Emtiyaz Khan, Yingzhen Li, Arno Solin, and Aaditya Ramdas (eds.), Proceedings of The 29th International Conference on Artificial Intelligence and Statistics, volume 300 of Proceedings of Machine Learning Research, pp. 4960–4968. PMLR, 02–05 May 2026. URL https://proceedings.mlr.press/v300/labbi26a.html.
Gen Li, Weichen Wu, Yuejie Chi, Cong Ma, Alessandro Rinaldo, and Yuting Wei. High-probability sample complexities for policy evaluation with linear function approximation. IEEE Transactions on Information Theory, 70(8):5969–5999, 2024. doi: 10.1109/TIT.2024.3394685.
Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. Federated learning: Challenges, methods, and future directions. IEEE signal processing magazine, 37(3):50–60, 2020.
Paul Mangold, Sergey Samsonov, Safwan Labbi, Ilya Levin, Reda Alami, Alexey Naumov, and Eric Moulines. Scafflsa: Taming heterogeneity in federated linear stochastic approximation and td learning. Advances in Neural Information Processing Systems (NeurIPS), 37, 2024.
Paul Mangold, EloÃ▣se Berthier, and Eric Moulines. Convergence guarantees for federated sarsa with local training and heterogeneous agents. arXiv preprint arXiv:2512.17688, 2025.
Yishay Mansour, Mehryar Mohri, Jae Ro, and Ananda Theertha Suresh. Three approaches for personalization with applications to federated learning. arXiv preprint arXiv:2002.10619, 2020.
Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, pp. 1273–1282. PMLR, 2017.
Wenlong Mou, Chris Junchi Li, Martin J Wainwright, Peter L Bartlett, and Michael I Jordan. On linear stochastic approximation: Fine-grained Polyak-Ruppert and non-asymptotic concentration. In Conference on Learning Theory, pp. 2947–2997. PMLR, 2020.
Gandharv Patil, LA Prashanth, Dheeraj Nagaraj, and Doina Precup. Finite time analysis of temporal difference learning with linear function approximation: Tail averaging and regularisation. In International Conference on Artificial Intelligence and Statistics, pp. 5438–5448. PMLR, 2023.
Constantin Philippenko, Batiste Le Bars, Kevin Scaman, and Laurent MassouliÊ. Adaptive collaboration for online personalized distributed learning with heterogeneous clients. arXiv preprint arXiv:2507.06844, 2025.
Herbert Robbins and Sutton Monro. A stochastic approximation method. The annals of mathematical statistics, pp. 400–407, 1951.
Sergey Samsonov, Daniil Tiapkin, Alexey Naumov, and Eric Moulines. Improved High-Probability Bounds for the Temporal Difference Learning Algorithm via Exponential Stability. In Shipra Agrawal and Aaron Roth (eds.), Proceedings of Thirty Seventh Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, pp. 4511–4547. PMLR, 30 Jun–03 Jul 2024. URL https://proceedings.mlr.press/v247/samsonov24a.html.
Felix Sattler, Klaus-Robert Müller, and Wojciech Samek. Clustered federated learning: Model-agnostic distributed multitask optimization under privacy constraints. IEEE transactions on neural networks and learning systems, 32(8):3710–3722, 2020.
Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet S Talwalkar. Federated multi-task learning. Advances in neural information processing systems, 30, 2017.
Richard S Sutton and Andrew G Barto. Reinforcement Learning: An Introduction. MIT Press, 2018.
Canh T Dinh, Nguyen Tran, and Josh Nguyen. Personalized federated learning with moreau envelopes. Advances in neural information processing systems, 33:21394–21405, 2020.
J. N. Tsitsiklis and B. Van Roy. An analysis of temporal-difference learning with function approximation. IEEE Transactions on Automatic Control, 42(5):674–690, May 1997. ISSN 2334-3303. doi: 10.1109/9.580874.
John Tsitsiklis and Benjamin Van Roy. Analysis of temporal-difference learning with function approximation. Advances in neural information processing systems, 9, 1996.
Han Wang, Aritra Mitra, Hamed Hassani, George J Pappas, and James Anderson. Federated temporal difference learning with linear function approximation under environmental heterogeneity. arXiv preprint arXiv:2302.02212, 2023.
Han Wang, Aritra Mitra, Hamed Hassani, George J. Pappas, and James Anderson. Federated TD learning with linear function approximation under environmental heterogeneity. Transactions on Machine Learning Research, 2024. ISSN 2835-8856. URL https://openreview.net/forum?id=hdQspgyFrk.
Chenyu Zhang and Navid Azizan. Personalized collaborative learning with affinity-based variance reduction. arXiv preprint arXiv:2510.16232, 2025.
(10) where the last equality follows from the definition of ζ, see (1). Combining (9) and (10), the expression inside the square brackets in (A) is bounded from below by
The last term uses conditional centering and cross-agent independence. Since ∑cdct=0,
N1c∑Aˉcect=Aˉeˉt+N1c∑(Aˉc−Aˉ)dct.
Jensen's inequality and A1 imply
∥eˉt∥22−2η⟨eˉt,Aˉeˉt⟩≤(1−ηa)2∥eˉt∥22.
The remaining deterministic cross-term is bounded by
2ηζ∥eˉt∥2Dt≤4ηa∥eˉt∥22+a4ηζ2Dt.
Finally, N−1∑c∥ect∥22=∥eˉt∥22+Dt, and the step-size condition gives
(1−ηa)2+4ηa+2η2CA2≤1−ηa.
Substitution in (20) proves the lemma.
Theorem B.2 (Unified all-heterogeneity bound). Under the assumptions and step-size condition of Theorem A.1, let 0<β≤1 and let 0<λ≤1 satisfy (3). Then, for every t≥0,
From the previous bound, we can deduce the following two corollaries, corresponding respectively to the high- and low-heterogeneity regimes.
Corollary B.3 (High-heterogeneity regime). Under the assumptions and step-size condition of Theorem B.2, assume that ζ2≥a2/4. Then, for every 0<β≤1 and every t≥0,
Combining this inequality with (B) in (29) proves the result
Corollary B.4 (Low-heterogeneity regime). Under the assumptions and step-size condition of Theorem B.2, assume that ζ2<a2/4. Then, for every 0<β≤1 and every t≥0,
Substituting (33) and (34) into Theorem B.2 proves (30).
Corollary B.5 (Sample complexity in the low-heterogeneity regime). Under the assumptions of Theorem B.4, assume that ζ2<4a2, and set β=N1. Let ϵ>0 and choose the step size such that
Hence the second transient term is at most ϵ/4 whenever
T≥ηa2Nlogϵ16(D0+a2N4ζ2∥eˉ0∥22).(38)
Combining (35), (37), and (38) gives (36) which concludes the proof.
Corollary B.6 (Sample complexity in the high-heterogeneity regime). Under the assumptions of Theorem B.3, assume that ζ2≥4a2, and set β=N1. Let ϵ>0 and assume that
Combining (39), (41), and (42) concludes the proof.
C APPLICATION TO PERSONALIZED FEDERATED TD-LEARNING
We now specialize the preceding results to personalized federated TD learning. Recall that, for each agent c∈[N], the local projected Bellman equation can be written as
Corollary C.3 (Sample complexity of personalized federated TD: low-heterogeneity regime). Assume TD 1 and TD 2, and suppose that ζTD2<(1−γ)2ν2/16, and set β=1/N. Let ϵ>0 and choose the step size such that
Corollary C.4 (Sample and communication complexity of personalized federated TD: high-heterogeneity regime). Assume TD 1 and TD 2, and suppose that ζTD2≥(1−γ)2ν2/16, and set β=1/N. Let ϵ>0 and choose the step size such that
Proof. Define x=[x1⊤,…,xN⊤]⊤ and y=[y1⊤,…,yN⊤]⊤∈RNd. Define by P the orthogonal projector on
E={x∈RNd:x=[x⊤,…,x⊤]⊤,x∈Rd}.
We show that Px=[xˉN⊤,…,xˉN⊤]⊤. Note indeed that for any z=[z⊤,…,z⊤]⊤∈E, we get (with a slight abuse of notations, ⟨⋅,⋅⟩ denotes the scalar product in RNd and Rd)
⟨x−Px,z⟩=c=1∑N{⟨xc,z⟩−⟨xˉN,z⟩}=0.
The proof follows from Pythagoras identity which shows that
∥Px−Py∥2=∥x−y∥2−∥(x−Px)−(y−Py)∥2
Lemma D.3. Assume A1 and A2. For any c∈[N], and x∈Rd, and η∈(0,η∞), it holds that
⟨x,Aˉcx⟩≥a∥x∥2.
(a) ζker=0, ζrew=0
(b) ζker=0.01, ζrew=0.01
(c) ζker=0.5, ζrew=0.5
(d) ζker=0.9, ζrew=0.9
Figure 2: Average MSE across agents, N1∑c=1N∥θct−θc⋆∥22, as a function of the number of iterations for PF-LSA with N∈{2,8,16}, under increasing levels of transition-kernel heterogeneity ζker and reward heterogeneity ζrew. The step size is set to η=0.2×N/2. Each curve reports the average MSE over agents, with variability computed over 5 independent runs. Consistent with our theoretical results, increasing the number of agents yields a substantial acceleration in low-heterogeneity regimes, while the benefit of collaboration progressively diminishes as heterogeneity increases.
Proof. For any c∈[N], u∈Rd, and 0<η′<η∞, A1 gives
E[(I−η′Act+1)u22]≤(1−η′a)2∥u∥22.
Expanding both sides and using E[Act+1]=Aˉc gives
After cancelling ∥u∥22, dividing by 2η′, and rearranging,
⟨u,Aˉcu⟩≥a∥u∥22+2η′(E[∥Act+1u∥22]−a2∥u∥22).
Letting η′→0 concludes the proof.
E ADDITIONAL EXPERIMENTS
We complement the experiments of Section 6 by investigating directly the effect of the number of agents on the convergence speed of PF-LSA. In particular, our theoretical results predict that, in the low-heterogeneity regime, PF-LSA achieve a linear speedup in the number of agents while still converging toward each agent's personalized solution. We therefore compare the performance of PF-LSA for N∈{2,8,16} under increasing levels of transition-kernel and reward heterogeneity.
Figure 2 shows the average MSE across agents as a function of the number of iterations. We use η=0.1×N and set β=1/N, in accordance with our theoretical results.
Increasing the number of agents accelerates convergence under low heterogeneity. In the homogeneous setting (Figure 2(a)), increasing the number of agents leads to a substantial acceleration of convergence. In particular, N = 16 reaches the low-error regime considerably earlier than N = 8, which itself converges faster than N = 2. The same behavior remains clearly visible under very mild heterogeneity (Figure 2(b)). This is consistent with our theoretical prediction that, when the agents' local problems are sufficiently similar, averaging information across agents reduces the effective stochastic variance and allows PF-LSA to benefit from a speedup that scales with the number of agents.
PF-LSApreserves personalization across all heterogeneity levels. As the heterogeneity increases, the separation between the curves corresponding to different values of N becomes progressively smaller. For moderate heterogeneity (Figure 2(c)), using more agents still improves the transient convergence behavior, but the gain is significantly weaker than in the nearly homogeneous cases. Under strong heterogeneity (Figure 2(d)), the three curves become much closer, and increasing the number of agents provides only a limited acceleration. However, in all cases, the method successfully converges to each agent's personalized solution.
Overall, Figure 2 provides empirical evidence for the best-of-both-worlds behavior predicted by our theory: PF-LSAbenefits increasingly from additional agents when collaboration is useful, while converging to each agent's personalized solution across all heterogeneity levels.