Few-shot Task Learning via Compositional Concept Inference

Hanming Ye, Yiding Song, Yilun DuNeurIPS 2026

TL;DR

Humans don’t learn new tasks by memorizing exact muscle twitches; we extract underlying rules—like "stack by color" or "place inside"—and remix them on the fly. COIN brings this compositional intuition to robotics by inferring latent "task concepts" directly from a handful of visual demonstrations and combining them inside a diffusion policy. Without using any language instructions or massive web-pretrained backbones, COIN matches multi-billion-parameter robot models with $7\times$ fewer parameters and significantly outperforms them when adapting to brand-new tasks from just a single example.

What Problem Does This Paper Address?

Teaching a robot a new skill from just a few examples (few-shot imitation learning) is notoriously tricky. Standard behavior cloning—training a neural network to directly copy demonstrated actions—tends to memorize specific trajectories rather than capturing reusable structure, making it brittle when adapting to new tasks.

Recently, Vision-Language-Action (VLA) models have used natural language prompts to specify tasks. While powerful, language is a lossy compression of physical reality. Telling a robot to "put the bowl away" omits crucial procedural and geometric details, and identical prompts can require completely different motions depending on the scene layout. Other approaches try to learn task embeddings using separate metric-learning losses or slow test-time optimization, which don't necessarily organize information in a way that helps the robot actually act. The authors ask: can a policy learn to extract composable, control-ready concepts directly from demonstrations?

Methods

COIN (Compositional Concept Inference) pairs a standard conditional diffusion policy (which generates actions by iteratively denoising random Gaussian noise) with a novel concept-inference interface.

Figure 1: COIN overview. We propose a method to learn tasks few-shot via “compositional concept inference”. We infer concepts that describe a new task from contextual demonstrations, then compose these concepts into an action prediction. In practice, an encoder maps context demonstrations into K latent concepts. A policy predicts one noise term per latent and sums them. The encoder and policy are trained jointly with a single denoising loss on a target trajectory sampled independently of the context demonstrations. Consequently, the encoder learns to represent the context as concepts that are useful for action generation.

Here is how COIN turns raw demonstrations into composable skills:

  • Amortized Concept Encoder: An encoder takes a context demonstration and maps it into $K$ distinct latent vectors ("concept latents") in a single forward pass—no labels, text, or test-time optimization required.
  • Additive Score Composition: Instead of averaging the $K$ latents into one vector (which might land outside the policy's training distribution), COIN keeps them separate. Motivated by product-of-experts math, the diffusion policy predicts a denoising step for each latent individually and sums the predicted noises together. Each latent acts like an independent force pulling the trajectory toward satisfying a specific constraint.
  • Anti-Shortcut Sampling: If the encoder sees the exact trajectory the policy is trying to denoise, it will cheat by simply summarizing that specific path. COIN prevents this by sampling the context demonstration and the target denoising trajectory independently from the same task during training. Both encoder and policy are trained end-to-end using only the policy's standard denoising loss.

Datasets

COIN is evaluated solely in simulation across two low-dimensional compositional benchmarks and two high-dimensional robotic manipulation suites (no new datasets are introduced):

  • Object Rearrangement & Goal-Oriented Navigation: Adapted from prior work (FTL-IGM), these test pure zero-weight-update inference on held-out combinations of spatial relations (e.g., "circle above square" + "triangle right of square") and object attributes (color + shape) under distractors.
  • LIBERO-90: A benchmark of 90 diverse image-based tabletop robot manipulation tasks. For few-shot tests, models pretrain on 80 tasks and fine-tune on 10 held-out tasks.
  • LIBERO-Plus: A robustness suite that perturbs initial robot poses on 20 LIBERO-90 tasks.

Key Insights and Ideas

Mechanisms of COIN: composing spatial concepts and disambiguating shared prompts

Mechanisms of COIN: composing spatial concepts and disambiguating shared prompts
  • Demonstrations resolve linguistic ambiguity: In LIBERO-90, several distinct tasks share identical text instructions. When two other tasks share the same prompt, the language-conditioned VLA $\pi_0$ drops from $96\%$ to $79\%$ success, and a T5-conditioned Diffusion Policy plunges to $52\%$. Because demonstrations show how to act, COIN stays rock-steady at $97\%$.
  • Fine-tuning mostly just realigns the encoder: When adapting to new LIBERO tasks, freezing the massive diffusion action-generator barely hurts performance, whereas freezing the lightweight demonstration encoder tanks few-shot learning. Pretraining gives the policy a strong motor prior; few-shot adaptation just needs to map new visual examples into that existing concept space.
  • Composition beats averaging, but doesn't extrapolate: In object rearrangement, summing separate noise predictions per concept achieves $98\%$ success, compared to $33\%$ when averaging latents before denoising. Increasing concept slots $K$ steadily boosts performance on unseen combinations of known concepts, though it stays flat on entirely novel geometric rules (like forming a circle).
  • Not all tasks need multiple slots: Interestingly, $K=1$ matches $K=2$ on LIBERO-90 because 79 of its 90 tasks only involve a single goal condition.

Key Results

  • Outperforming VLAs at a fraction of the size: On full LIBERO-90, COIN achieves a $96.6\%$ average success rate, beating published baselines including Diffusion Policy ($64.5\%$), MoDE ($91.0\%$), and $\pi_0$ ($92.3\%$). On matched 80-task splits, COIN (0.47B parameters) ties $\pi_0$ (3.3B parameters)—roughly a $7\times$ parameter reduction without any vision-language pretraining.
  • Few-shot dominance: When fine-tuning on 10 unseen LIBERO tasks with just 1 demonstration per task, COIN hits $52.3\%$ success, far ahead of language-conditioned policies ($39.8\%$), in-context conditioning ($38.5\%$), $\pi_0$ ($36.5\%$), and Diffusion Policy ($\sim 20\%$). With 5 demos, COIN reaches $77.5\%$ vs. $59.5\%$ for $\pi_0$.
  • Zero-update composition: Across object rearrangement and goal navigation, COIN consistently beats behavior cloning, VAEs, and test-time latent optimization (FTL-IGM) when recombining learned attributes and spatial relations from new starting states.

Limitations and Future Work

The authors note several practical trade-offs:

  • Inference cost scales with $K$: Compositional denoising requires running the denoiser network once per concept latent at every diffusion step.
  • Interpolation over extrapolation: COIN excels at remixing familiar concepts, not inventing wholly unfamiliar ones outside the training family, and its latent vectors aren't guaranteed to be human-interpretable.
  • Demonstration overhead: Demonstrations are harder to collect than text prompts, are tied to a specific robot embodiment, and in 1-shot regimes, results are sensitive to which demonstration is chosen.
  • Sim-only: All experiments are in simulation. Future work aims to probe the learned concept space directly, speed up compositional denoising, and test real-world robot transfer on longer-horizon tasks.

Summary updated

BibTeX
@inproceedings{ye2026few,
  author = {Hanming Ye and YIDING SONG and Yilun Du},
  title = {{Few-shot Task Learning via Compositional Concept Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=feUnReGdA8},
}
Figure