TAP:基于轨迹锚定恢复的高效长时程智能体剪枝方法

arXiv cs.LG 论文

摘要

论文提出了轨迹锚定剪枝(Trajectory-Anchored Pruning,TAP),这是首个面向强化学习训练的长时程智能体的结构化剪枝框架,将通道剪枝与轨迹锚定的同策略恢复相结合。在移除60%的FFN通道后,TAP在ALFWorld和WebShop上分别保留了稠密7B智能体99.2%和88.0%的任务成功率,同时将每个成功任务的GPU耗时分别降低约22%和17%。

arXiv:2610.09074v1 Announce Type: new Abstract: Emerging long-horizon agentic tasks require repeated model calls, worsening the inference cost of already-costly language models. While narrow agentic tasks suggest potential for aggressive model pruning without performance drop, empirical results show existing methods proposed for question answering tasks severely degrade task performance when applied to agentic models. We trace this failure to two decisions: what to prune and how to recover. For pruning, one-shot importance estimates fail to track how the pruned model adapts. For recovery, offline distillation covers only teacher prefixes, while full-trajectory on-policy distillation causes student errors to compound across turns. In this work, we propose Trajectory-Anchored Pruning (TAP), the first structural pruning framework for reinforcement learning (RL)-trained agents. TAP couples structural pruning with efficient on-policy recovery, anchoring interactions to teacher trajectories while allowing the student to generate each reasoning-action response. A frozen dense teacher supervises the student's response prefixes, addressing within-response training-inference mismatch while preventing student-induced deviations from propagating across training turns. Instead of one-shot pruning, TAP re-scores channels using gradients of the recovery objective on the recovered student, connecting iterative channel selection to the evolving policy. With 60% of FFN channels removed, TAP retains 99.2% and 88.0% of the dense 7B agents' task success rates on ALFWorld and WebShop, respectively, while reducing GPU time per successful task by approximately 22% and 17%. These results demonstrate effective structural compression of long-horizon agents under a limited recovery budget.
查看原文
查看缓存全文

缓存时间: 2026/10/08 12:52

# TAP: Efficient Long-Horizon Agent Pruning via Trajectory-Anchored Recovery
Source: [https://arxiv.org/html/2610.09074](https://arxiv.org/html/2610.09074)
Yuanzhe Li, Pengxin Wang, Yuxin Ren, Jianing DengJingtong Hu, Song Wang, Jingdi Chen, Huanrui YangUniversity of ArizonaUniversity of PittsburghUniversity of Central Florida

###### Abstract

Emerging long\-horizon agentic tasks require repeated model calls, worsening the inference cost of already\-costly language models\. While narrow agentic tasks suggest potential for aggressive model pruning without performance drop, empirical results show existing methods proposed for question answering tasks severely degrade task performance when applied to agentic models\. We trace this failure to two decisions: what to prune and how to recover\. For pruning, one\-shot importance estimates fail to track how the pruned model adapts\. For recovery, offline distillation covers only teacher prefixes, while full\-trajectory on\-policy distillation causes student errors to compound across turns\. In this work, we propose*Trajectory\-Anchored Pruning \(TAP\)*, the first structural pruning framework for reinforcement learning \(RL\)\-trained agents\. TAP couples structural pruning with efficient on\-policy recovery, anchoring interactions to teacher trajectories while allowing the student to generate each reasoning–action response\. A frozen dense teacher supervises the student’s response prefixes, addressing within\-response training–inference mismatch while preventing student\-induced deviations from propagating across training turns\. Instead of one\-shot pruning, TAP re\-scores channels using gradients of the recovery objective on the recovered student, connecting iterative channel selection to the evolving policy\. With 60% of FFN channels removed, TAP retains 99\.2% and 88\.0% of the dense 7B agents’ task success rates on ALFWorld and WebShop, respectively, while reducing GPU time per successful task by approximately 22% and 17%\. These results demonstrate effective structural compression of long\-horizon agents under a limited recovery budget\.

## 1Introduction

Figure 1:RL\-trained agents are highly compressible, but only with suitable pruning and recovery\.Share of the dense agent’s task success retained by 7B agents as FFN channels are removed\. Pruning without recovery collapses beyond40%40\\%removal, whereas TAP retains about8080–99%99\\%of dense success up to80%80\\%removal\.Reinforcement learning \(RL\) has produced language agents with strong capabilities in multi\-step tasks\([Feng et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib5);[He et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib9);[Qi et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib21);[Zhen et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib34);[Li et al\., 2026b](https://arxiv.org/html/2610.09074#bib.bib14);[Qin et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib22)\)\. Each decision, however, conditions on environment observations, tool descriptions, and an ever\-growing interaction history, and solving a long\-horizon task requires many such model invocations, so inference cost accumulates over the trajectory\([Kang et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib11);[Wang et al\., 2026b](https://arxiv.org/html/2610.09074#bib.bib27);[Li et al\., 2026d](https://arxiv.org/html/2610.09074#bib.bib16)\)\. This growing cost motivates model compression for efficient agent deployment\.

Compressing an LLM tuned for a specific agentic task should, in principle, be unusually forgiving\. Compression needs to preserve only the decision\-making the task requires, not the pretrained model’s broad knowledge, which suggests room for more aggressive pruning than general\-purpose LLMs tolerate\([Hu et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib10)\)\. However, existing structural pruning methods, developed and evaluated primarily on static tasks\([Ma et al\., 2023](https://arxiv.org/html/2610.09074#bib.bib18);[Zhang et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib32);[Muralidharan et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib19);[Zhang et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib33)\), fail to exploit it\. Our experiments confirm that a 7B WebShop agent with 80% of its FFN channels removed can retain the success rate attained at only 40% removal by previous methods \(Figure[1](https://arxiv.org/html/2610.09074#S1.F1)b\), indicating a significant gap between the compression potential of agentic LLMs and what existing methods achieve\.

We attribute this gap to limitations in two key decisions: what to prune and how to recover afterwards\.Deciding what to prune\.Existing methods typically estimate channel importance once, on the dense model, and remove the selected channels in a single step\. Two challenges arise when applying this recipe to RL\-trained agents\. First, what must be preserved is the agent’s action\-generating policy on interaction contexts, which criteria based on token likelihood only approximate; even on agent contexts, replacing a distribution\-matching criterion with likelihood lowers out\-of\-distribution success by 5\.5 points \(Table[7](https://arxiv.org/html/2610.09074#A2.T7)\)\. Second, a single cut commits to a channel set before observing how the pruned student adapts\. After recovery, re\-scoring changes which channels are retained relative to one\-shot selection \(Table[6](https://arxiv.org/html/2610.09074#A2.T6)\)\. In each case, pruning moves the student away from the dense agent in ways the selection criterion does not see, leading to teacher–student policy drift\.

Deciding how to recover\.Knowledge distillation is the standard way to recover structurally pruned models\([Muralidharan et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib19)\), but distillation on fixed teacher trajectories trains the student only on teacher prefixes, whereas at deployment the student conditions on its own outputs\. In the agent setting this training–inference mismatch is severe: KD\-recovered baselines steadily reduce their distillation loss, yet their steps produce missing or malformed action blocks\. On\-policy distillation \(OPD\) removes this mismatch by supervising the student’s own generations\([Gu et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib6);[Agarwal et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib1)\)\. For long\-horizon agents, however, full\-trajectory OPD also lets the student’s actions determine subsequent environment states\. A heavily pruned student then trains on states increasingly unlike those the teacher visits, where teacher supervision becomes less reliable\([Li et al\., 2026c](https://arxiv.org/html/2610.09074#bib.bib15);[Wang et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib26);[Li et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib13)\), and its errors compound across turns\([Wang et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib26);[Li et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib13)\)\.

To address these two limitations, we proposeTAP, an iterative pruning framework with*trajectory\-anchored on\-policy distillation*\. TAP fixes interaction contexts to teacher trajectories while allowing the student to generate each complete reasoning–action response under token\-level supervision from a frozen dense teacher\. This retains on\-policy supervision within each turn while preventing student actions from altering subsequent training contexts\. We interleave structural pruning with anchored recovery and, before each subsequent cut, re\-score channels using gradients of the same recovery objective on the recovered student, coupling policy recovery with structural selection\.

Experiments show that with 60% of FFN channels removed, TAP retains 99\.2% and 88\.0% of the dense 7B agents’ success rates on ALFWorld and WebShop, respectively, while reducing GPU time per successful task by approximately 22% and 17%; at 80% removal, it retains 80\.7% and 79\.9%\. TAP also runs efficiently, using only 0\.18–1\.21 million supervised response tokens across all recovery stages for the 1\.5B and 7B agents\.

Our main contributions are summarized as follows:

- •We study structural pruning of RL\-trained long\-horizon agents and trace existing methods’ sharp degradation at aggressive ratios to limitations in*what to prune*and*how to recover*\. We further show that decreasing distillation loss can coexist with malformed generation\.
- •We propose TAP, which couples trajectory\-anchored OPD with iterative pruning and recovery\-informed channel recalibration, so that the recovery objective also guides channel selection at each stage\.
- •Experiments on ALFWorld and WebShop at two model scales demonstrate improved task\-success retention and reduced deployment cost, with ablations isolating the contributions of iterative pruning, recalibration, and anchoring\.

## 2Related Work

#### Structural pruning for LLMs\.

Structural pruning removes channels, attention heads, or layers so that the pruned model runs with standard dense operations\. Prior work scores structures with gradient\- or activation\-based importance and adaptive budget allocation\([Ma et al\., 2023](https://arxiv.org/html/2610.09074#bib.bib18);[Zhang et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib32);[Wang et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib28);[Guo et al\., 2025b](https://arxiv.org/html/2610.09074#bib.bib8)\), compensates for pruning errors with curvature\-aware updates or local reconstruction\([van der Ouderaa et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib25);[Wei et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib29);[Ling et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib17);[Guo et al\., 2025b](https://arxiv.org/html/2610.09074#bib.bib8)\), and recovers the pruned model with parameter\-efficient fine\-tuning or distillation\([Ma et al\., 2023](https://arxiv.org/html/2610.09074#bib.bib18);[Zhang et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib32);[Muralidharan et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib19);[Zhang et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib33)\), mostly on static language tasks\. Gradual pruning interleaves pruning with training\([Zhu & Gupta, 2018](https://arxiv.org/html/2610.09074#bib.bib36)\), and for LLMs, multi\-step pruning with retraining improves on one\-shot removal at high compression\([Zhang et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib32);[Pan et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib20)\)\. For agents, ACBench evaluates unstructured and 2:4 weight sparsity without recovery training\([Dong et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib4)\), REAP prunes MoE experts for coding and tool use\([Lasby et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib12)\), and pruning has been combined with RL for embodied control: Before Parc Fermé prunes driving LLMs during RL, and RLRC recovers compressed vision\-language\-action models with SFT followed by RL\([Benfenati et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib2);[Chen et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib3)\)\. We instead study structural pruning of dense RL\-trained agents that interact with their environments over long horizons\. Whereas prior criteria score channels by language\-modeling gradients or activations, TAP scores them with gradients of the teacher–student divergence that its recovery minimizes on agent contexts, and re\-scores them on the recovered student before each subsequent cut to limit drift that compounds over long horizons\.

#### Distillation and on\-policy distillation\.

Distillation transfers capabilities, including those acquired through RL, from a teacher to a smaller student\([Guo et al\., 2025a](https://arxiv.org/html/2610.09074#bib.bib7);[Yang et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib30)\)\. A student trained on fixed teacher demonstrations may reach sequences or states absent from them\([Ross et al\., 2011](https://arxiv.org/html/2610.09074#bib.bib23)\); MiniLLM and GKD address this by supervising the student’s own generations\([Gu et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib6);[Agarwal et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib1)\)\. For multi\-turn agents, TCOD and Guided\-OPD report that student rollouts compound errors across turns and leave the teacher’s reliable support, and mitigate this with a rollout\-depth curriculum or decaying teacher intervention\([Wang et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib26);[Li et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib13)\); TurnOPD\([Zhou et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib35)\)rebalances rollout and loss budgets across turns\. ShortOPD recovers structurally pruned models with short\-to\-long rollouts on mathematics, code, and open\-ended generation\([Zhang et al\., 2026](https://arxiv.org/html/2610.09074#bib.bib33)\)\. These methods collect student rollouts in the environment or target non\-agentic tasks\. TAP recovers a pruned agent by anchoring every training context to teacher trajectories while supervising the student’s own responses, requires no environment interaction, and couples this recovery with iterative channel selection\. Anchoring keeps training contexts where teacher supervision is reliable and stops student errors from propagating across turns\.

## 3Method

![Refer to caption](https://arxiv.org/html/2610.09074v1/figures/trajectory-anchored-pruning-framework.png)Figure 2:TAP couples how to recover and what to prune through one objective\.Top: teacher trajectories provide a fixed pool of anchor contexts\. Left \(how to recover\): within anchor contexts, the student generates reasoning and action tokens, the frozen teacher supervises every generated token, and minimizingℒAOPD\\mathcal\{L\}\_\{\\mathrm\{AOPD\}\}updates the student\. Right \(what to prune\): gradients of the same objective on the last recovery batch score channels at the recovered student, and remove the lowest\-scoring channels\. The prune–recover–rescore cycle repeats until the target removal ratio is reached\.### 3\.1Preliminaries

Letxxdenote a task instruction andoto\_\{t\}the observation at steptt\. Leth<th\_\{<t\}contain the task instruction and retained observation–action pairs before steptt\. The interaction context isct=\(h<t,ot\)c\_\{t\}=\(h\_\{<t\},o\_\{t\}\)\. We condition the policy on this context, writingπθ​\(at∣ct\)\\pi\_\{\\theta\}\(a\_\{t\}\\mid c\_\{t\}\)for brevity\. This policy generates a responseata\_\{t\}containing reasoning and an executable action\. The environment executes the parsed action and returnsot\+1o\_\{t\+1\}\. We start from a dense agentπT\\pi\_\{T\}after RL and freeze it as the teacher\. We denote the student byπS=πθ\\pi\_\{S\}=\\pi\_\{\\theta\}, whereθ\\thetaare its current parameters\. Our objective is to preserve its complete\-task performance under structural model reduction:

J\(πS\)=𝔼x∼𝒟eval,τ∼πS\(⋅∣x\)\[R\(τ\)\],J\(\\pi\_\{S\}\)=\\mathbb\{E\}\_\{x\\sim\\mathcal\{D\}\_\{\\mathrm\{eval\}\},\\,\\tau\\sim\\pi\_\{S\}\(\\cdot\\mid x\)\}\[R\(\\tau\)\],\(1\)where𝒟eval\\mathcal\{D\}\_\{\\mathrm\{eval\}\}is the evaluation task distribution,τ\\tauis a complete student–environment trajectory, andR⁡\(τ\)R\(\\tau\)is its task return\.

We prune intermediate channels in SwiGLU FFNs by removing the corresponding rows of the gate and up projections and the corresponding column of the down projection\. Formal definitions are provided in Appendix[C\.2](https://arxiv.org/html/2610.09074#A3.SS2)\.

#### Overview\.

TAP progressively compresses the student overKKstages, coupling structural pruning with teacher\-guided recovery \(Figure[2](https://arxiv.org/html/2610.09074#S3.F2), Algorithm[1](https://arxiv.org/html/2610.09074#alg1)\)\. Each stage follows a prune–recover–rescore cycle: it removes FFN channels to reach a cumulative ratioρk\\rho\_\{k\}, recovers the pruned student by distillation from the frozen teacher within anchored contexts, and re\-scores the remaining channels with gradients of the same recovery objective on the recovered student\. This shared objective links the two steps: recovery restores the student’s policy after each cut, and its objective, evaluated on its last batch of responses, scores channels for the next cut, while pruning targets the channels whose removal least perturbs the recovery objective\. Together, they keep teacher supervision reliable by limiting drift from both pruning and long\-horizon interaction\. Section[3\.2](https://arxiv.org/html/2610.09074#S3.SS2)introduces the recovery objective, and Section[3\.3](https://arxiv.org/html/2610.09074#S3.SS3)explains how it guides iterative channel selection\.

Algorithm 1TAP: Iterative Pruning with Trajectory\-Anchored Recovery1:Teacher

πT\\pi\_\{T\}, training tasks

𝒟train\\mathcal\{D\}\_\{\\mathrm\{train\}\}, target ratio

ρ⋆\\rho\_\{\\star\}, stages

KK, token budget

QQ, warm\-up fraction

α\\alpha
2:Notation:

sℓ,js\_\{\\ell,j\}is the importance score of FFN channel

jjin layer

ℓ\\ell;

ℬlast\\mathcal\{B\}\_\{\\mathrm\{last\}\}is the last training batch of anchored OPD

3:Construct anchor pool

ℋT\\mathcal\{H\}\_\{T\}from teacher trajectories on

𝒟train\\mathcal\{D\}\_\{\\mathrm\{train\}\}
4:Initialize

πS←πT\\pi\_\{S\}\\leftarrow\\pi\_\{T\}; keep teacher

πT\\pi\_\{T\}and anchor pool

ℋT\\mathcal\{H\}\_\{T\}fixed

5:

\{sℓ,j\}←InitialScores⁡\(GaussianPerturb⁡\(πS\),πT,ℋT\)\\\{s\_\{\\ell,j\}\\\}\\leftarrow\\operatorname\{InitialScores\}\(\\operatorname\{GaussianPerturb\}\(\\pi\_\{S\}\),\\pi\_\{T\},\\mathcal\{H\}\_\{T\}\)
6:for

k=1,…,Kk=1,\\ldots,Kdo

7:Set cumulative removal target

ρk\\rho\_\{k\}using Eq\. \([5](https://arxiv.org/html/2610.09074#S3.E5)\)

8:Prune:

πS←Prune⁡\(πS,\{sℓ,j\},ρk\)\\pi\_\{S\}\\leftarrow\\operatorname\{Prune\}\(\\pi\_\{S\},\\\{s\_\{\\ell,j\}\\\},\\rho\_\{k\}\)
9:Recover:

πS←KDWarmup⁡\(πS,πT,ℋT,α​Q/K\)\\pi\_\{S\}\\leftarrow\\operatorname\{KDWarmup\}\(\\pi\_\{S\},\\pi\_\{T\},\\mathcal\{H\}\_\{T\};\\,\\alpha Q/K\)
10:

\(πS,ℬlast\)←AnchoredOPD⁡\(πS,πT,ℋT,\(1−α\)​Q/K\)\(\\pi\_\{S\},\\mathcal\{B\}\_\{\\mathrm\{last\}\}\)\\leftarrow\\operatorname\{AnchoredOPD\}\(\\pi\_\{S\},\\pi\_\{T\},\\mathcal\{H\}\_\{T\};\\,\(1\-\\alpha\)Q/K\)
11:if

k<Kk<Kthen

12:Rescore:compute OPD gradients on

ℬlast\\mathcal\{B\}\_\{\\mathrm\{last\}\}at the recovered

πS\\pi\_\{S\}
13:update

\{sℓ,j\}\\\{s\_\{\\ell,j\}\\\}using Eq\. \([4](https://arxiv.org/html/2610.09074#S3.E4)\) for the next cut

14:endif

15:endfor

16:return

πS\\pi\_\{S\}

### 3\.2Trajectory\-Anchored On\-Policy Distillation

TAP recovers the pruned student with on\-policy distillation anchored to teacher trajectories: the student generates its own responses, but only within interaction contexts taken from the teacher’s trajectories\.

#### Anchoring interaction context\.

We collect teacher trajectories on training tasks𝒟train\\mathcal\{D\}\_\{\\mathrm\{train\}\}and extract a fixed poolℋT=\{\(ctT,atT\)\}\\mathcal\{H\}\_\{T\}=\\\{\(c\_\{t\}^\{T\},a\_\{t\}^\{T\}\)\\\}of context–response pairs\. Each contextctT=\(h<tT,otT\)c\_\{t\}^\{T\}=\(h\_\{<t\}^\{T\},o\_\{t\}^\{T\}\)contains the retained teacher history and current observation;atTa\_\{t\}^\{T\}is the corresponding teacher response\. We denote the sampling distribution over these contexts byqℋTq\_\{\\mathcal\{H\}\_\{T\}\}\. Given an anchor context formatted with the agent’s prompt template, the current student generates a fresh response:

a^t∼πS\(⋅∣ctT\)\.\\widehat\{a\}\_\{t\}\\sim\\pi\_\{S\}\(\\cdot\\mid c\_\{t\}^\{T\}\)\.\(2\)The generated action is not executed in the environment; the next training context is sampled fromℋT\\mathcal\{H\}\_\{T\}\. This trajectory\-anchored recovery requires no additional environment interaction during training\.

#### Distillation on student responses\.

We construct each training batchℬ\\mathcal\{B\}by sampling anchor contextscT∼qℋTc^\{T\}\\sim q\_\{\\mathcal\{H\}\_\{T\}\}and student responsesa^\\widehat\{a\}\. For a responsea^=\(y1,…,yL\)\\widehat\{a\}=\(y\_\{1\},\\ldots,y\_\{L\}\), letpj=\(cT,y<j\)p\_\{j\}=\(c^\{T\},y\_\{<j\}\)denote the context followed by the student\-generated prefix\. The frozen teacher scores the same prefixes, and we minimize the reverse KL averaged over the batch’sNℬN\_\{\\mathcal\{B\}\}response tokens:

ℒAOPD\(θ;ℬ\)=1Nℬ∑\(cT,a^\)∈ℬ∑j=1\|a^\|DKL\(πθ\(⋅∣pj\)∥πT\(⋅∣pj\)\)\.\\mathcal\{L\}\_\{\\mathrm\{AOPD\}\}\(\\theta;\\mathcal\{B\}\)=\\frac\{1\}\{N\_\{\\mathcal\{B\}\}\}\\sum\_\{\(c^\{T\},\\widehat\{a\}\)\\in\\mathcal\{B\}\}\\sum\_\{j=1\}^\{\|\\widehat\{a\}\|\}D\_\{\\mathrm\{KL\}\}\\\!\\left\(\\pi\_\{\\theta\}\(\\cdot\\mid p\_\{j\}\)\\,\\\|\\,\\pi\_\{T\}\(\\cdot\\mid p\_\{j\}\)\\right\)\.\(3\)Following GKD\([Agarwal et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib1)\), sampled responses are held fixed during each update; following Guided\-OPD\([Li et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib13)\), we use reverse KL with supervision restricted to response tokens\.

#### Relation to KD and full\-trajectory OPD\.

Recovery objectives differ in where the supervised prefixespj=\(c,y<j\)p\_\{j\}=\(c,y\_\{<j\}\)come from \(definitions in Appendix[C\.5](https://arxiv.org/html/2610.09074#A3.SS5)\)\. Logits KD supervises teacher prefixes, pairing a teacher context with a teacher response prefix, so the student never learns to continue from its own tokens\. Full\-trajectory OPD supervises prefixes generated entirely by the student, so its contexts shift with the student’s own actions\. Anchored OPD takes the context from teacher trajectories and the response prefix from the student: supervision covers the prefixes the student produces within each turn, while its contexts stay where teacher supervision is reliable, and recovery requires no environment interaction\.

### 3\.3Recovery\-Guided Iterative Pruning

#### Channel importance from the recovery objective\.

We select channels by minimal disturbance: a channel is unimportant if removing it barely changes the anchored OPD objective, the teacher–student divergence that recovery minimizes, so pruning aims to keep the student close to the teacher\. Following loss\-based pruning\([Ma et al\., 2023](https://arxiv.org/html/2610.09074#bib.bib18)\), we approximate this change with a first\-order Taylor criterion\. For layerℓ\\ell, letWℓg,Wℓu,WℓdW\_\{\\ell\}^\{g\},W\_\{\\ell\}^\{u\},W\_\{\\ell\}^\{d\}denote the student’s gate, up, and down weights, and letGℓp=∂ℒAOPD​\(θ,ℬ\)/∂WℓpG\_\{\\ell\}^\{p\}=\\partial\\mathcal\{L\}\_\{\\mathrm\{AOPD\}\}\(\\theta;\\mathcal\{B\}\)/\\partial W\_\{\\ell\}^\{p\}forp∈\{g,u,d\}p\\in\\\{g,u,d\\\}be the gradient of Eq\. \([3](https://arxiv.org/html/2610.09074#S3.E3)\) on a calibration batchℬ\\mathcal\{B\}of anchor contexts and student responses\. The importance of intermediate channeljjcombines the corresponding gate/up rows and down column:

sℓ,j=∑i\|Wℓ,j​ig​Gℓ,j​ig\|\+∑i\|Wℓ,j​iu​Gℓ,j​iu\|\+∑i\|Wℓ,i​jd​Gℓ,i​jd\|,s\_\{\\ell,j\}=\\sum\_\{i\}\\left\|W\_\{\\ell,ji\}^\{g\}G\_\{\\ell,ji\}^\{g\}\\right\|\+\\sum\_\{i\}\\left\|W\_\{\\ell,ji\}^\{u\}G\_\{\\ell,ji\}^\{u\}\\right\|\+\\sum\_\{i\}\\left\|W\_\{\\ell,ij\}^\{d\}G\_\{\\ell,ij\}^\{d\}\\right\|,\(4\)whereiiindexes the hidden dimension and weights use output\-by\-input indexing\. We remove the lowest\-scoring channels within each layer\. Because the scores reuse recovery responses, they require no additional environment interaction\.

At the first cut, the student equals the teacher and the KL gradients vanish\. We therefore compute the initial scores on a perturbed student, obtained by adding small Gaussian noise to its FFN weights, and apply the resulting selection to the unperturbed student\. Details of channel scoring and initial calibration are provided in Appendix[C\.3](https://arxiv.org/html/2610.09074#A3.SS3)\.

#### Iterative pruning\.

Pruning and recovery change the student’s parameters and policy, so a ranking estimated once before compression no longer reflects the adapted student\. We therefore prune inKKstages and, before each subsequent cut, re\-score the remaining channels on the recovered student using the last batch of recovery responses\. Recovery between cuts also restores teacher–student alignment before further structural reduction\. Letρk\\rho\_\{k\}be the cumulative fraction of original FFN channels removed after cutkk, andρ⋆\\rho\_\{\\star\}the final target\. Following the cubic schedule of[Zhu & Gupta \(2018\)](https://arxiv.org/html/2610.09074#bib.bib36), we increase the cumulative removal ratio with larger cuts early and smaller cuts later:

ρk=ρ⋆\[1−\(1−kK\)3\],k=1,…,K\.\\rho\_\{k\}=\\rho\_\{\\star\}\\left\[1\-\\left\(1\-\\frac\{k\}\{K\}\\right\)^\{3\}\\right\],\\qquad k=1,\\ldots,K\.\(5\)We useK=3K=3in our experiments; for an80%80\\%final target, the cumulative removal ratios are approximately56%56\\%,77%77\\%, and80%80\\%\. The teacher and anchor pool remain fixed throughout\. We divide the total supervised response\-token budgetQQequally across stages; each stage allocates a fractionα\\alphaof its budget to logits KD warm\-up on teacher response prefixes, followed by anchored OPD\. We setα=0\.2\\alpha=0\.2in our experiments\.

## 4Experiments

We organize our experiments around four research questions \(RQs\)\.RQ1\(Section[4\.2](https://arxiv.org/html/2610.09074#S4.SS2)\): Does TAP preserve task success under aggressive structural pruning? RQ2 and RQ3 address the two decisions identified in Section[1](https://arxiv.org/html/2610.09074#S1)\.RQ2\(Section[4\.3](https://arxiv.org/html/2610.09074#S4.SS3),*what to prune*\): Does re\-scoring channels with the recovery objective on the adapted student select better channels than a fixed ranking?RQ3\(Section[4\.4](https://arxiv.org/html/2610.09074#S4.SS4),*how to recover*\): How does trajectory anchoring compare with offline KD and full\-trajectory OPD? Finally, we verifyRQ4\(Section[4\.5](https://arxiv.org/html/2610.09074#S4.SS5)\): Does structural compression reduce the cost of completing agent tasks?

### 4\.1Experimental Setup

#### Benchmarks and models\.

We conduct experiments on ALFWorld and WebShop, two representative benchmarks for long\-horizon language agents\([Shridhar et al\., 2021](https://arxiv.org/html/2610.09074#bib.bib24);[Yao et al\., 2022](https://arxiv.org/html/2610.09074#bib.bib31)\)\. We use RL\-trained agents at two model scales,1\.5Band7B, from SPEAR and GiGPO\([Qin et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib22);[Feng et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib5)\), with model and checkpoint details provided in Appendix[C\.1](https://arxiv.org/html/2610.09074#A3.SS1)\. The FFN channel\-pruning ratios are40%and60%for the1\.5Bmodels, and60%and80%for the7Bmodels\.

#### Baselines\.

We compare TAP with LLM\-Pruner\([Ma et al\., 2023](https://arxiv.org/html/2610.09074#bib.bib18)\), CFSP\([Wang et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib28)\), and SlimGPT\([Ling et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib17)\), grouped by how they recover the pruned agent\. LLM\-Pruner and CFSP select channels once and recover with logits KD\. We evaluate SlimGPT with its native local reconstruction and no additional recovery training to assess the effectiveness of reconstruction alone in our agent setting\. We additionally continue GiGPO training of the 1\.5B agents while removing one percentage point of FFN channels per optimizer step \(online RL, denoted RL \+ Pruning; Appendix[A](https://arxiv.org/html/2610.09074#A1)\)\. All methods use uniform layer\-wise FFN pruning ratios\. For offline recovery comparisons, we match the total supervised token budget and batch size\. Other baseline adaptations and budget construction are provided in Appendix[C](https://arxiv.org/html/2610.09074#A3)\.

#### Evaluation settings\.

We evaluate on both the in\-distribution \(In\) and out\-of\-distribution \(Out\) splits of ALFWorld and the full 500\-task test set of WebShop\. We report task success rate over three seeds and performance retention; for ALFWorld, retention averages the two splits\. The ablations in Sections[4\.3](https://arxiv.org/html/2610.09074#S4.SS3)and[4\.4](https://arxiv.org/html/2610.09074#S4.SS4)use the 7B agents\.

### 4\.2Main Results: Task Success under Aggressive Pruning

RQ1\.Does TAP preserve task success under aggressive structural pruning?

Table 1:TAP retains the most task success, and its lead grows with the removal ratio\.We test whether TAP preserves the success of RL\-trained agents under aggressive FFN pruning, compared with pipelines that recover by online RL \(RL \+ Pruning\), offline logits KD \(\+ KD\), or local reconstruction alone \(SlimGPT\)\. Entries are success rates over three seeds and retention relative to the dense agent; ALFWorld retention averages the In and Out splits\.Bold/underline: best/second best per setting\. At the milder ratio of each model, the strongest baselines stay within3\.53\.5retention points of TAP; at the aggressive ratio, TAP’s retention exceeds the best baseline’s by88–6060points\. The redundancy of task\-specific agents is therefore exploitable, but only with suitable channel selection and recovery\.#### Comparison with pruning baselines\.

Table[1](https://arxiv.org/html/2610.09074#S4.T1)shows that the baselines remain competitive only at the milder ratio of each model: at60%60\\%removal of the 7B agents, CFSP \+ KD retains96\.34%96\.34\\%of dense ALFWorld success, versus99\.24%99\.24\\%for TAP\. The gap opens at the aggressive ratio\. At60%60\\%removal of the 1\.5B agents, no baseline retains more than9\.07%9\.07\\%of dense WebShop success, whereas TAP retains69\.38%69\.38\\%; at80%80\\%removal of the 7B agents, TAP exceeds CFSP \+ KD by10\.2810\.28and8\.128\.12retention points on ALFWorld and WebShop\. The other recovery routes are brittle\. Pruning during RL retains at most41\.96%41\.96\\%of dense success already at40%40\\%removal\. SlimGPT’s reconstruction alone collapses on 1\.5B ALFWorld and on the 7B agents at80%80\\%, despite near\-dense success at20%20\\%\(Appendix[B\.1](https://arxiv.org/html/2610.09074#A2.SS1)\)\.

#### Pruning sensitivity\.

Figure[1](https://arxiv.org/html/2610.09074#S1.F1)\(Section[1](https://arxiv.org/html/2610.09074#S1)\) shows how much of this capacity is recoverable\. Without recovery, CFSP success declines sharply with channel removal: WebShop SR falls to0\.8%0\.8\\%at60%60\\%removal, and both benchmarks reach zero at80%80\\%\. TAP retains a similar share of dense success at substantially higher removal:99\.2%99\.2\\%on ALFWorld at60%60\\%removal, comparable to prune\-only CFSP at20%20\\%, and79\.9%79\.9\\%on WebShop at80%80\\%, comparable to prune\-only CFSP at40%40\\%\.

### 4\.3What to Prune: Recovery\-Guided Channel Recalibration

RQ2\.Does re\-scoring channels with the recovery objective on the adapted student select better channels than a fixed ranking?

Table 2:Iterative pruning helps when channels are re\-scored with the recovery objective\.To isolate what to prune as the student adapts, we fix the recovery objective and vary how channels are removed on Qwen2\.5\-7B\. Cubic and uniform schedules use three pruning stages\. A and B delete the same final channels, so B vs\. A isolates interleaving recovery between cuts; B vs\. C isolates recalibration; U vs\. C compares uniform and cubic schedules\.Bold/underline: best/second best\. Iterating with a fixed ranking gives mixed changes, whereas recalibration improves five of six metrics, and C improves on one\-shot pruning in all six\. The gain therefore comes from coupling channel selection with recovery\.#### Iterative pruning and channel recalibration\.

In Table[2](https://arxiv.org/html/2610.09074#S4.T2)\(protocol in Appendix[B\.4](https://arxiv.org/html/2610.09074#A2.SS4)\), iterative pruning with a fixed ranking \(B\) gives mixed changes relative to one\-shot pruning \(A\), lowering two of three metrics at60%60\\%removal\. Recalibration makes iteration pay off: C improves on B in five of six metrics, by up to8\.218\.21points on ALFWorld Out at80%80\\%removal, and improves on one\-shot pruning in all six\. Recalibration also changes the surviving subnetwork, replacing1414–22%22\\%of the channels that one\-shot selection retains \(Appendix[B\.2](https://arxiv.org/html/2610.09074#A2.SS2)\)\. With recalibration, a uniform schedule \(U\) trails the cubic one on all six metrics\.

#### The objective used for recalibration\.

Replacing TAP’s reverse\-KL scoring \(Section[3\.3](https://arxiv.org/html/2610.09074#S3.SS3)\) with token NLL leaves ALFWorld In SR similar but lowers Out SR from89\.80%89\.80\\%to84\.33%84\.33\\%at60%60\\%removal \(Table[7](https://arxiv.org/html/2610.09074#A2.T7)\), so scoring channels by the teacher–student divergence better preserves the agent’s policy\. Overall, iterative pruning pays off consistently only when channel importance is re\-estimated with the recovery objective on the adapted student\.

### 4\.4How to Recover: Trajectory\-Anchored Distillation

RQ3\.How does trajectory anchoring compare with offline KD and full\-trajectory OPD?

Table 3:Recovery works best when the student generates its own responses within teacher interaction contexts\.To isolate how a pruned agent should be recovered, we fix the pruning path to TAP’s and vary only the recovery objective on Qwen2\.5\-7B\.*Context*and*Resp\.*\(response\) indicate whose interaction contexts the student conditions on and whose responses it is supervised on: logits KD and SeqKD use teacher responses with soft and hard targets, full\-trajectory OPD uses the student’s own rollouts, and anchored OPD uses student responses within teacher contexts\. Entries are SR;bold/underline: best/second best\. Anchored OPD is the best or within one standard deviation of the best in every column, whereas full\-trajectory OPD collapses on ALFWorld at80%80\\%removal\. Comparing rows isolates the two design choices: supervising the student’s own responses improves on KD, and anchoring its contexts avoids the collapse of full\-trajectory OPD\.#### Offline versus on\-policy supervision\.

In Table[3](https://arxiv.org/html/2610.09074#S4.T3), with teacher contexts fixed, supervising the student’s own responses \(anchored OPD\) rather than teacher responses improves WebShop SR by3\.073\.07and2\.532\.53points over logits KD and by6\.806\.80and6\.936\.93points over SeqKD at60%60\\%and80%80\\%removal, and gives the highest ALFWorld Out SR at both ratios, while logits KD remains comparable on ALFWorld In, where the training–inference mismatch\([Gu et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib6);[Agarwal et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib1)\)is likely smaller\. Offline KD can fail more severely after aggressive one\-shot pruning: on 1\.5B WebShop at60%60\\%removal, the one\-shot KD baselines reduce their KL by about84%84\\%while8787–93%93\\%of their steps contain malformed action blocks \(Appendix[B\.3](https://arxiv.org/html/2610.09074#A2.SS3)\)\. In Table 3, all recovery variants use the same pruning masks as TAP and differ only in the recovery objective\. With these masks, logits KD is already much stronger than one\-shot CFSP \+ KD; TAP’s gains over the baselines thus combine a better pruning path with anchored recovery\.

#### Anchored versus full\-trajectory OPD\.

Full\-trajectory OPD also supervises the student’s own responses, but lets its executed actions determine the interaction contexts\. It trails anchored OPD on all three metrics at60%60\\%removal and collapses on ALFWorld at80%80\\%\(49\.76%49\.76\\%and41\.54%41\.54\\%In and Out SR, versus76\.19%76\.19\\%and72\.14%72\.14\\%\)\. These failures are not malformed outputs: only1\.32%1\.32\\%of its steps contain a broken action block, and95%95\\%of failed episodes run to the maximum step limit, so the student acts validly but fails to finish the task\. The collapse arises for the weakest student on ALFWorld’s much longer episodes, consistent with the cross\-turn drift reported for multi\-turn OPD\([Wang et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib26);[Li et al\., 2026a](https://arxiv.org/html/2610.09074#bib.bib13)\): the student’s own rollouts steer supervision toward states unlike those in teacher trajectories, and errors compound over more turns\. Anchoring interaction contexts to teacher trajectories thus keeps on\-policy recovery stable for heavily pruned students on long horizons\.

### 4\.5Deployment Efficiency

RQ4\.Does structural compression reduce the cost of completing agent tasks?

Table 4:Compression lowers the cost per successful task when success is retained\.Agent cost depends on speed, steps per task, and success, so we report all three for dense and TAP\-pruned Qwen2\.5\-7B agents\. Steps: agent steps per task; E2E: end\-to\-end speedup per task; CPS: GPU time per success, including failed attempts, relative to dense \(Appendix[C\.8](https://arxiv.org/html/2610.09074#A3.SS8)\)\. CPS falls by1717–29%29\\%except on ALFWorld at80%80\\%removal, where1\.8×1\.8\\timesmore steps per task outweigh faster inference\.#### Model inference efficiency\.

Structural removal translates into practical acceleration: in Table[4](https://arxiv.org/html/2610.09074#S4.T4),60%60\\%and80%80\\%FFN removal reduce the parameter count from7\.627\.62B to4\.194\.19B and3\.053\.05B, and yield1\.71×1\.71\\timesand1\.94×1\.94\\timesprefill speedups and1\.73×1\.73\\timesand2\.26×2\.26\\timesdecoding speedups, respectively\. The pruned models also need45%45\\%and60%60\\%less memory for their weights\.

#### Task\-level efficiency\.

These gains extend to complete agent evaluations: at60%60\\%removal, end\-to\-end speedups reach1\.30×1\.30\\timeson ALFWorld and1\.38×1\.38\\timeson WebShop; at80%80\\%removal, WebShop achieves a1\.76×1\.76\\timesspeedup\. Thus, structural compression accelerates agent execution even with the additional costs of environment interaction\. Because an agent calls the model at every step, per\-call speedups accumulate over each trajectory\.Cost per success\(CPS\), which also charges failed attempts, falls at60%60\\%removal to0\.78×0\.78\\timesthe dense baseline on ALFWorld and0\.83×0\.83\\timeson WebShop, reducing the resource cost per success by approximately22%22\\%and17%17\\%\. WebShop at80%80\\%removal achieves the largest saving, lowering CPS to0\.71×0\.71\\times, or approximately29%29\\%less GPU time per successful task\. The exception is ALFWorld at80%80\\%removal, where1\.8×1\.8\\timesmore steps per task outweigh the faster inference\.

## 5Conclusion

We studied structural pruning of RL\-trained long\-horizon agents and traced the failure of existing pipelines at aggressive ratios to two decisions: what to prune and how to recover\. TAP couples the two through a shared objective: it recovers each pruned student with trajectory\-anchored on\-policy distillation, supervising the student’s own responses within teacher interaction contexts, and re\-scores channels with gradients of this objective before each cut\. With60%60\\%of FFN channels removed, TAP retains99\.2%99\.2\\%and88\.0%88\.0\\%of the dense 7B agents’ success on ALFWorld and WebShop while lowering cost per successful task; with80%80\\%removed, it still retains80\.7%80\.7\\%and79\.9%79\.9\\%\.

Our analyses separate the two decisions\. For recovery, KD loss can decrease while generated actions remain malformed, and full\-trajectory OPD collapses for heavily pruned students on the longer\-horizon environment, whereas anchored recovery avoids both\. For channel selection, iterative pruning helps consistently only when channels are re\-scored on the recovered student\.

TAP relies on informative teacher trajectories, and anchored recovery does not cover every state the deployed student may visit\. We study FFN channel pruning of Qwen2\.5 agents on two environments; extending TAP to other architectures, pruning granularities, and agentic domains, together with adaptive anchor selection and a gradual transition to unanchored recovery, are natural next steps\.

## References

- Agarwal et al\. \(2024\)Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem\.On\-policy distillation of language models: Learning from self\-generated mistakes\.In*The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7\-11, 2024*\. OpenReview\.net, 2024\.URL[https://openreview\.net/forum?id=3zKtaqxLhW](https://openreview.net/forum?id=3zKtaqxLhW)\.
- Benfenati et al\. \(2026\)Luca Benfenati, Ali Azimi, Matteo Risso, Fabio Carapellese, Daniele Jahier Pagliari, and Alessio Burrello\.Before Parc Fermé: RL\-Time pruning for efficient embodied LLMs in autonomous driving\.*CoRR*, abs/2605\.31256, 2026\.doi:10\.48550/ARXIV\.2605\.31256\.URL[https://doi\.org/10\.48550/arXiv\.2605\.31256](https://doi.org/10.48550/arXiv.2605.31256)\.
- Chen et al\. \(2026\)Yuxuan Chen, Yixin Han, Yize Huang, and Xiao Li\.RLRC: reinforcement learning\-based recovery for compressed vision\-language\-action models\.*IEEE Robotics Autom\. Lett\.*, 11\(7\):8864–8871, 2026\.doi:10\.1109/LRA\.2026\.3700379\.URL[https://doi\.org/10\.1109/LRA\.2026\.3700379](https://doi.org/10.1109/LRA.2026.3700379)\.
- Dong et al\. \(2025\)Peijie Dong, Zhenheng Tang, Xiang Liu, Lujun Li, Xiaowen Chu, and Bo Li\.Can compressed LLMs truly act? an empirical evaluation of agentic capabilities in LLM compression\.In*Forty\-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13\-19, 2025*, volume 267 of*Proceedings of Machine Learning Research*\. PMLR / OpenReview\.net, 2025\.URL[https://proceedings\.mlr\.press/v267/dong25k\.html](https://proceedings.mlr.press/v267/dong25k.html)\.
- Feng et al\. \(2025\)Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An\.Group\-in\-group policy optimization for LLM agent training\.In*Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2\-7, 2025 / Mexico City, Mexico, November 30 \- December 5, 2025*, 2025\.URL[http://papers\.nips\.cc/paper\_files/paper/2025/hash/420c9f777c0b4f78d515e53cf74d58b2\-Abstract\-Conference\.html](http://papers.nips.cc/paper_files/paper/2025/hash/420c9f777c0b4f78d515e53cf74d58b2-Abstract-Conference.html)\.
- Gu et al\. \(2024\)Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang\.MiniLLM: Knowledge distillation of large language models\.In*The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7\-11, 2024*\. OpenReview\.net, 2024\.URL[https://openreview\.net/forum?id=5h0qf7IBZZ](https://openreview.net/forum?id=5h0qf7IBZZ)\.
- Guo et al\. \(2025a\)Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al\.DeepSeek\-R1 incentivizes reasoning in LLMs through reinforcement learning\.*Nat\.*, 645\(8081\):633–638, 2025a\.doi:10\.1038/S41586\-025\-09422\-Z\.URL[https://doi\.org/10\.1038/s41586\-025\-09422\-z](https://doi.org/10.1038/s41586-025-09422-z)\.
- Guo et al\. \(2025b\)Jialong Guo, Xinghao Chen, Yehui Tang, and Yunhe Wang\.SlimLLM: Accurate structured pruning for large language models\.In*Forty\-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13\-19, 2025*, volume 267 of*Proceedings of Machine Learning Research*\. PMLR / OpenReview\.net, 2025b\.URL[https://proceedings\.mlr\.press/v267/guo25a\.html](https://proceedings.mlr.press/v267/guo25a.html)\.
- He et al\. \(2026\)Shuo He, Lang Feng, Qi Wei, Xin Cheng, Lei Feng, and Bo An\.Hierarchy\-of\-groups policy optimization for long\-horizon agentic tasks\.*CoRR*, abs/2602\.22817, 2026\.doi:10\.48550/ARXIV\.2602\.22817\.URL[https://doi\.org/10\.48550/arXiv\.2602\.22817](https://doi.org/10.48550/arXiv.2602.22817)\.
- Hu et al\. \(2025\)Lanxiang Hu, Tajana Rosing, and Hao Zhang\.TrimLLM: Progressive layer dropping for domain\-specific LLMs\.In*Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\), ACL 2025, Vienna, Austria, July 27 \- August 1, 2025*, pp\. 667–681\. Association for Computational Linguistics, 2025\.doi:10\.18653/V1/2025\.ACL\-LONG\.33\.URL[https://doi\.org/10\.18653/v1/2025\.acl\-long\.33](https://doi.org/10.18653/v1/2025.acl-long.33)\.
- Kang et al\. \(2025\)Minki Kang, Wei\-Ning Chen, Dongge Han, Huseyin A\. Inan, Lukas Wutschitz, Yanzhi Chen, Robert Sim, and Saravan Rajmohan\.ACON: optimizing context compression for long\-horizon LLM agents\.*CoRR*, abs/2510\.00615, 2025\.doi:10\.48550/ARXIV\.2510\.00615\.URL[https://doi\.org/10\.48550/arXiv\.2510\.00615](https://doi.org/10.48550/arXiv.2510.00615)\.
- Lasby et al\. \(2026\)Mike Lasby, Ivan Lazarevich, Nish Sinnadurai, Sean Lie, Yani Ioannou, and Vithursan Thangarasa\.REAP the experts: Why pruning prevails for one\-shot MoE compression\.In*The Fourteenth International Conference on Learning Representations*, 2026\.URL[https://openreview\.net/forum?id=ukGxWd2aDG](https://openreview.net/forum?id=ukGxWd2aDG)\.
- Li et al\. \(2026a\)Gengsheng Li, Mao Zheng, Mingyang Song, Ruiqi Liu, Tianyu Yang, Jie Sun, Qiyong Zhong, Haiyun Guo, Junfeng Fang, Dan Zhang, and Jinqiao Wang\.On\-policy distillation with curriculum turn\-level guidance for multi\-turn agents\.*CoRR*, abs/2606\.15912, 2026a\.doi:10\.48550/ARXIV\.2606\.15912\.URL[https://doi\.org/10\.48550/arXiv\.2606\.15912](https://doi.org/10.48550/arXiv.2606.15912)\.
- Li et al\. \(2026b\)Meng Li, Lei Li, Xiting Wang, Yi Yuan, Zheng Wei, Jiang Bian, and Zang Li\.SOAR: supervision from observation for agentic reinforcement learning\.In*Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\), ACL 2026, San Diego, California, United States, July 2\-7, 2026*, pp\. 35175–35197\. Association for Computational Linguistics, 2026b\.doi:10\.18653/V1/2026\.ACL\-LONG\.1624\.URL[https://doi\.org/10\.18653/v1/2026\.acl\-long\.1624](https://doi.org/10.18653/v1/2026.acl-long.1624)\.
- Li et al\. \(2026c\)Yaxuan Li, Yuxin Zuo, Bingxiang He, Jinqian Zhang, Chaojun Xiao, Cheng Qian, Tianyu Yu, Huan\-ang Gao, Wenkai Yang, Zhiyuan Liu, and Ning Ding\.Rethinking on\-policy distillation of large language models: Phenomenology, mechanism, and recipe\.*CoRR*, abs/2604\.13016, 2026c\.doi:10\.48550/ARXIV\.2604\.13016\.URL[https://doi\.org/10\.48550/arXiv\.2604\.13016](https://doi.org/10.48550/arXiv.2604.13016)\.
- Li et al\. \(2026d\)Yuanzhe Li, Jianing Deng, Jingtong Hu, Tianlong Chen, Song Wang, and Huanrui Yang\.Dynamic mixed\-precision routing for efficient multi\-step LLM interaction\.*arXiv preprint arXiv:2602\.02711*, 2026d\.URL[https://arxiv\.org/abs/2602\.02711](https://arxiv.org/abs/2602.02711)\.
- Ling et al\. \(2024\)Gui Ling, Ziyang Wang, Yuliang Yan, and Qingwen Liu\.SlimGPT: Layer\-wise structured pruning for large language models\.In*Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 \- 15, 2024*, 2024\.URL[http://papers\.nips\.cc/paper\_files/paper/2024/hash/c1c44e46358e0fb94dc94ec495a7fb1a\-Abstract\-Conference\.html](http://papers.nips.cc/paper_files/paper/2024/hash/c1c44e46358e0fb94dc94ec495a7fb1a-Abstract-Conference.html)\.
- Ma et al\. \(2023\)Xinyin Ma, Gongfan Fang, and Xinchao Wang\.LLM\-Pruner: On the structural pruning of large language models\.In*Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 \- 16, 2023*, 2023\.URL[http://papers\.nips\.cc/paper\_files/paper/2023/hash/44956951349095f74492a5471128a7e0\-Abstract\-Conference\.html](http://papers.nips.cc/paper_files/paper/2023/hash/44956951349095f74492a5471128a7e0-Abstract-Conference.html)\.
- Muralidharan et al\. \(2024\)Saurav Muralidharan, Sharath Turuvekere Sreenivas, Raviraj Joshi, Marcin Chochowski, Mostofa Patwary, Mohammad Shoeybi, Bryan Catanzaro, Jan Kautz, and Pavlo Molchanov\.Compact language models via pruning and knowledge distillation\.In*Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 \- 15, 2024*, 2024\.URL[http://papers\.nips\.cc/paper\_files/paper/2024/hash/4822991365c962105b1b95b1107d30e5\-Abstract\-Conference\.html](http://papers.nips.cc/paper_files/paper/2024/hash/4822991365c962105b1b95b1107d30e5-Abstract-Conference.html)\.
- Pan et al\. \(2025\)Rui Pan, Shivanshu Shekhar, Boyao Wang, Shizhe Diao, Jipeng Zhang, Xingyuan Pan, Renjie Pi, and Tong Zhang\.Adapt\-Pruner: Adaptive structural pruning for efficient small language model training, 2025\.URL[https://arxiv\.org/abs/2502\.03460](https://arxiv.org/abs/2502.03460)\.
- Qi et al\. \(2026\)Qiuyi Qi, Tian Liang, Mutian Bao, Jinjian Zhang, Dongnan Liu, Wei Zhou, Linjian Mo, Ming Kong, Jie Liu, Feng Zhang, and Qiang Zhu\.STAPO: selective trajectory\-aware policy optimization for LLM agent training\.In*Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\), ACL 2026, San Diego, California, United States, July 2\-7, 2026*, pp\. 28371–28392\. Association for Computational Linguistics, 2026\.doi:10\.18653/V1/2026\.ACL\-LONG\.1308\.URL[https://doi\.org/10\.18653/v1/2026\.acl\-long\.1308](https://doi.org/10.18653/v1/2026.acl-long.1308)\.
- Qin et al\. \(2025\)Yulei Qin, Xiaoyu Tan, Zhengbao He, Gang Li, Haojia Lin, Zongyi Li, Zihan Xu, Yuchen Shi, Siqi Cai, Renting Rui, Shaofei Cai, Yuzheng Cai, Xuan Zhang, Sheng Ye, Ke Li, and Xing Sun\.Learn the ropes, then trust the wins: Self\-imitation with progressive exploration for agentic reinforcement learning\.*CoRR*, abs/2509\.22601, 2025\.doi:10\.48550/ARXIV\.2509\.22601\.URL[https://doi\.org/10\.48550/arXiv\.2509\.22601](https://doi.org/10.48550/arXiv.2509.22601)\.
- Ross et al\. \(2011\)Stéphane Ross, Geoffrey J\. Gordon, and Drew Bagnell\.A reduction of imitation learning and structured prediction to no\-regret online learning\.In*Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2011, Fort Lauderdale, USA, April 11\-13, 2011*, volume 15 of*JMLR Proceedings*, pp\. 627–635\. JMLR\.org, 2011\.URL[http://proceedings\.mlr\.press/v15/ross11a/ross11a\.pdf](http://proceedings.mlr.press/v15/ross11a/ross11a.pdf)\.
- Shridhar et al\. \(2021\)Mohit Shridhar, Xingdi Yuan, Marc\-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew J\. Hausknecht\.ALFWorld: Aligning text and embodied environments for interactive learning\.In*9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3\-7, 2021*\. OpenReview\.net, 2021\.URL[https://openreview\.net/forum?id=0IOX0YcCdTn](https://openreview.net/forum?id=0IOX0YcCdTn)\.
- van der Ouderaa et al\. \(2024\)Tycho F\. A\. van der Ouderaa, Markus Nagel, Mart van Baalen, Yuki M\. Asano, and Tijmen Blankevoort\.The LLM surgeon\.In*The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7\-11, 2024*\. OpenReview\.net, 2024\.URL[https://openreview\.net/forum?id=DYIIRgwg2i](https://openreview.net/forum?id=DYIIRgwg2i)\.
- Wang et al\. \(2026a\)Jiaqi Wang, Wenhao Zhang, Weijie Shi, Yaliang Li, and James Cheng\.TCOD: exploring temporal curriculum in on\-policy distillation for multi\-turn autonomous agents\.*CoRR*, abs/2604\.24005, 2026a\.doi:10\.48550/ARXIV\.2604\.24005\.URL[https://doi\.org/10\.48550/arXiv\.2604\.24005](https://doi.org/10.48550/arXiv.2604.24005)\.
- Wang et al\. \(2026b\)Yuhang Wang, Yuling Shi, Mo Yang, Rongrui Zhang, Shilin He, Heng Lian, Yuting Chen, Siyu Ye, Kai Cai, and Xiaodong Gu\.SWE\-Pruner: Self\-adaptive context pruning for coding agents\.*CoRR*, abs/2601\.16746, 2026b\.doi:10\.48550/ARXIV\.2601\.16746\.URL[https://doi\.org/10\.48550/arXiv\.2601\.16746](https://doi.org/10.48550/arXiv.2601.16746)\.
- Wang et al\. \(2025\)Yuxin Wang, Minghua Ma, Zekun Wang, Jingchang Chen, Liping Shan, Qing Yang, Dongliang Xu, Ming Liu, and Bing Qin\.CFSP: an efficient structured pruning framework for LLMs with coarse\-to\-fine activation information\.In*Proceedings of the 31st International Conference on Computational Linguistics, COLING 2025, Abu Dhabi, UAE, January 19\-24, 2025*, pp\. 9311–9328\. Association for Computational Linguistics, 2025\.URL[https://aclanthology\.org/2025\.coling\-main\.626/](https://aclanthology.org/2025.coling-main.626/)\.
- Wei et al\. \(2024\)Jiateng Wei, Quan Lu, Ning Jiang, Siqi Li, Jingyang Xiang, Jun Chen, and Yong Liu\.Structured optimal brain pruning for large language models\.In*Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, EMNLP 2024, Miami, FL, USA, November 12\-16, 2024*, pp\. 13991–14007\. Association for Computational Linguistics, 2024\.doi:10\.18653/V1/2024\.EMNLP\-MAIN\.775\.URL[https://doi\.org/10\.18653/v1/2024\.emnlp\-main\.775](https://doi.org/10.18653/v1/2024.emnlp-main.775)\.
- Yang et al\. \(2025\)An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu\.Qwen3 technical report, 2025\.URL[https://arxiv\.org/abs/2505\.09388](https://arxiv.org/abs/2505.09388)\.
- Yao et al\. \(2022\)Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan\.WebShop: Towards scalable real\-world web interaction with grounded language agents\.In*Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 \- December 9, 2022*, 2022\.URL[http://papers\.nips\.cc/paper\_files/paper/2022/hash/82ad13ec01f9fe44c01cb91814fd7b8c\-Abstract\-Conference\.html](http://papers.nips.cc/paper_files/paper/2022/hash/82ad13ec01f9fe44c01cb91814fd7b8c-Abstract-Conference.html)\.
- Zhang et al\. \(2024\)Mingyang Zhang, Hao Chen, Chunhua Shen, Zhen Yang, Linlin Ou, Xinyi Yu, and Bohan Zhuang\.LoRAPrune: Structured pruning meets low\-rank parameter\-efficient fine\-tuning\.In*Findings of the Association for Computational Linguistics, ACL 2024, Bangkok, Thailand and virtual meeting, August 11\-16, 2024*, volume ACL 2024 of*Findings of ACL*, pp\. 3013–3026\. Association for Computational Linguistics, 2024\.doi:10\.18653/V1/2024\.FINDINGS\-ACL\.178\.URL[https://doi\.org/10\.18653/v1/2024\.findings\-acl\.178](https://doi.org/10.18653/v1/2024.findings-acl.178)\.
- Zhang et al\. \(2026\)Qingyu Zhang, Qianhao Yuan, Hongyu Lin, Yaojie Lu, Xianpei Han, Le Sun, Ming Xu, and Jiarui Li\.ShortOPD: Recovering pruned LLMs with short\-to\-long on\-policy distillation\.*arXiv preprint arXiv:2607\.13124*, 2026\.URL[https://arxiv\.org/abs/2607\.13124](https://arxiv.org/abs/2607.13124)\.
- Zhen et al\. \(2026\)Shuai Zhen, Yanhua Yu, Ruopei Guo, Nan Cheng, and Yang Deng\.Hierarchical reinforcement learning with augmented step\-level transitions for LLM agents\.In*Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\), ACL 2026, San Diego, California, United States, July 2\-7, 2026*, pp\. 7035–7053\. Association for Computational Linguistics, 2026\.doi:10\.18653/V1/2026\.ACL\-LONG\.318\.URL[https://doi\.org/10\.18653/v1/2026\.acl\-long\.318](https://doi.org/10.18653/v1/2026.acl-long.318)\.
- Zhou et al\. \(2026\)Yuhang Zhou, Kai Zheng, Haoling Li, Dengyun Peng, Can Xu, and Jingjing Chen\.TurnOPD: Making on\-policy distillation turn\-aware for efficient long\-horizon agent training\.*CoRR*, abs/2607\.05804, 2026\.doi:10\.48550/ARXIV\.2607\.05804\.URL[https://doi\.org/10\.48550/arXiv\.2607\.05804](https://doi.org/10.48550/arXiv.2607.05804)\.
- Zhu & Gupta \(2018\)Michael Zhu and Suyog Gupta\.To prune, or not to prune: Exploring the efficacy of pruning for model compression\.In*6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 \- May 3, 2018, Workshop Track Proceedings*\. OpenReview\.net, 2018\.URL[https://openreview\.net/forum?id=Sy1iIDkPM](https://openreview.net/forum?id=Sy1iIDkPM)\.

## Appendix APruning with Continued RL

We evaluate pruning during RL on the SPEAR Qwen2\.5\-1\.5B checkpoints using GiGPO continuation with rank\-8 LoRA and learning rate10−510^\{\-5\}\. Starting from the dense checkpoint, each optimizer step removes an additional one percentage point of FFN channels using the baseline CFSP channel score\. Channel masks are enforced during training\. Online RL interacts with the environment and is not bound by the distillation\-token budget\. Figure[3](https://arxiv.org/html/2610.09074#A1.F3)shows success during training, and Table[1](https://arxiv.org/html/2610.09074#S4.T1)reports the evaluations at40%40\\%and60%60\\%removal\.

Figure 3:Pruning during GiGPO continuation on Qwen2\.5\-1\.5B agents, which removes one additional percentage point of FFN channels per optimizer step\. Solid lines show periodic validation and dashed lines training\-batch success\. ALFWorld validation pools the 140 In and 134 Out tasks; WebShop uses 128 fixed tasks\. Validation uses temperature0\.40\.4\. Validation success falls as removal increases and drops sharply beyond about30%30\\%removal on WebShop, so continued RL does not keep the pruned agent functional under this schedule\.
## Appendix BSupplementary Results

### B\.1SlimGPT at Lower Pruning Ratios on SPEAR\-1\.5B

Table[5](https://arxiv.org/html/2610.09074#A2.T5)reports the20%20\\%FFN\-removal result on the SPEAR ALFWorld 1\.5B checkpoint, using SlimGPT local reconstruction\. At40%40\\%removal, the FFN width decreases from 8960 to 5376, and In and Out success rates are zero; these results appear in Table[1](https://arxiv.org/html/2610.09074#S4.T1)\.

Table 5:SlimGPT on SPEAR ALFWorld 1\.5B at20%20\\%FFN channel removal\. Success rates are percentages\.
### B\.2Channel\-Mask Changes under Recalibration

We compare the final channel masks from three\-stage cubic pruning with recalibration \(C\) against one\-shot selection from the same initial perturbed\-student Taylor ranking \(A\), at matched final removal ratios, using the Qwen2\.5\-7B runs of Table[2](https://arxiv.org/html/2610.09074#S4.T2)\.

LetUUbe the set of all eligible FFN channels, indexed by layer and original dense\-model channel index, and letDA,DC⊂UD\_\{A\},D\_\{C\}\\subset Udenote the equally sized deleted\-channel sets\. We report their Jaccard similarityJD=\|DA∩DC\|/\|DA∪DC\|J\_\{D\}=\|D\_\{A\}\\cap D\_\{C\}\|/\|D\_\{A\}\\cup D\_\{C\}\|, the deleted\-channel replacement fractionRD=\|DA∖DC\|/\|DA\|R\_\{D\}=\|D\_\{A\}\\setminus D\_\{C\}\|/\|D\_\{A\}\|, and the retained\-channel replacement fractionRK=\|KA∖KC\|/\|KA\|R\_\{K\}=\|K\_\{A\}\\setminus K\_\{C\}\|/\|K\_\{A\}\|, whereKA=U∖DAK\_\{A\}=U\\setminus D\_\{A\}andKC=U∖DCK\_\{C\}=U\\setminus D\_\{C\}\. Counts are pooled across layers before taking ratios\.

Table 6:Final channel masks of TAP \(C\) versus one\-shot selection from the same initial ranking \(A\) on Qwen2\.5\-7B\.JDJ\_\{D\}is the Jaccard similarity of the deleted sets;RDR\_\{D\}andRKR\_\{K\}are the fractions of A’s deleted and retained channels that C replaces\. All values are percentages\. Although the deleted sets largely overlap, recalibration replaces1414–22%22\\%of the retained channels\.Table 7:Effect of the calibration objective on Qwen2\.5\-7B at60%60\\%FFN channel removal on ALFWorld\. NLL replaces KL for channel\-importance estimation while the rest of TAP is unchanged\. KL yields similar in\-distribution but higher out\-of\-distribution success\.
### B\.3Decreasing KD Loss Does Not Ensure Executable Agent Behavior

We inspect the WebShop Qwen2\.5\-1\.5B agents at60%60\\%FFN removal, where the one\-shot KD baselines and TAP share a budget of 0\.35M supervised response tokens \(Table[9](https://arxiv.org/html/2610.09074#A3.T9)\)\. For CFSP\+KD, the response\-token\-weighted forward KL over the first and last 20 updates decreases from 1\.580 to 0\.250; for LLM\-Pruner\+KD, it decreases from 2\.062 to 0\.326\.

Table 8:Free\-generation failure diagnostics for the same WebShop 1\.5B setting\. Percentages are computed on the 500 WebShop test goals\. Action\-block and invalid\-action rates are computed over steps; repeated\-action and step\-limit rates are computed over episodes\. Repeated action denotes at least three consecutive identical executed actions within an episode\. Flags can overlap\.Despite decreasing teacher\-forced loss, the baselines frequently fail to produce complete, non\-empty<action\>blocks, and the environment marks most executed actions invalid \(Table[8](https://arxiv.org/html/2610.09074#A2.T8)\)\. These observations show that improved fitting under teacher prefixes can coexist with malformed free generation\.

### B\.4Iterative Pruning Ablation Protocol

In Table[2](https://arxiv.org/html/2610.09074#S4.T2), all variants share the dense initialization, initial response\-only reverse\-KL Taylor scores, anchor\-context pool, final removal ratio, and total recovery\-token budgetQQ\. A uses20%20\\%ofQQfor KD and80%80\\%for anchored OPD after its single cut\. B, C, and U divideQQequally across three iterations\. Each iteration uses20%20\\%KD warm\-up followed by80%80\\%anchored OPD\. U uses cumulative removal ratiosρ/3,2​ρ/3,ρ\\rho/3,2\\rho/3,\\rho\.

## Appendix CImplementation Details

### C\.1Dense Checkpoints and Evaluation Protocol

We use the following author\-released, environment\-specific checkpoints:

- •Qwen2\.5\-1\.5B\-Instruct \(ALFWorld\):yolay/SPEAR\-ALFWorld\-DrBoT\-GiGPO\-1\.5B\.
- •Qwen2\.5\-1\.5B\-Instruct \(WebShop\):yolay/SPEAR\-WebShop\-DrBoT\-GiGPO\-1\.5B\.
- •Qwen2\.5\-7B\-Instruct \(ALFWorld\):langfeng01/GiGPO\-Qwen2\.5\-7B\-Instruct\-ALFWorld\.
- •Qwen2\.5\-7B\-Instruct \(WebShop\):langfeng01/GiGPO\-Qwen2\.5\-7B\-Instruct\-WebShop\.

The 1\.5B checkpoints use SPEAR \+ Dr\.BoT \(GiGPO\), incorporating self\-imitation and trajectory replay, whereas 7B uses GiGPO\([Qin et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib22);[Feng et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib5)\); cross\-size differences also reflect different RL recipes\. Evaluation episodes are capped at 50 steps on ALFWorld and 15 steps on WebShop, and decoding uses temperature0\.40\.4\.

### C\.2FFN Channel Removal and Pruning Ratio

For a gated FFN at layerℓ\\ell, write

uℓ​\(z\)=σ⁡\(Wℓg​z\)⊙\(Wℓu​z\),FFNℓ⁡\(z\)=Wℓd​uℓ​\(z\),u\_\{\\ell\}\(z\)=\\sigma\(W\_\{\\ell\}^\{g\}z\)\\odot\(W\_\{\\ell\}^\{u\}z\),\\qquad\\operatorname\{FFN\}\_\{\\ell\}\(z\)=W\_\{\\ell\}^\{d\}u\_\{\\ell\}\(z\),\(6\)whereσ\\sigmais the SiLU activation,Wℓg,Wℓu∈ℝmℓ×dW\_\{\\ell\}^\{g\},W\_\{\\ell\}^\{u\}\\in\\mathbb\{R\}^\{m\_\{\\ell\}\\times d\}andWℓd∈ℝd×mℓW\_\{\\ell\}^\{d\}\\in\\mathbb\{R\}^\{d\\times m\_\{\\ell\}\}\. Removing intermediate channeljjdeletes rowjjof both input projections and columnjjof the output projection\. For retained indicesIℓI\_\{\\ell\}, the resulting module is

FFNℓ′\(z\)=Wℓd\[:,Iℓ\]\[σ\(Wℓg\[Iℓ,:\]z\)⊙\(Wℓu\[Iℓ,:\]z\)\]\.\\operatorname\{FFN\}^\{\\prime\}\_\{\\ell\}\(z\)=W\_\{\\ell\}^\{d\}\[:,I\_\{\\ell\}\]\\left\[\\sigma\(W\_\{\\ell\}^\{g\}\[I\_\{\\ell\},:\]z\)\\odot\(W\_\{\\ell\}^\{u\}\[I\_\{\\ell\},:\]z\)\\right\]\.\(7\)The tensors are physically resized, so the model runs with smaller dense operations\. We report the cumulative channel\-removal ratio

ρ=1−∑ℓ\|Iℓ\|∑ℓmℓ\.\\rho=1\-\\frac\{\\sum\_\{\\ell\}\|I\_\{\\ell\}\|\}\{\\sum\_\{\\ell\}m\_\{\\ell\}\}\.\(8\)Because only FFN channels are removed,ρ\\rhoexceeds the total parameter reduction reported in Table[4](https://arxiv.org/html/2610.09074#S4.T4)\.

### C\.3Channel Importance Scoring

The calibration batchℬ\\mathcal\{B\}in Eq\. \([4](https://arxiv.org/html/2610.09074#S3.E4)\) isℬlast\\mathcal\{B\}\_\{\\mathrm\{last\}\}, the last training batch of anchored OPD, which contains anchor contextscTc^\{T\}with sampled student responsesa^\\widehat\{a\}\. Before each subsequent cut, we recompute the gradient ofℒAOPD​\(θ,ℬlast\)\\mathcal\{L\}\_\{\\mathrm\{AOPD\}\}\(\\theta;\\mathcal\{B\}\_\{\\mathrm\{last\}\}\)at the recovered parameters with one forward–backward pass over the batch, which requires no additional generation or environment interaction\. The loss averages the reverse KL over all supervised response tokens in the batch, including reasoning and action tokens and excluding prompt and padding tokens\. Because recovery trains LoRA adapters,WWandGGin Eq\. \([4](https://arxiv.org/html/2610.09074#S3.E4)\) refer to the effective FFN weights with the adapters merged; each cut removes the selected channels from both the base weights and the adapters, which continue training in the next stage\.

#### Initial calibration\.

For the initial cut, we add Gaussian noise to the FFN weights of a separate student copy, with standard deviation0\.010\.01times each weight matrix’s RMS\. This perturbed copy generates the anchored calibration responses and supplies the gradients for initial channel scoring\. The resulting channel selection is applied to the unperturbed student; later calibration stages use the recovered student without this perturbation\.

### C\.4Baseline Adaptations for Uniform Layer\-wise Pruning

All methods, including TAP, use the same target FFN channel\-removal ratio in every Transformer layer, so that comparisons isolate channel selection and recovery\. For LLM\-Pruner\([Ma et al\., 2023](https://arxiv.org/html/2610.09074#bib.bib18)\), we use first\-order element\-wise importance \(Element1\) with Summation aggregation, followed by logits KD recovery\. For CFSP, we replace its importance\-based inter\-block sparsity allocation with the uniform target while retaining its within\-layer FFN channel\-selection criterion\([Wang et al\., 2025](https://arxiv.org/html/2610.09074#bib.bib28)\)\. For SlimGPT, we replace its depth\-dependent pruning allocation with the uniform target while retaining its FFN pruning and local reconstruction procedure\([Ling et al\., 2024](https://arxiv.org/html/2610.09074#bib.bib17)\)\. The baseline names in our tables refer to these adaptations under a shared FFN allocation\.

### C\.5Recovery Objectives for Ablation Studies

LetπT\\pi\_\{T\}be the frozen teacher andπθ\\pi\_\{\\theta\}the student\. A responsea=\(y1,…,y\|a\|\)a=\(y\_\{1\},\\ldots,y\_\{\|a\|\}\)is conditioned on an interaction contextc=\(h<t,ot\)c=\(h\_\{<t\},o\_\{t\}\), with token prefixpj=\(c,y<j\)p\_\{j\}=\(c,y\_\{<j\}\)and prompt formatting implicit\. For a batchℬ\\mathcal\{B\}of context–response pairs, letNℬ=∑\(c,a\)∈ℬ\|a\|N\_\{\\mathcal\{B\}\}=\\sum\_\{\(c,a\)\\in\\mathcal\{B\}\}\|a\|count valid response tokens\. All objectives exclude prompt, environment\-observation, and padding tokens from supervision\.

#### Logits KD\.

We use fixed teacher\-generated pairsℬT=\{\(cT,aT\)\}\\mathcal\{B\}\_\{T\}=\\\{\(c^\{T\},a^\{T\}\)\\\}and match the teacher’s full\-vocabulary distribution on teacher response prefixespjT=\(cT,y<jT\)p\_\{j\}^\{T\}=\(c^\{T\},y\_\{<j\}^\{T\}\)using forward KL:

ℒKD\(θ\)=1NℬT∑\(cT,aT\)∈ℬT∑j=1\|aT\|DKL\(πT\(⋅∣pjT\)∥πθ\(⋅∣pjT\)\)\.\\mathcal\{L\}\_\{\\mathrm\{KD\}\}\(\\theta\)=\\frac\{1\}\{N\_\{\\mathcal\{B\}\_\{T\}\}\}\\sum\_\{\(c^\{T\},a^\{T\}\)\\in\\mathcal\{B\}\_\{T\}\}\\sum\_\{j=1\}^\{\|a^\{T\}\|\}D\_\{\\mathrm\{KL\}\}\\\!\\left\(\\pi\_\{T\}\(\\cdot\\mid p\_\{j\}^\{T\}\)\\,\\\|\\,\\pi\_\{\\theta\}\(\\cdot\\mid p\_\{j\}^\{T\}\)\\right\)\.\(9\)

#### Sequence KD \(SeqKD\)\.

We use the same fixed teacher\-generated pairs, but supervise the teacher’s response tokens as hard targets:

ℒSeqKD\(θ\)=−1NℬT∑\(cT,aT\)∈ℬT∑j=1\|aT\|logπθ\(yjT∣pjT\)\.\\mathcal\{L\}\_\{\\mathrm\{SeqKD\}\}\(\\theta\)=\-\\frac\{1\}\{N\_\{\\mathcal\{B\}\_\{T\}\}\}\\sum\_\{\(c^\{T\},a^\{T\}\)\\in\\mathcal\{B\}\_\{T\}\}\\sum\_\{j=1\}^\{\|a^\{T\}\|\}\\log\\pi\_\{\\theta\}\(y\_\{j\}^\{T\}\\mid p\_\{j\}^\{T\}\)\.\(10\)

#### Vanilla OPD \(full\-trajectory OPD\)\.

We sample complete student trajectoriesτ∼Pπθ¯,ℰ\(⋅∣x\)\\tau\\sim P\_\{\\pi\_\{\\bar\{\\theta\}\},\\mathcal\{E\}\}\(\\cdot\\mid x\)on training tasksxx, whereθ¯\\bar\{\\theta\}denotes the student at sampling time andℰ\\mathcal\{E\}is the environment\. Student actions are executed, so subsequent interaction contextsctSc\_\{t\}^\{S\}depend on the student’s preceding actions and resulting observations\. We collectℬS=\{\(ctS,atS\):\(ctS,atS\)∈τ\}\\mathcal\{B\}\_\{S\}=\\\{\(c\_\{t\}^\{S\},a\_\{t\}^\{S\}\):\(c\_\{t\}^\{S\},a\_\{t\}^\{S\}\)\\in\\tau\\\}from both successful and failed rollouts and minimize reverse KL on student response prefixespt,jS=\(ctS,yt,<jS\)p\_\{t,j\}^\{S\}=\(c\_\{t\}^\{S\},y\_\{t,<j\}^\{S\}\):

ℒOPD\(θ\)=1NℬS∑\(ctS,atS\)∈ℬS∑j=1\|atS\|DKL\(πθ\(⋅∣pt,jS\)∥πT\(⋅∣pt,jS\)\)\.\\mathcal\{L\}\_\{\\mathrm\{OPD\}\}\(\\theta\)=\\frac\{1\}\{N\_\{\\mathcal\{B\}\_\{S\}\}\}\\sum\_\{\(c\_\{t\}^\{S\},a\_\{t\}^\{S\}\)\\in\\mathcal\{B\}\_\{S\}\}\\sum\_\{j=1\}^\{\|a\_\{t\}^\{S\}\|\}D\_\{\\mathrm\{KL\}\}\\\!\\left\(\\pi\_\{\\theta\}\(\\cdot\\mid p\_\{t,j\}^\{S\}\)\\,\\\|\\,\\pi\_\{T\}\(\\cdot\\mid p\_\{t,j\}^\{S\}\)\\right\)\.\(11\)

### C\.6Run Configuration and Data Splits

Calibration and recovery use training tasks only\. The teacher pool is fixed across methods and stages\. Response and episode caps, the action parser, and context handling are shared across comparisons\.

#### TAP recovery and calibration settings\.

Anchored OPD samples 16 prompts per batch and generates one response per prompt with temperature0\.70\.7and top\-p=0\.9p=0\.9\. LoRA uses rank 8, alpha 16, and dropout 0\. We optimize the LoRA parameters with AdamW at a constant learning rate of10−510^\{\-5\}\. KL temperature is 1, independently of the generation temperature\. Supervision covers valid response tokens and excludes prompt, environment\-observation, and padding tokens\. For Taylor calibration, we use 16 anchored responses at the first cut and the last batch of 16 recovery responses before each subsequent cut\.

### C\.7Recovery Budgets and Controlled Comparisons

Within each model–environment–removal setting, all distillation\-based recovery methods in Tables[1](https://arxiv.org/html/2610.09074#S4.T1)and[3](https://arxiv.org/html/2610.09074#S4.T3)share the same supervised budgetQQ\(Table[9](https://arxiv.org/html/2610.09074#A3.T9)\), an effective batch size of 16 prompt–response pairs, and the same LoRA, optimizer, and KL\-temperature settings as TAP \(Appendix[C\.6](https://arxiv.org/html/2610.09074#A3.SS6)\)\. The pruning baselines compute channel importance and reconstruction statistics on the same teacher trajectories that form TAP’s anchor pool, and full\-trajectory OPD samples its rollouts with the same temperature and top\-ppas anchored OPD\.QQis the total number of response tokens obtained by splitting the selected teacher episodes into per\-turn prompt–response pairs\. It includes reasoning, action, and naturally terminating EOS tokens, and excludes prompts and padding\. Every method stops afterQQsupervised response tokens; for anchored OPD, these are student\-response tokens, and the final batch is masked to the remaining budget\. Iterative pruning dividesQQequally across three stages, each with20%20\\%KD warm\-up and80%80\\%anchored OPD\.

Table[3](https://arxiv.org/html/2610.09074#S4.T3)compares recovery recipes under the same cubic schedule and total response\-token budget\. The OPD recipes use20%20\\%KD warm\-up followed by80%80\\%reverse\-KL OPD within each stage; the KD control uses the entire stage budget for forward\-KL distillation\. SeqKD allocates the full stage budget to response\-only cross\-entropy on fixed teacher\-generated trajectories, using hard teacher tokens as targets\.

Table 9:Recovery budget for each main\-table setting\. All distillation\-based methods within a setting share the supervised response\-token budgetQQ; total tokens also count the unsupervised prompts\.
### C\.8Efficiency Measurement Protocol

#### Model inference\.

We benchmark dense and pruned models on the same NVIDIA RTX A6000 GPU using BF16, PyTorch 2\.8\.0, and Transformers 4\.57\.3 with SDPA\. Each input contains 512 tokens, with batch size 1 and 128 generated tokens\. We average three synchronized measurements after one warm\-up, excluding model loading\. All models receive identical inputs and generate the full output length\. Prefill measures prompt processing; decoding averages the subsequent 127 cached generation steps\.

#### Agent execution and cost per success\.

Agent evaluations use vLLM on the same A6000 host with matched evaluator settings and task sets, pooling evaluation time and success counts\. End\-to\-end timeTTspans initialization, model loading, inference, environment execution, and output collection\. Each evaluation uses one GPU\. ForNNattempted tasks andSSsuccesses, we report amortized time per taskT/NT/Nand cost per successT/ST/S, the GPU time per successful task including failed attempts\. End\-to\-end speedup is the dense\-to\-pruned ratio ofT/NT/N; relative CPS is the pruned\-to\-dense ratio ofT/ST/S\. These are aggregate costs over each full evaluation\.

相似文章

StraTA:通过策略轨迹抽象激励智能体强化学习

Hugging Face Daily Papers

StraTA 提出了面向长期任务 LLM 智能体的策略轨迹抽象方法,通过分层 GRPO 风格的 rollout、多样化策略采样和批判性自判断机制,在样本效率和最终性能上超越了前沿模型和先前 RL 基线。

过程奖励引导的树状展开实现高效多轮强化学习

arXiv cs.CL

提出PaTR,一个过程奖励引导的自适应树状展开框架,用于LLM智能体的多轮强化学习。它选择性地从有希望的中间状态进行分支,并剪枝死胡同路径,在相同训练预算下,在SWE-Bench上最高提升+5.0,在FrozenLake上提升+9.3。