VLA Model Architecture for Embodied AI: Typical Design and Implementation

    This article explains the general architecture and implementation of Vision-Language-Action (VLA) models for embodied AI. It covers the core modules, a typical configuration class, multi-view input and state specifications, action horizon and action tokenization, parameter-efficient fine-tuning with LoRA, and cloud infrastructure for training and deployment.

    1. Core Components of VLA Models

    A VLA model is an end-to-end system that combines a pretrained vision-language model (VLM) with a robot control policy. Its architecture typically includes the following core modules:

    1. Vision encoder: Processes RGB image inputs from multiple viewpoints and extracts spatial features.
    2. Language understanding module: Tokenizes human instructions and extracts semantic features.
    3. Cross-modal fusion layer: Aligns and fuses visual and language features into a unified representation of the current task state.
    4. Action decoding head: Maps the fused high-dimensional features to the robot’s low-level action space. It typically outputs a sequence of continuous actions to keep execution smooth.

    2. Configuration Class in Detail

    In mainstream open-source VLA implementations, model lifecycle management usually starts with an immutable data class configuration. The following shows a generic code structure for a typical VLA configuration class:

    1. import dataclasses
    2. from typing import Any
    3. @dataclasses.dataclass(frozen=True)
    4. class VLAConfig(BaseModelConfig):
    5. # Base numerical precision. bfloat16 offers a good balance between memory usage and computational accuracy.
    6. dtype: str = "bfloat16"
    7. # Variant of the vision-language backbone network
    8. vl_backbone_variant: str = "vlm_2b"
    9. # Action space dimension and prediction horizon of the robot
    10. action_dim: int = 32
    11. action_horizon: int = 32
    12. # Maximum token length for language instructions
    13. max_token_len: int = 250
    14. # Action serialization tokenizer configuration
    15. action_tokenizer: Any | None = None
    16. action_tokenizer_kwargs: dict[str, Any] | None = None
    17. @property
    18. def model_type(self) -> ModelType:
    19. return ModelType.VLA_BASE
    20. @override
    21. def create(self, rng) -> "VLAModel":
    22. return VLAModel(self, rngs=nnx.Rngs(rng))

    2.1 Basic Parameters and Action Space Definition

    action_dim defines the state dimension of the robot’s end effector or joints, such as end-effector position, orientation, and gripper opening and closing. action_horizon is a distinctive feature of VLA models. Instead of predicting only the next action, the model predicts a sequence of future actions over a period of time, for example 32 steps. This multi-step prediction reduces jitter in action generation and improves the temporal smoothness of the policy.

    2.2 Backbone Network and Serialization Strategy

    vl_backbone_variant specifies the scale of the underlying vision-language foundation model, such as the 2B-parameter level. In advanced VLA architectures, mechanisms such as FAST are often used to discretize continuous action vectors into tokens. This turns action prediction into a next-token prediction task, similar to language modeling, which makes effective use of the generation capabilities of large language models.

    3. Input and Output Specification Design

    To enable efficient end-to-end training, the data specifications for the observation space and action space must be strictly defined. The following inputs_spec example shows the design logic:

    1. @override
    2. def inputs_spec(self, *, batch_size: int = 1) -> tuple[Observation, Actions]:
    3. # Image input spec: supports multi-view RGB inputs
    4. image_spec = jax.ShapeDtypeStruct([batch_size, *IMAGE_RESOLUTION, 3], jnp.float32)
    5. image_mask_spec = jax.ShapeDtypeStruct([batch_size], jnp.bool_)
    6. with disable_typechecking():
    7. observation_spec = Observation(
    8. images={
    9. "base_0_rgb": image_spec,
    10. "base_1_rgb": image_spec,
    11. "wrist_0_rgb": image_spec,
    12. },
    13. image_masks={
    14. "base_0_rgb": image_mask_spec,
    15. "base_1_rgb": image_mask_spec,
    16. "wrist_0_rgb": image_mask_spec,
    17. },
    18. state=jax.ShapeDtypeStruct([batch_size, self.action_dim], jnp.float32),
    19. tokenized_prompt=jax.ShapeDtypeStruct([batch_size, self.max_token_len], jnp.int32),
    20. tokenized_prompt_mask=jax.ShapeDtypeStruct([batch_size, self.max_token_len], bool),
    21. token_ar_mask=jax.ShapeDtypeStruct([batch_size, self.max_token_len], jnp.int32),
    22. token_loss_mask=jax.ShapeDtypeStruct([batch_size, self.max_token_len], jnp.bool_),
    23. )
    24. action_spec = jax.ShapeDtypeStruct([batch_size, self.action_horizon, self.action_dim], jnp.float32)
    25. return observation_spec, action_spec

    3.1 Multi-View Visual Perception

    The images dictionary supports at least three viewpoints: base_0_rgb, base_1_rgb, and wrist_0_rgb. The first two typically come from external cameras mounted on the robot base at different angles and capture global scene information. The third is a wrist camera that provides a local view during fine manipulation. The image_masks field handles different hardware configurations or missing data, which improves robustness.

    3.2 Fusion of Robot State and Language Instructions

    The state field records the robot’s current proprioceptive information, such as joint angles, which is essential for closed-loop control. The language instruction is converted into tokenized_prompt, along with three masks: tokenized_prompt_mask marks padding to ignore, token_ar_mask is the autoregressive mask, and token_loss_mask marks the valid tokens used in loss computation. This masking allows the model to handle variable-length language instructions accurately.

    4. Parameter-Efficient Fine-Tuning and Freezing Strategy

    VLA models typically rely on large pretrained VLM backbones. Full fine-tuning of all parameters is computationally expensive and can easily cause catastrophic forgetting. For this reason, the industry commonly uses parameter-efficient fine-tuning (PEFT) techniques such as LoRA. In code, this appears in the freeze filter:

    1. def get_freeze_filter(self) -> nnx.filterlib.Filter:
    2. """Return the parameter filter for layers to freeze, based on the model configuration"""
    3. if "lora" in self.vl_backbone_variant:
    4. # Freeze all LLM layers, excluding the LoRA adapter layers
    5. return nnx.All(
    6. nnx_utils.PathRegex(".*llm.*"),
    7. nnx.Not(nnx_utils.PathRegex(".*lora.*"))
    8. )
    9. # Default freezing strategy or other logic...

    This logic shows that when the configuration contains the keyword “lora,” the system uses a regular expression to match all weights that belong to the language model (LLM) and freezes them. The LoRA adapter weights remain trainable. This design lets developers fine-tune VLA models with tens of billions of parameters on consumer-grade or mid-scale compute clusters.

    5. Cloud Compute and Engineering Deployment

    Training and deploying VLA models tests both algorithm design and the underlying infrastructure. In practice, teams often rely on general-purpose cloud-native infrastructure for these large-scale workloads. For example, they can use elastic container platforms to schedule heterogeneous compute resources such as high-performance GPU clusters. They can also use distributed object storage to manage large volumes of multi-view robot demonstration videos and trajectory data. Cloud logging and monitoring services can track loss convergence during multi-step action prediction in real time. By combining VLA architectures with mature cloud computing capabilities, developers can focus more on policy optimization and data iteration, which speeds up the deployment of embodied AI applications.

    In summary, typical VLA architectures combine a carefully designed configuration, standardized multimodal input specifications, and efficient fine-tuning strategies to close the loop from perception to action. Understanding these low-level architectural details helps developers build customized embodied AI robot systems.