arXiv:2610.26847cs.LGOct 2026

Manuscript Offprint

arXiv:2610.26847

WeAct: Dynamic Weight Switching as Agent Actions

Rui Shi, Xunjian Yin, Jiacheng Sang, Zichuan Liu, Shuyan Zhou

Abstract

Long-horizon agents must learn heterogeneous capabilities from interleaved trajectories. Updating shared parameters to learn new capabilities can degrade previously acquired ones, resulting in catastrophic forgetting. As a trajectory unfolds, different stages may require different capabilities, yet conventional joint training and static adapter merging maintain a fixed parameter configuration throughout execution. We introduce WeAct (Weight-level Internal Actions), which trains independent capability-specific LoRA adapters over a frozen backbone and adds adapter selection to the agent's action space. These internal actions use the model's native tool-calling interface for on-demand capability composition in a shared context. Across eight deep-research benchmarks, QWEN3-32B with WeAct improves average accuracy by 6.2% relative to full fine-tuning counterparts despite using less compute, and by 27.5% relative to the strongest static LoRA-merging method. WeAct also supports modular continual adaptation, by adding a new code computation adapter to expand the agent's capabilities and updating the existing writing adapter to improve report quality. Both updates leave the backbone and other adapters unchanged, supporting modular continual adaptation in agents.

1 Introduction

Long-horizon agents plan and invoke tools, connect evidence across sources and reasoning steps, and retrieve and synthesize web information over many turns. The required capabilities vary across stages and must adapt as domains, tools, and output requirements evolve. Fine-tuning or reinforcement learning (Li et al., 2026a; Hu et al., 2025) typically optimize these capabilities in shared parameters: misaligned capability gradients can impair joint

Figure

Figure 1: Internal actions extend the agent’s action space. WeAct selects LoRA adapters internally and interacts with the environment through external actions.

learning (Li et al., 2026b), and later updates can erode earlier gains (Thede et al., 2026). Prompt-level skills (Ni et al., 2026) offer adaptation without changing weights, but their instructions consume context when loaded for execution.

Separate LoRA adapters isolate capability parameters, but their composition adds deployment requirements. MoLE (Wu et al., 2024) and LD-MoLE (Zhuang et al., 2026) mix expert outputs through layerwise gates, requiring support for composition inside the forward pass. Static merging, from conflict reduction in TIES (Yadav et al., 2023) to alignment in KnOTS (Stoica et al., 2025), combines updates before deployment. These methods improve composition, but use fixed merged weights across stages, which may weaken the specialization needed at each stage. Our key idea is to make independently maintained capabilities callable as agent actions. Extending ReAct's external actions (Yao et al., 2023), we use internal actions to activate learned weights with on-demand flexibility.

We introduce WeAct (Weight-level Internal Actions; Figure 1), a general method for capability composition in tool-using agents, to learn heterogeneous capabilities for long-horizon tasks while preserving prior gains and invoking the capability needed at each stage. Each capability LoRA is

∗^{*}Equal contribution.

trained over a frozen backbone on its own stages and exit actions, using preceding interactions as context. It learns to continue prior work, reason, call tools, and hand back control. At inference, our load_lora and offload_lora tools activate and release one adapter through the native tool-calling interface, with their descriptions and control exchanges recorded in context. The selected weights govern subsequent reasoning and tool use within the same history. WeAct-soft chooses capabilities from this history; WeAct-hard prescribes loading every adapter in the workflow for reliable invocation. Both use the same interface without a separately trained router. Adding or refreshing a capability updates only its adapter.

Experiments on QWEN3-32B test capability separation during learning and execution. Controlled diagnostics show that extra shared capacity does not prevent lost gains and that tested static merges reduce specialists' target-text fit (Section 3). Across eight deep-research benchmarks, WeAct-hard reaches 45.47% average accuracy, a 6.2% relative improvement over Full SFT, and both variants outperform all tested static merges on every benchmark (Section 4.2). WeAct uses fewer trainable parameters and less nominal training compute than Full SFT while retaining the evaluated general capabilities. Code insertion expands the library with stable performance, and Writing refresh improves report quality on ResearchQA and DeepResearchBench (Section 4.5). These results suggest potential for modular continual adaptation through capability expansion and local refinement.

Our contributions are:

• We present WeAct for independent capability training and coordinated invocation via native tools in a shared history.

• We distinguish learning interference from static fusion mismatch, motivating capability-aligned training and intact adapter selection.

• We demonstrate improved deep-research performance alongside capability insertion and local refinement, supporting continual learning through modular expansion and updates.