Skill Expansion and Composition in Parameter Space

Tenglong Liu, Jianxiong Li, Yinan Zheng, Haoyi Niu, Yixing Lan, Xin Xu, Xianyuan Zhan

Humans don't learn to drive by forgetting how to walk. We build a library of skills and combine them—using our "walking" balance to help us "skate," or our "steering" knowledge to navigate a bike. In contrast, most autonomous agents are trained from scratch (tabula rasa) for every new task, leading to massive sample inefficiency and the dreaded "catastrophic forgetting" of old skills.

A new paper, "Skill Expansion and Composition in Parameter Space," introduces a framework called PSEC (Parametric Skill Expansion and Composition) that allows agents to grow a "skill library" and blend those skills dynamically to solve complex, novel challenges.

TL;DR

PSEC treats individual skills as "plug-and-play" LoRA (Low-Rank Adaptation) modules that can be added to a frozen base policy. By merging these modules directly in the parameter space using a context-aware gating mechanism, agents can efficiently learn new tasks and adapt to changing environments with a fraction of the usual data and parameters.

Overview of the PSEC framework showing skill expansion and composition.

What Problem Does This Paper Address?

The authors identify two major hurdles in creating truly "self-evolving" agents:

  1. Catastrophic Forgetting: When an agent learns Task B, it often overwrites the weights used for Task A.
  2. Inefficient Composition: Existing methods usually combine skills at the "action level" (averaging the outputs of different policies) or "noise level" (in diffusion models). These "late fusion" approaches often fail to capture the shared underlying structures between skills, leading to clunky or suboptimal behavior.

PSEC aims to create a system that is modular, memory-efficient, and capable of "early fusion" by blending skills at the weight level before an action is even generated.

Methods: The PSEC Framework

The PSEC framework relies on three core technical pillars to achieve its results:

Comparison of traditional action-level composition vs. PSEC's parameter-level composition.
  • Skill Expansion via LoRA: Instead of fine-tuning an entire neural network, PSEC uses Low-Rank Adaptation (LoRA). It keeps a base policy ($\pi_0$) frozen and injects small, trainable low-rank matrices. Each new skill (e.g., "walking," "avoiding obstacles") is encoded into its own distinct LoRA module. This naturally prevents forgetting because the base weights never change.
  • Parameter-Space Composition: To solve a complex task, PSEC merges these LoRA weights: $W_{new} = W_0 + \sum \alpha_i \Delta W_i$. By combining weights rather than just averaging actions, the model can leverage shared features across different skills.
  • Context-Aware Gating: The weights ($\alpha_i$) aren't fixed. PSEC trains a small "context-aware" network that looks at the agent's current state and decides which skills to activate. For example, in an autonomous driving task, the module might ramp up the "braking" skill weight as it detects an obstacle, then shift back to "speeding" on a clear straightaway.
  • Diffusion Policies: The underlying policies are modeled using Diffusion Models, which are highly expressive and better at capturing complex, multi-modal action distributions than standard Gaussian policies.

Datasets and Evaluation

The authors put PSEC through a gauntlet of diverse benchmarks:

  • DSRL (Safe Offline RL): Testing multi-objective composition (balancing speed vs. safety in MetaDrive).
  • DeepMind Control Suite (DMC): Evaluating continual policy shifts (learning to stand, then walk, then run).
  • D4RL: Testing robustness to "dynamics shifts" (e.g., changing gravity or friction coefficients for a HalfCheetah).
  • Meta-World: A suite of 50 robotic manipulation tasks (grasping, opening windows, etc.) to test generalizability.

Key Insights and Results

  • The Power of "Early Fusion": The paper demonstrates that composing skills in the parameter space is significantly more effective than action-level composition. By merging weights, the agent can "interpolate" between skills, creating smooth transitions that late-fusion methods miss.
  • Parameter Efficiency is a Feature, Not a Bug: Because LoRA modules are low-rank, they are incredibly small. PSEC achieved superior performance using only 7.58% of the parameters required by a standard MLP trained from scratch.
  • LoRA as a "Skill Primitive": Treating LoRA modules as discrete "primitives" allows for a manageable library. You can add, remove, or update specific skills without re-training the entire system.
  • Superior Safety & Reward: On the DSRL benchmark, PSEC was often the only method to achieve high rewards while strictly maintaining safety costs below the required threshold.
  • Rapid Adaptation: In the "Stand $\to$ Walk $\to$ Run" DMC sequence, PSEC leveraged the "standing" skill to learn "walking" with only 10 trajectories—a regime where standard RL methods completely fail.

Limitations and Future Work

The authors highlight a few areas for improvement:

  • Base Policy Dependency: PSEC assumes the pre-trained base policy ($\pi_0$) covers a sufficiently diverse distribution. If the base model is too narrow, LoRA might struggle to adapt it to wildly different tasks.
  • Skill Redundancy: As the library grows, some skills might become redundant. The authors suggest future work could involve developing metrics to prune or "compress" the skill library.
  • Hyperparameter Sensitivity: Like all LoRA-based methods, the "rank" of the adaptation matrices needs to be tuned. The paper found that a rank of 8 worked best for their tasks, but this may vary.

PSEC represents a promising step toward agents that don't just learn, but accumulate and synthesize knowledge, moving us closer to the flexible intelligence we see in biological systems.

Summary updated

BibTeX
@inproceedings{liu2025skill,
  author = {Tenglong Liu and Jianxiong Li and Yinan Zheng and Haoyi Niu and Yixing Lan and Xin Xu and Xianyuan Zhan},
  title = {{Skill Expansion and Composition in Parameter Space}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=GLWf2fq0bX},
}
Figure