Back to Roadmap
Phase 3.25 days

Action Head Implementation

Implement the EO-1-style action head on top of the Phase 3.1 backbone so the model can generate continuous 17-D robot actions and Phase 3.3 can integrate full VLA training.

Primary Goal

Phase 3.1 can process vision and language, but it still cannot produce robot actions. Phase 3.2 adds that action-generation path.

Fixed Upstream Decisions

Action space

17-D continuous control: spine, both arms, and two grippers.

Robot state

52-D normalized proprioception covering joints, velocities, grippers, and end-effector pose and velocity.

Control rate

20 Hz control, so a 16-step chunk spans 0.8 seconds.

VLM backbone

Phase 3.1 already provides the Qwen3.5-4B backbone, hidden states, processor, and freeze control.

Training data

Phase 2.3 action references resolve to continuous 17-D trajectories from HDF5 episodes.

Target architecture (EO-1)

Transfusion-style decoder: text uses AR loss, action positions use conditional flow matching.

Key Stance: EO-1 Reuse First

Reuse EO-1 wherever it already solves the problem, and only add new modules where the action path is still missing.

  • Use EO-1 action-head, projector, and decoding code whenever it is already a clean fit.
  • Keep the backbone as the denoiser by injecting noisy action tokens into the shared multimodal sequence.
  • Use 16-step chunks by default: 0.8 seconds at 20 Hz with comfortable context headroom.
  • Keep this phase focused on model components and synthetic-tensor validation; training-loop integration stays in Phase 3.3.

Action Head Implementation Tasks

Six core components to define, build, and validate for the Phase 3.2 action path.

3.2.0

Action Chunk Contract & Sequence Integration

Define the frozen action chunk format, specify how action chunks tokenize into the VLM sequence alongside vision, language, and state tokens, and establish the tensor interface contracts between all Phase 3.2 components. This contract governs how Phase 2.3 action references are consumed at training time and how action predictions are produced at inference time.

Why This Matters

This locks the shapes, token layout, and chunking rules before implementation starts. Without that contract, every projector, loss, and dataloader interface becomes easier to break.

Checklist
  • Inspect EO-1 codebase for action chunk definitions, sequence layout conventions, and token type routing
  • Define frozen dataclasses: ActionChunk, ChunkMask, TokenTypeMask, SequenceLayout
  • Write configs/model/action_head.yaml with all parameters
  • Verify context budget against measured Phase 3.1 vision token count: confirm single-placement and Level 3 multi-placement episodes fit in 8K
Milestone

This step is complete when chunk size, token layout, masks, and interface shapes are fixed and validated on a synthetic example.

3.2.1

Flow Matching Action Head

Inspect the EO-1 codebase for its flow matching module. If EO-1 provides conditional flow matching (CFM) primitives — noise interpolation, velocity field computation, training loss, ODE-based inference — reuse and adapt them for our 17-D action space and chunk size 16. Only implement a new FlowMatchingModule where the inspected EO-1 code does not provide a realistic integration path.

Why This Matters

This is the mechanism that turns backbone context into continuous actions. It gives the model a stable way to generate precise 17-D motion instead of regressing an averaged trajectory.

Checklist
  • Inspect EO-1 codebase for flow matching / CFM module, noise schedule, velocity parameterization, loss computation, and ODE solver. Document what exists and what can be reused
  • Reuse/adapt EO-1's flow matching code if available. Only implement FlowMatchingModule from scratch if EO-1 does not provide equivalent functionality
  • Implement or verify: sample_timestep, interpolate, target_velocity, loss, denoise
  • Unit test: interpolate == noise, interpolate == x_data
Milestone

This step is complete when the flow-matching module passes its math, masking, solver, and stability tests with finite outputs.

3.2.2

Robot State Projector

Inspect the EO-1 codebase for a robot state projector or proprioceptive conditioning module. If EO-1 provides one, reuse and adapt it for our 52-D state vector. Otherwise, implement RobotStateProjector — an MLP that projects the normalized 52-D robot state into a single hidden-dimension token for injection into the VLM sequence as proprioceptive conditioning.

Why This Matters

This gives the backbone direct access to robot state instead of forcing it to infer everything from images. That conditioning matters for precise, contact-rich LEGO assembly.

Checklist
  • Inspect EO-1 codebase for state projector or proprioceptive conditioning module. Document what exists
  • Reuse/adapt EO-1's state projector if available. Only implement RobotStateProjector from scratch if EO-1 has no equivalent
  • Verify output shape: where H = backbone.hidden_size
  • Unit test: forward pass with random 52-D input produces correct output shape, no NaN
Milestone

This step is complete when the 52-D state maps cleanly to one hidden token and the projector is shape-correct, trainable, and numerically stable.

3.2.3

Noisy Action Projector & Action Output Head

Inspect the EO-1 codebase for its action embedding and de-embedding modules. If EO-1 provides a noisy action projector (input side: noisy actions + timestep → hidden tokens) and an action output head (output side: hidden states → velocity predictions), reuse and adapt them for our 17-D action space and chunk size 16. Otherwise, implement NoisyActionProjector and ActionOutputHead as complementary MLP modules.

Why This Matters

These modules form the action interface around the backbone: one maps noisy actions into hidden tokens, and the other maps hidden states back to 17-D velocity predictions.

Checklist
  • Inspect EO-1 codebase for action embedding/de-embedding modules and timestep embedding. Document what exists
  • Reuse/adapt EO-1's modules if available. Only implement from scratch where necessary
  • Implement or verify NoisyActionProjector: input + to output
  • Implement or verify ActionOutputHead: input to output
Milestone

This step is complete when noisy action tokens, timestep embeddings, and velocity predictions all pass shape, gradient, and stability checks.

3.2.4

VLA Model Assembly

Inspect the EO-1 codebase for its top-level VLA model class — the module that wires the backbone, state projector, action projector, output head, and flow matching module into a single trainable model with Transfusion-style dual loss. If EO-1 provides this assembly, reuse and adapt it. Otherwise, implement VLAModel(nn.Module) that composes the Phase 3.1 backbone with all Phase 3.2 components, supporting both training (dual loss forward pass) and inference (multi-step denoising action prediction).

Why This Matters

This is where the separate modules become one working model. If sequence assembly or loss routing is wrong here, training will fail quietly rather than obviously.

Checklist
  • Inspect EO-1 codebase for the top-level VLA model class, sequence assembly logic, dual loss routing, and inference loop. Document what exists
  • Reuse/adapt EO-1's model class if available. Only implement from scratch where necessary
  • CRITICAL: Resolve multimodal injection strategy first: Test backbone with inputs_embeds + pixel_values to determine Scenario A/B/C. Document which scenario applies. This determines the assemble_sequence and forward implementation
  • Verify Phase 3.1 backbone supports inputs_embeds parameter. If not, add minimal extension
Milestone

This step is complete when the full model runs end to end on synthetic batches, returns finite text and action losses, predicts action chunks, and stays within the measured VRAM budget.

3.2.5

End-to-End Validation & Profiling

Create a comprehensive test suite and standalone validation script that verify all Phase 3.2 components individually and integrated, profile the action head's VRAM and compute overhead on target hardware, and confirm that the complete VLA model is ready for Phase 3.3 training integration.

Why This Matters

This confirms the full action path works as a system and that memory use is still safe before Phase 3.3 training begins.

Checklist
  • Add action_head marker to tests/conftest.py with auto-skip logic
  • Write tests in tests/test_action_head.py covering all component classes + integration
  • Create mock backbone for CPU-only tests
  • Create scripts/validate_action_head.py with 10 checks and artifact output
Milestone

This step is complete when the validation suite passes, artifacts are written, and the measured action-head overhead stays within the Phase 3.1 budget.

Key Deliverables

Expected outputs by end of Phase 3.2:

  • Flow matching module with conditional flow matching loss and ODE denoising.
  • Projection stack: robot state projector, noisy action projector, and action output head.
  • VLA model class combining the Phase 3.1 backbone with the full action head.
  • Hydra configs for the action head and full VLA model.
  • Tests, validation, and memory profiling showing the action head works within the Phase 3.1 budget.

Definition of Done

Core Modules Ready

Flow matching, state projection, action projection, and the output head are implemented and individually tested.

Model Assembled

The VLA model composes the Phase 3.1 backbone with the full action head correctly.

Training Forward Works

Synthetic training batches return finite text and action losses without numerical issues.

Inference Works

The model produces finite `(B, 16, 17)` denoised action chunks through ODE integration.

Gradient Routing Verified

Gradients update the action head while the frozen backbone remains unchanged.

Validation Complete

Configs parse, validation passes, and existing tests continue to run without regression.

Estimated Duration

5 days

Back to Roadmap