Back to Roadmap
Phase 2.35 days

Interleaved Data Construction

Build EO-1-style training subsets from Phase 2.1 trajectories and Phase 2.2 annotations so the Phase 3 dataloader can consume them directly.

Primary Goal

Turn trajectories and language annotations into deterministic interleaved training sequences with explicit image, text, and action alignment.

Fixed Upstream Decisions (from Phase 2.1 + 2.2)

Trajectory dataset

10K HDF5 episodes with 80/10/10 manifests and dataset statistics.

Per-episode content

4-view RGB, depth, and segmentation plus 52-D state and 17-D actions at 20 Hz.

Annotations

About 300K episode-level JSONL annotations across 6 types from Phase 2.2.

Temporal anchors

Step ranges and evidence steps are already defined, so text can be aligned directly to frames and actions.

Camera anchors

Spatial QA and keyframe captions already specify which camera view each sequence should load.

Schema

Phase 2.2 annotations already validate against schema.json and passed upstream quality checks.

Key Phase 2.3 Stance: Reference-Based Sequences

Keep text inline, keep images and actions as references into the existing HDF5 episodes, and let the Phase 3 dataloader resolve them at load time.

  • Each JSONL record stores text directly and points to episode seeds, step ranges, and cameras for upstream data.
  • Interleaved VLA sequences sample one overhead view plus the active wrist view at each waypoint boundary.
  • Action discretization stays in Phase 3; Phase 2.3 only defines the continuous ranges each segment should load.
  • Construction is fully deterministic from episode seed, so the same upstream data always yields the same sequences.

Interleaved Data Construction Tasks

Six critical components from the Phase 2.3 execution plan

2.3.0

Sequence Schema & Conventions

Define the output format, image selection strategy, and data layout for all four training data subsets. This schema is the contract between Phase 2.3 (data construction) and Phase 3 (training dataloader).

Why This Matters

The training dataloader must know exactly how to interpret each JSONL record — which fields contain text, which reference HDF5 data, and how to assemble them into model input. Defining this schema upfront prevents costly rework when implementing the four subset builders (2.3.1–2.3.4) and ensures the training pipeline can be developed in parallel.

Checklist
  • Define frozen dataclasses in data/sequences/schema.py: ImageRef, ActionRef, StateRef, VLASegment, InterleavedVLASequence, TemporalQASequence, SpatialQASequence, FreeChatSequence
  • Write JSON Schema file covering all 4 types
  • Write one synthetic example per type by hand, validate against schema
  • Create configs/data/sequences.yaml with all configurable parameters
Milestone

Schema is defined, documented, and validated with JSON Schema. One hand-written example per sequence type passes validation. Config file exists with all parameters. Dataloader contract is documented. ---

2.3.1

Interleaved VLA Sequence Construction

Construct the core VLA training data: interleaved vision-text-action sequences where each episode is represented as a temporally ordered sequence of observation images, step narrations, and action references — all aligned by the step_range anchors from Phase 2.2 annotations.

Why This Matters

This is the primary data that teaches the VLA model to execute manipulation tasks. EO-1's key design is co-training on interleaved sequences where language tokens and action tokens share the same context window. The model learns to read a task instruction, observe the scene, generate (or consume) a natural language plan for the current phase, and then produce the corresponding actions. Without this interleaved structure, the model cannot learn the vision-language-action reasoning loop.

Checklist
  • build_interleaved_vla processes all episodes
  • Determinism: same inputs to identical JSONL output
  • Coverage: every episode has exactly 1 interleaved VLA sequence
  • Cross-reference validation: every step in observation refs exists in the HDF5 file's image array range; every step_range is within bounds
Milestone

All 10K episodes produce valid interleaved VLA sequences. Every sequence passes JSON Schema validation. Cross-reference checks confirm all image/action/state references resolve to valid HDF5 data. Phase ordering is correct for 100% of sequences. ---

2.3.2

Temporal Reasoning Subset

Transform all temporal_qa annotations into training sequences for temporal reasoning — pairing each question-answer pair with episode context images at the annotated evidence_steps, producing a visual QA format that teaches the model to plan, sequence, verify, and predict outcomes of manipulation tasks.

Why This Matters

Temporal reasoning is what separates a reactive action-cloner from a planning agent. These sequences teach the model to reason about task ordering ("what step comes next?"), verify execution state ("has the robot successfully grasped the brick?"), and predict outcomes ("will this approach succeed?"). EO-Data1.5M dedicates a significant fraction of training data to temporal QA for exactly this reason.

Checklist
  • build_temporal_qa processes all temporal_qa annotations
  • Each temporal_qa annotation produces exactly 1 temporal reasoning sequence
  • Image refs derived from evidence_steps with overhead camera
  • Cross-reference: all evidence_steps values within episode length bounds
Milestone

40K temporal reasoning sequences produced, all passing schema validation. Cross-reference checks confirm all image references are within bounds. All 4 subtypes are represented. ---

2.3.3

Spatial Reasoning Subset

Transform all spatial_qa annotations into training sequences for spatial reasoning — pairing each question-answer pair with the specific camera view and keyframe specified in the annotation, producing visual QA that teaches the model to locate objects, predict trajectories, plan grasps, and reason across viewpoints.

Why This Matters

Spatial reasoning grounds the model's language understanding in the physical scene. Without it, the model cannot answer "where is the brick?" or "which arm should pick this up?" — capabilities essential for real-world deployment where task instructions reference spatial concepts. EO-Data1.5M's spatial QA subset specifically targets this capability gap.

Checklist
  • build_spatial_qa processes all spatial_qa annotations
  • Each spatial_qa annotation produces exactly 1 spatial reasoning sequence
  • Primary image ref from camera + keyframe_step; optional secondary per config
  • Cross-reference: keyframe_step within episode length, camera is one of the 4 frozen view names
Milestone

40K spatial reasoning sequences produced, all passing schema validation. Cross-reference checks confirm all image references are valid. All 4 subtypes are represented. ---

2.3.4

Free Chatting Subset

Compose all QA annotations (temporal, spatial, physical) from each episode into multi-turn conversations with scene images, producing a conversational VLM training format that maintains the model's ability to discuss robot scenes and manipulation in free-form dialogue.

Why This Matters

VLA co-training risks degrading the base VLM's conversational ability — a phenomenon called "catastrophic forgetting." The free chatting subset counteracts this by providing conversation-format training data within the robot manipulation domain. This teaches the model to answer open-ended questions about what it sees and does, maintaining the general reasoning capabilities that make VLMs useful beyond pure action prediction.

Checklist
  • build_free_chat processes all episodes
  • Deterministic conversation composition: same episode seed to identical conversations
  • Turn variety: no two conversations from the same episode have identical turn sequences
  • QA coverage: every non-duplicate QA annotation is used in at least one conversation
Milestone

20K–30K free chat sequences produced, all passing schema validation. Every conversation has 3–5 turns with strict role alternation. Scene image references are valid. QA annotations are consumed without waste. ---

2.3.5

Dataset Assembly & Validation

Combine all four subsets into a unified training dataset with cross-reference validation, compute comprehensive statistics, produce final manifests, and generate a summary report confirming the dataset is ready for Phase 3 training.

Why This Matters

This is the quality gate before training begins. A single malformed reference, missing image, or split contamination propagated into training will waste GPU-hours and silently degrade policy quality. Comprehensive validation against the upstream HDF5 and annotation data ensures every training sequence can actually be loaded.

Checklist
  • validate_sequences runs Level 1–4 checks
  • compute_stats produces stats.json
  • generate_manifest produces manifest.json with per-subset paths and counts
  • Level 1: 100% pass rate
Milestone

100% of sequences pass schema validation (Level 1). 100% of cross-references resolve to valid HDF5 data (Level 2). Splits are consistent across all 4 subsets (Level 3). Statistical counts are within expected ranges (Level 4). stats.json and manifest.json exist. Validation script exits cleanly. ---

Key Deliverables

Expected outputs by end of Phase 2.3:

  • Sequence schema — frozen JSON Schema for 4 sequence types, with dataclass definitions and dataloader contract
  • ~10K interleaved VLA sequences — core training data with phase-aligned vision-text-action interleaving, covering success + failure + recovery episodes
  • ~40K temporal reasoning sequences — temporal QA grounded in episode evidence frames, covering planning, sequencing, verification, and outcome prediction
  • ~40K spatial reasoning sequences — spatial QA grounded in specific camera views, covering object referencing, trajectory prediction, manipulation planning, and multi-view reasoning
  • ~20K–30K free chatting sequences — multi-turn conversational format mixing all QA types, preserving VLM conversation capability
  • Cross-reference validated dataset — every image/action/state reference verified against upstream HDF5 data
  • Dataset statistics and manifest — sample counts, token estimates, image distributions, split consistency report

Definition of Done

Schema Frozen

All 4 sequence types are defined, frozen, and validated with JSON Schema.

All Subsets Built

Interleaved, temporal, spatial, and free-chat subsets are generated at the expected scale.

References Verified

Every image, action, and state reference resolves cleanly against the upstream HDF5 data.

Training Ready

Splits are consistent, manifest and stats files exist, and the Phase 3 dataloader can consume every sequence type.

Estimated Duration

5 days

Back to Roadmap