P-FedSkill: A Personalized Federated Skill Learning Framework under Task Heterogeneity

arXiv cs.AI Papers

Summary

P-FedSkill is a personalized federated skill learning framework that addresses task heterogeneity across clients via local skill extraction, personalized skill selection, and task-aware skill routing, with theoretical guarantees and experiments validating its effectiveness.

arXiv:2611.33707v1 Announce Type: new Abstract: Skill learning has become an important way to improve agent performance. However, agent trajectories often contain sensitive information and cannot be shared across clients, hindering collaborative skill learning. To tackle this issue, federated skill learning (FSL) has emerged as a solution by distilling trajectories into compact skill representations and uploading them to a central server for sharing. However, existing FSL methods typically share skills based on skill similarity without considering their contributions to heterogeneous tasks across clients, thereby degrading agent performance. To address this challenge, we propose P-FedSkill, a personalized FSL framework that comprises three key components: local skill extraction (LSE), personalized skill selection (PSS), and task-aware skill routing (TASR). Specifically, LSE first extracts skill patches (i.e., task applicability conditions and execution strategies) and task execution outcomes from trajectories. PSS then uses these outcomes to evaluate each skill patch's performance on client tasks and incorporates its task applicability condition to construct a personalized skill set for each client. Finally, TASR adaptively selects a task-relevant subset of skill patches based on their applicability conditions to guide agent execution. We further provide a theoretical guarantee for personalized skill selection in P-FedSkill, and extensive experiments also demonstrate its effectiveness.
Original Article
View Cached Full Text

Cached at: 11/27/26, 09:32 AM

# P-FedSkill: A Personalized Federated Skill Learning Framework under Task Heterogeneity
Source: [https://arxiv.org/html/2611.33707](https://arxiv.org/html/2611.33707)
Jiayi JiRongrong Ji††thanks:Z\. Lin, J\. Ji, and R\. Ji are with the Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, School of Informatics, Xiamen University, Xiamen 361005, China \(e\-mail: linzehang@stu\.xmu\.edu\.cn; jjyxmu@gmail\.com; rrji@xmu\.edu\.cn\)\.

###### Abstract

Skill learning has become an important way to improve agent performance\. However, agent trajectories often contain sensitive information and cannot be shared across clients, hindering collaborative skill learning\. To tackle this issue, federated skill learning \(FSL\) has emerged as a solution by distilling trajectories into compact skill representations and uploading them to a central server for sharing\. However, existing FSL methods typically share skills based on skill similarity without considering their contributions to heterogeneous tasks across clients, thereby degrading agent performance\. To address this challenge, we propose P\-FedSkill, a personalized FSL framework that comprises three key components: local skill extraction \(LSE\), personalized skill selection \(PSS\), and task\-aware skill routing \(TASR\)\. Specifically, LSE first extracts skill patches \(i\.e\., task applicability conditions and execution strategies\) and task execution outcomes from trajectories\. PSS then uses these outcomes to evaluate each skill patch’s performance on client tasks and incorporates its task applicability condition to construct a personalized skill set for each client\. Finally, TASR adaptively selects a task\-relevant subset of skill patches based on their applicability conditions to guide agent execution\. We further provide a theoretical guarantee for personalized skill selection in P\-FedSkill, and extensive experiments also demonstrate its effectiveness\.

###### Index Terms:

Federated learning, skill learning\.

## IIntroduction

With the proliferation of intelligent agents, massive volumes of interaction trajectories are being generated on edge devices\[[1](https://arxiv.org/html/2611.33707#bib.bib1),[2](https://arxiv.org/html/2611.33707#bib.bib2)\]\. According to the International Data Corporation \(IDC\), more than 1 billion AI agents are expected to be deployed globally by 2029, performing approximately 217 billion actions daily\[[3](https://arxiv.org/html/2611.33707#bib.bib3)\]\. This rapidly growing volume of interaction data is accelerating advances in agent technologies, leading to progress across various domains such as intelligent manufacturing\[[4](https://arxiv.org/html/2611.33707#bib.bib4)\], cybersecurity\[[5](https://arxiv.org/html/2611.33707#bib.bib5)\], and embodied intelligence\[[6](https://arxiv.org/html/2611.33707#bib.bib6)\]\.

Recently, skill learning has become an important approach to improving agent performance by extracting reusable task solutions from interaction trajectories\[[7](https://arxiv.org/html/2611.33707#bib.bib7)\]\. These solutions can be further used to guide agents in completing new tasks, thereby improving execution efficiency\[[8](https://arxiv.org/html/2611.33707#bib.bib8)\]\. However, trajectories from individual clients typically span only a narrow range of tasks, limiting the solutions available for agent execution\[[9](https://arxiv.org/html/2611.33707#bib.bib15)\]\. A straightforward idea is to collect trajectories from multiple clients to learn a broader set of skills\. However, such trajectories often contain sensitive information and cannot be directly shared across clients due to privacy concerns, thereby hindering collaborative skill learning\[[10](https://arxiv.org/html/2611.33707#bib.bib9)\]\.

To address this issue, federated skill learning \(FSL\) has emerged as a solution by distilling trajectories into compact skill representations and uploading them to a central server for sharing\. For example, Lan et al\.\[[11](https://arxiv.org/html/2611.33707#bib.bib29)\]proposed FedSkillGit, which employs version control to maintain a global skill library and update shared skills based on the execution strategies derived from clients’ local tasks\. However, due to task heterogeneity, similar skills may contribute differently to task execution across clients, as illustrated in Fig\.[1](https://arxiv.org/html/2611.33707#S1.F1)\. For some clients, a shared skill can provide useful execution strategies, whereas for others, the same skill may be irrelevant to their tasks or even mislead the agent into taking incorrect actions\[[8](https://arxiv.org/html/2611.33707#bib.bib8)\]\. Ignoring such differences in skill utility across clients may result in suboptimal skill sharing, making it difficult for clients to prioritize the skills most relevant to their tasks and ultimately degrading agent performance\.

![Refer to caption](https://arxiv.org/html/2611.33707v1/FSL.png)Fig\. 1:Illustration of unequal skill contributions under task heterogeneity\.To combat the above challenge, in this paper, we propose apersonalizedfederatedskilllearning framework, named P\-FedSkill, to provide each client with a personalized skill set under heterogeneous task distributions\. P\-FedSkill consists of three key components: i\) local skill extraction \(LSE\), ii\) personalized skill selection \(PSS\), and iii\) task\-aware skill routing \(TASR\)\. Specifically, LSE groups local trajectories by task type and extracts skill patches \(i\.e\., task applicability conditions and execution strategies\) along with task execution outcomes\. PSS then uses these outcomes to evaluate each skill patch’s performance on client tasks and incorporates its task applicability condition to construct a personalized skill set for each client\. Finally, TASR adaptively selects a task\-relevant subset of skill patches based on their applicability conditions to guide agent execution\. The main contributions of this paper are summarized as follows\.

- •We propose P\-FedSkill, a personalized federated skill learning framework that enables personalized skill sharing under task heterogeneity across clients\.
- •We design LSE to extract skill patches from each client’s local trajectories, providing diverse solutions to guide agent execution\.
- •We design PSS to construct a personalized skill set for each client, and devise TASR to adaptively select task\-relevant skill patches from the personalized skill set to guide agent execution\.
- •We establish a finite\-sample suboptimality bound that provides a theoretical guarantee for personalized skill selection in P\-FedSkill under heterogeneous client tasks, and extensive experiments further demonstrate its effectiveness\.

The rest of the paper is organized as follows\. Sec\.[II](https://arxiv.org/html/2611.33707#S2)reviews the related work\. Sec\.[III](https://arxiv.org/html/2611.33707#S3)introduces the system design of P\-FedSkill\. Sec\.[IV](https://arxiv.org/html/2611.33707#S4)describes the experimental setup\. Sec\.[V](https://arxiv.org/html/2611.33707#S5)presents the results and analysis\. Finally, Sec\.[VI](https://arxiv.org/html/2611.33707#S6)concludes the paper\.

## IIRelated work

### II\-AAgent Skill Learning

Skill learning has emerged as a promising method for improving agent performance by extracting reusable skills from interaction trajectories\[[12](https://arxiv.org/html/2611.33707#bib.bib11),[13](https://arxiv.org/html/2611.33707#bib.bib12),[14](https://arxiv.org/html/2611.33707#bib.bib13)\]\. Research efforts on agent skill learning predominantly focus on two major directions: experience abstraction and structured skill construction\. For experience\-based skill learning,\[[15](https://arxiv.org/html/2611.33707#bib.bib10)\]proposed ExpeL, which extracts reusable insights from successful and failed interaction trajectories and retrieves relevant experiences for unseen tasks\. For structured skill construction,\[[16](https://arxiv.org/html/2611.33707#bib.bib14)\]proposed MaestroMotif, which represents skills with initiation, execution, and termination components and uses LLM\-generated code and reinforcement learning to construct and combine reusable skills\. Beyond centralized skill learning, recent studies have explored federated skill learning to enable cross\-client skill sharing without exposing private interaction trajectories\.\[[9](https://arxiv.org/html/2611.33707#bib.bib15)\]proposed FedSkill to enable cross\-client skill sharing by clustering parameterized vectors based on similarity and returning matched cluster centroids to each client without sharing raw trajectories\.

![Refer to caption](https://arxiv.org/html/2611.33707v1/PFSL.png)Fig\. 2:Illustration of the P\-FedSkill framework\.
### II\-BPersonalized Federated Learning under Heterogeneity

Personalized federated learning \(PFL\) has been extensively studied to address client heterogeneity in federated learning\[[17](https://arxiv.org/html/2611.33707#bib.bib16),[18](https://arxiv.org/html/2611.33707#bib.bib17),[19](https://arxiv.org/html/2611.33707#bib.bib18),[20](https://arxiv.org/html/2611.33707#bib.bib19),[21](https://arxiv.org/html/2611.33707#bib.bib20),[22](https://arxiv.org/html/2611.33707#bib.bib21)\]\. For example,\[[17](https://arxiv.org/html/2611.33707#bib.bib16)\]proposed HPFL, which trains personalized plug\-in modules on a shared backbone and dynamically selects suitable modules for target data at inference\. Meanwhile,\[[20](https://arxiv.org/html/2611.33707#bib.bib19)\]analyzed the generalization of PFL under non\-convex objectives using uniform stability and decomposed the generalization error into aggregation and fine\-tuning errors\. While these studies have advanced personalized federated learning under client heterogeneity, they primarily address model\-level personalization or theoretical analysis rather than reusable skill sharing across agents\. As a result, personalized federated skill learning tailored to heterogeneous client tasks remains largely unexplored\.

## IIISystem Design

### III\-AOverview

In this section, we present the architecture and workflow of the P\-FedSkill framework\. As illustrated in Fig\.[2](https://arxiv.org/html/2611.33707#S2.F2), P\-FedSkill consists of three key modules: local skill extraction \(LSE\), personalized skill selection \(PSS\), and task\-aware skill routing \(TASR\)\. The workflow of P\-FedSkill comprises the following four stages: i\) Each client interacts with its local environment to generate interaction trajectories; ii\) LSE then extracts skill patches and task execution statistics from these trajectories and uploads them to the central server; iii\) The uploaded skill patches are then processed by PSS to evaluate their performance on client tasks and construct a personalized skill set for each client\. The resulting personalized skill sets are then sent back to the corresponding clients; iv\) Each client receives its personalized skill set and employs TASR to select the relevant skill patches to guide agent execution\. The complete procedure of P\-FedSkill is summarized inAlgorithm[1](https://arxiv.org/html/2611.33707#algorithm1)\.

Algorithm 1P\-FedSkill framework\.Require :

\{𝒯k\}\\\{\\mathcal\{T\}\_\{k\}\\\},

\{dkt\}\\\{d\_\{k\}^\{t\}\\\},

ϕ\\phi,

ρ\\rho,

ϵ0\\epsilon\_\{0\},

η\\eta,

KK,

δ\\delta,

MlM\_\{l\},

MhM\_\{h\}\.

Output :

\{Sk\}\\\{S\_\{k\}\\\},

\{Skt\}\\\{S\_\{k\}^\{t\}\\\}\.

1*Local skill extraction*:

2foreach*clientkk*do

3for*j=1,…,zj=1,\\dots,z*do

4

𝒯k,j←\{τk,i∈𝒯k∣ℓk,i=j\}\\mathcal\{T\}\_\{k,j\}\\leftarrow\\\{\\tau\_\{k,i\}\\in\\mathcal\{T\}\_\{k\}\\mid\\ell\_\{k,i\}=j\\\};

5if*𝒯k,j≠∅\\mathcal\{T\}\_\{k,j\}\\neq\\emptyset*thenExtract skill patches

s=\(cs,πs\)s=\(c\_\{s\},\\pi\_\{s\}\)from

𝒯k,j\\mathcal\{T\}\_\{k,j\};

6foreach*skill patchss*do

7

ℰk,s←\{\(i,u\)∣subgoal\(i,u\)usesπs,yk,i,uis observed\}\\mathcal\{E\}\_\{k,s\}\\leftarrow\\\{\(i,u\)\\mid\\text\{subgoal \}\(i,u\)\\text\{ uses \}\\pi\_\{s\},\\ y\_\{k,i,u\}\\text\{ is observed\}\\\},

nk,s\+←∑\(i,u\)∈ℰk,syk,i,un\_\{k,s\}^\{\+\}\\leftarrow\\sum\_\{\(i,u\)\\in\\mathcal\{E\}\_\{k,s\}\}y\_\{k,i,u\},

nk,s−←∑\(i,u\)∈ℰk,s\(1−yk,i,u\)n\_\{k,s\}^\{\-\}\\leftarrow\\sum\_\{\(i,u\)\\in\\mathcal\{E\}\_\{k,s\}\}\(1\-y\_\{k,i,u\}\);

8Upload

\{\(s,nk,s\+,nk,s−\)\}s\\\{\(s,n\_\{k,s\}^\{\+\},n\_\{k,s\}^\{\-\}\)\\\}\_\{s\}and

\{\(ϕ⁡\(dk,i\),yk,i\)\}τk,i∈𝒯k\\\{\(\\phi\(d\_\{k,i\}\),y\_\{k,i\}\)\\\}\_\{\\tau\_\{k,i\}\\in\\mathcal\{T\}\_\{k\}\}to the server;

9*Personalized skill selection*:

10Consolidate uploaded skill patches into

𝒮\\mathcal\{S\}and set

qs←ϕ⁡\(cs\)q\_\{s\}\\leftarrow\\phi\(c\_\{s\}\)for all

s∈𝒮s\\in\\mathcal\{S\};

11foreach*clientkk*do

12

tk←MeanPool⁡\(\{ϕ⁡\(dk,i\)\}τk,i∈𝒯k\)t\_\{k\}\\leftarrow\\operatorname\{MeanPool\}\\big\(\\\{\\phi\(d\_\{k,i\}\)\\\}\_\{\\tau\_\{k,i\}\\in\\mathcal\{T\}\_\{k\}\}\\big\);

13if*∃i:τk,i∈𝒯k,yk,i=0\\exists\\,i:\\tau\_\{k,i\}\\in\\mathcal\{T\}\_\{k\},\\ y\_\{k,i\}=0*then

fk←MeanPool\(\{ϕ\(dk,i\)∣τk,i∈𝒯k,yk,i=0\}\)f\_\{k\}\\leftarrow\\operatorname\{MeanPool\}\\big\(\\\{\\phi\(d\_\{k,i\}\)\\mid\\tau\_\{k,i\}\\in\\mathcal\{T\}\_\{k\},\\ y\_\{k,i\}=0\\\}\\big\);

14foreach*s∈𝒮s\\in\\mathcal\{S\}*do

15if*ℰk,s=∅\\mathcal\{E\}\_\{k,s\}=\\emptyset*then

nk,s\+←0n\_\{k,s\}^\{\+\}\\leftarrow 0,

nk,s−←0n\_\{k,s\}^\{\-\}\\leftarrow 0;

16

𝒦s−k←\{j≠k∣ℰj,s≠∅\}\\mathcal\{K\}\_\{s\}^\{\-k\}\\leftarrow\\\{j\\neq k\\mid\\mathcal\{E\}\_\{j,s\}\\neq\\emptyset\\\},

p^−k,s←∑j∈𝒦s−knj,s\+\+ϵ0∑j∈𝒦s−k\(nj,s\+\+nj,s−\)\+2​ϵ0\\hat\{p\}\_\{\-k,s\}\\leftarrow\\frac\{\\sum\_\{j\\in\\mathcal\{K\}\_\{s\}^\{\-k\}\}n\_\{j,s\}^\{\+\}\+\\epsilon\_\{0\}\}\{\\sum\_\{j\\in\\mathcal\{K\}\_\{s\}^\{\-k\}\}\(n\_\{j,s\}^\{\+\}\+n\_\{j,s\}^\{\-\}\)\+2\\epsilon\_\{0\}\};

17

αk,s←η​p^−k,s\+nk,s\+\\alpha\_\{k,s\}\\leftarrow\\eta\\hat\{p\}\_\{\-k,s\}\+n\_\{k,s\}^\{\+\},

βk,s←η⁡\(1−p^−k,s\)\+nk,s−\\beta\_\{k,s\}\\leftarrow\\eta\(1\-\\hat\{p\}\_\{\-k,s\}\)\+n\_\{k,s\}^\{\-\};

18

μk,s←αk,sαk,s\+βk,s\\mu\_\{k,s\}\\leftarrow\\frac\{\\alpha\_\{k,s\}\}\{\\alpha\_\{k,s\}\+\\beta\_\{k,s\}\},

σk,s←αk,s​βk,s\(αk,s\+βk,s\)2​\(αk,s\+βk,s\+1\)\\sigma\_\{k,s\}\\leftarrow\\sqrt\{\\frac\{\\alpha\_\{k,s\}\\beta\_\{k,s\}\}\{\(\\alpha\_\{k,s\}\+\\beta\_\{k,s\}\)^\{2\}\(\\alpha\_\{k,s\}\+\\beta\_\{k,s\}\+1\)\}\};

19

p~k,s←max⁡\{0,μk,s−σk,s\}\\tilde\{p\}\_\{k,s\}\\leftarrow\\max\\\{0,\\mu\_\{k,s\}\-\\sigma\_\{k,s\}\\\};

20if*∃i:τk,i∈𝒯k,yk,i=0\\exists\\,i:\\tau\_\{k,i\}\\in\\mathcal\{T\}\_\{k\},\\ y\_\{k,i\}=0*then

21

ak,s←ρ⁡\(qs,tk\)\+ρ⁡\(qs,fk\)a\_\{k,s\}\\leftarrow\\rho\(q\_\{s\},t\_\{k\}\)\+\\rho\(q\_\{s\},f\_\{k\}\);

22else

23

ak,s←ρ⁡\(qs,tk\)a\_\{k,s\}\\leftarrow\\rho\(q\_\{s\},t\_\{k\}\);

24

vk,s←p~k,s\+ak,sv\_\{k,s\}\\leftarrow\\tilde\{p\}\_\{k,s\}\+a\_\{k,s\};

25

Sk←TopKs∈𝒮⁡\{vk,s\}S\_\{k\}\\leftarrow\\operatorname\{TopK\}\_\{s\\in\\mathcal\{S\}\}\\\{v\_\{k,s\}\\\};

26*Task\-aware skill routing*:

27foreach*clientkkand current tasktt*do

28

xkt←ϕ⁡\(dkt\)x\_\{k\}^\{t\}\\leftarrow\\phi\(d\_\{k\}^\{t\}\);

29foreach*s∈Sks\\in S\_\{k\}*do

30

Rk,st←ρ⁡\(qs,xkt\)\+ρ⁡\(qs,tk\)R\_\{k,s\}^\{t\}\\leftarrow\\rho\(q\_\{s\},x\_\{k\}^\{t\}\)\+\\rho\(q\_\{s\},t\_\{k\}\),

rk,st←ρ⁡\(qs,xkt\)r\_\{k,s\}^\{t\}\\leftarrow\\rho\(q\_\{s\},x\_\{k\}^\{t\}\);

31

\{sk,\(i\)t\}i=1\|Sk\|←sorts∈Sk↓​\{Rk,st\}\\\{s\_\{k,\(i\)\}^\{t\}\\\}\_\{i=1\}^\{\|S\_\{k\}\|\}\\leftarrow\\operatorname\{sort\}\_\{s\\in S\_\{k\}\}^\{\\downarrow\}\\\{R\_\{k,s\}^\{t\}\\\};

32if*\|Sk\|=1\|S\_\{k\}\|=1*then

33

mkt←1m\_\{k\}^\{t\}\\leftarrow 1;

34else

35

rk,\(1\)t,rk,\(2\)t←Top2s∈Sk⁡\{rk,st\}r\_\{k,\(1\)\}^\{t\},r\_\{k,\(2\)\}^\{t\}\\leftarrow\\operatorname\{Top2\}\_\{s\\in S\_\{k\}\}\\\{r\_\{k,s\}^\{t\}\\\},

Δkt←rk,\(1\)t−rk,\(2\)t\\Delta\_\{k\}^\{t\}\\leftarrow r\_\{k,\(1\)\}^\{t\}\-r\_\{k,\(2\)\}^\{t\};

36

mkt←\{min⁡\{Mh,\|Sk\|\},Δkt<δ,Ml,Δkt≥δ\.m\_\{k\}^\{t\}\\leftarrow\\begin\{cases\}\\min\\\{M\_\{h\},\|S\_\{k\}\|\\\},&\\Delta\_\{k\}^\{t\}<\\delta,\\\\ M\_\{l\},&\\Delta\_\{k\}^\{t\}\\geq\\delta\.\\end\{cases\};

37

Skt←\{sk,\(i\)t\}i=1mktS\_\{k\}^\{t\}\\leftarrow\\\{s\_\{k,\(i\)\}^\{t\}\\\}\_\{i=1\}^\{m\_\{k\}^\{t\}\};

### III\-BLocal Skill Extraction

As discussed in Sec\.[I](https://arxiv.org/html/2611.33707#S1), the narrow range of task types covered by local trajectories restricts the generalization of learned skills, thereby limiting agent performance\. Given the diverse task solutions across clients, a straightforward solution is to leverage trajectories from multiple clients to learn more generalizable skills\. However, raw trajectories often contain privacy\-sensitive information, and directly collecting and sharing them may pose serious privacy risks\[[23](https://arxiv.org/html/2611.33707#bib.bib22)\], making this solution impractical for real\-world deployment\.

To address this challenge, we propose local skill extraction \(LSE\), which transforms trajectories into compact, reusable skill patches\. Since local trajectories may span different task types, extracting skills from trajectories across multiple task types may introduce irrelevant or even conflicting execution strategies, thereby degrading agent performance\. To investigate this insight, we conduct experiments on ALFWorld by varying the number of trajectoriesNNfor skill extraction\. As shown in Fig\.[3a](https://arxiv.org/html/2611.33707#S3.F3.sf1), skills extracted from same\-task trajectories lead to fewer steps for task completion as the number of trajectories increases\. Fig\.[3b](https://arxiv.org/html/2611.33707#S3.F3.sf2)further shows that such skills achieve higher accuracy than those extracted from multi\-task trajectories\. Based on these observations, LSE uses the agent to group each client’s local trajectories based on their task descriptions and execution processes\. Specifically, for clientkk, the agent assigns a category labelℓk,i\\ell\_\{k,i\}to each trajectoryτk,i\\tau\_\{k,i\}and partitions its trajectory set𝒯k\\mathcal\{T\}\_\{k\}intozzdisjoint groups:

𝒯k,j=\{τk,i∈𝒯k∣ℓk,i=j\},\\mathcal\{T\}\_\{k,j\}=\\left\\\{\\tau\_\{k,i\}\\in\\mathcal\{T\}\_\{k\}\\mid\\ell\_\{k,i\}=j\\right\\\},\(1\)whereℓk,i∈\{1,…,z\}\\ell\_\{k,i\}\\in\\\{1,\\ldots,z\\\}denotes the agent\-assigned category of trajectoryτk,i\\tau\_\{k,i\}, and𝒯k,j\\mathcal\{T\}\_\{k,j\}denotes the trajectory group corresponding to thejj\-th category of clientkk\.

\(a\)Steps\.
\(b\)Accuracy\.

Fig\. 3:The impact of trajectory grouping on task completion steps and accuracy\.After grouping, each trajectory group contains trajectories with similar task descriptions or execution patterns\. Since raw trajectories contain extensive interaction details, directly using them to guide the agent may introduce task\-irrelevant information, thereby reducing task execution efficiency\. To mitigate this issue, LSE extracts skill patches from each trajectory group, with each skill patch comprising a task applicability condition and an execution strategy\. Specifically, within each trajectory group𝒯k,j\\mathcal\{T\}\_\{k,j\}, LSE uses the agent to extract the task applicability conditioncsc\_\{s\}from the grouped trajectories and task descriptions, derive the execution strategyπs\\pi\_\{s\}from the tool calls and action sequences shared across the trajectories while filtering trajectory\-specific operations, and record the observable outcomes of subgoals executing the corresponding strategy, yielding the skill patchssas

s=\(cs,πs\)\.s=\\left\(c\_\{s\},\\pi\_\{s\}\\right\)\.\(2\)
Since different trajectories within the same group may adopt the same task solution, the above skill extraction process can produce redundant skill patches with identical task applicability conditions and execution strategies\. To avoid redundant skill storage and sharing, LSE merges these duplicate skill patches and aggregates their corresponding subgoal execution outcomes\. For a given skill patchsson clientkk, the numbers of successful and failed subgoal instances, denoted bynk,s\+n\_\{k,s\}^\{\+\}andnk,s−n\_\{k,s\}^\{\-\}, are given by

nk,s\+=∑\(i,u\)∈ℰk,syk,i,u,nk,s−=∑\(i,u\)∈ℰk,s\(1−yk,i,u\),n\_\{k,s\}^\{\+\}=\\sum\_\{\(i,u\)\\in\\mathcal\{E\}\_\{k,s\}\}y\_\{k,i,u\},\\qquad n\_\{k,s\}^\{\-\}=\\sum\_\{\(i,u\)\\in\\mathcal\{E\}\_\{k,s\}\}\\left\(1\-y\_\{k,i,u\}\\right\),\(3\)whereℰk,s\\mathcal\{E\}\_\{k,s\}denotes the set of subgoal indices\(i,u\)\(i,u\)corresponding to executions of strategyπs\\pi\_\{s\}with observable outcomes in clientkk’s source trajectories, andyk,i,u∈\{0,1\}y\_\{k,i,u\}\\in\\\{0,1\\\}denotes the outcome of theuu\-th subgoal in trajectoryτk,i\\tau\_\{k,i\}, with 1 and 0 indicating subgoal success and failure, respectively\. Finally, each client uses the frozen text encoderϕ⁡\(⋅\)\\phi\(\\cdot\)\[[24](https://arxiv.org/html/2611.33707#bib.bib27)\]to encode the task descriptiondk,id\_\{k,i\}associated withτk,i\\tau\_\{k,i\}, and uploads the resulting representations to the server together with the corresponding skill patches and subgoal execution statistics\.

### III\-CPersonalized Skill Selection

As described in Sec\.[III\-B](https://arxiv.org/html/2611.33707#S3.SS2), LSE transforms local trajectories into reusable skill patches, enabling diverse task solutions to be shared across clients\. However, due to the heterogeneity of client tasks, the same skill patch may contribute differently to agent performance across clients\. To investigate this impact, we conduct experiments on ALFWorld by providing the same skill patch to different clients\. Fig\.[4a](https://arxiv.org/html/2611.33707#S3.F4.sf1)shows that the same skill patch does not improve agent performance on every client\. Fig\.[4b](https://arxiv.org/html/2611.33707#S3.F4.sf2)further shows that the best\-performing skill patch varies across clients\. Therefore, it is imperative to perform personalized skill selection for each client\.

Motivated by these observations, we propose personalized skill selection \(PSS\) to evaluate the performance of each skill patch on client tasks based on its associated subgoal execution outcomes and incorporate its task applicability condition to construct a personalized skill set for each client\. PSS first collects skill patches uploaded by different clients and uses the agent to consolidate semantically equivalent skill patches to construct a global skill pool𝒮\\mathcal\{S\}, while retaining their subgoal execution statistics\. Since the number of subgoal instances associated with a skill patch may vary across clients, estimates based on limited local subgoal instances are sensitive to individual outcomes\. The subgoal execution statistics from other clients provide additional information for the same skill patch, thereby improving the reliability of its evaluation\[[25](https://arxiv.org/html/2611.33707#bib.bib23)\]\. Accordingly, PSS evaluates each skill patch using the cross\-client performance scorep^−k,s\\hat\{p\}\_\{\-k,s\}, defined as

p^−k,s=∑j∈𝒦s−knj,s\+\+ε0∑j∈𝒦s−k\(nj,s\+\+nj,s−\)\+2​ε0,\\hat\{p\}\_\{\-k,s\}=\\frac\{\\sum\_\{j\\in\\mathcal\{K\}\_\{s\}^\{\-k\}\}n\_\{j,s\}^\{\+\}\+\\varepsilon\_\{0\}\}\{\\sum\_\{j\\in\\mathcal\{K\}\_\{s\}^\{\-k\}\}\\left\(n\_\{j,s\}^\{\+\}\+n\_\{j,s\}^\{\-\}\\right\)\+2\\varepsilon\_\{0\}\},\(4\)where𝒦s−k\\mathcal\{K\}\_\{s\}^\{\-k\}denotes the set of source clients for skill patchss, excluding target clientkk, andϵ0\>0\\epsilon\_\{0\}\>0is a smoothing constant\.

\(a\)Client performance\.
\(b\)Best skill patch\.

Fig\. 4:The impact of skill patches on agent performance across different clients\.Building onp^−k,s\\hat\{p\}\_\{\-k,s\}, PSS further uses subgoal execution outcomes of the target client to evaluate the contribution of skill patches to local tasks\. Specifically, PSS first constructs a Beta prior for each skill patch based onp^−k,s\\hat\{p\}\_\{\-k,s\}:

θk,s∼Beta⁡\(η​p^−k,s,η⁡\(1−p^−k,s\)\),\\theta\_\{k,s\}\\sim\\operatorname\{Beta\}\\left\(\\eta\\hat\{p\}\_\{\-k,s\},\\eta\(1\-\\hat\{p\}\_\{\-k,s\}\)\\right\),\(5\)whereθk,s\\theta\_\{k,s\}denotes the success probability of subgoals corresponding to skill patchsson clientkk, andη\\etadenotes the prior strength\. Since the Beta distribution is conjugate to the binomial likelihood, the Beta prior based onp^−k,s\\hat\{p\}\_\{\-k,s\}can be updated with the target client’s local subgoal execution outcomes for adaptive personalized skill evaluation\. For clients with fewer local subgoal instances, the evaluation relies more on the cross\-client prior to reduce the influence of individual subgoal outcomes, while relying more on local subgoal execution outcomes as more subgoal instances become available\. PSS then uses the subgoal execution outcomesDk,s=\{yk,i,u\}\(i,u\)∈ℰk,sD\_\{k,s\}=\\\{y\_\{k,i,u\}\\\}\_\{\(i,u\)\\in\\mathcal\{E\}\_\{k,s\}\}of the target client to update the prior ofθk,s\\theta\_\{k,s\}, yielding the posterior distribution

θk,s\|Dk,s∼Beta⁡\(η​p^−k,s\+nk,s\+,η⁡\(1−p^−k,s\)\+nk,s−\)\.\\theta\_\{k,s\}\\mid D\_\{k,s\}\\sim\\operatorname\{Beta\}\\left\(\\eta\\hat\{p\}\_\{\-k,s\}\+n\_\{k,s\}^\{\+\},\\eta\(1\-\\hat\{p\}\_\{\-k,s\}\)\+n\_\{k,s\}^\{\-\}\\right\)\.\(6\)
Based on the posterior distribution, the posterior meanμk,s\\mu\_\{k,s\}estimates the success probability of subgoals corresponding to skill patchsson the target client, while the posterior standard deviationσk,s\\sigma\_\{k,s\}quantifies its uncertainty\. However, due to the limited number of local subgoal instances, the posterior estimate may exhibit high uncertainty, thereby reducing the reliability of the skill evaluation\. Therefore, PSS penalizesμk,s\\mu\_\{k,s\}byσk,s\\sigma\_\{k,s\}to obtain the performance scorep~k,s\\tilde\{p\}\_\{k,s\}:

p~k,s=max⁡\{0,μk,s−σk,s\}\.\\tilde\{p\}\_\{k,s\}=\\max\\\{0,\\mu\_\{k,s\}\-\\sigma\_\{k,s\}\\\}\.\(7\)
Although Beta\-based skill evaluation can mitigate the impact of limited local subgoal instances, a higherp~k,s\\tilde\{p\}\_\{k,s\}does not necessarily indicate greater potential to improve agent performance, as the corresponding skill patch may not match the client’s local tasks or help address its failed tasks\. To address this limitation, PSS further evaluates the applicability of each skill patch to local and failed tasks as

ak,s=ρ⁡\(qs,tk\)\+ρ⁡\(qs,fk\),a\_\{k,s\}=\\rho\(q\_\{s\},t\_\{k\}\)\+\\rho\(q\_\{s\},f\_\{k\}\),\(8\)whereak,sa\_\{k,s\}denotes the applicability score of skill patchssfor clientkk;qsq\_\{s\}denotes the feature representation of the task applicability conditioncsc\_\{s\}obtained using the frozen text encoderϕ⁡\(⋅\)\\phi\(\\cdot\);tkt\_\{k\}andfkf\_\{k\}denote the aggregated feature representations of all local and failed local task descriptions of clientkk, respectively, obtained via the same encoder and mean pooling; andρ⁡\(⋅,⋅\)\\rho\(\\cdot,\\cdot\)denotes the normalized cosine similarity, linearly scaled to\[0,1\]\[0,1\]\. For clients without failed tasks, the failed\-task relevance term is set to zero\. PSS then combines the performance score and applicability score for personalized skill selection:

vk,s=p~k,s\+ak,s,v\_\{k,s\}=\\tilde\{p\}\_\{k,s\}\+a\_\{k,s\},\(9\)wherevk,sv\_\{k,s\}denotes the personalized score of skill patchssfor clientkk\. Finally, PSS ranks the skill patches collected by the server according tovk,sv\_\{k,s\}and selects the top\-KKpatches to construct the personalized skill set𝒮k\\mathcal\{S\}\_\{k\}for clientkk\.

### III\-DTask\-Aware Skill Routing

Although the personalized skill set constructed by PSS provides each client with task\-related skill patches, under task heterogeneity, a client may encounter multiple task types that require different execution strategies\. Therefore, it is necessary to adaptively select relevant skill patches from the personalized skill set to guide the client agent for task execution\.

To this end, we propose task\-aware skill routing \(TASR\), which adaptively selects appropriate skill patches from the personalized skill set based on their relevance to the current task\. Specifically, for the taskttwith task descriptiondktd\_\{k\}^\{t\}, TASR first obtains its feature representationxktx\_\{k\}^\{t\}viaϕ⁡\(⋅\)\\phi\(\\cdot\)\. It then measures the relevance of the task applicability conditionqs\{q\}\_\{s\}toxkt\{x\}\_\{k\}^\{t\}andtk\{t\}\_\{k\}, and combines the two relevance terms to compute the task\-aware routing score of skill patchss:

Rk,st=ρ⁡\(qs,xkt\)\+ρ⁡\(qs,tk\)\.R\_\{k,s\}^\{t\}=\\rho\\\!\\left\(q\_\{s\},x\_\{k\}^\{t\}\\right\)\+\\rho\\\!\\left\(q\_\{s\},t\_\{k\}\\right\)\.\(10\)
A largerRk,stR\_\{k,s\}^\{t\}indicates a higher routing priority\. Based on the task\-aware routing scores, the skill patches in the personalized skill set𝒮k\\mathcal\{S\}\_\{k\}are sorted in descending order of routing priority, yielding the ordered skill sequence\{sk,\(1\)t,sk,\(2\)t,…,sk,\(\|𝒮k\|\)t\}\\\{s\_\{k,\(1\)\}^\{t\},s\_\{k,\(2\)\}^\{t\},\\ldots,s\_\{k,\(\|\\mathcal\{S\}\_\{k\}\|\)\}^\{t\}\\\}, given by

\{sk,\(1\)t,sk,\(2\)t,…,sk,\(\|𝒮k\|\)t\}=sortds∈𝒮k​\{Rk,st\},\\left\\\{s\_\{k,\(1\)\}^\{t\},s\_\{k,\(2\)\}^\{t\},\\ldots,s\_\{k,\(\|\\mathcal\{S\}\_\{k\}\|\)\}^\{t\}\\right\\\}=\\underset\{s\\in\\mathcal\{S\}\_\{k\}\}\{\\operatorname\{sort\}\_\{d\}\}\\left\\\{R\_\{k,s\}^\{t\}\\right\\\},\(11\)wheresk,\(i\)ts\_\{k,\(i\)\}^\{t\}denotes the skill patch with theii\-th highest task\-aware routing score, andsortd⁡\(⋅\)\\operatorname\{sort\}\_\{d\}\(\\cdot\)returns the corresponding skill patches in descending order of their scores\.

Due to task heterogeneity, client tasks may require different numbers of relevant skill patches for effective execution\. Using a fixed number of skill patches may introduce redundant strategies under clear skill matching or omit potentially useful strategies under ambiguous skill matching\. Therefore, it is necessary to select skill patches for different client tasks adaptively\. The task\-aware routing score reflects skill\-task matching, while the gap between the top relevance scores provides a signal for adaptive skill routing\. A substantially higher task relevance score indicates a clear match with the current task, suggesting that only a small number of highly relevant skills are needed for effective execution\. In contrast, similar task relevance scores across multiple skill patches indicate ambiguous skill matching with the current task, suggesting that more candidate skills should be retained to avoid discarding potentially useful execution strategies\. Therefore, for a personalized skill set containing only one skill patch, TASR directly routes the sole patch\. Otherwise, we use the gapΔkt\\Delta\_\{k\}^\{t\}between the highest and second\-highest task relevance scores as the routing criterion, given by

Δkt=rk,\(1\)t−rk,\(2\)t,\\Delta\_\{k\}^\{t\}=r\_\{k,\(1\)\}^\{t\}\-r\_\{k,\(2\)\}^\{t\},\(12\)whererk,st=ρ⁡\(qs,xkt\)r\_\{k,s\}^\{t\}=\\rho\(q\_\{s\},x\_\{k\}^\{t\}\)denotes the relevance of skill patchssto the current task, andrk,\(1\)tr\_\{k,\(1\)\}^\{t\}andrk,\(2\)tr\_\{k,\(2\)\}^\{t\}denote the highest and second\-highest task relevance scores, respectively\. Based onΔkt\\Delta\_\{k\}^\{t\}, TASR adaptively determines the number of routed skill patches as

mkt=\{min⁡\{Mh,\|𝒮k\|\},Δkt<δ,Ml,Δkt≥δ\.m\_\{k\}^\{t\}=\\begin\{cases\}\\min\\\{M\_\{h\},\|\\mathcal\{S\}\_\{k\}\|\\\},&\\Delta\_\{k\}^\{t\}<\\delta,\\\\ M\_\{l\},&\\Delta\_\{k\}^\{t\}\\geq\\delta\.\\end\{cases\}\(13\)whereδ\\deltais the predefined relevance\-gap threshold, and1≤Ml<Mh1\\leq M\_\{l\}<M\_\{h\}denote the smaller and larger numbers of routed skill patches, respectively\. TASR then selects the top\-mktm\_\{k\}^\{t\}skill patches from the ordered skill sequence to construct𝒮kt=\{sk,\(1\)t,sk,\(2\)t,…,sk,\(mkt\)t\}\\mathcal\{S\}\_\{k\}^\{t\}=\\\{s\_\{k,\(1\)\}^\{t\},s\_\{k,\(2\)\}^\{t\},\\ldots,s\_\{k,\(m\_\{k\}^\{t\}\)\}^\{t\}\\\}to guide agent execution\.

### III\-ETheoretical Analysis

We analyze the personalized skill selection of PSS under heterogeneous client tasks\. For clientkkand skill patchss, letnk,s=nk,s\+\+nk,s−n\_\{k,s\}=n\_\{k,s\}^\{\+\}\+n\_\{k,s\}^\{\-\}\. The conditional oracle scores arep~k,s∗=θk,s\\tilde\{p\}\_\{k,s\}^\{\*\}=\\theta\_\{k,s\}andvk,s∗=p~k,s∗\+ak,sv\_\{k,s\}^\{\*\}=\\tilde\{p\}\_\{k,s\}^\{\*\}\+a\_\{k,s\}\. ForMMskill patches with1≤K≤M1\\leq K\\leq M,𝒮k\\mathcal\{S\}\_\{k\}and𝒮k∗\\mathcal\{S\}\_\{k\}^\{\*\}contain the top\-KKpatches according tovk,sv\_\{k,s\}andvk,s∗v\_\{k,s\}^\{\*\}, respectively, withϵk=maxs⁡ϵk,s\\epsilon\_\{k\}=\\max\_\{s\}\\epsilon\_\{k,s\}\.

###### Assumption 1\.

The subgoal execution outcome satisfiesyk,i,u\|θk,s∼Bernoulli⁡\(θk,s\)y\_\{k,i,u\}\\mid\\theta\_\{k,s\}\\sim\\operatorname\{Bernoulli\}\(\\theta\_\{k,s\}\)for\(i,u\)∈ℰk,s\(i,u\)\\in\\mathcal\{E\}\_\{k,s\}\.

###### Assumption 2\.

The subgoal execution outcomes\{yk,i,u\}\(i,u\)∈ℰk,s\\\{y\_\{k,i,u\}\\\}\_\{\(i,u\)\\in\\mathcal\{E\}\_\{k,s\}\}are conditionally independent givenθk,s\\theta\_\{k,s\}\.

###### Assumption 3\.

The prior strength satisfies0<η<∞0<\\eta<\\infty\.

###### Lemma 1\.

Under Assumptions[1](https://arxiv.org/html/2611.33707#Thmassumption1)–[3](https://arxiv.org/html/2611.33707#Thmassumption3), for anyξ∈\(0,1\)\\xi\\in\(0,1\), with probability at least1−ξ1\-\\xi,

\|μk,s−θk,s\|≤η​\|p^−k,s−θk,s\|\+nk,s2​log⁡2ξη\+nk,s\.\\left\|\\mu\_\{k,s\}\-\\theta\_\{k,s\}\\right\|\\leq\\frac\{\\eta\\left\|\\hat\{p\}\_\{\-k,s\}\-\\theta\_\{k,s\}\\right\|\+\\sqrt\{\\frac\{n\_\{k,s\}\}\{2\}\\log\\frac\{2\}\{\\xi\}\}\}\{\\eta\+n\_\{k,s\}\}\.\(14\)

###### Proof:

From Eq\. \(6\), the posterior mean is

μk,s=η​p^−k,s\+nk,s\+η\+nk,s\.\\mu\_\{k,s\}=\\frac\{\\eta\\hat\{p\}\_\{\-k,s\}\+n\_\{k,s\}^\{\+\}\}\{\\eta\+n\_\{k,s\}\}\.\(15\)Hence,

μk,s−θk,s=η⁡\(p^−k,s−θk,s\)\+\(nk,s\+−nk,s​θk,s\)η\+nk,s\.\\mu\_\{k,s\}\-\\theta\_\{k,s\}=\\frac\{\\eta\(\\hat\{p\}\_\{\-k,s\}\-\\theta\_\{k,s\}\)\+\(n\_\{k,s\}^\{\+\}\-n\_\{k,s\}\\theta\_\{k,s\}\)\}\{\\eta\+n\_\{k,s\}\}\.\(16\)By the triangle inequality,

\|μk,s−θk,s\|≤η​\|p^−k,s−θk,s\|η\+nk,s\+\|nk,s\+−nk,s​θk,s\|η\+nk,s\.\\left\|\\mu\_\{k,s\}\-\\theta\_\{k,s\}\\right\|\\leq\\frac\{\\eta\\left\|\\hat\{p\}\_\{\-k,s\}\-\\theta\_\{k,s\}\\right\|\}\{\\eta\+n\_\{k,s\}\}\+\\frac\{\\left\|n\_\{k,s\}^\{\+\}\-n\_\{k,s\}\\theta\_\{k,s\}\\right\|\}\{\\eta\+n\_\{k,s\}\}\.\(17\)
Fornk,s\>0n\_\{k,s\}\>0, by Eq\. \(3\),

nk,s\+=∑\(i,u\)∈ℰk,syk,i,u\.n\_\{k,s\}^\{\+\}=\\sum\_\{\(i,u\)\\in\\mathcal\{E\}\_\{k,s\}\}y\_\{k,i,u\}\.\(18\)Under Assumptions[1](https://arxiv.org/html/2611.33707#Thmassumption1)and[2](https://arxiv.org/html/2611.33707#Thmassumption2), Hoeffding’s inequality gives

Pr⁡\(\|nk,s\+−nk,s​θk,s\|≥nk,s2​log⁡2ξ\)≤ξ\.\\Pr\\left\(\\left\|n\_\{k,s\}^\{\+\}\-n\_\{k,s\}\\theta\_\{k,s\}\\right\|\\geq\\sqrt\{\\frac\{n\_\{k,s\}\}\{2\}\\log\\frac\{2\}\{\\xi\}\}\\right\)\\leq\\xi\.\(19\)
Thus, with probability at least1−ξ1\-\\xi,

\|nk,s\+−nk,s​θk,s\|≤nk,s2​log⁡2ξ\.\\left\|n\_\{k,s\}^\{\+\}\-n\_\{k,s\}\\theta\_\{k,s\}\\right\|\\leq\\sqrt\{\\frac\{n\_\{k,s\}\}\{2\}\\log\\frac\{2\}\{\\xi\}\}\.\(20\)
Substituting Eq\. \([20](https://arxiv.org/html/2611.33707#S3.E20)\) into Eq\. \([17](https://arxiv.org/html/2611.33707#S3.E17)\) yields Eq\. \([14](https://arxiv.org/html/2611.33707#S3.E14)\)\.

Fornk,s=0n\_\{k,s\}=0, Eq\. \([15](https://arxiv.org/html/2611.33707#S3.E15)\) givesμk,s=p^−k,s\\mu\_\{k,s\}=\\hat\{p\}\_\{\-k,s\}, and Eq\. \([14](https://arxiv.org/html/2611.33707#S3.E14)\) holds directly\. ∎

###### Lemma 2\.

Under Assumptions[1](https://arxiv.org/html/2611.33707#Thmassumption1)–[3](https://arxiv.org/html/2611.33707#Thmassumption3), letM=\|𝒮\|M=\|\\mathcal\{S\}\|\. For anyξ∈\(0,1\)\\xi\\in\(0,1\), with probability at least1−ξ1\-\\xi,

\|vk,s−vk,s∗\|\\displaystyle\\left\|v\_\{k,s\}\-v\_\{k,s\}^\{\*\}\\right\|≤ϵk,s=η​\|p^−k,s−θk,s\|\+nk,s2​log⁡2​Mξη\+nk,s\\displaystyle\\leq\\epsilon\_\{k,s\}=\\frac\{\\eta\\left\|\\hat\{p\}\_\{\-k,s\}\-\\theta\_\{k,s\}\\right\|\+\\sqrt\{\\frac\{n\_\{k,s\}\}\{2\}\\log\\frac\{2M\}\{\\xi\}\}\}\{\\eta\+n\_\{k,s\}\}\(21\)\+12​η\+nk,s\+1,∀s∈𝒮\.\\displaystyle\+\\frac\{1\}\{2\\sqrt\{\\eta\+n\_\{k,s\}\+1\}\},\\qquad\\forall s\\in\\mathcal\{S\}\.

###### Proof:

For the Beta posterior in Eq\. \(6\), let

αk,s=η​p^−k,s\+nk,s\+,βk,s=η⁡\(1−p^−k,s\)\+nk,s−\.\\alpha\_\{k,s\}=\\eta\\hat\{p\}\_\{\-k,s\}\+n\_\{k,s\}^\{\+\},\\qquad\\beta\_\{k,s\}=\\eta\(1\-\\hat\{p\}\_\{\-k,s\}\)\+n\_\{k,s\}^\{\-\}\.\(22\)Then,

αk,s\+βk,s=η\+nk,s\.\\alpha\_\{k,s\}\+\\beta\_\{k,s\}=\\eta\+n\_\{k,s\}\.\(23\)
The posterior variance is

σk,s2=αk,s​βk,s\(αk,s\+βk,s\)2​\(αk,s\+βk,s\+1\)\.\\sigma\_\{k,s\}^\{2\}=\\frac\{\\alpha\_\{k,s\}\\beta\_\{k,s\}\}\{\(\\alpha\_\{k,s\}\+\\beta\_\{k,s\}\)^\{2\}\(\\alpha\_\{k,s\}\+\\beta\_\{k,s\}\+1\)\}\.\(24\)
Since

αk,s​βk,s≤\(αk,s\+βk,s\)24,\\alpha\_\{k,s\}\\beta\_\{k,s\}\\leq\\frac\{\(\\alpha\_\{k,s\}\+\\beta\_\{k,s\}\)^\{2\}\}\{4\},\(25\)we obtain

σk,s≤12​η\+nk,s\+1\.\\sigma\_\{k,s\}\\leq\\frac\{1\}\{2\\sqrt\{\\eta\+n\_\{k,s\}\+1\}\}\.\(26\)
Sinceθk,s∈\[0,1\]\\theta\_\{k,s\}\\in\[0,1\], we havep~k,s∗=θk,s=max⁡\{0,θk,s\}\\tilde\{p\}\_\{k,s\}^\{\*\}=\\theta\_\{k,s\}=\\max\\\{0,\\theta\_\{k,s\}\\\}\. Using the11\-Lipschitz property ofmax⁡\{0,x\}\\max\\\{0,x\\\}in Eq\. \(7\) gives

\|p~k,s−p~k,s∗\|\\displaystyle\\left\|\\tilde\{p\}\_\{k,s\}\-\\tilde\{p\}\_\{k,s\}^\{\*\}\\right\|≤\|μk,s−σk,s−θk,s\|\\displaystyle\\leq\\left\|\\mu\_\{k,s\}\-\\sigma\_\{k,s\}\-\\theta\_\{k,s\}\\right\|≤\|μk,s−θk,s\|\+σk,s\.\\displaystyle\\leq\\left\|\\mu\_\{k,s\}\-\\theta\_\{k,s\}\\right\|\+\\sigma\_\{k,s\}\.\(27\)
Applying Lemma[1](https://arxiv.org/html/2611.33707#Thmlemma1)with confidence parameterξ/M\\xi/Mand taking a union bound over theMMskill patches yields, with probability at least1−ξ1\-\\xi,

\|μk,s−θk,s\|≤η​\|p^−k,s−θk,s\|\+nk,s2​log⁡2​Mξη\+nk,s,∀s∈𝒮\.\\left\|\\mu\_\{k,s\}\-\\theta\_\{k,s\}\\right\|\\leq\\frac\{\\eta\\left\|\\hat\{p\}\_\{\-k,s\}\-\\theta\_\{k,s\}\\right\|\+\\sqrt\{\\frac\{n\_\{k,s\}\}\{2\}\\log\\frac\{2M\}\{\\xi\}\}\}\{\\eta\+n\_\{k,s\}\},\\qquad\\forall s\\in\\mathcal\{S\}\.\(28\)
Substituting Eq\. \([26](https://arxiv.org/html/2611.33707#S3.E26)\) and Eq\. \([28](https://arxiv.org/html/2611.33707#S3.E28)\) into Eq\. \([27](https://arxiv.org/html/2611.33707#S3.E27)\) gives

\|p~k,s−p~k,s∗\|≤ϵk,s,∀s∈𝒮\.\\left\|\\tilde\{p\}\_\{k,s\}\-\\tilde\{p\}\_\{k,s\}^\{\*\}\\right\|\\leq\\epsilon\_\{k,s\},\\qquad\\forall s\\in\\mathcal\{S\}\.\(29\)
Sincevk,sv\_\{k,s\}andvk,s∗v\_\{k,s\}^\{\*\}share the same applicability scoreak,sa\_\{k,s\},

\|vk,s−vk,s∗\|=\|p~k,s−p~k,s∗\|≤ϵk,s,∀s∈𝒮\.\\left\|v\_\{k,s\}\-v\_\{k,s\}^\{\*\}\\right\|=\\left\|\\tilde\{p\}\_\{k,s\}\-\\tilde\{p\}\_\{k,s\}^\{\*\}\\right\|\\leq\\epsilon\_\{k,s\},\\qquad\\forall s\\in\\mathcal\{S\}\.\(30\)∎

###### Theorem 1\.

Under Assumptions[1](https://arxiv.org/html/2611.33707#Thmassumption1)–[3](https://arxiv.org/html/2611.33707#Thmassumption3), define

ϵk≜maxs∈𝒮⁡ϵk,s\.\\epsilon\_\{k\}\\triangleq\\max\_\{s\\in\\mathcal\{S\}\}\\epsilon\_\{k,s\}\.\(31\)For anyξ∈\(0,1\)\\xi\\in\(0,1\), with probability at least1−ξ1\-\\xi, the personalized skill selection of PSS satisfies the following finite\-sample suboptimality bound:

0≤∑s∈𝒮k∗vk,s∗−∑s∈𝒮kvk,s∗≤2​K​ϵk\.0\\leq\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}^\{\*\}\}v\_\{k,s\}^\{\*\}\-\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}\}v\_\{k,s\}^\{\*\}\\leq 2K\\epsilon\_\{k\}\.\(32\)

###### Proof:

By Lemma[2](https://arxiv.org/html/2611.33707#Thmlemma2)and the definition ofϵk\\epsilon\_\{k\}, with probability at least1−ξ1\-\\xi,

\|vk,s−vk,s∗\|≤ϵk,∀s∈𝒮\.\\left\|v\_\{k,s\}\-v\_\{k,s\}^\{\*\}\\right\|\\leq\\epsilon\_\{k\},\\qquad\\forall s\\in\\mathcal\{S\}\.\(33\)
Since𝒮k\\mathcal\{S\}\_\{k\}contains the top\-KKskill patches according tovk,sv\_\{k,s\},

∑s∈𝒮k∗vk,s≤∑s∈𝒮kvk,s\.\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}^\{\*\}\}v\_\{k,s\}\\leq\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}\}v\_\{k,s\}\.\(34\)
Using Eq\. \([33](https://arxiv.org/html/2611.33707#S3.E33)\) and Eq\. \([34](https://arxiv.org/html/2611.33707#S3.E34)\), we obtain

∑s∈𝒮k∗vk,s∗\\displaystyle\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}^\{\*\}\}v\_\{k,s\}^\{\*\}≤∑s∈𝒮k∗vk,s\+K​ϵk\\displaystyle\\leq\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}^\{\*\}\}v\_\{k,s\}\+K\\epsilon\_\{k\}≤∑s∈𝒮kvk,s\+K​ϵk\\displaystyle\\leq\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}\}v\_\{k,s\}\+K\\epsilon\_\{k\}≤∑s∈𝒮kvk,s∗\+2​K​ϵk\.\\displaystyle\\leq\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}\}v\_\{k,s\}^\{\*\}\+2K\\epsilon\_\{k\}\.\(35\)
Since𝒮k∗\\mathcal\{S\}\_\{k\}^\{\*\}contains the top\-KKskill patches according tovk,s∗v\_\{k,s\}^\{\*\},

∑s∈𝒮k∗vk,s∗≥∑s∈𝒮kvk,s∗\.\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}^\{\*\}\}v\_\{k,s\}^\{\*\}\\geq\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}\}v\_\{k,s\}^\{\*\}\.\(36\)
Combining Eq\. \([35](https://arxiv.org/html/2611.33707#S3.E35)\) and Eq\. \([36](https://arxiv.org/html/2611.33707#S3.E36)\), we obtain

0≤∑s∈𝒮k∗vk,s∗−∑s∈𝒮kvk,s∗≤2​K​ϵk\.0\\leq\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}^\{\*\}\}v\_\{k,s\}^\{\*\}\-\\sum\_\{s\\in\\mathcal\{S\}\_\{k\}\}v\_\{k,s\}^\{\*\}\\leq 2K\\epsilon\_\{k\}\.\(37\)∎

## IVExperimental Setup

Datasets and Model\.We adopt the ALFWorld\[[26](https://arxiv.org/html/2611.33707#bib.bib24)\]andτ2\\tau^\{2\}\-Bench\[[27](https://arxiv.org/html/2611.33707#bib.bib25)\]datasets to evaluate the performance of P\-FedSkill\. Experiments are conducted under independent and identically distributed \(IID\) and non\-IID settings\. For the IID setting, tasks are randomly shuffled and evenly distributed across clients\. For the non\-IID setting, tasks are partitioned using a Dirichlet distribution with concentration parameterα\\alpha\. We use Qwen3\.6\-35B\-A3B\[[28](https://arxiv.org/html/2611.33707#bib.bib26)\]as the shared backbone agent for all methods and keep its model architecture and inference configuration fixed across experiments to ensure a fair comparison\.

Baselines\.We evaluate P\-FedSkill onτ2\\tau^\{2\}\-Bench under both IID and non\-IID settings by comparing it with the backbone agent operating without learned skills \(FSL\-B\), FederatedSkill\[[29](https://arxiv.org/html/2611.33707#bib.bib28)\], FedSkillGit\[[11](https://arxiv.org/html/2611.33707#bib.bib29)\], and AWM\[[8](https://arxiv.org/html/2611.33707#bib.bib8)\]\.

Hyper\-parameters\.In our experiments, we set the number of clients to 5\. For the non\-IID setting, the Dirichlet concentration parameterα\\alphais set to 0\.1\. For PSS,ϵ0\\epsilon\_\{0\}andη\\etaare set to 1 and 8, respectively\. For a fair comparison, the maximum candidate skill budget is set toK=⌈0\.6​\|𝒮\|⌉K=\\lceil 0\.6\|\\mathcal\{S\}\|\\rceilfor all skill\-based methods\.

## VResults and Analysis

### V\-ASuperiority of P\-FedSkill

As demonstrated in Tab\.[I](https://arxiv.org/html/2611.33707#S5.T1), P\-FedSkill outperforms all baselines in all three domains ofτ2\\tau^\{2\}\-Bench under both IID and non\-IID settings\. Specifically, P\-FedSkill achieves accuracies of 66\.67% \(80\.00%\), 76\.47% \(70\.59%\), and 76\.47% \(79\.41%\) in the airline, retail, and telecom domains, respectively, under the IID \(non\-IID\) setting\. This performance advantage stems from personalized skill set construction and task\-aware skill routing, which better align shared skills with heterogeneous client tasks\. In contrast, FederatedSkill merges skill patches extracted from local trajectories into client\-specific skill libraries\. Since tasks within the same client may require different skills, patches learned from previous tasks may introduce steps that are irrelevant to the current task, thereby degrading agent performance\.

TABLE I:Accuracy \(%\) of P\-FedSkill and baselines onτ2\\tau^\{2\}\-Bench under IID and non\-IID settings\.

## VIConclusion

In this paper, we have proposed a personalized federated skill learning framework, named P\-FedSkill, aimed at facilitating personalized skill sharing under task heterogeneity across clients\. P\-FedSkill comprises three key components: LSE, PSS, and TASR\. LSE extracts skill patches and task execution outcomes from trajectories\. PSS then uses these outcomes and task applicability conditions to construct a personalized skill set for each client, while TASR adaptively selects task\-relevant skill patches to guide agent execution\. We further establish a finite\-sample suboptimality bound, providing a theoretical guarantee for personalized skill selection in P\-FedSkill\. Extensive experiments also demonstrate the effectiveness of P\-FedSkill\.

## References

- \[1\]T\. Wang, Z\. Wu, J\. Liu, J\. Hao, J\. Wang, and K\. Shao\(2025\)DistRL: An Asynchronous Distributed Reinforcement Learning Framework for On\-Device Control Agent\.InProc\. ICLR,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p1.1)\.
- \[2\]R\. Lv, J\. Mo, T\. Chu, C\. Rao, H\. Jing, J\. Teng, J\. Chen, S\. Zhang, L\. Ding, S\. Fang, H\. Lin, Z\. Dang, C\. Ma, and L\. Zhao\(2026\)M2\{\}^\{2\}\-Miner: Multi\-Agent Enhanced MCTS for Mobile GUI Agent Data Mining\.InProc\. ICLR,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p1.1)\.
- \[3\]R\. Villars\(2025\)Agent Adoption: The IT Industry’s Next Great Inflection Point\.Note:International Data Corporation \(IDC\)Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p1.1)\.
- \[4\]G\. Chen, H\. Yang, B\. Yu, and H\. Ren\(2025\)Intelligent OPC Engineer Assistant for Semiconductor Manufacturing\.InProc\. AAAI,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p1.1)\.
- \[5\]G\. Deng, Y\. Liu, V\. Mayoral\-Vilches, P\. Liu, Y\. Li, Y\. Xu, T\. Zhang, Y\. Liu, M\. Pinzger, and S\. Rass\(2024\)PentestGPT: Evaluating and Harnessing Large Language Models for Automated Penetration Testing\.InProc\. USENIX Security,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p1.1)\.
- \[6\]Y\. Hong, Z\. Zheng, P\. Chen, Y\. Wang, J\. Li, and C\. Gan\(2024\)MultiPLY: A Multisensory Object\-Centric Embodied Large Language Model in 3D World\.InProc\. CVPR,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p1.1)\.
- \[7\]S\. Yu, G\. Li, W\. Shi, and P\. Qi\(2026\)PolySkill: Learning Generalizable Skills Through Polymorphic Abstraction for Continual Learning\.InProc\. ICLR,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p2.1)\.
- \[8\]Z\. Z\. Wang, J\. Mao, D\. Fried, and G\. Neubig\(2025\)Agent Workflow Memory\.InProc\. ICML,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p2.1),[§I](https://arxiv.org/html/2611.33707#S1.p3.1),[§IV](https://arxiv.org/html/2611.33707#S4.p2.1)\.
- \[9\]Y\. Jiang, W\. Yu, D\. Song, L\. Wang, W\. Cheng, and H\. Chen\(2023\)FedSkill: Privacy Preserved Interpretable Skill Learning via Imitation\.InProc\. KDD,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p2.1),[§II\-A](https://arxiv.org/html/2611.33707#S2.SS1.p1.1)\.
- \[10\]Y\. Zhang and D\. Yang\(2026\)Searching for Privacy Risks in LLM Agents via Simulation\.InProc\. ICLR,Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p2.1)\.
- \[11\]B\. Lan, J\. Li, W\. Li, C\. Yang, Z\. Qi, C\. Wan, X\. Chen, and M\. Hu\(2026\)FedSkillGit: Federated Skill Evolution via Version Control\.arXiv preprint arXiv:2610\.21348\.Cited by:[§I](https://arxiv.org/html/2611.33707#S1.p3.1),[§IV](https://arxiv.org/html/2611.33707#S4.p2.1)\.
- \[12\]H\. Fu, P\. Sharma, E\. Stengel\-Eskin, G\. Konidaris, N\. Le Roux, M\.\-A\. Côté, and X\. Yuan\(2024\)Language\-Guided Skill Learning with Temporal Variational Inference\.InProc\. ICML,Cited by:[§II\-A](https://arxiv.org/html/2611.33707#S2.SS1.p1.1)\.
- \[13\]Y\. Zhou, Q\. Yang, K\. Lin, M\. Bai, X\. Zhou, Y\.\-X\. Wang, S\. Levine, and L\. E\. Li\(2025\)Proposer\-Agent\-Evaluator \(PAE\): Autonomous Skill Discovery for Foundation Model Internet Agents\.InProc\. ICML,Cited by:[§II\-A](https://arxiv.org/html/2611.33707#S2.SS1.p1.1)\.
- \[14\]R\. Ding, W\. Cheng, M\. Shao, and C\. Zhao\(2026\)SkillGen: Learning Domain Skills for In\-Context Sequential Decision Making\.InProc\. AAAI,Cited by:[§II\-A](https://arxiv.org/html/2611.33707#S2.SS1.p1.1)\.
- \[15\]A\. Zhao, D\. Huang, Q\. Xu, M\. Lin, Y\.\-J\. Liu, and G\. Huang\(2024\)ExpeL: LLM Agents Are Experiential Learners\.InProc\. AAAI,Cited by:[§II\-A](https://arxiv.org/html/2611.33707#S2.SS1.p1.1)\.
- \[16\]M\. Klissarov, M\. Henaff, R\. Raileanu, S\. Sodhani, P\. Vincent, A\. Zhang, P\.\-L\. Bacon, D\. Precup, M\. C\. Machado, and P\. D’Oro\(2025\)MaestroMotif: Skill Design from Artificial Intelligence Feedback\.InProc\. ICLR,Cited by:[§II\-A](https://arxiv.org/html/2611.33707#S2.SS1.p1.1)\.
- \[17\]L\. Shen, Z\. Tang, L\. Wu, Y\. Zhang, X\. Chu, T\. Qin, and B\. Han\(2025\)Hot\-Pluggable Federated Learning: Bridging General and Personalized FL via Dynamic Selection\.InProc\. ICLR,Cited by:[§II\-B](https://arxiv.org/html/2611.33707#S2.SS2.p1.1)\.
- \[18\]H\. Zheng, Z\. Hu, L\. Yang, M\. Zheng, A\. Xu, and B\. Wang\(2025\)FedCALM: Conflict\-Aware Layer\-Wise Mitigation for Selective Aggregation in Deeper Personalized Federated Learning\.InProc\. CVPR,Cited by:[§II\-B](https://arxiv.org/html/2611.33707#S2.SS2.p1.1)\.
- \[19\]G\. Huang and T\. Shu\(2025\)Federated Oriented Learning: A Practical One\-Shot Personalized Federated Learning Framework\.InProc\. ICML,Cited by:[§II\-B](https://arxiv.org/html/2611.33707#S2.SS2.p1.1)\.
- \[20\]Y\. Liu, Q\. Li, J\. Tan, Y\. Shi, L\. Shen, and X\. Cao\(2025\)Understanding the Stability\-Based Generalization of Personalized Federated Learning\.InProc\. ICLR,Cited by:[§II\-B](https://arxiv.org/html/2611.33707#S2.SS2.p1.1)\.
- \[21\]X\. Yu, Z\. He, Y\. Sun, L\. Xue, and R\. Li\(2025\)Understanding the Statistical Accuracy\-Communication Trade\-Off in Personalized Federated Learning with Minimax Guarantees\.InProc\. ICML,Cited by:[§II\-B](https://arxiv.org/html/2611.33707#S2.SS2.p1.1)\.
- \[22\]T\. Wei, B\. Mei, J\. Lyu, R\. Zhang, F\. Zhou, and Y\. Sun\(2025\)Personalized Bayesian Federated Learning with Wasserstein Barycenter Aggregation\.InProc\. NeurIPS,Cited by:[§II\-B](https://arxiv.org/html/2611.33707#S2.SS2.p1.1)\.
- \[23\]Y\. Vekaria, A\. L\. Canino, J\. Levitsky, A\. Ciechonski, P\. Callejo, A\. M\. Mandalari, and Z\. Shafiq\(2025\)Big Help or Big Brother? Auditing Tracking, Profiling, and Personalization in Generative AI Assistants\.InProc\. USENIX Security,Cited by:[§III\-B](https://arxiv.org/html/2611.33707#S3.SS2.p1.1)\.
- \[24\]J\. Chen, S\. Xiao, P\. Zhang, K\. Luo, D\. Lian, and Z\. Liu\(2024\)M3\-Embedding: Multi\-Linguality, Multi\-Functionality, Multi\-Granularity Text Embeddings Through Self\-Knowledge Distillation\.InFindings of ACL,Cited by:[§III\-B](https://arxiv.org/html/2611.33707#S3.SS2.p4.2)\.
- \[25\]M\. S\. Thapa and R\. Li\(2025\)Harnessing Heterogeneous Statistical Strength for Personalized Federated Learning via Hierarchical Bayesian Inference\.InProc\. ICML,Cited by:[§III\-C](https://arxiv.org/html/2611.33707#S3.SS3.p2.1)\.
- \[26\]M\. Shridhar, X\. Yuan, M\.\-A\. Côté, Y\. Bisk, A\. Trischler, and M\. Hausknecht\(2021\)ALFWorld: Aligning Text and Embodied Environments for Interactive Learning\.InProc\. ICLR,Cited by:[§IV](https://arxiv.org/html/2611.33707#S4.p1.1)\.
- \[27\]V\. Barres, H\. Dong, S\. Ray, X\. Si, and K\. Narasimhan\(2026\)τ2\{\\tau\}^\{2\}\-Bench: Evaluating Conversational Agents in a Dual\-Control Environment\.InProc\. ICML,Cited by:[§IV](https://arxiv.org/html/2611.33707#S4.p1.1)\.
- \[28\]Qwen Team\(2026\)Qwen3\.6\-35B\-A3B: agentic coding power, now open to all\.External Links:[Link](https://qwen.ai/blog?id=qwen3.6-35b-a3b)Cited by:[§IV](https://arxiv.org/html/2611.33707#S4.p1.1)\.
- \[29\]J\. Yang, G\. Yao, Y\. Zhang, R\. R\. Kompella, G\. Liu, and S\. Chang\(2026\)FederatedSkill: Federated Learning for Agentic Skill Evolution\.arXiv preprint arXiv:2606\.03143\.Cited by:[§IV](https://arxiv.org/html/2611.33707#S4.p2.1)\.

Similar Articles