Whom to share with, and how much
A prevalent strategy for heterogeneous federated RL decouples the policy or value network into a shared representation backbone and task-specific decision heads. Existing methods then pick one of two extremes for the heads: fully shared heads maximize collaboration but risk negative transfer, while fully local heads avoid conflicts but forfeit decision-level knowledge transfer. GAdapHeadFRL moves beyond this binary choice along two axes.
Whom to share with (server). Clients send task signatures extracted from their local updates. The server clusters them with spherical K-means, automatically selects the number of groups using a cosine-silhouette criterion, and maintains one task-head prototype per group.
How much to share (client). Each client mixes its local head $\hat\phi_{i,k}$ with its group prototype $\hat\phi_{g,k}$ as $\tilde\phi_{i,k}(\alpha)=(1-\alpha)\hat\phi_{i,k}+\alpha\hat\phi_{g,k}$, where $\alpha_{i,k}\in[0,1]$ is computed locally from lightweight proxies of task mismatch (Mahalanobis distance) and estimation instability.
Theory: the optimal sharing strength is not a free hyperparameter
For a fixed backbone $\theta$, the local Bellman residual splits exactly into a representation error, which does not depend on $\alpha$, and a task-head estimation error that does.
Modeling the local and shared heads as stochastic estimators, $\hat\phi_i=\phi_i^\star+m_i+\xi_i$ and $\hat\phi_g=\phi_g^\star+m_g+\xi_g$, with oracle mismatch $b_{i,g}=\phi_g^\star-\phi_i^\star$, noise energies $V_i,V_g$, and noise coupling $C_{ig}$, the expected head error becomes a strictly convex quadratic in $\alpha$.
Fully shared heads (FedAvg-style, $\alpha\to1$) and fully local heads (personalized, $\alpha\to0$) are the two boundary cases of this single adaptive principle: sharing is favored when task mismatch is small and local noise is large, and rejected when the mismatch dominates. Because the quality of the shared prior bounds what any mixing rule can achieve, grouping compatible clients first makes the prototype worth borrowing from.