Learning Reusable Actions from Demonstrations via Sparse Coding

Yeonwoo Seo* Jeongsol Kim* Yoojin Oh Jong Chul Ye
KAIST AI
*Equal contribution
Overview videoteaser.mp4
Abstract

Existing generalist robot policies learn diverse behaviors through task-conditioned behavior cloning but often require extensive demonstrations. In contrast, tool-based approaches enable explicit action reuse but rely on predefined action primitives. In this work, we bridge these two paradigms by learning reusable action components directly from demonstrations via sparse coding. Rather than explicitly defining primitives in the action space, we represent behaviors in the parameter space as sparse combinations of lightweight LoRA adapters. Inspired by K-SVD and its use of redundant dictionaries for sparse representation, we introduce a principled framework that learns a dictionary of reusable action adapters and a router that selectively composes them. This framework enables robot policies to generalize to novel tasks by recombining previously learned action components.

Method

Sparse coding in the parameter space

Each action adapter is a LoRA on the action expert. During training, sparse weight estimation selects a few adapters that best explain each demonstrated action, and dictionary learning updates those adapters with their composition. A router learns to predict the composition weights from the policy input, so that at test time it can recombine the adapters for a new task.

Overview of the method: action adapters learned from demonstrations of different tasks are recombined by a router for a new task, and training alternates sparse weight estimation with dictionary learning.
Analysis

Adapters specialize without annotations

The video below follows one training demonstration through four adapters, where each column is an adapter’s router weight relative to its average. We gave them the names Reach, Grasp, Carry, and Release only after training, based on when each adapter is used. Without any phase labels, each adapter comes to be tied to a distinct part of manipulation.

adapters.mp4

In contrast, no adapter is tied to a specific task. The UMAP below shows the change that a single adapter makes to the generated action chunk at each frame of the training demonstrations. Points cluster by adapter rather than by task, indicating that each adapter changes the action in its own way and is shared across tasks.

UMAP points colored by adapter: each adapter forms its own cluster. UMAP points colored by task, with opacity proportional to router weight: each cluster mixes many tasks.

Real-world results

Unseen tasks on a real robot

Trained on 834 teleoperated demonstrations of 15 tasks and evaluated without adaptation on four tasks outside the training set. OOD tasks pair an object with a target it is never paired with in training. Chained tasks connect steps that are never performed together in training.

3×
Simulation results

LIBERO benchmarks

LIBERO-OOD evaluates, without adaptation, tasks that recombine skills demonstrated in separate training tasks. LIBERO-90 → LIBERO-10 trains on short-horizon tasks and evaluates on long-horizon tasks, without adaptation and after adapting with 1 or 5 demonstrations per task.

2×
Average success rate (%), 50 episodes per task.
Citation

Cite this work

@article{seo2026learning,
  title   = {Learning Reusable Actions from Demonstrations via Sparse Coding},
  author  = {Seo, Yeonwoo and Kim, Jeongsol and Oh, Yoojin and Ye, Jong Chul},
  journal = {arXiv preprint arXiv:2612.05023},
  year    = {2026}
}