Open-Source VLA Models Explained: Diffusion vs. Autoregressive Routes

    Vision-Language-Action (VLA) foundation models are becoming the mainstream paradigm for robotics, yet open-weight VLA models split into two dominant technical routes: diffusion/flow-matching for continuous action generation and discrete-token autoregression for unified sequence modeling. This article systematically dissects both approaches—their shared architecture of a vision-language backbone plus an action expert, how each represents actions, how reasoning unfolds during inference, and their respective trade-offs. It also covers the practical details that matter most for secondary development: weight migration from "can load" to "reproducible," parameter mapping and layout alignment, normalization-statistics consistency, layer-by-layer numerical verification, and engineering concerns around training, inference latency, and platformization.

    1. Introduction: Two Technical Routes for VLA Foundation Models

    Robot learning has long faced a structural challenge. General vision and language models have made strong progress in open-world semantic understanding, yet transferring those capabilities to a real robotic arm remains difficult for three reasons:

    1. The peculiarities of action space: Continuous control signals such as joint positions, end-effector poses, and gripper open/close states are shaped by embodiment differences, contact dynamics, and execution latency. They cannot be fully described by a single universal “vocabulary” the way text can.
    2. Data heterogeneity: Real-robot teleoperation data is expensive to collect and covers limited tasks; simulation data is large in scale but suffers from a sim-to-real distribution gap; human video data is abundant but lacks action labels. How to mix these data sources within a single framework is the key to whether a model can keep scaling.
    3. Task diversity: From “put the block into the box” to “fold a shirt,” tasks differ far more in semantics than in control. A model must have instruction-level generalization, not be a policy network tailored to a single task.

    Against this backdrop, Vision-Language-Action (VLA) models have gradually become the mainstream paradigm. They take a large-scale vision-language model as the semantic backbone, continue training on robot data (i.e., post-training), and map visual observations and language instructions into action sequences. Their advantages are:

    • Semantic understanding and language-following ability can be inherited from vision-language pretraining;
    • Cross-embodiment, cross-task mixed training gives the model a degree of initial generalization;
    • A unified input/output interface lets the same model adapt to different robotic arms and end-effectors.

    Over the past two years, a batch of open-weight VLA foundation models has been released, so researchers no longer have to pretrain from scratch to do secondary development. The most representative of these is the “diffusion / flow matching” approach. It uses a vision-language model as the encoder and, through an “action expert” made of a small decoder module, outputs denoised actions in a generation style similar to Flow Matching. Its autoregressive counterpart discretizes action chunks into tokens and fully reuses the original vision-language architecture for autoregressive prediction.

    The two routes represent two directions for robot foundation models:

    • Diffusion-based: continuous action modeling, pursuing action precision and multimodal expressiveness;
    • Autoregressive: unified sequence modeling, pursuing architectural simplicity and implementation consistency.

    It is worth emphasizing that the two routes share most of their underlying design—for example, the dual-branch structure of “vision-language backbone + action expert,” action chunking, and cross-embodiment action normalization. The real differences concentrate on “how actions are represented” and “how inference unfolds.” This article starts from these two points to systematically analyze the design trade-offs of each class of model and to give practical guidance on weight migration and engineering deployment.

    2. Overall Architecture: Vision-Language Backbone and Action Expert

    The overall structure of both classes of models can be summarized as “the backbone handles understanding, the expert handles generation.”

    2.1 Layered Breakdown

    • Vision-language backbone: It receives images from one or more cameras plus a natural-language instruction and outputs multimodal features. Images are typically cut into a sequence of patches by a vision encoder; text is tokenized and embedded into a token sequence; the two are concatenated and passed through Transformer decoder layers for deep interaction. This backbone usually inherits pretrained weights from a general vision-language model to preserve semantic understanding. The state perceived by the robot’s embodiment (such as joint angles or end-effector pose) is also mapped into independent tokens that enter the backbone alongside visual and text tokens.
    • Action expert: It converts the context provided by the backbone into actions. It is usually a small Transformer decoder whose parameter count is far smaller than the backbone’s. It takes the current (or noisy) action plus conditioning such as the timestep, reads the backbone output via cross-attention, and outputs the final action prediction.
    • Output head and normalization: The model output is not a physical quantity directly, but a normalized action vector. Mapping the embodiment state and actions uniformly into the range [-1, 1] is a key step that both classes of models rely on, and a later section explains why it is so error-prone during migration.

    2.2 Joint Attention: Interaction via a Shared Key/Value Cache

    The interaction in the diffusion-style approach is highly similar across both classes of models and can be abstracted uniformly as “joint attention.” In a single forward pass, backbone tokens and action tokens together form one sequence: the backbone part provides the keys and values, while the action part provides the queries. This means the action expert only needs to reuse the key/value cache computed once by the backbone in order to “see” the full image and instruction context at every denoising step.

    This design brings two direct benefits:

    • Computation reuse: The backbone is computed only once in the preprocessing stage; the subsequent multiple denoising steps run only in the small action expert, significantly reducing repeated per-inference overhead.
    • Clear information pathway: The action expert does not need to re-encode visual and language information; through attention it dynamically decides “which patch of the image to look at and which part of the instruction to follow.”

    A lot of material compares this interaction to a Mixture of Experts (MoE). This analogy captures the intuition that “different parameter subsets handle different modalities,” but the two are mechanically different:

    • Mixture of Experts uses a router to dynamically select several experts for each token;
    • Joint attention partitions the backbone and the action expert by parameters and shares them through attention, with no routing or sparse activation involved.

    So when understanding this structure, it should be viewed as “parameter partitioning + key/value sharing,” not a true Mixture of Experts—otherwise one might mistakenly add routing logic when rewriting the implementation.

    2.3 Illustrative Code

    The following pseudocode shows the basic form of the dual-branch structure and does not depend on a specific framework:

    1. # Illustrative pseudocode: joint-attention forward pass of backbone + action expert
    2. def forward(model, images, prompt, state, noisy_chunk, flow_t):
    3. # 1. Feed vision and text tokens into the backbone, concatenated with state tokens
    4. prefix = model.backbone.embed_images(images) \
    5. + model.backbone.embed_text(prompt) \
    6. + model.backbone.embed_state(state)
    7. kv = model.backbone(prefix) # backbone output: serves as key/value context
    8. # 2. Project the noisy action chunk, then concatenate with backbone output into one sequence
    9. tokens = concat([kv, model.expert.in_proj(noisy_chunk)])
    10. # The action part learns the current denoising step via the timestep embedding
    11. tokens = add_timestep_embedding(tokens, flow_t)
    12. # 3. Joint attention: action queries can read backbone key/values; the backbone part keeps a causal mask
    13. h = model.expert(tokens, kv_mask=causal_mask, q_mask=bidirectional_mask)
    14. # 4. The output head produces a prediction the same length as the action chunk
    15. return model.expert.out_proj(h[len(kv):])

    3. Diffusion / Flow Matching Route: Generative Modeling of Continuous Actions

    3.1 From Deterministic Regression to Generative Modeling

    Early imitation learning often used Behavior Cloning (BC), mapping observations directly to actions with losses such as mean squared error. This approach has a structural flaw that has been repeatedly confirmed: when one observation corresponds to multiple equally reasonable actions, the regression loss tends to output their “average.” For example:

    • To grasp the same cup, you can hold it upright or inverted;
    • To get around an obstacle, you can go around the left or the right.

    The pose after averaging may neither grasp firmly nor happen to hit the obstacle. Robot manipulation data comes from human demonstration and is inherently multimodal, so deterministic regression often “learns an action but fails to complete the task.”

    Diffusion and flow matching model the entire action distribution via a “generative process starting from noise,” rather than a single conditional mean. The two share a goal and have similar implementations:

    • Diffusion models: usually define a noise schedule in advance and learn to gradually reverse the noising process;
    • Flow matching: constructs a simple probability path (most commonly a straight-line path) between the noise distribution and the data distribution, and learns the velocity field to flow along that path.

    Because the path is simpler and the training objective more direct, flow matching is often easier to train and to run inference with under the same number of sampling steps, and it has gradually become the mainstream choice for robot action generation.

    3.2 Action Chunking: A Natural Partner for Generative Modeling

    The diffusion/flow-matching route usually takes “action chunks” as the basic output unit. The model predicts a segment of continuous control commands at once, rather than outputting a single action at each step. The benefits of chunking are a chain reaction:

    1. Mitigating error accumulation: A single-step policy’s prediction errors are amplified along the trajectory; an action chunk optimizes “a segment of trajectory” as a whole, so short-term execution is relatively more stable.
    2. Enabling multi-step parallelism: All actions within a chunk can be generated simultaneously, which creates the precondition for a parallel diffusion solver.
    3. Reducing inference frequency: One inference covers multiple execution steps, reducing pressure on model inference speed when the control frequency is fixed.

    The cost is the stitching problem at the two ends of an action chunk: if each round fully replans and executes the whole chunk, visible jumps can appear between chunks. A common compromise is to execute only the first several steps of the chunk and let the next prediction cover the remainder, achieving smooth transitions through a “receding horizon.”

    3.3 Training Objective and Inference Process

    During training, the model builds a linear interpolation between the “ground-truth action chunk” and “Gaussian noise,” and learns to predict the velocity direction pointing from the noise toward the ground-truth action. During inference, it starts from pure noise and uses several numerical integration steps to “carry” the noise into action space. The two snippets below are illustrative:

    1. # Illustrative pseudocode: flow-matching training (sample timesteps in parallel over a batch)
    2. gt = normalize(robot_actions) # ground-truth action chunk, already normalized
    3. noise = randn_like(gt) # Gaussian prior
    4. t = uniform(0.0, 1.0, size=batch_size) # independently sample the interpolation time per sample
    5. x_t = (1 - t) * noise + t * gt # straight-line interpolation between noise and ground truth
    6. target = gt - noise # velocity-field target along this path
    7. pred = model.forward(images, prompt, state, x_t, t)
    8. loss = huber(pred, target) # Huber loss reduces the influence of outlier actions
    1. # Illustrative pseudocode: flow-matching inference (integrate noise into an action chunk)
    2. def sample_actions(policy, images, prompt, state, steps=10, execute=8):
    3. x = randn(num_steps_ahead, action_dim) # initial noise
    4. dt = 1.0 / steps
    5. for i in reversed(range(steps)):
    6. v = policy(images, prompt, state, x, i * dt) # predict velocity field
    7. x = x + v * dt # Euler integration; can be replaced by a higher-order solver
    8. return unnormalize(x[:execute]) # execute only the first `execute` steps

    3.4 Design Advantages and Limitations

    Advantages:

    • High action precision: optimization directly in continuous space, with no discretization error;
    • Strong multimodal modeling: multiple reasonable strategies under the same instruction can all be covered;
    • Minimal structural changes: the pretrained vision-language model is reused as the backbone, with no need to design a new output interface for it;
    • Trimmable computation: the number of denoising steps and the action-chunk length can be adjusted per task, trading off between precision and real-time performance.

    Limitations:

    • Serial overhead in inference: denoising requires multiple iterations; although each step only computes the small action expert, the overall latency is still higher than single-step regression;
    • Sensitive to hyperparameters: too few denoising steps lead to under-convergence, while too long an action chunk increases integration error and latency;
    • Deep structural coupling with the backbone: the joint-attention implementation has many details, and moving from one implementation to another easily introduces hidden deviations.

    4. Autoregressive Route: Writing Actions into “Language”

    4.1 Action Discretization and Tokenization

    The autoregressive route no longer regresses continuous vectors directly. Instead, it first encodes an action chunk into a string of discrete tokens, then has the model predict action tokens one by one, like predicting the next word. The key question follows: how can a continuous action be turned into integers within a finite vocabulary?

    • Naive approach: uniform quantization of each dimension of the action directly. It is simple to implement, but has several problems:
      • Action chunks usually span dozens of steps; if every dimension is encoded point by point, the sequence length balloons, and autoregressive decoding cost grows linearly with length;
      • Actions at adjacent timesteps are highly correlated, so point-by-point encoding is highly redundant;
      • Direct quantization has noticeable error near the least-significant bits, which affects fine manipulation.
    • Frequency-domain compression + hierarchical quantization: first transform the action chunk into the frequency domain; leveraging the temporal smoothness of the action sequence, a small number of low-frequency coefficients can approximately reconstruct the original action, so the whole chunk can be expressed with few tokens. Combined with the idea of residual quantization, a multi-level codebook progressively approximates the quantization error, balancing compression ratio and reconstruction accuracy.

    This kind of tokenization scheme is a general technical idea, already practiced for a long time in fields such as speech and audio neural codecs. Applying it to robot actions is a typical case of “using mature tools to solve a new problem.”

    4.2 Training and Inference Flow

    Once an action chunk is encoded into a token sequence, the model is trained with the classic autoregressive objective: given the historical tokens, predict the class distribution of the next token. Conditions such as vision, text, and state enter the model as a prefix, the action tokens are appended at the end as the part to be predicted, and the loss usually uses cross-entropy. Illustrative code:

    1. # Illustrative pseudocode: tokenized training for the autoregressive route
    2. codes = action_tokenizer.encode(normalize(robot_actions)) # multi-level codebook tokens
    3. logits = model(images, prompt, state, codes) # predict the next token position by position
    4. loss = sum(cross_entropy(logits[:, i], codes[:, i + 1])
    5. for i in range(codes.num_layers - 1))

    During inference, decoding proceeds token by token starting from the initial token, and then the token sequence is inverse-transformed back into continuous actions. Because the model reuses only the standard vision-language structure, its training and inference pipeline can directly leverage existing framework capabilities (such as KV caching and parallel sampling), which is very engineering-friendly.

    4.3 Design Advantages and Limitations

    Advantages:

    • Architectural unification: action generation and text generation share the same modeling and training framework, introducing no extra generation module;
    • Training stability: the optimization of the cross-entropy objective is intuitive and easy to observe for convergence;
    • Decoupled discrete interface: after actions are discretized via the codebook, the output-layer dimension is fixed, so a different robot embodiment only needs to swap the codebook and normalization statistics, without changing the network structure.

    Limitations:

    • Non-negligible quantization error: reconstruction accuracy is constrained by codebook capacity and compression ratio; high-precision assembly, insertion, and similar tasks are very sensitive to action detail;
    • Serial decoding, length-sensitive: token-by-token generation cannot be parallelized, and the longer the sequence, the higher the latency; scenarios with high control-frequency requirements need to be paired with chunking and asynchronous execution;
    • Decoding strategy has a clear impact: different sampling methods produce very different token combinations, which in turn affect the smoothness and stability of the action trajectory.

    4.4 Route Selection Guidance

    The two routes are not substitutes but trade-offs by scenario:

    • High real-time performance, architectural unification, fast iteration: prefer the autoregressive route;
    • High precision, strong multimodality, tolerance for higher inference latency: prefer the diffusion/flow-matching route;
    • At the engineering level: both classes of models can share the same data pipeline, normalization scheme, and evaluation system; a team can first get the pipeline working with the autoregressive version, then introduce the diffusion version to raise the ceiling.

    5. Weight Migration: From “Can Load” to “Reproducible”

    Both routes already have solid engineering practice, but when it comes to real deployment, the unavoidable problem is often weight and implementation compatibility.

    Some high-performance implementations use compiled, functional-style tensor-computing frameworks, such as the JAX/Flax ecosystem. It has clear advantages in automatic parallelism and performance, but the mainstream deep-learning community is centered on PyTorch and its ecosystem, and many engineers and researchers are not familiar with that tech stack. This brings three obstacles:

    • Environment barrier: version combinations of the framework, companion libraries, and hardware-acceleration libraries are prone to conflicts;
    • Mental burden: concepts such as the functional paradigm, parameter trees (pytree), and state management differ markedly from the common imperative style;
    • Ecosystem fragmentation: mature components for data loading, mixed precision, distributed training, visualization, and experiment management are hard to reuse directly.

    Therefore, “whether it can read the official weights” is almost the first threshold for judging whether a third-party implementation has practical value. Being able to read the weights does not mean it will produce correct results. Taking the diffusion-style structure of “backbone + action expert” as an example, after the same weights are loaded in another implementation, problems such as action jitter, grasp failures, or even abnormal outputs often appear. The cause is usually not the model itself but detail-level deviations introduced during migration. The following subsections break these down one by one.

    5.1 Parameter Mapping and Layout Alignment

    • Naming-convention differences: in different implementations, attention layers may use a fused qkv projection, or be split into independent q, k, and v projections. When loading, one must split a single tensor into several parts according to the rules, or concatenate several parts into one.
    • Linear-layer weight direction: in mainstream deep-learning frameworks, linear-layer weight shapes are mostly [output dim, input dim], while some frameworks use the opposite convention and require a transpose; otherwise, even if the shapes happen to match, the computed result will be completely wrong.
    • Restoring parallel splits: if the official weights are saved in a parallel manner, parameters may be split into several parts. One must first merge them along the tensor dimensions, then load them into the target implementation.
    • Engineering advice: maintain an explicit key-name mapping table and attach a shape assertion to each mapping, intercepting errors at the loading stage rather than letting them surface later as “worse results” during training or inference.
    1. # Illustration: explicit key-name mapping + shape assertions to avoid silent loading errors
    2. def remap_key(name):
    3. # Map the source implementation's key-name convention to the target implementation
    4. name = name.replace("blocks", "layers")
    5. if name.startswith("img."): # vision branch
    6. name = "vision." + name[4:]
    7. elif name.startswith("llm."): # language backbone
    8. name = "vlm." + name[4:]
    9. elif name.startswith("act_expert."): # action expert
    10. name = "expert." + name[10:]
    11. return name
    12. def assert_same_shape(src, dst):
    13. if src.shape != dst.shape:
    14. # If the source weights are stored transposed, transpose uniformly here
    15. raise ValueError(f"shape mismatch: {src.shape} vs {dst.shape}")

    5.2 Normalization Statistics and Preprocessing Alignment

    This is the most hidden and most-often-overlooked part of migration. The model output is a value in normalized space, and it must be inverse-transformed using the statistics (quantiles, mean/variance, etc.) paired with the weights to obtain a physical quantity. The statistics come from a specific data-mixture ratio and embodiment configuration; once they are mixed up, the model output shifts or scales as a whole.

    The image side is the same: resolution, interpolation method, channel order, normalization constants, and the number of patches—any inconsistency changes the “world” the backbone sees. The common practice is to reuse the official preprocessing configuration and statistics file directly, rather than estimating them yourself.

    1. # Illustration: do de-normalization at a unified exit to avoid mixing statistics
    2. class ActionNormalizer:
    3. def __init__(self, stats):
    4. self.q01, self.q99 = stats["q01"], stats["q99"]
    5. def normalize(self, a):
    6. # Linearly map raw actions into [-1, 1]
    7. return 2 * (a - self.q01) / (self.q99 - self.q01).clamp_min(1e-6) - 1
    8. def unnormalize(self, n):
    9. # Inference output is uniformly restored to physical quantities here
    10. return (n + 1) / 2 * (self.q99 - self.q01) + self.q01

    5.3 Numerical Consistency Check: Layer-by-Layer Alignment

    After completing the mapping and preprocessing alignment, one still needs to verify “whether the new implementation computes correctly.” A recommended strategy is “small-batch input + layer-by-layer comparison”:

    1. Construct fixed input samples (several images, one instruction, a set of states);
    2. Run the forward pass with both the official implementation and the target implementation, recording intermediate tensors layer by layer;
    3. Compute the maximum absolute error for each layer to locate the first module where a significant deviation appears;
    4. Write separate unit tests for error-prone modules such as attention masks, rotary position embeddings, and timestep embeddings.
    1. # Illustration: layer-by-layer numerical comparison to locate the first deviating module
    2. def compare_layers(ref_out, tgt_out, tol=1e-3):
    3. for i, (a, b) in enumerate(zip(ref_out, tgt_out)):
    4. diff = abs(a - b).max()
    5. if diff > tol:
    6. return i, diff # return the first inconsistent layer and its error
    7. return None, 0.0

    Finally, do an end-to-end comparison: fix the random seed and compare the final action chunk under the same noise and the same timestep. Only when both the layer-by-layer error and the end-to-end error converge to an acceptable range can one confirm the migration is correct rather than “it just happens to run.”

    5.4 Migration Verification Checklist

    Check item Key question Recommended practice
    Parameter mapping Are fused/split, transpose, and parallel splits correct Explicit mapping table + shape assertions
    Normalization statistics Are they paired with the weights and matched to the embodiment Reuse the official statistics file directly
    Preprocessing Are resolution, channel order, and normalization constants consistent Wrap the preprocessing pipeline uniformly
    Timestep and masks Are the timestep embedding method and the action-part mask correct Write separate unit tests
    Numerical consistency Are layer-by-layer and end-to-end outputs aligned Fixed-input layer-by-layer comparison
    Weight integrity Are both the backbone and the action expert verified on load Load layer by layer and print missing keys
    License compliance Do the usage terms for the weights and code meet requirements Confirm the authorized scope before use

    6. Engineering Deployment: Training, Inference, and Platformization

    6.1 Training Side: Mixed Data and Compute Management

    Regardless of the route, training faces the dual constraints of “data mixture + compute budget”:

    • Data mixing: real-robot data, simulation data, and even video data with action labels must be unified into the same action space and normalization scheme, with sampling weights set according to the task distribution;
    • Multi-machine, multi-GPU: when the backbone has many parameters, a combination of data parallelism plus tensor/pipeline parallelism is usually adopted, with memory controlled via gradient accumulation, mixed precision, and gradient checkpointing;
    • Reproducibility: fixing the random seed, recording data snapshots and statistics versions, and monitoring trends of key metrics are the prerequisites for diagnosing “results got worse”–type problems.

    6.2 Inference Side: Latency Budget and Control Loop

    The real-time requirements of robot control mean the inference scheme must budget around latency:

    • Diffusion-based: compress latency by reducing denoising steps, shortening the action chunk, and using a smaller action expert, while reusing the backbone computation via KV caching;
    • Autoregressive: reduce token-by-token decoding overhead by shortening the action-token sequence, limiting the maximum decode length, and reusing the cache.

    For any class of model, it is recommended to decouple “perception/inference” and “action execution” into an asynchronous pipeline: the inference thread continuously produces action chunks, and the execution thread consumes them at a fixed period, so that inference jitter is not transmitted directly to the robotic arm.

    6.3 Platformization Support

    From an engineering-organization perspective, this kind of “large backbone + small expert” model aligns well with mature cloud-platform capabilities:

    • Relying on elastic compute resources and container services, one can quickly set up a multi-machine, multi-GPU training environment and scale it on demand;
    • Object storage is well suited to holding large-scale robot datasets and multi-version weights, easing version management and rollback;
    • Model-serving capabilities can package inference as a unified interface for simulation environments and real-robot control endpoints to call;
    • Logging and monitoring/alerting systems can be used to track runtime metrics such as inference latency and success rate.

    Take Baidu AI Cloud as an example: developers can combine its general capabilities—elastic compute, container services, object storage, and model services—to build a complete pipeline from data processing and training/fine-tuning to inference deployment, reducing repeated investment in infrastructure.

    6.4 Evaluation System

    Evaluation should cover both “task effectiveness” and “model capability”:

    • Task effectiveness: measure success rate, completion time, and number of interventions in real or high-fidelity simulation environments;
    • Generalization: test instruction paraphrasing, object substitution, background changes, lighting changes, and distractor scenarios;
    • Robustness and safety: focus on behavior under abnormal observations to ensure the model does not output dangerous actions;
    • Efficiency metrics: measure single-inference latency, control frequency, and the smoothness of action-chunk transitions.

    7. Conclusion

    The diffusion/flow-matching and discrete-token autoregressive routes are essentially two engineering answers to the same question—how to teach a general vision-language model to output actions:

    • The former trades generative modeling in continuous space for precision and multimodal expressiveness;
    • The latter trades discretization for architectural unification and ecosystem reuse.

    For developers about to enter this field, more important than “which route to choose” is to build the fundamental engineering on a solid footing:

    • Parameter mapping and layout alignment;
    • Consistency of preprocessing and normalization statistics;
    • Layer-by-layer numerical verification.

    These seemingly trivial steps often determine whether secondary development is “runnable” or “usable.” When open weights and mature training and deployment platforms work together, the path for robot foundation models to move from research prototypes to large-scale applications will become ever clearer.