Manuscript Offprint
arXiv:2610.40356JEDI: Joint-Embedding Demonstration Compression for In-Context Imitation Learning
Jiazhao Liang Zhewen He Shuaihang Yuan Hao Huang Yi Fang
New York University Tandon School of Engineering, Brooklyn, NY 11201, USA
NYUAD Center for Artificial Intelligence and Robotics (CAIR) and Embodied AI and Robotics (AIR) Lab, New York University Abu Dhabi, Abu Dhabi 129188, UAE
Human demonstrations

JEDI
predictive compression
compress each demo
into latent slots
independently, cached
demo N
more demonstrations
Robot rollout
policy
flow matching
slots are trained
to predict the
next keyframe

Real-world tasks from human-hand demonstrations
inset: human-hand demonstration · main: robot rollout

Stack cups
Paper roll on holder
Fruit to basket
Cube to drawer
Cubes to box
Figure 1: Many demonstrations, compressed by prediction. JEDI compresses each demonstration independently into k latent slots, which are cached and trained to predict the next keyframe of the query episode; a flow-matching policy attends to the slots and acts on the robot. Top: human demonstrations of one task, their compression, and keyframes of the resulting robot rollout. Bottom: five real-world tasks executed from human-hand demonstrations (inset: demonstration; main: robot rollout).
Abstract
In-context imitation learning (ICIL) adapts robot policies through test-time demonstrations, but long multimodal trajectories constrain how many examples fit in context. We ask what a compressed demonstration should preserve. We propose JEDI, which compresses demonstrations into latent slots trained to predict query episode's next-stage keyframe in a frozen video-JEPA space. Task and process counterfactuals help the slots preserve execution details, while the predictor selects demonstrations from a bank. Post-training with keypoint tokens enables human-hand conditioning on robots. Experiments on LIBERO and real robots show that JEDI supports many-shot context; LIBERO objective controls show improved success and demonstration following over action-only compression. These findings support query-future prediction as a training objective for preserving execution-relevant information in compressed demonstrations.
1 Introduction
In-context learning lets a language model adapt to a new task from examples in its prompt, without weight updates (Brown et al., 2020). In-context imitation learning (ICIL) extends this ability to robot manipulation: at test time a policy receives demonstrations of an unseen task configuration and executes it without fine-tuning (Fu et al., 2025; Vosylius and Johns, 2025; Ding et al., 2026). Its scope is unseen objects, arrangements and goals composed of motion primitives seen in training.
The bottleneck is the context itself. A demonstration is a multi-view sensorimotor trajectory spanning hundreds of control steps and still takes thousands of tokens after subsampling, so current ICIL policies typically use only one or two demonstrations, while transformer policies degrade
Equal contribution.
when prompts exceed the lengths seen during training (Yoo et al., 2026). Compression alleviates this cost: ContextFlow compresses each demo with perceiver-style compressors (Ding et al., 2026), but its compressor is trained only through the action loss and is evaluated with a single demonstration.
This leaves open what a demonstration compressor should retain. Pooled task embeddings (James et al., 2018; Jang et al., 2022) are inexpensive but retain little beyond the intent of the task, whereas the full sensorimotor context retains the stage-dependent detail that control needs, at a cost linear in the number of demonstrations (Li, 2026). Language models face the same question: prompts are compressed into gist tokens (Mu et al., 2023) or by autoencoding (Ge et al., 2024), and in the many-shot regime such compressors can underperform the simple baseline of using fewer shots (Khatri et al., 2025). A compressor's training objective, not only its architecture, decides what is kept.
We argue that a compressor should retain the information that allows the policy to anticipate the next stage of its own episode, and propose JEDI (Joint-Embedding Demonstration compression for In-context imitation learning). JEDI compresses each demonstration into k latent slots, from which a predictor forecasts the query episode's next-stage keyframe in the embedding space of a frozen video JEPA, V-JEPA 2.1 (Assran et al., 2025; Mur-Labadia et al., 2026). Because most of a future frame is predictable from the current one, a counterfactual term requires the prediction to be worse when the slots come from a demonstration of another task, or of the same task performed differently. The slots therefore carry the process of the demonstration, such as object order and grasp height, and not only its task identity. Each demonstration is compressed independently, so its slots can be cached and reused, and a policy can attend to many demonstrations (Figure 1).
At test time the query’s future is unknown, but the bank demonstrations’ futures are known. We score each demonstration by how well its slots predict the others’ keyframes, extending predictive selection of language-model in-context examples to embodied demonstrations (Rubin et al., 2022).
Success rate alone does not reveal what a policy uses from its context. We adapt the analysis of in-context learning in language models, which separates recognizing a task from learning it (Min et al., 2022; Pan et al., 2023), and the paired-context protocol recommended for ICIL (Li, 2026): on the same checkpoints we swap demonstrated goals and, separately, vary the process at a fixed endpoint. Across these tests, predictive compression keeps stage-dependent detail that action-only compression loses and follows swapped demonstrations 40.8 points more often ( ).
Our contributions are as follows. (1) Predictive compression. A per-demonstration compressor is trained with a demonstration-conditioned predictive objective in a frozen video-JEPA space, together with task and process counterfactuals (§3). After policy training, these predictively pretrained, frozen slots achieve 75.4% success (§4.4). (2) Predictive demonstration selection. The predictor decides which demonstrations to place in context based on its prediction error. To separate the effect of which demonstrations are chosen from how many are used, we compare all methods at the same number of demonstrations (N). Across three seeds, this selection beats random choice and, when the demonstration pool is diverse, also beats image-based retrieval (§3.6, §4.3). (3) Post-training with human-hand demonstrations. Keypoint-based post-training supports human-hand context on a dual-arm platform, without test-time weight updates (§3.7, §4.7). (4) Language and demonstrations. JEDI follows the demonstrations where the instruction is silent and the instruction where it is explicit, more reliably than action-only compression on LIBERO-Order (§4.6).
Predictive representations and human videos. JEPAs predict target representations instead of reconstructing inputs (Assran et al., 2023; Bardes et al., 2024; Assran et al., 2025; Mur-Labadia et al., 2026), an idea since extended to language-model training (Huang et al., 2026). Prediction in pretrained feature spaces supports robot world models and auxiliary policy targets (Zhou et al., 2025a; Lin et al., 2026; Vujinović and Kovačević, 2026). FLARE aligns action-denoiser features with future observation embeddings (Zheng et al., 2025). Demo-JEPA predicts target-embodiment latents from one cross-embodiment demonstration for planning, without compressing the demonstration (He et al., 2026). SeeTraceAct trains an observation-conditioned visual latent plan with action prediction and visibility-aware future end-effector traces (Son et al., 2026). ViVLA jointly predicts demonstration and agent latent actions in a shared discrete space, alongside robot actions (Chen et al., 2025). JEDI independently compresses demonstrations into cached slots trained to predict the query's next keyframe in frozen video-JEPA space with task/process counterfactuals; the predictor also selects demonstrations. Human videos are a second source of demonstrations: a policy can be conditioned on one such video through meta-learning or a video encoder (Yu et al., 2018; Jang et al., 2022; Jain et al., 2024) or co-trained on egocentric human data (Kareer et al., 2024), and keypoints or motion tracks give hand and gripper a shared representation (Papagiannis et al., 2025; Ren et al., 2025); MimicDroid learns in context from human play videos (Shah et al., 2026). We admit human-hand videos to a compressed context by post-training with keypoint tokens and the predictive objective (§3.7).
In-context learning in language models. Prompts are compressed into gist tokens (Mu et al., 2023), by autoencoding (Ge et al., 2024) or into summary vectors (Chevalier et al., 2023); in the many-shot regime (Agarwal et al., 2024), however, existing prompt compressors are ineffective and using fewer shots is a strong baseline (Khatri et al., 2025). In-context examples are selected by similarity to the query (Liu et al., 2022) or by how well the model predicts a held-out example when conditioned on them (Rubin et al., 2022). Closest in design, UniICL compresses each demonstration independently into memory tokens, caches them in a demonstration bank and selects by their similarity to the query (Gao et al., 2025); we differ in the objective that trains the slots and in selecting by prediction error. Analyses of what a model uses from its context showed that the correctness of in-context labels matters less than the format and the input distribution (Min et al., 2022), separated task recognition from task learning (Pan et al., 2023), and summarized a context as task or function vectors (Hendel et al., 2023; Todd et al., 2024). Comparable analyses for robots are scarce and mostly retrain the model per condition; Li (2026) recommends paired contexts scored on both targets, same-endpoint/different-process tests, and variance over support draws, which we run on the same checkpoints across compression objectives.
3 Method
3.1 Problem Setup
A task configuration is a goal together with an object set and a scene. A demonstration is a trajectory of multi-view images, proprioception and actions; on the real robot, may also be a human-hand video without and ( ). Given a support set of and an optional instruction , the policy acts in a query episode, a fresh rollout of from a new initial state; is the context built from , and is fixed at test time. We evaluate on unseen configurations, which are held out from training but share motion primitives with it. The support set is drawn from a demonstration bank , , which may also contain demonstrations of other configurations. We call the many-shot regime. A process is the manner in which a task is executed, such as the order in which objects are handled, the grasp location and height, and the approach direction; a faithful policy should follow it, not only reach the goal (notation in Appendix A).
JEDI has three trained components (Figure 2): a per-demonstration compressor , a predictor and a flow-matching policy ; a frozen video encoder supplies the prediction target. The predictor defines the training objective ( ) and selects demonstrations at test time ( ).
3.2 Per-Demonstration Compressor
Following ContextFlow, each demonstration is sub-sampled to image frames and 128 propri-

Figure 2: Overview of JEDI. (1) A compressor maps each demonstration to k latent slots, which are cached in a demonstration bank. (2) The slots are trained to predict the next keyframe of the query episode in the embedding space of a frozen V-JEPA 2.1 encoder, with task and process negatives. (3) The predictor ranks the demonstrations in the bank, and only the policy runs in the control loop. (4) Post-training on 10 tasks uses equal shares of human-hand and dual-arm robot demonstrations with the same objective; unseen tasks are executed from human-hand context without test-time weight updates.
oception and action steps, which are encoded by SigLIP (Zhai et al., 2023), the vision encoder of the policy, and by MLPs (Appendix B). The compressor is a perceiver (Jaegle et al., 2021) with k learnable queries and layers, and outputs slots of the policy's token width . The context is the concatenation ; slots carry a learned slot-index embedding but no demonstration index, so reordering demonstrations only reorders their slot blocks. Because sees one demonstration at a time, slots are computed once per demonstration and cached.
3.3 Demonstration-Conditioned Predictive Objective
Target. We segment every episode into stages with a keyframe heuristic adapted from prior work (Shridhar et al., 2023; Yin et al., 2025): keyframes are gripper open/close events, near-stationary steps (local minima of end-effector speed) and the end of the episode. Let be the first keyframe after a non-terminal query step . The target is the latent of a two-frame clip at that keyframe under a frozen V-JEPA 2.1 encoder, patch tokens of width :
Targets are computed once offline with frozen and stay fixed during training.
Predictor and loss. A small transformer takes the slots , the current query observation tokens from the policy's SigLIP encoder and the proprioception , and outputs with the patch layout of . It does not receive the offset , which is derived from the query's own future and would lower the loss without any use of the demonstrations. With layer normalization LN and the SmoothL1 penalty summed over features,
A deterministic regression suffices because the next keyframe is nearly deterministic given the demonstrated process and the current state, which avoids the failure of deterministic latent prediction on multimodal targets (Dinh and Vo, 2026). Gradients flow into and only: enters with a stop-gradient, so these losses do not train the policy's observation encoder (hyperparameters in Table 7).
3.4 Counterfactual Demonstration Term
Most of is predictable from the current frame alone, so the predictor can lower while ignoring . We therefore require the prediction to degrade when the support set is replaced by a counterfactual one, , of two types. A task negative contains demonstrations of a different task in the same scene, and forces the slots to encode the target object and the goal. A process negative contains demonstrations of the same task performed with a different process, chosen so that the query's next keyframe differs; it forces the slots to encode order, grasp and approach. With the value of Eq. (2) for one sample, its value for a prediction from , the negatives and a margin,
Process labels come from construction where a benchmark provides them and from clustering each task’s keyframe-latent sequences otherwise (Appendix C); they are used only to choose negatives, and positive support sets always share the query’s process. As a diagnostic we report the demonstration dependence separately for task negatives ( ) and process negatives ( ); a value near 1 means it is ignored.
3.5 Policy and Training
The policy follows (Black et al., 2025) and ContextFlow: a flow-matching action expert (Lipman et al., 2023) with action horizon and 10 Euler steps, initialized from and adapted with LoRA (Hu et al., 2022). It attends to through a context expert with block-causal attention, so that the keys and values of the context are cached across flow steps. With noise , flow time and ,
The total loss is . Support and query are disjoint episodes of the same configuration, and of the same process when process labels exist. We sample , since training at a fixed prompt length fails to extrapolate (Yoo et al., 2026). With probability 0.2 we add one to four distractor demonstrations from other configurations, and with probability 0.5 we replace the instruction by an empty string, so that demonstration-only conditioning lies inside the training distribution. SigLIP is frozen on the demonstration side, so its features can be cached, and fine-tuned on the query side.
3.6 Predictive Demonstration Selection
Bank consistency. At test time the bank can hold more demonstrations than the context and contain demonstrations that are irrelevant or performed differently. For sensorimotor banks, we choose the N demonstrations with the predictor, as language-model examples are scored by how well they predict a held-out example (Rubin et al., 2022). The future of the query is unknown, but the futures of the demonstrations in the bank are known, so we treat each demonstration as a pseudo-query and measure how well the slots of another demonstration predict its keyframes,
where are the subsampled steps of . This is the training loss of §3.3 evaluated inside the bank, on disjoint episodes as in training; it needs no rollouts and no information about the query, so the matrix is computed once per bank and cached.
Selection score. We weight the other demonstrations by the similarity of their initial observations to the query's initial observation ,
where sim is the cosine similarity of pooled image features and a temperature. For each , ; we select the lowest scores. Uniform weights measure agreement with the rest of the bank and filter out distractors; peaked weights favour demonstrations that are predictive in layouts similar to that of the query. The score assumes that most of the bank shows the intended configuration. When a bank contains several processes for one task, we add each completed stage of the query as a further pseudo-query and reselect (online commitment, Appendix B), which keeps the context on the process that the policy has begun. Slots and the consistency matrix are cached; and run once per bank and, with online commitment, once per stage, never in the control loop.
3.7 Post-Training with Human-Hand Demonstrations
On the real robot a demonstration may be a human-hand video, which shows another embodiment and has neither proprioception nor actions. We post-train the checkpoint of the preceding stages on real data (Figure 2, stage 4) with the same loss L. A key-point token encoder adds to the input of the compressor keypoints that exist for both embodiments: the wrist, the thumb tip, the index fingertip and the pinch aperture of the hand, the corresponding end-effector keypoints of the robot from forward kinematics, and object keypoints from one offline tracker; robot proprioception and action tokens are dropped with probability 0.5.
Each training bank mixes human-hand and robot demonstrations in equal shares, while the query is always a robot episode of the same task. The slots of a human-hand demonstration are therefore trained to predict the next keyframe of the robot: the predictive objective asks what a demonstration implies for the future of the query, not how it looks, so it also relates the two embodiments. SigLIP and stay frozen; the keypoint token encoder and the predictor are trained, the compressor is updated with LoRA and the policy with a reduced learning rate. At deployment the bank may hold human-hand demonstrations only, with no weight updates (Appendix H); simulation omits this stage.
4 Experiments
4.1 Setup
Benchmarks and metrics. We compare LIBERO-Spatial, LIBERO-Object and LIBERO-Goal (Liu et al., 2023) and RLBench (James et al., 2020) (task splits in Appendix D), with three LIBERO settings. (i) Standard split. Six of the ten tasks of each suite are used for training and four are held out; we report LIBERO-Spatial and LIBERO-Object. (ii) Ambiguous goals. The ten tasks of LIBERO-Goal share one scene; we evaluate four held-out goals. (iii) LIBERO-Order. We construct two-object put-away tasks in which each object pair is demonstrated in both orders, which provides process labels by construction; object pairs are held out. Every unseen configuration has a pool of 50 demonstrations, from which support sets are drawn at random unless a selection strategy is named; diverse pools have more varied initial layouts, built with the perturbations of LIBERO-Plus (Fei et al., 2026). LIBERO success macro-averages four held-out tasks, using 100 rollouts per task and training seed; support draws and query seeds are shared across methods (Appendix F). The context-following rate (CFR) is the fraction of rollouts that achieve the target shown in the demonstration when it differs from the default one; the order-match and height-match rates are the fractions of LIBERO-Order rollouts that follow the demonstrated object order and grasp-height variant.
Baselines. Action-only (matched) is the same model as JEDI with , so the two differ only in the loss. +Label contrast applies a supervised contrastive loss (Khosla et al., 2020) to the slots with exactly the task and process labels that uses, and no predictor. Retrieval-n selects the n pool demonstrations whose initial frame is most similar to the query's under DINov2 features (Oquab et al., 2024) or SigLIP. Reconstruction, trace-supervision and observation-only controls are in Appendix E (Table 9).
4.2 Comparison Across Benchmarks
At N=1, JEDI improves over the baselines by 5.0–7.2 points on all four benchmarks (Table 1); at N=16, it improves over one-demonstration ContextFlow by 9.8–12.7 points. With instructions, LIBERO-Goal remains challenging for all methods, gaining 6.1 points as the number of demonstrations increases from N=1 to N=16.
4.3 Many Demonstrations and Their Selection
On LIBERO-Object, JEDI improves by 2.6 points from N=1 to N=16 and outperforms the strongest prior ICIL method, RoboSSM, by 40.8 points at N=16 (Figure 3a). With 8 relevant demonstrations and 16 distractors, JEDI outperforms matched action-only compression by 33.3 points (Table 13). Table 2 fixes the policy and N=8, varying only the selection. Predictive selection weights prediction errors by initial-frame similarity (Eq. 6); with uniform weights it falls below retrieval on most banks (Appendix F). It exceeds random choice by 5.3 points on standard pools and 18.9 on diverse ones, and the better retrieval by 8.0 there: initial-frame similarity can miss execution detail. Distractors cost it 2.8 points and random choice 13.3. Online commitment changes success by -0.1 to +1.0 points, but on mixed-order banks keeps the started order, raising it from 55% to 62%.
4.4 Compressor Objectives
Table 3 changes only the compressor objective. Adding alone raises success by 13.9 points at N=8, but its demonstration dependence is low
| Method | LIBERO (%, ↑) | RLBench (%, ↑) | ||
|---|---|---|---|---|
| Spatial | Object | Goal | ||
| ICRT (Fu et al., 2025) | 58.5±3.4 | 44.6±4.6 | 24.6±2.1 | 49.3±3.8 |
| RoboSSM (Yoo et al., 2026) | 66.8±3.1 | 54.3±4.3 | 37.3±3.6 | 54.4±2.8 |
| Instant Policy (Vosylius and Johns, 2025) | 83.1±3.2 | 69.1±2.9 | 47.1±2.8 | 77.1±3.3 |
| ContextFlow (Ding et al., 2026) | 85.6±2.8 | 76.4±3.2 | 56.5±2.2 | 73.6±1.3 |
| JEDI (ours) | 92.7±1.6 | 83.6±2.9 | 63.0±2.3 | 82.1±2.0 |
| JEDI, N=16 | 95.4±1.0 | 86.2±1.1 | 69.1±2.5 | 86.3±1.7 |
Table 1: Success rate on unseen manipulation configurations in LIBERO-Spatial, LIBERO-Object, LIBERO-Goal and RLBench. The first five rows use one demonstration (N=1); input adapters are distinguished in Appendix E. Values are mean ± standard deviation (%) over 3 training seeds. Each LIBERO seed uses 4 held-out tasks and 100 rollouts per task (1,200 trials per suite across seeds; Appendix F). The best N=1 mean in each column is in bold.
(a) Many demonstrations vs. prior ICIL LIBERO-Object, with instruction

(b) Paired swap CFR, N=1, LIBERO-Goal

Figure 3: Many-shot performance and context use. (a) LIBERO-Object success vs. N; ICRT and Instant Policy are designed for one or few demonstrations; points beyond N=2 exceed their intended range. (b) CFR under paired swaps on LIBERO-Goal (N=1, no instruction). Protocol of Table 1.
| Selection of N=8 | Std. | Div. | Distr. | Mixed |
|---|---|---|---|---|
| Random | 80.2 | 55.1 | 66.9 | 48 |
| Retrieval (DINov2) | 83.6 | 66.0 | 78.9 | 51 |
| Retrieval (SigLIP) | 84.8 | 64.9 | 79.1 | 49 |
| Predictive (ours) | 85.5 | 74.0 | 82.7 | 55 |
| + online commitment | 86.2 | 75.0 | 82.6 | 62 |
| Δ Predictive – Random | +5.3 | +18.9 | +15.8 | +7 |
Table 2: Selecting the context from a demonstration bank (success, %; 3 seeds). Std./Div./Distr.: standard, diverse and standard + 16 distractor pools, averaged over three LIBERO suites. Mixed: LIBERO-Order banks with both orders (whole %). : paired difference. Best in bold.
: much of the target is predicted from the current frame. Task negatives raise to 2.06 and the context-following rate to , 35.6 points above the action-only compressor; process negatives raise from 1.09 to 1.49 and the order-match rate from to . Separate policy training on frozen, predictively pretrained slots reaches at , with the highest demonstration dependence .
Process negatives are chosen with process labels, so the slots might retain the order merely because training indicated which demonstrations differ. Label contrast, which gives a compressor exactly the same labels without prediction, reaches 73.5% order-match against 84.1% for JEDI; when one process label is withheld from negatives, JEDI better follows that variation (Appendix G, Table 10). A label indicates that two demonstrations differ; a predictive target specifies how this changes the query's future. Matched curves and the instruction-only N=0 control (25.0%; two Object tasks, 20 trials) are in Appendix I.
4.5 Analysis of the Compressed Context
A policy can succeed by recognizing the task and executing it from its priors, or by imitating how the demonstration was performed (Pan et al., 2023). We separate the two on the checkpoints of Table 3, without retraining. Imitation shows in grasp execution: on the unseen milk object of LIBERO-Object, whose grasp point is unusually high (Ding et al., 2026), the grasp-height error is for action-only slots and for JEDI.
In the shared LIBERO-Goal scene we give the policy, without instruction, a demonstration of goal where G is the default (Li, 2026): JEDI reaches the demonstrated goal in 74.9% of rollouts, the action-only compressor in 34.1% (Figure 3b). These are also the instruction-free N=1 Goal results in Table 8, using the same rollouts and demonstrated-goal predicate (Appendix F).
A goal swap can be solved by recognition alone; in LIBERO-Order two demonstrations differ only in the object order, the order-match rate is 52.2% for the action-only compressor, 57.4% with task negatives alone and 84.1% for JEDI, so the process
| Compressor objective | SR ↑ | Order | Height err. ↓ | ||||
|---|---|---|---|---|---|---|---|
| N=1 | N=8 | CFR ↑ | match ↑ | ||||
| Action-only (matched) | 67.1 | 64.2 | 34.1 | 52.2 | - | - | 4.1 |
| + | 73.4 | 78.1 | 46.3 | 56.2 | 1.11 | 1.02 | 2.5 |
| + (task negatives) | 72.2 | 76.6 | 69.7 | 57.4 | 2.06 | 1.09 | 2.6 |
| Label contrast (no predictor) | 68.7 | 68.7 | 51.5 | 73.5 | - | - | 3.5 |
| JEDI (task + process negatives) | 79.8 | 80.2 | 74.9 | 84.1 | 2.21 | 1.49 | 2.0 |
| JEDI, pretrained then frozen | 77.6 | 75.4 | 59.5 | 71.5 | 2.82 | 1.76 | 2.1 |
Order labels only (order/height-match, %): Label contrast 68.3/52.2; JEDI 76.1/70.5.
Table 3: Core compressor-objective ablations (same backbone, data and schedule). SR, CFR and order-match are in %; height error is in cm. SR uses instructions and averages the three LIBERO suites of Table 1; average the last 200 training steps. The final line tests height transfer with order-only negative labels. Best in bold; further controls are in Table 9.
| Method | Canonical | Paraphrase | Conflict |
|---|---|---|---|
| JEDI | 70.0 | 71.7 | 78.8 |
| Action-only | 60.0 | 70.0 | 45.0 |
| Instruction-only | 65.0 | 55.0 | - |
Table 4: Instructions stating the object order on LIBERO-Order (success, %; N=8; 20/60/80 trials per column). Conflict: opposite-order context. Instruction-only: context masked. See Appendix I.
negatives make the slots retain the order (distractors are analysed in Appendix G).
4.6 Language and Demonstrations
The standard LIBERO-Order instruction does not reveal the object order (Appendix D); there JEDI follows the demonstrated order in 84.1% of rollouts and the action-only compressor in 52.2% (§4.5). In Table 4 the instruction states the order (after, before, not until). With aligned demonstrations, JEDI reaches 70.0% success versus 60.0% for action-only compression, and paraphrases do not lower its success (71.7%). When the demonstrations show the opposite order, JEDI completes the instructed order in 78.8% of rollouts, the action-only compressor in 45.0%. What the instruction leaves open, JEDI takes from the demonstrations; what it states, JEDI follows. Action-only compression follows the demonstrated order less often and resolves fewer conflicts in favour of the instruction.
4.7 Real World Experiment
We evaluate on the reBot Arm B601-RS dual-arm system after post-training on 10 tasks (§3.7), on 10 unseen tasks with five trials each (Table 5; Appendix H): manipulation (R1), instruction–demonstration conflicts (R2, scored by compliance with the instruction) and conflicting demonstrations
| Method | R1 | R2 | R3 |
|---|---|---|---|
| Retrieval-1 | 13/25 | 4/10 | — |
| Action-only, N=1 | 15/25 | 4/10 | — |
| JEDI, N=1 | 15/25 | 6/10 | — |
| JEDI, N=8 | 21/25 | 8/10 | 10/15 |
| Robot (N=8) | 23/25 | 8/10 | 11/15 |
| Mixed (N=4+4) | 22/25 | 8/10 | 10/15 |
Table 5: Real-robot success (successes/trials; 5 per task). R1: unseen manipulation (5 tasks); R2: instruction–demonstration ambiguity (2); R3: demonstration–demonstration ambiguity (3). Best in bold. —: R3 needs several demonstrations. Hardware and tasks in Appendix H.
(R3, scored by the majority goal). With one human-hand demonstration, JEDI matches the action-only baseline on R1 (15/25) and succeeds more often on R2 (6/10 vs. 4/10). Eight human-hand demonstrations raise success to 21/25 on R1 and 8/10 on R2, and achieve 10/15 on R3. At N=8, robot context yields two more successes than human-hand context on R1 (23/25 vs. 21/25) and one more on R3 (11/15 vs. 10/15); both succeed in 8/10 trials on R2, and a mixed context performs about as well.
5 Conclusion
We proposed that a demonstration compressor for ICIL retain what predicts the query episode's future. JEDI trains per-demonstration slots with a predictive objective in a frozen video-JEPA space and task and process counterfactuals. Cached slots support many demonstrations and preserve their process; the predictor selects the context, and post-training supports human-hand videos. Predictive compression increases following of a swapped demonstration and its object order: the objective changes how the policy uses its context.
Limitations
Scope of generalization. Like prior in-context imitation policies, JEDI generalizes to unseen objects, arrangements and goals that are composed of motion primitives seen in training. We do not claim generalization to new motion primitives or to other robot embodiments, and our evaluation is confined to tabletop manipulation. Human-hand demonstrations are supported only after post-training on real data of the same platform, with keypoints from an offline tracker; we do not claim transfer from unconstrained human video. The standard split evaluates four held-out tasks per suite; repeated support draws and layouts do not establish generalization to additional tasks. The real-robot evaluation covers ten unseen tasks on one dual-arm platform.
Dependence on pretrained components and stage structure. The predictive target comes from a frozen video encoder, and stages are defined by a keyframe heuristic based on gripper events and end-effector speed. Tasks without such events, for instance wiping or pouring, or scenes that the encoder represents poorly, may need learned segmentation or a different target.
Ethical Considerations
Data and human subjects. All simulated data come from public benchmarks used under their licences. The real-robot demonstrations were tele-operated and the human-hand demonstrations were performed by the authors; no other participants were involved, and the recordings show only the workspace and the hands of the demonstrator, and contain no faces or other personal data.
Safety. A policy that follows demonstrations given at test time will also follow demonstrations that are wrong or harmful. Our analysis makes this property measurable: a higher context-following rate means that the supplied demonstrations have more control over the behaviour of the robot. A deployment must therefore control who can add demonstrations to the bank and should keep independent safety limits. Our arms operate in a bounded workspace with velocity and torque limits and an emergency stop, under human supervision.
Broader impact and cost. Adapting robots from a few demonstrations without retraining lowers the cost of automating manipulation, with the benefits and the labour-market risks that this entails. We use low-cost arms and report the compute used for training, caching and evaluation in Appendix B.
References
Rishabh Agarwal, Avi Singh, Lei M. Zhang, Bernd Bohnet, Luis Rosias, Stephanie Chan, Biao Zhang, Ankesh Anand, Zaheer Abbas, Azade Nova, John D. Co-Reyes, Eric Chu, Feryal Behbahani, Aleksandra Faust, and Hugo Larochelle. 2024. Many-shot in-context learning. In Advances in Neural Information Processing Systems, volume 37, pages 76930–76966.
Mahmoud Assran, Quentin Duval, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, Yann LeCun, and Nicolas Ballas. 2023. Self-supervised learning from images with a joint-embedding predictive architecture. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 15619–15629.
Mido Assran, Adrien Bardes, David Fan, Quentin Garrido, Russell Howes, Mojtaba Komeili, Matthew Muckley, Ammar Rizvi, Claire Roberts, Koustuv Sinha, Artem Zholus, Sergio Arnaud, Abha Gejji, Ada Martin, Francois Robert Hogan, Daniel Dugas, Piotr Bojanowski, Vasil Khalidov, Patrick Labatut, and 10 others. 2025. V-JEPA 2: Self-supervised video models enable understanding, prediction and planning. arXiv preprint arXiv:2506.09985.
Adrien Bardes, Quentin Garrido, Jean Ponce, Xinlei Chen, Michael Rabbat, Yann LeCun, Mahmoud Assran, and Nicolas Ballas. 2024. Revisiting feature prediction for learning visual representations from video. Transactions on Machine Learning Research.
Kevin Black, Noah Brown, Danny Driess, Adnan Esmail, Michael Equi, Chelsea Finn, Niccolo Fusai, Lachy Groom, Karol Hausman, Brian Ichter, Szymon Jakubczak, Tim Jones, Liyiming Ke, Sergey Levine, Adrian Li-Bell, Mohith Mothukuri, Suraj Nair, Karl Pertsch, Lucy Xiaoyang Shi, and 5 others. 2025. : A vision-language-action flow model for general robot control. In Proceedings of Robotics: Science and Systems.
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, and 12 others. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877–1901.
Guangyan Chen, Meiling Wang, Qi Shao, Zichen Zhou, Weixin Mao, Te Cui, Minzhao Zhu, Yinan Deng, Luojie Yang, Zhanqi Zhang, Yi Yang, Hua Chen, and Yufeng Yue. 2025. See once, then act: Vision-language-action model with task learning from one-shot video demonstrations. arXiv preprint arXiv:2512.07582.
Alexis Chevalier, Alexander Wettig, Anirudh Ajith, and Danqi Chen. 2023. Adapting language models to compress contexts. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3829–3846, Singapore. Association for Computational Linguistics.
Sudeep Dasari and Abhinav Gupta. 2021. Transformers for one-shot visual imitation. In Proceedings of the 2020 Conference on Robot Learning, volume 155 of Proceedings of Machine Learning Research, pages 2071–2084. PMLR.
Norman Di Palo and Edward Johns. 2024. Keypoint Action Tokens enable in-context imitation learning in robotics. In Proceedings of Robotics: Science and Systems.
Jian Ding, Xianjie Dai, Roei Herzig, Nussair Hroub, Jinjie Mai, Dengxin Dai, Bernard Ghanem, and Mohamed Elhoseiny. 2026. ContextFlow: In-context flow matching for robot manipulation. In Computer Vision – ECCV 2026, Lecture Notes in Computer Science, pages 277–294. Springer.
Anh Trac Duc Dinh and Khang Nhat Hoang Vo. 2026. The JEPA paradox in language: The geometry of linguistic alternatives. arXiv preprint arXiv:2607.23531.
Yan Duan, Marcin Andrychowicz, Bradly C. Stadie, Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. 2017. One-shot imitation learning. In Advances in Neural Information Processing Systems, volume 30.
Senyu Fei, Siyin Wang, Junhao Shi, Zihao Dai, Jikun Cai, Pengfang Qian, Li Ji, Xinzhe He, Shiduo Zhang, Zhaoye Fei, Jinlan Fu, Jingjing Gong, and Xipeng Qiu. 2026. LIBERO-Plus: A progressive robustness benchmark for visual-language-action models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 38574–38583.
Letian Fu, Huang Huang, Gaurav Datta, Lawrence Yunliang Chen, William Chung-Ho Panitch, Fangchen Liu, Hui Li, and Ken Goldberg. 2025. ICRT: In-context imitation learning via next-token prediction. In IEEE International Conference on Robotics and Automation (ICRA), pages 5937–5944.
Jun Gao, Qi Lv, Zili Wang, Tianxiang Wu, Ziqiang Cao, and Wenjie Li. 2025. UniICL: An efficient ICL framework unifying compression, selection, and generation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 500–510, Vienna, Austria. Association for Computational Linguistics.
Tao Ge, Jing Hu, Lei Wang, Xun Wang, Si-Qing Chen, and Furu Wei. 2024. In-context autoencoder for context compression in a large language model. In International Conference on Learning Representations.
Jingyang He, Guangrun Li, Jieyu Zhang, Chengkai Hou, Zhengping Che, and Shanghang Zhang. 2026. Demo-JEPA: Joint-embedding predictive architecture for one-shot cross-embodiment imitation. arXiv preprint arXiv:2605.20811.
Roee Hendel, Mor Geva, and Amir Globerson. 2023. In-context learning creates task vectors. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 9318–9333, Singapore. Association for Computational Linguistics.
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.
Hai Huang, Yann LeCun, and Randall Balestriero. 2026. LLM-JEPA: Large language models meet joint embedding predictive architectures. In International Conference on Learning Representations.
Andrew Jaegle, Sebastian Borgeaud, Jean-Baptiste Alayrac, Carl Doersch, Catalin Ionescu, David Ding, Skanda Koppula, Daniel Zoran, Andrew Brock, Evan Shelhamer, Olivier Hénaff, Matthew M. Botvinick, Andrew Zisserman, Oriol Vinyals, and João Carreira. 2022. Perceiver IO: A general architecture for structured inputs & outputs. In International Conference on Learning Representations.
Andrew Jaegle, Felix Gimeno, Andrew Brock, Andrew Zisserman, Oriol Vinyals, and Joao Carreira. 2021. Perceiver: General perception with iterative attention. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 4651–4664. PMLR.
Vidhi Jain, Maria Attarian, Nikhil J. Joshi, Ayzaan Wahid, Danny Driess, Quan Vuong, Pannag R. Sanketi, Pierre Sermanet, Stefan Welker, Christine Chan, Igor Gilitschenski, Yonatan Bisk, and Debidatta Dwibedi. 2024. Vid2Robot: End-to-end video-conditioned policy learning with cross-attention transformers. In Proceedings of Robotics: Science and Systems.
Stephen James, Michael Bloesch, and Andrew J. Davison. 2018. Task-embedded control networks for few-shot imitation learning. In Proceedings of The 2nd Conference on Robot Learning, volume 87 of Proceedings of Machine Learning Research, pages 783–795. PMLR.
Stephen James, Zicong Ma, David Rovick Arrojo, and Andrew J. Davison. 2020. RLBench: The robot learning benchmark & learning environment. IEEE Robotics and Automation Letters.
Eric Jang, Alex Irpan, Mohi Khansari, Daniel Kappler, Frederik Ebert, Corey Lynch, Sergey Levine, and Chelsea Finn. 2022. BC-Z: Zero-shot task generalization with robotic imitation learning. In Proceedings of the 5th Conference on Robot Learning, volume
164 of Proceedings of Machine Learning Research, pages 991–1002. PMLR.
Nikita Karaev, Iurii Makarov, Jianyuan Wang, Natalia Neverova, Andrea Vedaldi, and Christian Rupprecht. 2024. CoTracker3: Simpler and better point tracking by pseudo-labelling real videos. arXiv preprint arXiv:2410.11831.
Simar Kareer, Dhruv Patel, Ryan Punamiya, Pranay Mathur, Shuo Cheng, Chen Wang, Judy Hoffman, and Danfei Xu. 2024. EgoMimic: Scaling imitation learning via egocentric video. arXiv preprint arXiv:2410.24221.
Devvrit Khatri, Pranamya Kulkarni, Nilesh Gupta, Yerram Varun, Liqian Peng, Jay Yagnik, Praneeth Netrapalli, Cho-Jui Hsieh, Alec Go, Inderjit S Dhillon, Aditya Kusupati, and Prateek Jain. 2025. Compressing many-shots in in-context learning. arXiv preprint arXiv:2510.16092.
Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. 2020. Supervised contrastive learning. In Advances in Neural Information Processing Systems, volume 33, pages 18661–18673.
Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. 2023. BLIP-2: Bootstrapping language-image pretraining with frozen image encoders and large language models. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 19730–19742. PMLR.
Wenhao Li. 2026. In-context learning from demonstrations for robotic manipulation: A survey. Preprints.
Yihan Lin, Jiawei He, Shifeng Bao, Chen Zhao, Yang Li, Xiaobo Wang, Yan Wang, Cheng Chi, and Jing Zhang. 2026. JEPA-WAM: Learning vision-language-action policies with joint-embedding world modeling. arXiv preprint arXiv:2608.09381.
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. 2023. Flow matching for generative modeling. In International Conference on Learning Representations.
Bo Liu, Yifeng Zhu, Chongkai Gao, Yihao Feng, Qiang Liu, Yuke Zhu, and Peter Stone. 2023. LIBERO: Benchmarking knowledge transfer for lifelong robot learning. In Advances in Neural Information Processing Systems, volume 36, pages 44776–44791.
Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan, Lawrence Carin, and Weizhu Chen. 2022. What makes good in-context examples for GPT-3? In Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, pages 100–114, Dublin, Ireland and Online. Association for Computational Linguistics.
Ajay Mandlekar, Soroush Nasiriany, Bowen Wen, Ireti-ayo Akinola, Yashraj Narang, Linxi Fan, Yuke Zhu, and Dieter Fox. 2023. MimicGen: A data generation system for scalable robot learning using human demonstrations. In Proceedings of The 7th Conference on Robot Learning, volume 229 of Proceedings of Machine Learning Research, pages 1820–1864. PMLR.
Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe, Mike Lewis, Hannaneh Hajishirzi, and Luke Zettlemoyer. 2022. Rethinking the role of demonstrations: What makes in-context learning work? In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 11048–11064, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
Jesse Mu, Xiang Lisa Li, and Noah Goodman. 2023. Learning to compress prompts with gist tokens. In Advances in Neural Information Processing Systems, volume 36, pages 19327–19352.
Lorenzo Mur-Labadia, Matthew Muckley, Amir Bar, Mido Assran, Koustuv Sinha, Mike Rabbat, Yann LeCun, Nicolas Ballas, and Adrien Bardes. 2026. V-JEPA 2.1: Unlocking dense features in video self-supervised learning. In Computer Vision – ECCV 2026, Lecture Notes in Computer Science, pages 671–689. Springer.
Toan Nguyen, Weiduo Yuan, Songlin Wei, Hui Li, Daniel Seita, and Yue Wang. 2026. ICLR: In-context imitation learning with visual reasoning. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS).
Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, and 7 others. 2024. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research.
Jane Pan, Tianyu Gao, Howard Chen, and Danqi Chen. 2023. What in-context learning “learns” in-context: Disentangling task recognition and task learning. In Findings of the Association for Computational Linguistics: ACL 2023, pages 8298–8319, Toronto, Canada. Association for Computational Linguistics.
Georgios Papagiannis, Norman Di Palo, Pietro Vitiello, and Edward Johns. 2025. R+X: Retrieval and execution from everyday human videos. In IEEE International Conference on Robotics and Automation (ICRA), pages 8284–8290.
Austin Patel, Ben Pekarek, Joel Enrique Castro Hernandez, and Shuran Song. 2026. Behavior Prompting Policy: Demonstrations as prompts for manipulation. arXiv preprint arXiv:2606.30457.
Juntao Ren, Priya Sundaresan, Dorsa Sadigh, Sanjiban Choudhury, and Jeannette Bohg. 2025. Motion Tracks: A unified representation for human-robot transfer in few-shot imitation learning. arXiv preprint arXiv:2501.06994.
Ohad Rubin, Jonathan Herzig, and Jonathan Berant. 2022. Learning to retrieve prompts for in-context learning. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2655–2671, Seattle, United States. Association for Computational Linguistics.
Makoto Sato, Yusuke Iwasawa, Yujin Tang, and So Kuroki. 2026. SAIL: Test-time scaling for in-context imitation learning with VLM. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS).
Rutav Shah, Shuijing Liu, Qi Wang, Zhenyu Jiang, Sateesh Kumar, Mingyo Seo, Roberto Martín-Martín, and Yuke Zhu. 2026. MimicDroid: In-context learning for humanoid robot manipulation from human play videos. In IEEE International Conference on Robotics and Automation (ICRA).
Qijin She, Hanyang Yu, Zeming Li, and Ping Tan. 2026. MatchingPolicy: Correspondence-aware policy enables cross-object in-context learning. arXiv preprint arXiv:2608.16715.
Mohit Shridhar, Lucas Manuelli, and Dieter Fox. 2023. Perceiver-Actor: A multi-task transformer for robotic manipulation. In Proceedings of The 6th Conference on Robot Learning, volume 205 of Proceedings of Machine Learning Research, pages 785–799. PMLR.
Jaehyeon Son, Junhyun Kim, Kyle Kam, Jeremiah Coholich, Seok Joon Kim, Jinhoo Kim, Chris Dongjoo Kim, Jaemin Cho, Dieter Fox, and Zsolt Kira. 2026. SeeTraceAct: Visibility-aware latent planning from cross-embodiment demonstration videos. arXiv preprint arXiv:2606.02745.
Kaustubh Sridhar, Souradeep Dutta, Dinesh Jayaraman, and Insup Lee. 2025a. REGENT: A retrieval-augmented generalist agent that can act in-context in new environments. In International Conference on Learning Representations.
Kaustubh Sridhar, Souradeep Dutta, Dinesh Jayaraman, and Insup Lee. 2025b. RICL: Adding in-context adaptability to pre-trained vision-language-action models. In Proceedings of The 9th Conference on Robot Learning, volume 305 of Proceedings of Machine Learning Research, pages 5022–5038. PMLR.
Eric Todd, Millicent L. Li, Arnab Sen Sharma, Aaron Mueller, Byron C. Wallace, and David Bau. 2024. Function vectors in large language models. In International Conference on Learning Representations.
Vitalis Vosylius and Edward Johns. 2025. Instant Policy: In-context imitation learning via graph diffusion. In International Conference on Learning Representations.
Aleksandar Vujinović and Aleksandar Kovačević. 2026. ACT-JEPA: Novel joint-embedding predictive architecture for efficient policy representation learning. IEEE Access, 14:78895–78906.
An Dinh Vuong, Minh Nhat Vu, Dong An, and Ian Reid. 2025. Action tokenizer matters in in-context imitation learning. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 13490–13496.
Yida Yin, Zekai Wang, Yuvan Sharma, Dantong Niu, Trevor Darrell, and Roei Herzig. 2025. In-context learning enables robot action prediction in LLMs. In IEEE International Conference on Robotics and Automation (ICRA), pages 8972–8979.
Youngju Yoo, Jiaheng Hu, Yifeng Zhu, Bo Liu, Qiang Liu, Roberto Martín-Martín, and Peter Stone. 2026. RoboSSM: Scalable in-context imitation learning via state-space models. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS).
Tianhe Yu, Chelsea Finn, Sudeep Dasari, Annie Xie, Tianhao Zhang, Pieter Abbeel, and Sergey Levine. 2018. One-shot imitation from observing humans via domain-adaptive meta-learning. In Proceedings of Robotics: Science and Systems.
Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. 2023. Sigmoid loss for language image pre-training. In IEEE/CVF International Conference on Computer Vision (ICCV), pages 11941–11952.
Fan Zhang, Valentin Bazarevsky, Andrey Vakunov, Andrei Tkachenka, George Sung, Chuo-Ling Chang, and Matthias Grundmann. 2020. MediaPipe Hands: On-device real-time hand tracking. arXiv preprint arXiv:2006.10214.
Ruijie Zheng, Jing Wang, Scott Reed, Johan Bjorck, Yu Fang, Fengyuan Hu, Joel Jang, Kaushil Kundalia, Zongyu Lin, Loic Magne, Avnish Narayan, You Liang Tan, Guanzhi Wang, Qi Wang, Jiannan Xiang, Yinzhen Xu, Seonghyeon Ye, Jan Kautz, Furong Huang, and 2 others. 2025. FLARE: Robot learning with implicit world modeling. arXiv preprint arXiv:2505.15659.
Gaoyue Zhou, Hengkai Pan, Yann LeCun, and Lerrel Pinto. 2025a. DINO-WM: World models on pretrained visual features enable zero-shot planning. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 79115–79135. PMLR.
Xueyang Zhou, Yangming Xu, Guiyao Tie, Yongchao Chen, Guowen Zhang, Duanfeng Chu, Pan Zhou, and Lichao Sun. 2025b. LIBERO-PRO: Towards robust and fair evaluation of vision-language-action models beyond memorization. arXiv preprint arXiv:2510.03827.
A Notation
| Symbol | Meaning |
|---|---|
| τ | task configuration (goal, objects, scene) |
| d, C | demonstration; support set of N demonstrations |
| k | slots per demonstration |
| T' | subsampled length of a demonstration |
| Eφ, gψ, f | compressor; predictor; frozen target encoder |
| Zi, Zc | slots of demonstration i; all context slots |
| ot, qt | query observation tokens; proprioception |
| κ(t) | first keyframe after step t |
| z*, z | target latent; predicted latent |
| err(̂z, z*) | prediction error of one sample (Eq. 2) |
| l | language instruction |
| Δ | offset κ(t) - t (not a predictor input) |
| H | action horizon |
| C' | counterfactual support set (task or process negative) |
| B, M | demonstration bank and its size |
| ei→j, Si | error of di on pseudo-query dj; selection score |
| CFR | context-following rate |
| DDtask, DDproc | demonstration dependence under task / process negatives |
Table 6: Notation.
B Implementation Details
Compressor. The input to is the token sequence of one demonstration: SigLIP patch tokens of the 8 subsampled frames from both views, and MLP embeddings of 128 uniformly subsampled proprioception and action steps. Each token receives a modality embedding, a view embedding where applicable, and a sinusoidal embedding of normalized progress t/T. The k learnable queries cross-attend to these tokens and self-attend among themselves in each of the layers. The output slots are projected to the width of the context expert, and a learned slot-index embedding is added. No embedding identifies the demonstration a slot comes from. The default is one joint compressor over all modalities; per-modality compressors as in ContextFlow are an ablation.
Predictor and target. The predictor is a transformer with 4 layers and width 512. Its input is the concatenation of the projected slots, the SigLIP tokens of the current query observation (the same tokens the policy receives) and an embedding of ; a set of learnable output queries, one per target patch, is decoded into . The target is the patch-token output of the frozen V-JEPA 2.1 encoder (the released distilled ViT-L) on the two frames ending at the keyframe, from the external view. Layer normalization is applied to both prediction and target before the SmoothL1 loss.
| Item | Setting |
|---|---|
| Model and optimization | |
| Slots per demonstration k | 8 |
| Compressor | joint perceiver, layers |
| Demonstration subsampling | 8 frames; 128 state/action steps |
| Vision encoder query side | SigLIP So400m/14 (from ) fine-tuned |
| demonstration side | frozen, features cached |
| Target encoder | V-JEPA 2.1 ViT-L, frozen |
| Prediction target | next keyframe (2-frame clip) |
| Predictor | transformer, 4 layers, width 512 |
| Offset as predictor input | no |
| Gradient of predictive losses into | stopped |
| Negatives in | 1 task + 1 process (if available) |
| 1, 0.1, 0.1 | |
| Training N | |
| Demonstration dropout | 0.1 |
| Distractor mixing | 0.2 (1-4 demonstrations) |
| Instruction dropout | 0.5 |
| Action expert | base (not fine-tuned on LIBERO or RLBench), LoRA rank 32 |
| Action horizon H; Euler steps | 50; 10 |
| Iterations; batch size | 10k; 32 |
| Selection temperature | 0.01 |
| Optimizer | AdamW () |
| Learning rate | new / LoRA / SigLIP, cosine |
| Benchmark configurations | |
| Standard split | Train: 6/10 tasks per suite; unseen: 4 per suite |
| Ambiguous goals | LIBERO-Goal standard split; unseen: 4 goals |
| LIBERO-Order | Train: 25 object pairs × 2 orders, with grasp-height variants; unseen: 5 pairs |
| Diverse pools | Standard train/unseen split with perturbed unseen layouts |
Table 7: Hyperparameters and benchmarks.
Training regimes. In the default joint regime all losses are active from the start. In the predictive-pretraining regime (frozen-compressor row of Table 3), and are first trained with only; is then frozen and the policy is trained with . The matched action-only baseline and all objective variants use the same sampling of support sets, distractors and instruction dropout as JEDI. With probability 0.1 one demonstration's slots are dropped from the context.
Predictive selection. For a bank of M demonstrations we compute the consistency matrix of Eq. (5) with the pseudo-query steps set to 8 subsampled non-terminal steps of , whose SigLIP features are already cached; the targets are the V-
JEPA 2.1 latents of the keyframes of , computed once when the demonstration enters the bank. The predictor is run with the slots of a single demonstration as context, which lies inside its training distribution because is sampled from 1. The matrix costs forward passes of the predictor, batched. The similarity in Eq. (6) is the cosine similarity of mean-pooled SigLIP features of the external-view initial frames. For each , we exclude its pseudo-query before normalizing:
Thus for every candidate.
Online commitment. A bank may contain several processes for one task, and a policy should remain with the process it has begun. Each time the query reaches a keyframe, its completed stage is added as a further pseudo-query: it contributes steps at its start and midpoint, with the observed keyframe as target and the weight of the most similar bank demonstration. The scores are updated and the context is reselected; the context expert then re-encodes the selected slots, which takes about 25 ms. Because the completed stage reflects the policy’s own behaviour, this step cannot correct a wrong initial choice; it keeps the context consistent with what has been executed. It needs one forward pass of per stage. Online, keyframes are detected causally, from gripper events and from the end-effector speed falling below .
Caches. With up to 16 demonstrations of 8 frames and 2 views, one training sample contains 256 demonstration images, and a batch of 32 would need 8,192 forward passes of the vision encoder per step. We therefore precompute demonstration-side SigLIP features for a fixed uniform 8-frame subsampling of every demonstration and for one temporally jittered variant. A demonstration takes tokens of width 1152, about 9.4 MB in half precision, or about 61 GB per subsampling for the 6.5k demonstrations of LIBERO. V-JEPA 2.1 targets take about 2.6 MB per demonstration (about five keyframes of 256 patches of width 1024), 17 GB in total. Both caches are built once.
Compute. One model trains in about 29 GPU-hours on A100 GPUs (10k steps, batch size 32); the experiments used about 2,800 GPU-hours in total, 2,200 for training and 600 for evaluation rollouts.
C Keyframes, Process Labels and Negatives
Keyframes. A step t is a keyframe if (i) the gripper command changes between open and closed at t, or (ii) the end-effector speed has a local minimum at t below a threshold and no other keyframe lies within steps. The last step of an episode is always a keyframe. We use m/step and for all suites; LIBERO episodes have 3.3–5.8 keyframes on average. Real-robot keyframes were verified on a random 5% of episodes.
Process labels. On LIBERO-Order, the process label of a demonstration is the object order and, where applicable, the grasp-height variant, both known from construction. For the other suites, each keyframe's 256 V-JEPA 2.1 patch tokens are mean-pooled into a 1024-dimensional vector and -normalized. We retain eight keyframes, repeating the last for shorter sequences and truncating longer ones, then concatenate them into an 8192-dimensional vector for within-task k-means. The cluster count is chosen by silhouette score; tasks whose best score is below 0.25 receive a single label. Keyframe s defines stage s, with no temporal warping between processes. A positive support set always has the process label of the query.
Negatives. A task negative is a support set from a different task in the same scene. If the scene has no other task, we use the nearest scene whose external-view initial-frame SigLIP cosine similarity is at least 0.8 (the similarity of Eq. (6)); otherwise the term is skipped. A process negative has the same task and a different process label; it is accepted when the cosine distance 1 – cos between the two processes’ cluster-mean, patch-pooled keyframe vectors at the query’s next stage exceeds 0.05.
D Benchmarks
Data split. Table 7 lists the benchmark configurations. For each training seed, we randomly partition all ten tasks of each LIBERO suite into six training and four held-out tasks ( ). The split is shared across methods for that seed and remains unchanged throughout training and evaluation; success averages its four held-out tasks.
RLBench. RLBench (James et al., 2020) was introduced with 100 manipulation tasks, motion-planned demonstrations and simulator-defined success conditions. For each training seed, we ran-domly partition the 100 tasks into 60 training and 40 held-out tasks, using the same split across methods and holding it fixed throughout that run. Support and query episodes are disjoint, and test-time weights are fixed ( 3.1). Each seed uses 100 query rollouts per held-out task: 4,000 per seed and 12,000 across three seeds for each method and context-size condition. Seed-level success averages the 40 tasks' binary completion rates; Table 1 reports the three-seed mean and sample standard deviation. Native modality adapters for the baselines are described in Appendix E.
LIBERO-Order. Each task asks the robot to put two objects into a container. The task is written in BDDL on LIBERO assets and scenes, and the goal predicate is the same for both orders, so the two processes share the endpoint. For each object pair we generate 50 demonstrations per order with MimicGen (Mandlekar et al., 2023), which adapts a small set of source demonstrations to randomized initial poses; for pairs that contain a tall object we add a variant in which the object is grasped near the top instead of at mid-height. The order followed by a rollout is read from the simulator state as the order in which the two objects first satisfy the containment predicate. The instruction names both objects in a fixed order that is independent of the demonstrated order, so the instruction does not reveal the process.
Many-shot and diverse pools. LIBERO provides 50 demonstrations per task, which form the standard pool of each unseen configuration. Their initial states are drawn from a narrow distribution, so demonstrations within a pool are similar. Diverse pools are built by applying layout perturbations in the style of LIBERO-Plus (Fei et al., 2026) to the initial object positions and regenerating 50 demonstrations per configuration; query episodes are drawn from the same perturbed distribution. Benchmarks that perturb LIBERO to test memorization (Zhou et al., 2025b) are complementary: they vary the test condition, whereas we vary the coverage of the context.
Distractors. Distractor demonstrations are drawn uniformly from the pools of other configurations of the same suite.
E Baselines
Matched protocol. JEDI, the action-only baseline and the objective variants share the backbone, the compressor architecture, k, the sampling distribution of N, distractor mixing, instruction dropout, training data, iterations, batch size, learning-rate schedule and seeds. Only the loss terms differ. The reconstruction variant adds a 4-layer decoder that reconstructs, from the slots and positional queries, the SigLIP features of the 8 subsampled demonstration frames with a SmoothL1 loss. The trace variant replaces the latent target by the sequence of end-effector positions from t to , resampled to 16 points and projected into the external view. This is a matched objective control on our architecture, rather than a full reproduction of SeeTraceAct (Son et al., 2026); it omits that model's observation-conditioned visual latent plan and multiview visibility decoder.
Controls for the predictive objective. Prediction without slots keeps the predictor, the target and of JEDI but removes from the predictor's input and drops the stop-gradient on ; the compressor is then trained by the action loss alone, and the predictive loss acts as an auxiliary future-prediction loss on the observation encoder. It has no counterfactual term, because its prediction does not depend on the support set. JEDI with gradient through is the default model without the stop-gradient. Label contrast has no predictor. The slots of each demonstration are mean-pooled and passed through a two-layer projection head, and a supervised contrastive loss (Khosla et al., 2020) with weight pulls together demonstrations that share task and process label and pushes apart those that differ in either. The batch contains, for every sample, the same task negative and process negative that would use, so the control receives exactly the label information of JEDI.
Withholding one type of process label. LIBERO-Order has two types of process variation, object order and grasp height. For Table 10 we train with process negatives (or contrastive pairs) of one type only. The other type is still present in the data, and support and query still show the same process, as for every method including the action-only baseline; it is never used to form a negative or a contrastive pair. The height-match rate is the fraction of rollouts on tall objects whose grasp height is closer to the demonstrated variant than to the other one.
Baseline implementations. Table 1 reports local baseline implementations. All RLBench methods, including Instant Policy, share the seed-specific 60/40 task split, with 100 query rollouts per held-out task and training seed (Appendix D). We reimplement ContextFlow on our training tasks and evaluate it under the same held-out split and rollout budget as JEDI. For the inference-cost comparison, raw context gives the policy all tokens of the subsampled demonstration, about 4k per demonstration. ICRT and RoboSSM are trained with their official code on our training configurations. Instant Policy (Vosylius and Johns, 2025) uses graph diffusion over segmented point clouds, end-effector poses and gripper states. In our implementation, the point clouds are reconstructed from simulator depth, and language conditioning uses a prompt module adapted from Appendix J of that paper. Table 1 and Figure 3a use this instruction-conditioned implementation with the same task wording as the other methods; the figure varies the number of support demonstrations. The matched instruction controls use identical text and layouts for JEDI, action-only and ContextFlow; the demonstration-only condition removes the text for all three (Appendix I). ICRT and RoboSSM have both demonstration-only and instruction-conditioned configurations (Yoo et al., 2026); the instruction-conditioned comparison uses the same wording across methods.
Retrieval. For a query, Retrieval-n ranks the demonstrations in the pool of the unseen configuration by cosine similarity between pooled DINOv2 features of their initial external-view frame and that of the query, and gives the top n to the JEDI policy. It uses the same checkpoint as JEDI, so the comparison isolates the effect of the number and choice of demonstrations.
F Evaluation Details
Estimator. Let be the outcome for training seed , task in that seed's held-out set and evaluation rollout , including its sampled support set. For each LIBERO suite, seed-level success is . We average these seed-level rates and report their sample standard deviation, rounding only the final statistics. Table 1 and the remaining multiseed conditions use 3 training seeds per method. Figure 3a uses this protocol at each , and Table 8 uses it with instructions removed. There are 400 trials per seed and 1,200 per suite across the three seeds. The pool of 50 support demonstrations is separate from the 100 evaluation rollouts per task.
Selection and reporting precision. Table 2 uses the three training seeds of Table 1: for each seed, a Std., Div. or Distr. value averages trials across the three suites, and the table reports the mean of these seed-level values. All selection methods of a seed share the query layouts and pools, so differences are paired. SigLIP retrieval uses the policy's own vision encoder in place of DINOv2 and otherwise follows Retrievaln. The standard-pool Random entry is the default evaluation shared with Tables 3, 11 and 13 at . Two further selection rules reach 81.4/55.3/74.2/52 (slot centroid: the demonstrations whose pooled slots are closest to the centroid of the bank) and 78.2/60.0/77.9/55 (predictive with uniform weights) on Std./Div./Distr./Mixed. The Mixed column of Table 2 is reported to the nearest whole percentage; all other success means are reported to one decimal. Mixed banks contain both valid object orders of a held-out LIBERO-Order pair. Success uses their shared BDDL endpoint predicate, requiring both objects to be placed; order-match is measured separately in Table 3. The arithmetic step before rounding is percentage point for the multiseed suite means and for the three-seed selection means. Confidence intervals for predeclared comparisons resample training seeds independently and pair task/support/layout indices between methods; they remain conditional on the evaluated tasks.
Context-following rate. For a paired-context swap with default goal G and demonstrated goal , each rollout is scored on both goal predicates. CFR is the share of rollouts that satisfy . Each method uses four held-out goals, 100 rollouts per goal and three training seeds, for 1,200 trials. Goal entries at N=1 in Table 8 use these instruction-free rollouts and the demonstrated-goal predicate, giving 74.9% (JEDI) and 34.1% (action-only; Figure 3b).
Grasp-height error. For unseen objects we compare the end-effector height at the first gripper-close event of a rollout with the mean height in the demonstrations of that configuration, and report the mean absolute difference.
G Additional Results
Alternative objectives and training regimes. Table 9 compares reconstruction and trace supervision with observation-only prediction and gradients
| Method (no instruction) | N | Spatial | Object | Goal | Avg. |
|---|---|---|---|---|---|
| , no demonstration | 0 | 52.8 | 15.4 | 9.1 | 25.8 |
| Action-only (matched) | 1 | 84.6 | 55.2 | 34.1 | 58.0 |
| Action-only (matched) | 16 | 81.9 | 46.5 | 20.8 | 49.7 |
| JEDI | 1 | 80.3 | 63.0 | 74.9 | 72.7 |
| JEDI | 16 | 87.2 | 73.8 | 61.2 | 74.1 |
Table 8: Success without instructions (%; protocol of Table 1). Avg.: mean over suites. Best per column in bold.
| Compressor objective | SR ↑ | Order | Height err. ↓ | ||||
|---|---|---|---|---|---|---|---|
| CFR ↑ | match ↑ | ||||||
| + Reconstruction | 66.8 | 63.2 | 36.4 | 52.2 | – | – | 3.8 |
| + Trace target | 71.4 | 76.1 | 46.3 | 60.5 | 1.31 | 1.10 | 2.5 |
| + Prediction without slots | 64.2 | 66.6 | 39.7 | 55.4 | – | – | 3.3 |
| JEDI, gradient through | 77.5 | 83.9 | 60.1 | 84.9 | 2.58 | 1.54 | 1.4 |
Table 9: Additional compressor controls under the settings and metrics of Table 3. SR, CFR and order-match in %; height error in cm. Best per column in bold.
through the current observation. At N=8, reconstruction reaches 63.2% success and the trace target reaches 76.1%; the frozen-compressor control is reported in Table 3.
Predictive compression versus auxiliary prediction. A future-prediction loss can help a policy merely by shaping its representation of the current observation, without the slots carrying any information. JEDI excludes this possibility by construction, since enters the predictor with a stop-gradient (§3.3), and the two control rows of Table 9 measure it. A predictor that receives no slots, and whose loss does train the observation encoder, changes success by -2.9 points at N=1 relative to the action-only compressor and leaves the context-following and order-match rates near its level (39.7% and 55.4%, against 34.1% and 52.2%). Conversely, letting the gradient of JEDI pass through changes success by -2.3 points at N=1 and by +3.7 points at N=8. These controls separate prediction through the slots from an auxiliary loss on the observation encoder. DD measures the predictor's counterfactual sensitivity on training batches; CFR and order-match measure the deployed policy on held-out episodes.
Prediction versus label supervision. Table 10 withholds one type of process label (protocol in Appendix E). With order-only negatives, height-match is 70.5% for JEDI, compared with 63.9% for task-only JEDI and 52.2% for label contrast. With height-only negatives, order-match is 62.4%, compared with 57.4% for task-only JEDI and 51.8% for label contrast. With both labels, label contrast reaches 73.5% and 76.8% against 84.1% for JEDI:
| Objective | Labels used | Order | Height |
|---|---|---|---|
| Action-only (matched) | none | 52.2 | 55.1 |
| Label contrast | order only | 68.3 | 52.2 |
| Label contrast | height only | 51.8 | 75.4 |
| Label contrast | order + height | 73.5 | 76.8 |
| JEDI | task only | 57.4 | 63.9 |
| JEDI | order only | 76.1 | 70.5 |
| JEDI | height only | 62.4 | 77.8 |
| JEDI | order + height | 84.1 | 84.1 |
Table 10: Prediction versus label supervision. Order-match and height-match rates (%) on LIBERO-Order using the indicated labels for negatives (JEDI) or contrastive pairs (Label contrast). Off-diagonal entries evaluate variation omitted from those labels; positive support/query pairs remain process-matched. Best in bold.
prediction also transfers to process attributes omitted from the negative or contrastive labels.
Ablations. Table 11 isolates four design choices. Replacing V-JEPA 2.1 with DINOv2 (Oquab et al., 2024) tests the target representation; predicting the final frame instead of the next keyframe tests whether endpoint supervision retains execution detail. Using one slot per demonstration tests the compression bottleneck, and removing instruction dropout tests whether the policy relies on language rather than its demonstration context. Without instruction dropout, success stays close to the default (74.3% and 78.2%) but the context-following rate falls from 74.9% to 45.1%; a single slot per demonstration lowers all three metrics.
Cost. Table 12 reports the cost of the context. The one-time prefill is paid once per task. Our Con-
| Variant | SR | CFR | |
|---|---|---|---|
| N=1 | N=8 | ||
| JEDI (default) | 79.8 | 80.2 | 74.9 |
| DINOv2 target | 76.4 | 74.3 | 62.7 |
| Final-frame target | 68.2 | 76.4 | 65.2 |
| One slot per demonstration | 70.9 | 66.0 | 51.3 |
| No instruction dropout | 74.3 | 78.2 | 45.1 |
Table 11: Key ablations (%). Best per column in bold.
| Method | N | Prefill (ms) | Hz | Mem. (GB) |
|---|---|---|---|---|
| Raw context | 1 | 178 | 3 | 12 |
| Raw context | 2 | 425 | 2 | 13 |
| ContextFlow | 1 | 26 | 13 | 8 |
| JEDI | 1 | 28 | 13 | 8 |
| JEDI | 4 | 20 | 10 | 8 |
| JEDI | 8 | 44 | 10 | 10 |
| JEDI | 16 | 75 | 13 | 11 |
Initial bank construction (computed)
| Bank size M | Pairs | Predictor evaluations |
|---|---|---|
| 16 | 240 | 1,920 |
| 50 | 2,450 | 19,600 |
| 66 | 4,290 | 34,320 |
Measured bank construction (M = 50)
| Feature / target cache | Time (s) |
|---|---|
| Cached | 15 |
| Including image encoding | 28 |
Table 12: Inference cost on one A100. Prefill: one-time cost of encoding the support set; Hz: control frequency with cached slots. Bank workloads use 8 pseudo-query steps per demonstration, batched across pair/time inputs. The final block gives measured bank-construction times.
textFlow reimplementation with one demonstration and JEDI with sixteen both run at 13 Hz with cached context. For JEDI at N=16, prefill takes 75 ms and memory use is 11 GB. Initial bank construction evaluates directed pairs at 8 steps each and stores scalar errors. This work is shared by queries using the same bank and checkpoint; query-dependent ranking reweights the cached errors. Online commitment adds evaluations for each completed query stage (Appendix B). For M=50, bank construction takes 15 s on one A100 with SigLIP features and V-JEPA 2.1 targets cached, or 28 s including image encoding.
Distractor demonstrations. Predictive selection removes most distractors before the episode starts (§4.3); Table 13 reports the effect of demonstrations of other configurations entering the context alongside relevant ones. The success of JEDI drops by 4.1 points at (80.2% to 76.1%), and 72.4% of the attention mass of the action expert stays on relevant slots; the action-only compressor drops by 21.4 points (64.2% to 42.8%). Retrieval-1 from the mixed pool is a strong reference in this setting, since a retriever that finds a relevant demonstration removes the distractors entirely; its failures are cases in which the nearest initial frame belongs to another configuration of the same scene.
H Real-Robot Details
Hardware. We use a Seeed reBot Arm B601-RS dual-arm robotic system for coordinated bimanual manipulation in a shared workspace. External RGB-D cameras (Intel RealSense D435, colour stream only) and wrist cameras (e-con Systems See3CAM_24CUG) observe the workspace. Robot demonstrations are collected by bimanual leader-follower teleoperation using two Fashion-Star StarArm 102 leader arms, one paired with each follower arm. A host computer runs camera capture, the control loop and the safety checks for both arms; the policy runs on a GPU workstation on the local network, at a control frequency of about 10 Hz including the network round trip.
Tasks. Low-cost arms have limited repeatability and noticeable backlash, so tasks are chosen with centimetre-level tolerance; container openings are at least twice the size of the objects. We post-train on 10 tasks and evaluate on a disjoint set of 10 unseen tasks across three suites. R1 (unseen manipulation tasks) contains five tasks that do not occur in post-training, such as stacking cups and placing a paper roll on a holder. R2 (instruction–demonstration ambiguity) contains two tasks in which the instruction and the demonstration conflict on the goal or execution order. R3 (demonstration–demonstration ambiguity) has three tasks with competing demonstrated goals.
Task manifest. Post-training (P01–P10): P01 Place a marker in a tray; P02 Cap a marker; P03 Put a spoon in a bowl; P04 Place a plate on a rack; P05 Move a block to a tray; P06 Open an empty drawer; P07 Close an empty drawer; P08 Place a cup on a mat; P09 Move a basket between arms; P10 Place a lid on a box. R1: U01 Stack cups; U02 Paper roll on holder; U03 Cup and bowl to sink; U04 Fruit to basket; U05 Rubik's cube to drawer and close. R2: U06 Green-first instruction with red-first demonstration; U07 Basket target with tray demonstration. R3: U08 Green/red majority with red/beige minority; U09 Sink majority with rack
| Method | Distractors | |||
|---|---|---|---|---|
| 0 | 4 | 8 | 16 | |
| Action-only (matched) | 64.2 | 43.3 | 42.9 | 42.8 |
| JEDI | 80.2 | 79.0 | 78.1 | 76.1 |
| JEDI, no distractor mixing | 80.6 | 78.2 | 74.7 | 74.4 |
| Retrieval-1 (from the mixed pool) | 77.5 | 74.5 | 74.3 | 73.1 |
| Attention mass on relevant slots (%) | ||||
| Action-only (matched) | - | 72.7 | 66.2 | 66.0 |
| JEDI | - | 78.6 | 76.8 | 72.4 |
Table 13: Distractor demonstrations. Success (%) with relevant demonstrations and distractors, and attention on relevant slots. Retrieval-1 selects one demonstration from this pool.
minority; U10 Box majority with tray minority.
Data. For each of the 10 post-training tasks and 10 unseen test tasks, we collected eight teleoperated robot demonstrations and eight human-hand demonstrations, giving 160 robot and 160 human-hand demonstrations in total. The post-training split contains 80 demonstrations of each embodiment; the unseen split contains a separate pool of eight demonstrations of each embodiment per task, used only as test-time context. Both embodiments are recorded in the same workspace on layouts drawn from a grid with 5 cm jitter. Robot episodes record the camera streams at 30 Hz, proprioception, actions and gripper states for both arms, and metadata (task and layout identifiers); human-hand videos contain images but no robot proprioception or actions. Robot keyframes are labelled automatically from gripper events.
Post-training. The checkpoint trained in simulation is post-trained on the 10 training tasks for 3k steps (§3.7); unseen-task demonstrations are excluded from all weight updates. The keypoint token encoder, the predictor and the LoRA weights of the compressor are trained at learning rate , and the policy at the reduced learning rate . Hand keypoints are extracted offline with MediaPipe Hands (Zhang et al., 2020) and object keypoints with CoTracker3 (Karaev et al., 2024); both are cached. All keypoints use external-view image coordinates, normalized by image width and height to [0, 1]. Robot flange and fingertip positions from forward kinematics are projected with calibrated camera intrinsics and extrinsics; they correspond to the hand's wrist, thumb tip and index fingertip, with left/right hands mapped to left/right arms. Pinch aperture is normalized by hand scale for humans and maximum gripper opening for robots. Object tracks use the same procedure for both embodi- ments and include visibility flags.
Protocol. Each method–task condition uses five trials, giving 25 trials in R1, 10 in R2 and 15 in R3. Retrieval-1 and the matched action-only baseline use one human-hand demonstration; JEDI uses either one or eight human-hand demonstrations. The robot-context condition uses all eight robot demonstrations, and the mixed-context condition uses four human-hand and four robot demonstrations. Support demonstrations and evaluation rollouts are separate episodes; the policy receives no weight updates during evaluation. Initial states are paired across methods using marked layouts, and the order of methods is randomized per layout. Success is judged from video by a person who does not know which method produced the rollout, with a rubric fixed in advance for each task. In R2, the instruction defines the target: success requires completing the instructed goal and following any explicitly specified execution order despite the conflicting demonstration. In R3, the target is the majority goal in the task's demonstration pool, shared across context conditions. Table 5 reports successes divided by trials for each suite. The predictive-selection comparison in Table 2 uses simulation banks with proprioception; Table 5 evaluates the specified human-hand, robot and mixed demonstration contexts.
Matched context and post-training controls. Four unseen conditions are paired across methods: cup stacking, paper-roll placement, the green-first/red-first instruction conflict and the green/red versus red/beige demonstration conflict. Each method uses ten initial states per condition; JEDI and action-only receive the same eight human-hand demonstrations, while instruction-only masks the demonstration slots. The post-training ablations remove keypoint tokens or predictive losses with the backbone, data and 3k-step schedule fixed. R1 has two conditions with 20 trials in total, and R2 and R3 have one condition each (10 trials).
| Method | R1 subset | R2 subset | R3 subset |
|---|---|---|---|
| JEDI, N=8 | 15/20 | 8/10 | 5/10 |
| Action-only, N=8 | 11/20 | 5/10 | 2/10 |
| Instruction-only | 10/20 | 4/10 | 4/10 |
| No keypoint tokens | 11/20 | 5/10 | 5/10 |
| No predictive loss | 9/20 | 6/10 | 3/10 |
Table 14: Matched real-robot context and post-training controls (successes/trials; 10 per condition). Subsets use the R1/R2/R3 predicates of Table 5.
Safety. The arms operate within software workspace, velocity and torque limits, an operator holds an emergency stop during every rollout, and a rollout is aborted when a limit is reached.
I Additional Evaluation
Context size and input controls. The matched LIBERO-Object comparison uses two tasks from the four-task held-out split and 20 paired trials per condition (two tasks, five support draws and two query layouts). JEDI, action-only and ContextFlow receive identical instructions and nested support sets at (Figure 4). The no-instruction condition removes the text at ; instruction-only () masks the demonstration slots while retaining the same text and checkpoint. Query layouts and success predicates are shared across these controls.
Uncertainty and support selection. At , JEDI minus ContextFlow is 7.1/7.2/6.5/8.5 points on Spatial/Object/Goal/RLBench (Table 1). The corresponding paired 95% intervals are [2.5, 11.7], [0.7, 13.7], [0.9, 12.1], [3.2, 13.8], respectively. Intervals resample training seeds and paired task/support/layout indices, conditional on the evaluated tasks. Selection with the three checkpoints is reported in Table 2.
Language semantics. Two held-out LIBERO-Order pairs are each tested in both orders, using a canonical instruction and three equivalent forms with after, before and not until. The 16 instructions each use five query layouts with aligned or conflicting eight-demonstration context. Success requires endpoint completion and the instructed order; in conflicts the instruction defines the target. Canonical and paraphrase columns use aligned context (20 and 60 trials); the conflict column pools

Figure 4: Matched context-size comparison on LIBERO-Object. Identical instructions, two held-out tasks and 20 paired trials per point.
| Method | No instruction | Instruction only |
|---|---|---|
| JEDI | 65.0 | 25.0 |
| Action-only | 60.0 | - |
| ContextFlow | 35.0 | - |
Table 15: Input controls on LIBERO-Object (success, %; 20 paired trials per cell). Instruction-only retains the JEDI policy with its demonstration context masked. The order-instruction controls are in Table 4.
all forms (80 trials). The instruction-only reference uses the same instruction/layout cases with its context masked. Results are in Table 4 (§4.6).