Similar Is Not Useful: Selecting In-Context Demonstrations by Closed-Loop Utility

Jiachen Li, Zhigen Zhao, Shihao Li, Dongmei Chen, Long Chen, Zhuo XuarXiv 2026

In the world of retrieval-augmented robot policies, the golden rule has long been: "Find demonstrations that look like the current scene." We assume that if a demonstration is visually similar to what the robot sees now, it must be the most helpful guide.

A new paper, "Similar Is Not Useful: Selecting In-Context Demonstrations by Closed-Loop Utility," argues that this assumption is fundamentally flawed. In fact, visual similarity is often no better than picking examples at random.

TL;DR

Visual similarity is a poor predictor of how much an in-context demonstration actually helps a robot succeed. By switching from similarity-based retrieval to "closed-loop utility"—ranking demonstrations by their actual contribution to success in simulation—researchers improved Vision-Language-Action (VLA) policy success rates by nearly 11 percentage points.

What Problem Does This Paper Address?

Retrieval-augmented Vision-Language-Action (VLA) policies adapt to new tasks by looking at a "context" of past demonstrations. To fill this context at runtime, these models typically use a retriever to find frames that are visually similar (using embeddings like DINOv2) to the robot's current camera feed.

The authors identify a critical gap: visual similarity identifies the task, but not the quality of the demonstration for that task. While similarity can tell the difference between "picking up a bottle" and "opening a drawer," it struggles to distinguish between a "good" bottle-picking demo that helps the policy and a "bad" one that leads to a collision or a timeout.

Methods

The researchers used a frozen VLA policy (RICL on $\pi_0$-FAST) and tested it on the LIBERO robot manipulation benchmark. Their core innovation was treating demonstration selection as a closed-loop utility problem rather than a static retrieval problem.

  1. The Instrument: They modified the policy server to allow "live pool swaps," meaning they could change the set of demonstrations the robot was "looking at" mid-run without retraining the model.
  2. Utility Scoring: To find out which demos were actually useful, they sampled 60 random "pools" of 5 demonstrations each. They ran 10 rollouts for each pool and used ridge regression to assign a utility score ($\hat{\phi}$) to every individual demonstration based on how much its presence in a pool boosted the success rate.
  3. Evaluation: They compared four selection rules:
  4. Top: The 5 demos with the highest utility scores.
  5. Dino: The 5 demos most visually similar to the test scene (the standard approach).
  6. Random: A baseline of 5 random demos.
  7. Bottom: The 5 demos with the lowest utility scores.
Figure 1. The retriever’s favourite demonstration is not the useful one. Filmstrips of demonstrations from the policy’s own pools on two tasks. Rose (top): the demonstration the similarity rule (dino, Sec. 3) ranks most similar to the initial observations of the test scenes, with the fraction of scenes in which it was placed in the similarity-selected pool and its measured utility rank among the task’s 20 demonstrations. Green (bottom): a top-five utility-ranked demonstration of the same task. Utility ranks come from 600 rollouts per task on initial states disjoint from the test scenes (Sec. 3); single-demonstration ranks are noisy (Sec. 4.5), and the evidence is the aggregate test in Sec. 4.2.

Datasets

The study utilized the LIBERO benchmark, specifically:

  • 7 "Primed" tasks: Tasks the model had seen during its initial post-training.
  • 12 "Unseen" tasks: Tasks from the LIBERO-90 suite that the policy was never specifically primed to handle.
  • Each task included a pool of 20 processed demonstrations.

Key Insights and Ideas

  • Similarity is a Task Filter, Not a Quality Filter: Visual similarity is excellent at separating tasks that look different. However, if two tasks share the same scene (e.g., "pick up the ketchup" vs. "move the ketchup"), similarity-based retrieval falls to chance.
  • The "Retriever's Favorite" is often Useless: As shown in Figure 1, the demonstration that DINOv2 ranks as #1 (most similar) is frequently ranked near the bottom in terms of actual utility.
  • Utility Generalizes: Utility scores calculated on one set of initial robot positions successfully predicted success on a completely different, held-out set of positions.
  • The Benefit of Selection is Context-Dependent: The advantage of picking "high utility" demos is massive when the context window is small (3-5 demos). If the robot can look at 10+ demos at once, the retriever eventually finds the "good" frames by sheer volume, and the selection strategy matters less.
Figure 1: Examples where the most 'similar' demonstration (top row) is actually one of the least useful for the policy, while a less similar demo (bottom row) leads to success.

Key Results

  • Utility Beats Similarity: Across 19 tasks, the top utility-selected pools achieved a 66.4% success rate, outperforming dino similarity-selected pools (55.7%) by 10.8 percentage points.
  • Similarity $\approx$ Random: Similarity-based selection (55.7%) performed almost identically to picking demonstrations at random (55.5%).
  • Success on Unseen Tasks: The utility-based gain was robust, showing a +10.2 pp improvement even on tasks the policy had never encountered before.
  • Efficiency: While full utility scoring is expensive, the authors found that a "best-of-ten" direct search (trying 10 random pools and picking the winner) recovered two-thirds of the performance gain with only 100 rollouts.

Limitations and Future Work

  • Computational Cost: Measuring closed-loop utility requires running many simulations (rollouts), which is significantly more expensive than a simple embedding lookup.
  • Simulation-Only: The study was conducted entirely within the LIBERO simulation environment. The authors note that physical-robot transfer remains untested.
  • Model Specificity: The results are based on one specific VLA checkpoint. While the findings are striking, they may vary across different model architectures.
  • Future Direction: The authors suggest the need for "rollout-free" utility predictors—models that can look at a demonstration's features and predict its utility without needing to run a full simulation.

Summary updated

Abstract

Retrieval-augmented vision-language-action (VLA) policies fill their context with the demonstrations whose frames look most like the current observation under frozen DINOv2 embeddings. We ask whether visual similarity selects the demonstrations that make the policy succeed. For a frozen retrieval-augmented VLA (RICL on $π_0$-FAST, LIBERO), we make the demonstration pool swappable at run time and score each demonstration's utility by regressing the closed-loop success of 60 fixed-size pools on their membership. On initial states disjoint from those used for scoring, pools of the five highest-utility demonstrations succeed on 66.4% of 760 paired episodes across 19 tasks, pools of the five most similar on 55.7%, and random pools on 55.5%. Utility beats similarity by 10.8 points ($p=3.2\times10^{-6}$; positive on 15 of 18 untied tasks), including on 12 tasks the policy was never primed on, and similarity-selected pools do no better than random ($+0.1$ points). Within a task, a pool's visual similarity to the test scenes tracks its success at Spearman 0.10; across tasks, similarity separates tasks whose scenes differ and falls to chance when two tasks share a scene. The gain comes from on-task closed-loop evidence: best-of-ten direct search over pools recovers two-thirds of it with 100 rollouts. Against the shipped 20-demonstration pool, utility-curated pools of five lead by 7.0 points over 560 paired episodes from two evaluation runs ($p=0.006$), and utility-ordered retrieval inside the full pool leads by 4.5 points ($p=0.055$).
BibTeX
@misc{li2026similar,
  author = {Jiachen Li and Zhigen Zhao and Shihao Li and Dongmei Chen and Long Chen and Zhuo Xu},
  title = {{Similar Is Not Useful: Selecting In-Context Demonstrations by Closed-Loop Utility}},
  year = {2026},
  eprint = {2611.22295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.22295},
}
Figure