Vision-Language-Action (VLA) Models for Embodied AI: Architecture Principles and Engineering Practices

    This article explains how Vision-Language-Action (VLA) models support embodied AI by unifying perception, language understanding, and action generation. It covers three common VLA technical routes, the typical vision-language-action architecture, discrete action tokenization versus continuous action modeling, configuration-class design, layered freezing, LoRA, loss masks, and practical deployment considerations for training and inference.

    1. VLA Models: The Core Technical Paradigm for Embodied AI

    Vision-Language-Action (VLA) models enable robots to “see the scene, understand instructions, and generate actions” through an end-to-end technical paradigm. They merge perception, language understanding, and control decision-making, which were traditionally handled by separate modules in robotics pipelines, into a unified model. The input is visual observation together with natural-language instructions, and the output is an action sequence that the robot can execute.

    Traditional pipelines usually separate visual perception, task planning, and motion control into independent modules. These modules have complex interfaces and errors can accumulate across stages. In contrast, VLA models use large-scale pretrained vision-language models (VLMs) to unify multimodal understanding and action generation. This gives them stronger generalization ability: when facing new objects, new scenes, or new instructions that were not seen during training, they can show a degree of zero-shot or few-shot transfer.

    From a technical-route perspective, current VLA models can be roughly divided into three categories:

    • VLM fine-tuning route: A mature vision-language pretrained backbone is used as the core, an action output module is added on top, and robot data is used for post-training.
    • Dual-system architecture route: A large-parameter “slow-thinking” model handles semantic understanding and planning, while a lightweight “fast-policy” model handles high-frequency action generation. This balances reasoning capability with real-time performance.
    • Dedicated end-to-end route: Vision, language, and action modalities are jointly designed from the ground up, with a unified training objective, aiming for the best balance between inference efficiency and deployment cost.

    Understanding these three paradigms helps practitioners evaluate model capability boundaries and deployment costs during selection.

    2. Typical VLA Model Architecture Layers

    Regardless of the specific implementation, most VLA models follow a layered structure: vision encoding → language fusion → action decoding.

    1. Vision Encoder

    The vision encoder converts camera images into feature representations. Robots often require multiple visual inputs, such as base cameras and wrist cameras:

    1. images = {
    2. "base_0_rgb": image_spec, # Base third-person view
    3. "base_1_rgb": image_spec, # Base auxiliary view
    4. "wrist_0_rgb": image_spec, # Wrist close-up view
    5. }

    Multi-view input helps alleviate occlusion and improves understanding of spatial relationships. Each view usually has a corresponding visibility mask, or image mask, to indicate whether that image is valid. This prevents missing inputs from interfering with the model.

    2. Language Backbone

    The language model is responsible for instruction understanding and reasoning. In practice, visual features are projected into the embedding space of the language model and concatenated with text tokens before being sent into the backbone. The backbone scale, such as a 2B parameter level, directly determines the model’s semantic understanding capability and is a key factor in the upper limit of VLA performance.

    3. Action Decoder

    The action decoder converts internal model representations into continuous or discrete action outputs. This is the core part that distinguishes VLA models from ordinary VLMs, and it is discussed in more detail below.

    3. Two Main Technical Routes for Action Generation

    How actions are represented and generated is a key engineering decision for VLA systems. There are two main routes.

    Route 1: Discrete Action Tokenization

    Discrete action tokenization quantizes continuous actions and maps them into discrete tokens. Action generation is then treated as an autoregressive classification problem similar to language generation. The advantage of this route is that it can directly reuse the autoregressive modeling capability of language models, with a simple and clear training objective. The drawback is that quantization may introduce precision loss, and generating actions token by token may not guarantee temporal smoothness in the action sequence.

    Under this route, an action token tokenizer is often used to encode action chunks into token sequences. Attention masks are then used to control generation behavior. For example, an autoregressive mask such as token_ar_mask ensures that actions are generated in order, while a loss mask such as token_loss_mask determines which tokens participate in loss computation:

    1. observation_spec = Observation(
    2. images={"base_0_rgb": ..., "wrist_0_rgb": ...},
    3. image_masks={...},
    4. state=state_spec,
    5. tokenized_prompt=tokenized_prompt,
    6. token_ar_mask=token_ar_mask, # Autoregressive attention mask
    7. token_loss_mask=token_loss_mask, # Loss computation mask
    8. )

    Route 2: Continuous Action Modeling

    Continuous action modeling treats actions as continuous vectors and directly regresses them using methods such as diffusion models or flow matching. This route does not require quantization. It provides higher action precision and smoother temporal behavior, and has become a mainstream choice for high-precision manipulation tasks in recent years.

    The two routes can be compared as follows:

    Dimension Discrete tokenization Continuous modeling
    Training objective Classification (autoregressive) Regression / denoising
    Action precision Affected by quantization Higher
    Temporal smoothness Weaker Stronger
    Inference method Token-by-token generation Iterative denoising
    Implementation complexity Lower Moderate

    In engineering practice, teams need to make tradeoffs among precision, real-time performance, and implementation cost.

    4. Understanding Model Structure with Configuration Classes

    Most mainstream VLA implementations use a “configuration class + model class” design pattern to decouple hyperparameters from network construction. A typical configuration is shown below:

    1. @dataclass(frozen=True)
    2. class VLAConfig:
    3. dtype: str = "bfloat16" # Compute precision
    4. backbone_variant: str = "vlm_2b" # Vision-language backbone scale
    5. action_dim: int = 32 # Action dimension per step
    6. action_horizon: int = 32 # Action prediction horizon
    7. max_token_len: int = 250 # Maximum language token length

    Several key parameters are worth noting:

    • action_dim: The action dimension is determined by the robot’s degrees of freedom. A dual-arm gripper robot may require a higher action dimension, while a single-arm task requires a lower one. In the configuration, state and action share the same dimension, which makes unified encoding easier.
    • action_horizon: This is the number of future action steps predicted in one inference. A longer horizon allows more room for planning, but it also imposes higher requirements on model accuracy and inference cost. This is the core tradeoff between planning depth and real-time performance.
    • max_token_len: This constrains the maximum length of language instructions and affects memory usage and attention computation.
    • dtype: bfloat16 is commonly used in training to balance precision and memory efficiency.

    Configuration classes usually encapsulate two key methods:

    • create: Initializes the model instance using a random seed to ensure reproducibility.
    • inputs_spec: Declares the shapes and data types of inputs and outputs, making compile-time optimization and memory estimation easier.
    1. def inputs_spec(self, batch_size=1):
    2. # Declare tensor specifications for observation and action
    3. action_spec = (batch_size, self.action_horizon, self.action_dim)
    4. return observation_spec, action_spec

    This “define specifications first, then build the model” approach is a rigorous practice commonly seen in functional frameworks such as JAX. It helps detect issues such as shape mismatches before training begins.

    5. Training and Fine-Tuning Strategies

    VLA models have a large number of parameters, and full fine-tuning can be expensive. In engineering, parameter-efficient fine-tuning and layered freezing strategies are widely used.

    1. Layered Freezing (Freeze Filter)

    A freeze filter specifies which parameters remain fixed during fine-tuning. A typical strategy is to freeze most of the weights in the vision-language backbone and train only the newly added action-related modules. This allows the model to converge quickly with limited data:

    1. def get_freeze_filter(self):
    2. # Freeze most backbone parameters and unlock only necessary modules
    3. return nnx.All(
    4. nnx_utils.PathRegex(".*llm.*"),
    5. nnx.Not(...), # Exclude modules that need training
    6. )

    2. Low-Rank Adaptation (LoRA)

    When lightweight adaptation of a large backbone is needed, LoRA is often introduced. It freezes the original weights and trains only small matrices introduced by low-rank decomposition. This significantly reduces the number of trainable parameters and memory usage while preserving the pretrained capability of the backbone.

    3. Use of Loss Masks

    As mentioned earlier, loss masks determine which tokens or dimensions participate in gradient updates. By carefully controlling loss masks, one can compute loss only for action tokens while keeping the language portion either trainable or frozen, enabling flexible combinations of training objectives.

    6. Engineering Deployment and Production Recommendations

    When moving VLA models into production, the following practical points are worth attention:

    • Compute and precision tradeoffs: Training and inference can use half precision, such as bfloat16, to reduce memory pressure. When using cloud-based elastic computing, container platforms and scheduling services can be combined to scale resources on demand.
    • Data closed loop: VLA capability depends on high-quality robot data. It is recommended to use object storage to accumulate multimodal data and data version management to ensure training reproducibility.
    • Inference optimization: Action horizon and model size jointly determine inference latency. For latency-sensitive scenarios, model distillation, quantization, or a dual-system architecture with “slow thinking + fast policy” can be considered.
    • Observability: Log services and monitoring alerts can track training metrics and online inference latency, making it easier to detect distribution drift or performance degradation.

    When deploying on the cloud, training tasks can run on an elastic container platform, data can be hosted in object storage, and message queues can decouple data collection from the training pipeline. General-purpose cloud capabilities from Baidu AI Cloud, such as container platforms, object storage, and monitoring alerts, can be used as supporting infrastructure for building this kind of end-to-end pipeline.

    7. Conclusion

    VLA models provide powerful end-to-end capabilities for embodied AI by unifying vision, language, and action modeling. Understanding the layered “vision encoding — language fusion — action decoding” structure, the two main action generation routes of discrete tokenization and continuous modeling, and engineering techniques such as configuration classes, freezing strategies, and loss masks is key to building reliable VLA systems. In practice, developers should make tradeoffs based on task precision, real-time requirements, and compute budgets, and use mature cloud infrastructure to complete the full pipeline from training to deployment. Only then can embodied AI models be truly applied in real-world scenarios.