Back to Roadmap
Phase 2.24 days

VLM-Based Annotation Pipeline

Generate structured language annotations for all 10K trajectory episodes produced in Phase 2.1 — task descriptions, step narrations, and reasoning QA pairs — using a self-hosted VLM, validated against simulation ground truth, and formatted for direct consumption by Phase 2.3's interleaved data construction pipeline.

Primary Goal

Turn the 10K Phase 2.1 trajectories into sim-grounded language annotations that Phase 2.3 can consume directly.

Fixed Upstream Decisions (from Phase 2.1)

Dataset

10K HDF5 episodes plus manifests and dataset stats.

Per-episode content

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

Labels

8 phase labels plus grasp, outcome, failure, and recovery signals stored in HDF5.

Metadata

Seed, level, brick types, goal, spawn poses, version, and timestamps.

Composition

7K success, 2K failure, and 1K recovery episodes.

Key Phase 2.2 Stance: Self-Hosted VLM

Use a self-hosted Qwen model with simulation metadata as the source of truth, then rewrite those facts into natural language that Phase 2.3 can use directly.

  • Qwen3.5-9B runs on A100 for production; Qwen3.5-4B is enough for local iteration.
  • Simulation metadata provides the facts; the VLM turns them into fluent text instead of guessing from pixels alone.
  • Annotations are emitted in a structure that plugs directly into the Phase 2.3 pipeline.

VLM-Based Annotation Pipeline Tasks

Five critical components from the Phase 2.2 execution plan

2.2.0

Annotation Schema Specification

Define the complete annotation schema — JSON structure, field names, value types, and semantic contracts — for all language annotations that Phase 2.2 will generate. This schema is the single source of truth that the annotation pipeline writes to and Phase 2.3 reads from.

Why This Matters

Getting the schema right before generating annotations for 10K episodes prevents costly rework. The schema must be rich enough for EO-1 training, aligned with EO-Data1.5M's three categories (physical, reasoning, spatial), and structured so Phase 2.3 can consume it without ambiguity.

Checklist
  • Define annotation dataclasses in data/annotations/schema.py
  • Write JSON Schema file for format enforcement
  • Enumerate all type and subtype values as string constants
  • Write one synthetic example annotation file by hand, validate against schema
Milestone

Schema is defined, documented, and validated. A synthetic example annotation file passes JSON Schema validation. Phase 2.3 downstream mapping is explicitly documented. ---

2.2.1

VLM Annotation Infrastructure

Set up Qwen3.5-9B on a single A100 80GB, implement the template + VLM hybrid pipeline, build prompt templates for each annotation category, and implement the per-episode annotation function.

Why This Matters

This is the infrastructure all annotation generation depends on. The VLM must be correctly loaded, the hybrid pipeline must reliably combine sim ground truth with VLM naturalization, and the system must process 10K episodes within the 4-day timeline.

Checklist
  • Add transformers>=4.49.0, accelerate>=0.30.0 to pyproject.toml; optionally vllm>=0.7.0 for continuous-batching serving
  • AnnotationModel class in data/annotations/model.py: loads VLM, wraps inference with structured JSON output parsing, retry logic
  • Prompt templates in configs/annotation/prompts.yaml: one section per annotation type, with system prompt, ground-truth template, and generation instruction
  • KeyframeSelector in data/annotations/keyframes.py: extracts keyframe indices and images from HDF5
Milestone

Qwen3.5-9B loads on single A100, generates all 6 annotation types for one episode, all outputs pass schema validation. Measured throughput ≤ 15 seconds/episode. ---

2.2.2

Task Description & Step Narration Generation

Generate two annotation categories across all 10K episodes: (1) one episode-level task description summarizing the full manipulation sequence, and (2) per-phase step narrations describing each waypoint phase in the pick-and-place sequence.

Why This Matters

Task descriptions provide the high-level instruction that conditions the VLA policy ("Pick up the red 2×4 brick and place it on the baseplate at row 3, column 2"). Step narrations provide fine-grained temporal segmentation that Phase 2.3 will use to construct interleaved vision-text-action sequences with language aligned to specific timestep ranges.

Checklist
  • generate_task_descriptions to writes task_description records to JSONL
  • generate_step_narrations to writes step_narration records
  • Factual consistency spot-check: 50 random episodes: verify brick types, positions, outcomes match sim metadata
  • Coverage check: every episode has exactly 1 task_description and ≥ 8 step_narration records
Milestone

All 10K episodes have task descriptions and step narrations. ≥ 95% pass schema validation. 50-episode spot-check confirms factual consistency with sim metadata. ---

2.2.3

Reasoning QA Generation

Generate three categories of QA pairs for all 10K episodes — temporal reasoning, spatial reasoning, and physical common sense — following EO-Data1.5M's annotation categories. These are the core annotations that give the VLA model reasoning capability beyond pure action cloning.

Why This Matters

EO-Data1.5M's key insight is that interleaving reasoning QA with robot control data teaches the model to plan, verify, and ground actions in spatial understanding. Temporal QA teaches task planning and sequencing. Spatial QA teaches geometric reasoning from camera views. Physical QA teaches intuition about forces, contact, and stability. Without these, the model learns only to mimic actions without understanding why.

Checklist
  • QA templates in configs/annotation/qa_templates.yaml: one section per subtype with question patterns and answer templates
  • Physical QA pool in configs/annotation/physical_qa_pool.yaml: 15 pre-written Q&A pairs with selection criteria
  • generate_temporal_qa to temporal_qa records
  • generate_spatial_qa to spatial_qa records
Milestone

All 10K episodes have ≥ 10 QA pairs across all three categories. ≥ 95% pass schema validation. Factual consistency check passes for ≥ 98% of verifiable claims. ---

2.2.4

Annotation Quality Validation

Run a comprehensive quality assurance pipeline on all ~300K annotations: automated format checks, factual consistency validation against sim ground truth, diversity analysis, and rule-based cleaning with LLM rewriting for flagged entries. This follows EO-Data1.5M's documented "rule-based cleaning and LLM-based rewriting for format uniformity" step.

Why This Matters

One corrupted or hallucinated annotation propagated through Phase 2.3 into training data silently degrades the policy. Automated QA against sim ground truth is a unique advantage of synthetic data — we have perfect labels to validate against. This step ensures the annotation dataset is correct, consistent, and useful before downstream consumption.

Checklist
  • validate_annotations runs Level 1–3 checks on all JSONL files
  • clean_annotations applies rule-based normalization
  • rewrite_flagged re-generates low-quality annotations via VLM
  • Quality report generation: automated, produces quality_report.json + annotation_stats.json
Milestone

100% of annotations pass Level 1 format validation. ≥ 98% pass Level 2 factual consistency. Vocabulary diversity ≥ 0.4. Quality report generated with full metrics. Zero flagged episodes remaining. ---

Key Deliverables

Expected outputs by end of Phase 2.2:

  • Annotation schema — frozen JSONL schema with 6 annotation types, JSON Schema validation, documented downstream mapping
  • VLM annotation infrastructure — self-hosted Qwen3.5-9B on A100, template + VLM hybrid pipeline, prompt templates in Hydra configs
  • ~300K language annotations — task descriptions, step narrations, temporal/spatial/physical QA, keyframe captions for all 10K episodes
  • 4-level quality validation pipeline — format, factual consistency (vs sim ground truth), diversity, cleaning + rewriting
  • Quality report — per-level pass rates, coverage metrics, diversity analysis, zero unresolved flags

Definition of Done

Schema Locked

The annotation schema, enums, and JSON validation rules are frozen.

VLM Pipeline Running

The self-hosted Qwen pipeline produces all required annotation types reliably.

Full Annotation Coverage

All 10K episodes include task descriptions, step narrations, and reasoning QA.

Quality Verified

Annotations pass format checks and factual validation against sim ground truth.

Estimated Duration

4 days

Back to Roadmap