Vision language action model training method based on cross-disturbance alignment

By employing a training method that aligns across perturbations, action consistency and progress consistency constraints are constructed for visual language action models. This addresses the problem of insufficient generalization ability of the model in complex scenarios and achieves a balance between robustness and adaptability to environmental perturbations.

CN123178968APending Publication Date: 2026-11-27BEIJING UNIV OF POSTS & TELECOMM +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611396174.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing visual language action models struggle to balance stability and flexibility when faced with environmental disturbances, and cannot effectively distinguish the impact of different disturbance types on control semantics, resulting in insufficient generalization ability of operation strategies in complex scenarios.

Method used

A cross-perturbation alignment training method is adopted. By acquiring paired training data of three perturbation types (visual, linguistic, and state), the parameter sharing model is used to extract the action noise prediction results and task progress feature sequences respectively. Action consistency or progress consistency constraints are constructed for different perturbation types, and the model parameters are updated by combining diffusion behavior cloning loss.

Benefits of technology

It achieves a balance between the model's robustness to irrelevant perturbations and its adaptability to state changes, thereby improving the generalization ability of operational strategies in complex scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178968A_ABST
    Figure CN123178968A_ABST
Patent Text Reader

Abstract

The application provides a visual language action model training method based on cross-disturbance alignment, and belongs to the technical field of model training. The method comprises the following steps: acquiring paired data containing standard trajectories and corresponding visual, language and state disturbance trajectories; inputting parameters of the two into a parameter sharing model to obtain action noise prediction results and task progress feature sequences; constructing action consistency constraints for visual or language disturbances, and constructing progress consistency constraints for state disturbances; combining diffusion behavior cloning loss and corresponding constraints to determine an overall training target and update model parameters. The visual language action model training method based on cross-disturbance alignment can improve the generalization ability of a model in a complex scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of model training technology, and more specifically, relates to a method for training a visual language action model based on cross-perturbation alignment. Background Technology

[0002] With the widespread application of visual-language-action models in robotic manipulation tasks, improving the robustness of these models in real-world environments has become a research hotspot. Existing training methods typically employ data augmentation or single regularization techniques to address environmental perturbations, but often treat changes in visual appearance, differences in language expression, and changes in physical state as homogeneous disturbances, failing to distinguish the degree of impact of different perturbation types on control semantics. This indiscriminate constraint strategy leads to models being overly sensitive to visual or linguistic changes that do not alter the essence of the task, while lacking sufficient stage-based cognitive adaptation capabilities when robot configuration or scene layout changes, making it difficult to balance stability and flexibility. Therefore, a training mechanism capable of implementing differentiated alignment based on perturbation characteristics is urgently needed to enhance the generalization ability of models in complex scenarios. Summary of the Invention

[0003] The purpose of this application is to provide a visual language action model training method based on cross-perturbation alignment, so as to improve the generalization ability of the model in operation strategies in complex scenarios.

[0004] A first aspect of this application provides a method for training a visual language action model based on cross-perturbation alignment, comprising: Acquire paired training data; paired training data includes standard trajectory, perturbation trajectory corresponding to the standard trajectory, and perturbation type of perturbation trajectory; perturbation type includes visual perturbation, verbal perturbation, and state perturbation; among them, visual perturbation refers to perturbation that applies changes to visual observations in the standard trajectory without changing the physical state of the task and expert actions, verbal perturbation refers to perturbation that applies changes to verbal instructions in the standard trajectory without changing the physical state of the task and expert actions, and state perturbation refers to perturbation that changes robot configuration or scene spatial relationship; The standard trajectory and the perturbation trajectory are respectively input into the visual language action model with shared parameters for forward computation to obtain the first action noise prediction result and the first task progress feature sequence corresponding to the standard trajectory, and the second action noise prediction result and the second task progress feature sequence corresponding to the perturbation trajectory; the visual language action model includes a multimodal feature encoding unit, an action-progress feature modeling unit, and a continuous action generation unit; If the perturbation type is visual or linguistic, then action consistency constraints are constructed based on the first action noise prediction result and the second action noise prediction result. If the disturbance type is a state disturbance, then a schedule consistency constraint is constructed based on the first task schedule feature sequence and the second task schedule feature sequence. The overall training objective is determined based on the diffusion behavior cloning loss and action consistency constraints or progress consistency constraints, and the parameters of the visual language action model are updated by minimizing the overall training objective. The diffusion behavior cloning loss is determined based on the difference between the random noise actually added to the expert action sequences of the standard trajectory and the perturbation trajectory and the corresponding action noise prediction results.

[0005] A second aspect of this application provides a visual language action model training device based on cross-perturbation alignment, comprising: The data acquisition module is used to acquire paired training data. Paired training data includes standard trajectories, perturbation trajectories corresponding to the standard trajectories, and perturbation types of the perturbation trajectories. Perturbation types include visual perturbations, verbal perturbations, and state perturbations. Among them, visual perturbations refer to perturbations that apply changes to visual observations in the standard trajectory without changing the physical state of the task or the expert actions; verbal perturbations refer to perturbations that apply changes to verbal instructions in the standard trajectory without changing the physical state of the task or the expert actions; and state perturbations refer to perturbations that change the robot configuration or the spatial relationship of the scene. The forward computation module is used to input the standard trajectory and the perturbation trajectory into the visual language action model with shared parameters for forward computation, so as to obtain the first action noise prediction result and the first task progress feature sequence corresponding to the standard trajectory, and the second action noise prediction result and the second task progress feature sequence corresponding to the perturbation trajectory; the visual language action model includes a multimodal feature encoding unit, an action-progress feature modeling unit, and a continuous action generation unit. The first constraint construction module is used to construct action consistency constraints based on the first action noise prediction result and the second action noise prediction result if the disturbance type is visual disturbance or linguistic disturbance. The second constraint construction module is used to construct a schedule consistency constraint based on the first task schedule feature sequence and the second task schedule feature sequence if the disturbance type is a state disturbance. The parameter update module is used to determine the overall training objective based on the diffusion behavior cloning loss and action consistency constraints or progress consistency constraints, and to update the parameters of the visual language action model by minimizing the overall training objective. The diffusion behavior cloning loss is determined based on the difference between the random noise actually added to the expert action sequences of the standard trajectory and the perturbation trajectory and the corresponding action noise prediction results.

[0006] A third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of the above-described method for training a visual language action model based on cross-perturbation alignment.

[0007] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described visual language action model training method based on cross-perturbation alignment.

[0008] The beneficial effects of the visual language action model training method based on cross-perturbation alignment provided in this application are as follows: This application's embodiments acquire paired training data containing three types of perturbations: visual, linguistic, and state. A parameter-sharing model is used to extract action noise prediction results and task progress feature sequences, respectively. For visual or linguistic perturbations that do not change the physical state, action consistency constraints are constructed based on the action noise prediction results, forcing the model to ignore non-semantic changes to maintain output stability. For state perturbations that change the physical state, progress consistency constraints are constructed based on the task progress feature sequences, enabling the model to maintain correct task stage recognition when adapting to new configurations. Finally, the parameters are updated by combining the diffusion behavior cloning loss with the corresponding consistency constraints, effectively solving the problem that a single constraint cannot simultaneously accommodate different perturbation characteristics. This application's embodiments achieve a balance between the model's robustness to irrelevant perturbations and its adaptability to state changes, improving the generalization ability of operational strategies in complex scenarios. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 A flowchart illustrating a visual language action model training method based on cross-perturbation alignment provided in an embodiment of this application; Figure 2 A structural block diagram of a visual language action model training device based on cross-perturbation alignment provided in an embodiment of this application; Figure 3 This is a schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0011] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0012] To make the objectives, technical solutions, and advantages of this application clearer, the following description will be provided in conjunction with the accompanying drawings and specific embodiments.

[0013] This embodiment uses an industrial material sorting scenario as an example to detail the training method for a visual-language action model based on cross-disturbance alignment. In this scenario, a six-axis robotic arm is mounted on a fixed base on the side of a conveyor belt. Its end effector grippers sort different types of materials (such as metal bolts, plastic casings, rubber gaskets, etc.) randomly distributed on the conveyor belt into their corresponding bins. The model needs to integrate visual observations captured by a camera, natural language sorting instructions issued by the operator, and the joint states of the robotic arm itself to output a continuous multi-step sequence of gripping and placing actions.

[0014] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a visual language action model training method based on cross-perturbation alignment according to an embodiment of this application. The method can be executed by an electronic device and may include: S101: Acquire paired training data; paired training data includes standard trajectory, perturbation trajectory corresponding to the standard trajectory, and perturbation type of perturbation trajectory; perturbation type includes visual perturbation, verbal perturbation, and state perturbation; among them, visual perturbation refers to perturbation that applies changes to visual observations in the standard trajectory without changing the physical state of the task and expert actions, verbal perturbation refers to perturbation that applies changes to verbal instructions in the standard trajectory without changing the physical state of the task and expert actions, and state perturbation refers to perturbation that changes the robot configuration or scene spatial relationship.

[0015] In this embodiment, the standard trajectory refers to the data sequence recorded when a human operator remotely controls a robotic arm to complete a full sorting operation during a material sorting task. This data sequence includes visual observations at each control moment (i.e., the sequence of image frames captured by the camera), natural language commands (such as "put the red bolt on the conveyor belt into the left-side material box"), robot status (including joint angles, end effector pose, and gripper opening and closing status), and expert action sequences (i.e., the joint speed or displacement commands actually issued by the operator at each control moment).

[0016] In this embodiment, the perturbation trajectory is the corresponding trajectory obtained by applying a purposeful change to a specific mode based on the standard trajectory. The perturbation types are divided into three categories: Visual perturbation refers to altering visual observations along a standard trajectory without changing the physical state of the task or the operator's actions. In material sorting scenarios, typical implementations of visual perturbation include: applying random brightness adjustments to the image (brightness offset uniformly sampled between -30 and +30), random contrast scaling (scaling factor uniformly sampled between 0.7 and 1.3), adding Gaussian noise (noise standard deviation set to 2% to 5% of the image pixel value range), random horizontal flipping, color jitter (hue offset within ±15°), and random cropping followed by scaling back to the original resolution. These visual transformations only change the appearance of the image, without altering the actual position of the materials on the conveyor belt, the physical state of the robotic arm, or the sorting actions performed by the operator.

[0017] Linguistic perturbation refers to altering linguistic instructions within a standard trajectory without changing the physical state of the task or the expert's actions. In a material sorting scenario, typical implementations of linguistic perturbation include: paraphrasing the original instructions (e.g., rewriting "put the red bolt into the left box" as "move the red bolt on the conveyor belt to the first box on the left"), adjusting word order (e.g., rewriting "take the plastic shell from the conveyor belt and place it in the right area" as "take the plastic shell from the conveyor belt and place it in the right area"), replacing parts of the expression (e.g., replacing "grip" with "grab," "place" with "put in"), and adding or deleting descriptive phrases. These linguistic transformations only change the form of the instructions, without altering the actual operational goals or expert actions of the task.

[0018] State disturbance refers to disturbances that alter the robot's configuration or spatial relationships within the environment. In material sorting scenarios, typical implementations of state disturbance include: changing the initial joint configuration of the robotic arm (e.g., adding random offsets within ±5° to ±15° to each joint angle based on the standard initial configuration), changing the initial placement position of the material on the conveyor belt (e.g., applying translational offsets within ±2cm to ±5cm based on the standard position), and changing the spatial position of the target hopper (e.g., applying translational offsets within ±1cm to ±3cm based on the standard position). Due to the change in physical state, the expert action sequence and execution duration in the state disturbance trajectory may differ from the standard trajectory, requiring re-teleoperation data acquisition.

[0019] In this embodiment, each standard trajectory corresponds to one or more perturbation trajectories, forming paired training units. Each paired training unit is accompanied by a perturbation type label to identify the perturbation category corresponding to the perturbation trajectory. In one implementation, a visual perturbation trajectory, a linguistic perturbation trajectory, and a state perturbation trajectory are generated for each standard trajectory, that is, each standard trajectory corresponds to three perturbation trajectories, and the perturbation type labels are marked as visual perturbation, linguistic perturbation, and state perturbation, respectively. The training dataset consists of a large number of such paired training units. For example, in a material sorting task, 200 to 500 standard trajectories can be collected, and each standard trajectory corresponds to three perturbation trajectories, forming a total of 600 to 1500 paired training units.

[0020] S102: Input the standard trajectory and the perturbation trajectory into the visual language action model with shared parameters for forward computation to obtain the first action noise prediction result and the first task progress feature sequence corresponding to the standard trajectory, as well as the second action noise prediction result and the second task progress feature sequence corresponding to the perturbation trajectory; the visual language action model includes a multimodal feature encoding unit, an action-progress feature modeling unit, and a continuous action generation unit.

[0021] In this embodiment, the visual language action model is a unified model with shared parameters. Both the standard trajectory and the perturbed trajectory are computed forward through the same model, rather than being processed by two separate models. This parameter-sharing mechanism allows the standard trajectory and the perturbed trajectory to share the same feature extraction and action generation parameters within the model, thereby ensuring that alignment constraints can function within the same parameter space.

[0022] The visual language action model consists of three functional units: a multimodal feature encoding unit responsible for encoding visual observations, language commands, and robot states into a unified multimodal context representation; an action-progress feature modeling unit responsible for extracting features related to action decisions and features related to task execution progress from the multimodal context; and a continuous action generation unit responsible for generating continuous action sequences based on the extracted feature conditions.

[0023] During the forward computation, the standard trajectory and the perturbed trajectory are processed independently by the three functional units mentioned above. For the standard trajectory, the model outputs the first motion noise prediction result and the first task progress feature sequence; for the perturbed trajectory, the model outputs the second motion noise prediction result and the second task progress feature sequence. The motion noise prediction result is the estimate of the noise added at the current diffusion time step by the diffusion motion decoder. The task progress feature sequence is a time-ordered feature sequence obtained by averaging the progress-related features extracted from multiple progress query vectors, used to characterize the execution stage of the task at each time position.

[0024] In one embodiment of this application, a standard trajectory and a perturbed trajectory are respectively input into a visual language action model with shared parameters for forward computation to obtain a first action noise prediction result and a first task progress feature sequence corresponding to the standard trajectory, and a second action noise prediction result and a second task progress feature sequence corresponding to the perturbed trajectory, including: The visual features are obtained by inputting consecutive frames of images and language commands from the standard trajectory into the visual encoder in the multimodal feature encoding unit.

[0025] In this embodiment, the input image consists of the current frame and three historical frames, for a total of four frames. Each frame has a resolution of 224×224 pixels. The visual encoder extracts visual features from each frame to obtain a visual feature sequence corresponding to the frame number.

[0026] Visual features are projected onto a multimodal model and then input together with language instructions into the language model to obtain visual-language features.

[0027] In this embodiment, the role of multimodal projection is to map the visual features output by the visual encoder into the feature space of the language model, enabling visual and linguistic information to be fused in the same representation space. In the material sorting scenario, the linguistic instructions are natural language text describing the sorting task, such as "put the red bolt on the conveyor belt into the left-hand box." The language model jointly encodes the projected visual features and the linguistic instructions, outputting visual-linguistic features that include environmental information, task semantics, and time-varying information.

[0028] The robot's state in the standard trajectory is input into the state mapping network to obtain state features consistent with the visual language feature dimensions.

[0029] In material sorting scenarios, the robot's state includes 7-dimensional joint states (i.e., the angle values ​​of each joint of the six-axis robotic arm) and 2-dimensional gripper states (i.e., the opening and closing degree and gripping force of the gripper), totaling 9 dimensions. The state mapping network is a multilayer perceptron that maps the 9-dimensional robot state to state feature vectors of the same dimension as the visual language features. In one implementation, the visual language features have a dimension of 4096, and the state mapping network maps the 9-dimensional input to a 4096-dimensional output. The specific structure of the state mapping network includes an input layer, two hidden layers, and an output layer. The dimensions of the hidden layers are set to 512 and 2048, respectively, and the GELU activation function is used between the layers.

[0030] Visual language features and state features are concatenated along the feature dimension to obtain the multimodal context corresponding to the standard trajectory.

[0031] In this embodiment, the dimension of visual language features is assumed to be... The dimension of the state feature is The concatenated multimodal context dimension is then... In one implementation, the spliced ​​multimodal context has 8192 dimensions.

[0032] The multimodal context is input into the action-progress feature modeling unit. Multi-head cross-attention operations are performed on the multimodal context using the action query vector to obtain action-related features. Similarly, multi-head cross-attention operations are performed on the multimodal context using multiple progress query vectors to obtain multiple progress-related features. Both the action query vector and the multiple progress query vectors are learnable parameters, updated during training using gradient descent.

[0033] In this embodiment, there is one action query vector, and its dimension is consistent with the dimension of the multimodal context. This action query vector aggregates the most relevant information for action decisions from the multimodal context through a multi-head cross-attention mechanism, including the control direction of the robotic arm, the range of motion, and the gripper operation. In the material sorting scenario, the action-related features encode control semantics such as "move towards the material", "open the gripper", "approach downward", "close the gripper", "lift upward", "move towards the material box", and "release the open gripper".

[0034] The number of progress query vectors is set to In one implementation, one Each progress query vector has the same dimension as the multimodal context. These eight progress query vectors extract different aspects of progress-related information from the multimodal context through a multi-head cross-attention mechanism. The setting of multiple progress query vectors enables the model to capture phase change information during task execution from multiple perspectives, such as focusing on different aspects of progress information such as "approach phase", "alignment phase", "gripping phase", "transportation phase" and "placement phase".

[0035] The number of attention heads in the multi-head cross-attention operation is set to 8, and the dimension of each head is the multimodal context dimension divided by the number of attention heads. In one implementation, the multimodal context dimension is 8192 dimensions, and the number of attention heads is 8, so the dimension of each head is 1024 dimensions.

[0036] After concatenating action-related features and multiple progress-related features along the feature dimension, the concatenation is input into a feature fusion network for fusion processing to obtain the action generation conditions.

[0037] In one implementation, the action-related features have a dimension of 4096, and the concatenated dimensions of the eight progress-related features are 8 × 4096 = 32768, resulting in a total dimension of 4096 + 32768 = 36864. The feature fusion network is a multilayer perceptron that maps the 36864-dimensional input to action generation conditional features. In one implementation, the feature fusion network contains two hidden layers with dimensions of 4096 and 2048 respectively, and an output dimension of 2048. The GELU activation function is used between the layers.

[0038] Random noise is added to the expert action sequence of the standard trajectory to obtain the first noisy action block.

[0039] In material sorting scenarios, the expert action sequence is a 7-dimensional action vector spanning eight consecutive control moments (each action vector contains a 6-dimensional end effector pose increment and a 1-dimensional gripper opening / closing command), therefore the expert action sequence has a dimension of 8 × 7 = 56 dimensions. The added random noise follows a standard normal distribution, i.e., a Gaussian distribution with a mean of 0 and a variance of 1. The diffusion time step is uniformly sampled from a preset diffusion step range. In one implementation, the diffusion step number is set to 100 steps, meaning the diffusion time step is uniformly and randomly sampled from 1 to 100.

[0040] The motion generation conditions, the first noisy motion block, and the diffusion time step are input into the diffusion motion decoder in the continuous motion generation unit to obtain the first motion noise prediction result.

[0041] In this embodiment, the diffusion action decoder predicts the noise contained in the current noisy action block based on the action generation conditions, the noisy action block, and the diffusion time step. In one implementation, the diffusion action decoder may employ a denoising network based on a Transformer structure, comprising four Transformer blocks, each containing a multi-head self-attention sublayer and a feedforward network sublayer, with a hidden dimension of 512.

[0042] The first task progress feature sequence is obtained by averaging the progress-related features at the same time position among multiple progress-related features.

[0043] Specifically, for the t-th time position in the standard trajectory, the points at that time position... Each progress query vector was extracted separately. The task progress feature at a given time position is obtained by averaging the element-wise values ​​of each progress-related feature. Arranging the task progress features of all time positions in chronological order yields the first task progress feature sequence. In one implementation, if the standard trajectory contains 50 control moments, the first task progress feature sequence contains 50 task progress feature vectors, each with a dimension of 4096.

[0044] Perform the same forward computation process as the standard trajectory on the disturbed trajectory to obtain the second motion noise prediction result and the second task progress feature sequence.

[0045] Because the model parameters are shared, the forward calculation process of the perturbation trajectory is exactly the same as that of the standard trajectory, only the input data is different.

[0046] As can be seen from the above, this embodiment integrates visual, linguistic, and robot state information into a unified contextual representation through a multimodal feature encoding unit, enabling the model to make decisions by comprehensively utilizing multi-source information. Through the separate design of action query vectors and progress query vectors, it achieves structured representation of action decision information and task progress information, avoiding mutual coupling between different control factors in the mixed features. By generating continuous multi-step actions at once through a diffusion action decoder, it avoids the problems of error accumulation and increased inference overhead caused by the stepwise autoregressive generation method, thereby improving the continuity and overall coordination of the action sequence.

[0047] S103: If the disturbance type is visual disturbance or linguistic disturbance, then construct action consistency constraints based on the first action noise prediction result and the second action noise prediction result.

[0048] In this embodiment, when the perturbation type is visual or linguistic, since neither of these perturbations changes the physical state of the task or the expert's actions, the standard trajectory and the perturbation trajectory should semantically produce the same action output. The purpose of the action consistency constraint is precisely to force the model to maintain the stability of action prediction when faced with changes in visual appearance or linguistic expression.

[0049] The action consistency constraint is constructed based on a measure of the difference between the first action noise prediction result of the standard trajectory and the second action noise prediction result of the perturbed trajectory. Specifically, this constraint requires that the action noise prediction result of the perturbed trajectory approximate the action noise prediction result of the standard trajectory, thereby ensuring that the model does not change its action decisions due to irrelevant visual or linguistic changes.

[0050] In one embodiment of this application, action consistency constraints are constructed based on the first action noise prediction result and the second action noise prediction result, including: The same random noise was added to the expert action sequence of the standard trajectory and the expert action sequence of the perturbed trajectory, and the same diffusion time step was used; A stop gradient operation is performed on the first action noise prediction result to obtain the first action noise prediction result after stopping the gradient. The stop gradient operation means that when calculating the gradient of the action consistency constraint, the gradient is not propagated back to the calculation path that generated the first action noise prediction result. Calculate the sum of squares of the differences between each element in the second action noise prediction result and the first action noise prediction result after stopping the gradient, and use the sum of squares of the differences between each element as the action consistency constraint.

[0051] In this embodiment, when the perturbation type is visual or verbal, the standard trajectory and the perturbation trajectory are completely identical in physical state and expert actions, differing only in visual appearance or verbal expression. Therefore, the model should produce the same action prediction under both input conditions. The action consistency constraint achieves this goal by measuring the difference between the action noise prediction results of the perturbation trajectory and the action noise prediction results of the standard trajectory.

[0052] In this embodiment, since visual and linguistic perturbations do not alter expert actions, the expert action sequences for the standard trajectory and the perturbed trajectory are identical. Using the same random noise and the same diffusion time step ensures that the two trajectories are under completely identical noise conditions during the diffusion process, thus making the difference between the action noise prediction results purely due to the model's processing differences for different visual or linguistic inputs, rather than the randomness of noise sampling. In one implementation, random noise is sampled once from a standard normal distribution and used simultaneously in the noise addition process of both the standard and perturbed trajectories; the diffusion time step is sampled once within the range of 1 to 100 and used simultaneously in the forward computation of both trajectories.

[0053] Stopping gradient operations means that when calculating the gradient of the action consistency constraint, the gradient is not backpropagated to the computational path that produced the first action noise prediction result. This means that when updating model parameters through the action consistency constraint, the prediction result of the standard trajectory branch is treated as a fixed target value, and the gradient is only backpropagated through the perturbation trajectory branch. The purpose is to use the action prediction of the standard trajectory as a reference benchmark, guiding the action prediction of the perturbation trajectory to approach this benchmark, without the gradient of the consistency constraint interfering with the learning of the standard trajectory itself through the diffusion behavior cloning loss.

[0054] Let the noise prediction result of the first action be (Dimensions are 8×7=56), the prediction result for the second action noise is: (The dimensions are also 8×7=56), then the action consistency constraint The calculation formula is: ; in, sg(·) represents the square of the Frobenius norm, which is the sum of the squares of all elements in the matrix; sg(·) indicates stopping the gradient operation. The first motion noise prediction result for the standard trajectory; This is the second motion noise prediction result for the perturbation trajectory.

[0055] In a material sorting scenario, assuming the standard trajectory's verbal instruction is "Place the red bolt on the conveyor belt into the left-hand hopper," the verbal instruction for the visually disturbed trajectory remains unchanged, but the image is processed by increasing brightness by 20 and scaling contrast to 0.85. Since the physical state and expert actions remain unchanged, the model should predict the same noise under both inputs, i.e. It should approach Action consistency constraints force the model to ignore changes in visual appearance and focus on the physical semantics of the task itself by minimizing the difference between the two.

[0056] As can be seen from the above, this embodiment avoids the training instability problem that may be caused by bidirectional gradient propagation by stopping gradient operations and using the prediction result of the standard trajectory as a fixed target; by requiring the same noise and the same diffusion time step, it eliminates the interference of noise sampling randomness on consistency measurement and ensures that the constraint signal purely reflects the model's response differences to visual or linguistic changes; by using the Frobenius norm squared measurement method, it applies uniform constraint force to all time positions and all action dimensions in the action sequence, ensuring the comprehensiveness of action consistency.

[0057] S104: If the disturbance type is a state disturbance, then construct a schedule consistency constraint based on the first task schedule feature sequence and the second task schedule feature sequence.

[0058] In this embodiment, when the disturbance type is a state disturbance, the specific action sequence and execution time in the disturbance trajectory may differ from the standard trajectory due to changes in robot configuration or scene spatial relationships. Therefore, it is not advisable to impose strict consistency constraints on the action output. However, although the specific actions may differ, the tasks performed by the two trajectories should be consistent in logical stages. For example, in the material sorting task, the stages of "approaching the material," "aligning the material," "grabbing the material," "transporting the material," and "placing the material" should all appear sequentially in both trajectories.

[0059] The purpose of schedule consistency constraints is to force the model to maintain a consistent representation of the task execution stages under state perturbation conditions. This constraint is constructed based on the correspondence between the first task schedule feature sequence of the standard trajectory and the second task schedule feature sequence of the perturbation trajectory. By finding the optimal time alignment path between the two schedule feature sequences, a consistency constraint on the schedule features is imposed on the corresponding task stages.

[0060] In one embodiment of this application, a schedule consistency constraint is constructed based on a first task schedule feature sequence and a second task schedule feature sequence, including: The task progress distance matrix is ​​calculated based on the first task progress feature sequence and the second task progress feature sequence; each element in the task progress distance matrix represents the task progress feature at a time position in the standard trajectory and the task progress distance at a time position in the perturbation trajectory.

[0061] In this embodiment, when the disturbance type is a state disturbance, the specific action sequence and execution time in the disturbance trajectory may differ from the standard trajectory due to changes in the robot configuration or scene spatial relationships. For example, in a material sorting scenario, if the initial position of the material is offset by 3cm relative to the standard position, the robotic arm needs to adjust its movement trajectory to reach the new material position, resulting in a different joint movement sequence from the standard trajectory, and the execution time may also differ slightly. However, the tasks performed by the two trajectories are consistent in logical stages, both sequentially going through the stages of "approaching the material," "aligning the material," "gripping the material," "transporting the material," and "placing the material."

[0062] In this embodiment, the task progress distance matrix is ​​calculated based on the first task progress feature sequence and the second task progress feature sequence. Assume the standard trajectory includes... At each time point, the disturbance trajectory includes At each time point, the dimension of the task progress distance matrix D is: The element in the u-th row and v-th column of the matrix. This represents the distance between the task progress characteristics at time position u in the standard trajectory and the task progress characteristics at time position v in the perturbed trajectory. The smaller the distance, the closer the task execution stages are to the corresponding time positions.

[0063] In this embodiment, the standard trajectory includes 50 control moments ( =50), the disturbance trajectory contains 55 control moments ( =55, due to the slight increase in execution time caused by the material position offset), the dimension of the task progress distance matrix is ​​50×55.

[0064] In one embodiment of this application, calculating the task progress distance matrix based on a first task progress feature sequence and a second task progress feature sequence includes: Obtain the task progress features at each time position in the first task progress feature sequence and the task progress features at each time position in the second task progress feature sequence, respectively. For the task progress feature at time u in the first task progress feature sequence and the task progress feature at time v in the second task progress feature sequence, calculate the cosine distance between them and use the cosine distance as the element in the u-th row and v-th column of the task progress distance matrix; the cosine distance is equal to one minus the cosine similarity between the two task progress features. By iterating through all possible combinations of values ​​for u and v, the task progress distance matrix is ​​obtained.

[0065] In this embodiment, the task progress distance matrix is ​​calculated based on the cosine distance between the task progress features at each time position in the first task progress feature sequence and the second task progress feature sequence. Specifically, the task progress features at each time position in the first task progress feature sequence and the task progress features at each time position in the second task progress feature sequence are obtained respectively. Let the first task progress feature sequence contain... Task progress feature vector The second task progress feature sequence contains Task progress feature vector The dimension of each task progress feature vector is d (in one implementation, d=4096).

[0066] For the task progress feature at the u-th time position in the first task progress feature sequence Task progress feature at time position v in the second task progress feature sequence Calculate the cosine distance between the two, and use the cosine distance as the element in the u-th row and v-th column of the task progress distance matrix. The formula for calculating the cosine distance is: ; in, In the above formula, This represents the dot product of two vectors. express The L2 norm (i.e., the square root of the sum of the squares of the elements of the vector). express The L2 norm of the cosine similarity is in the range of [-1, 1], therefore the range of the cosine distance is [0, 2].

[0067] Iterate through all possible combinations of values ​​for u and v (u ranges from 1 to v). v takes 1 to This will yield the complete task progress distance matrix D, with dimensions of . .

[0068] In a material sorting scenario, assuming the standard trajectory contains 50 control moments and the disturbance trajectory contains 55 control moments, and each task progress feature vector has a dimension of 4096, then the task progress distance matrix has a dimension of 50×55, containing a total of 2750 elements. For each element, the cosine distance between two 4096-dimensional vectors needs to be calculated. The computational complexity of this calculation process is O(n log n). With the above parameter settings, the result is approximately 50×55×4096≈1.13×10 7Sub-floating-point operations can be completed in milliseconds on a general-purpose graphics processor.

[0069] In one implementation, to improve computational efficiency, all task progress feature vectors can first be L2 normalized (i.e., each vector is divided by its own L2 norm). After normalization, the cosine similarity is simplified to the inner product of two vectors, thus simplifying the calculation of the cosine distance to: ; in, , These are the normalized task progress feature vectors. This simplified method is equivalent to the original formula in terms of numerical precision, but reduces the number of division operations.

[0070] As can be seen from the above, this embodiment uses cosine distance as the metric between progress features, focusing only on the direction information of the feature vectors while ignoring the amplitude information, making the progress consistency constraint robust to changes in feature scale. By traversing all combinations of time positions, a complete progress distance matrix is ​​constructed, providing sufficient distance information for the subsequent dynamic time warping algorithm, ensuring that the search for the optimal alignment path does not miss any possible correspondences. The L2 normalization preprocessing method improves computational efficiency while ensuring computational accuracy, which is beneficial for quickly completing the construction of the progress distance matrix during training.

[0071] While maintaining the time order, the monotonic alignment path with the minimum cumulative distance is determined from the task progress distance matrix; the time index in the monotonic alignment path is monotonically increasing along the time direction of both the standard trajectory and the perturbation trajectory.

[0072] In this embodiment, the monotonic alignment path can be determined using a dynamic time warping algorithm, which solves for the path with the minimum cumulative distance through dynamic programming. Specifically, a cumulative distance matrix M is defined, where... This represents the distance from the starting position (1,1) of the matrix to the position... The minimum cumulative distance. The recursive relationship of the cumulative distance matrix is: ; in, This indicates that the position with the smallest cumulative distance among three adjacent positions is selected as the predecessor. The boundary conditions are as follows: The first row and first column are initialized using an accumulation method.

[0073] from By starting the backtracking process, we can obtain the monotonically aligned path with the minimum cumulative distance. The path consists of a series of time locations. Composition, where L is the path length, satisfying .

[0074] In a material sorting scenario, assuming that the 10th to 20th time positions in the standard trajectory correspond to the "approaching material" stage, and the 12th to 24th time positions in the disturbance trajectory correspond to the "approaching material" stage (the approaching stage takes a little longer due to the material position offset), then the monotonic alignment path will establish a correspondence between the 10th to 20th time positions of the standard trajectory and the 12th to 24th time positions of the disturbance trajectory.

[0075] For each time position of the task progress feature determined by the monotonically aligned path in the first task progress feature sequence, a stop gradient operation is performed to obtain the task progress feature at each time position after stopping the gradient. The stop gradient operation means that when calculating the gradient of the progress consistency constraint, the gradient is not propagated back to the calculation path that generated the first task progress feature sequence.

[0076] In this embodiment, similar to the stop gradient operation in action consistency constraints, the purpose here is to use the progress characteristics of the standard trajectory as a fixed reference to guide the progress characteristics of the perturbation trajectory to converge with the progress characteristics of the standard trajectory.

[0077] Based on the time position correspondence determined by the monotonic alignment path, the cosine distance between the task progress feature after stopping the gradient at each corresponding time position and the task progress feature at the corresponding time position in the second task progress feature sequence is calculated, and the mean of the cosine distance at each corresponding time position is used as the progress consistency constraint.

[0078] In this embodiment, a monotonic alignment path is defined. It contains L time position pairs, for the i-th time position pair In the standard trajectory, the first The task progress characteristics at each time point are The first in the disturbance trajectory The task progress characteristics at each time point are Then the schedule consistency constraint The calculation formula is: ; Where cos(·,·) represents cosine similarity; sg(·) represents stopping gradient operation; and L is the length of the monotonic alignment path, i.e. the number of time position pairs.

[0079] The cosine distance ranges from [0, 2]. When the two feature vectors are in the same direction, the cosine distance is 0, and when they are in opposite directions, the cosine distance is 2. By minimizing the progress consistency constraint, the progress characteristics of the perturbation trajectory at each task stage are forced to be consistent with the progress characteristics of the corresponding stage of the standard trajectory in terms of direction, thereby ensuring that the model's identification of the task execution stage is not affected by state perturbations.

[0080] As can be seen from the above, this embodiment establishes a time alignment relationship between the standard trajectory and the perturbed trajectory through a dynamic time warping algorithm, allowing for differences in execution duration between the two trajectories and avoiding a rigid requirement for time position correspondence. By performing a stopping gradient operation on the progress features of the standard trajectory, the standard trajectory is used as a reference benchmark for progress representation, ensuring the clarity of the training direction. By measuring the directional consistency between progress features rather than absolute numerical differences through cosine distance, the constraints are invariant to scale changes in the features, enhancing the stability of progress representation learning.

[0081] S105: Determine the overall training objective based on the diffusion behavior cloning loss and action consistency constraint or progress consistency constraint, and update the parameters of the visual language action model by minimizing the overall training objective; the diffusion behavior cloning loss is determined based on the difference between the random noise actually added to the expert action sequences of the standard trajectory and the perturbation trajectory and the corresponding action noise prediction results.

[0082] In this embodiment, the overall training objective consists of two parts: diffusion behavior cloning loss and consistency constraints. The diffusion behavior cloning loss is the fundamental training objective for the model to learn expert actions. It is calculated as follows: random Gaussian noise is added to the expert action sequences of both the standard and perturbed trajectories. The diffusion action decoder then predicts the added noise based on the noisy action, the diffusion time step, and the action generation conditions. The difference between the predicted noise and the actual added noise is used as the loss. This difference is measured using the square of the Frobenius norm.

[0083] The consistency constraints are selectively introduced based on the type of perturbation: when the perturbation is visual or linguistic, an action consistency constraint is introduced; when the perturbation is state, a progress consistency constraint is introduced. The overall training objective is a weighted sum of the diffusion behavior cloning loss and the corresponding consistency constraints.

[0084] By minimizing the overall training objective, the backpropagation algorithm is used to calculate the gradient and update the model parameters. In one implementation, the optimizer employs an adaptive learning rate optimization algorithm, with an initial learning rate set to... The learning rate is scheduled using a cosine annealing strategy, with a total of 500 training rounds and each batch containing 16 paired training units.

[0085] As can be seen from the above, this embodiment acquires paired training data containing three types of perturbations: visual, linguistic, and state. It then uses a parameter-sharing model to extract action noise prediction results and task progress feature sequences. For visual or linguistic perturbations that do not change the physical state, action consistency constraints are constructed based on the action noise prediction results, forcing the model to ignore non-semantic changes to maintain output stability. For state perturbations that change the physical state, progress consistency constraints are constructed based on the task progress feature sequences, enabling the model to maintain correct task stage recognition when adapting to new configurations. Finally, the parameters are updated by combining the diffusion behavior cloning loss with the corresponding consistency constraints, effectively solving the problem that a single constraint cannot simultaneously accommodate different perturbation characteristics. This embodiment achieves a balance between the model's robustness to irrelevant perturbations and its adaptability to state changes, improving the generalization ability of operational strategies in complex scenarios.

[0086] In one embodiment of this application, determining the overall training objective based on diffusion behavior cloning loss and action consistency constraints or progress consistency constraints includes: The diffusion behavior cloning loss of the standard trajectory and the diffusion behavior cloning loss of the perturbation trajectory are calculated separately. The diffusion behavior cloning loss of the standard trajectory is determined by the sum of squares of the differences between each element of the random noise actually added to the expert action sequence of the standard trajectory and the prediction result of the first action noise. The diffusion behavior cloning loss of the perturbation trajectory is determined by the sum of squares of the differences between each element of the random noise actually added to the expert action sequence of the perturbation trajectory and the prediction result of the second action noise. The total diffusion behavior cloning loss is obtained by summing the diffusion behavior cloning loss of the standard trajectory and the diffusion behavior cloning loss of the perturbation trajectory. If the perturbation type is visual or linguistic, the total diffusion behavior cloning loss and the action consistency constraint are weighted and summed to obtain the overall training objective. If the perturbation type is state perturbation, then the total diffusion behavior cloning loss and the progress consistency constraint are weighted and summed to obtain the overall training objective.

[0087] In this embodiment, the diffusion behavior cloning loss of the standard trajectory is determined based on the sum of squares of the differences between each element of the predicted result of the first action noise and the random noise actually added to the expert action sequence of the standard trajectory. Let the expert action sequence of the standard trajectory be... (Dimensionality is 8×7=56), the actual added random noise is (Sampling from a standard normal distribution), the first action noise prediction result is: Then the cloning loss of the diffusion behavior of the standard trajectory is: ; The cloning loss for the diffusion behavior of the perturbation trajectory is determined based on the sum of squared differences between the elements of the predicted result of the second action noise and the actual random noise added to the expert action sequence of the perturbation trajectory. Let the expert action sequence of the perturbation trajectory be A^p, and the actual added random noise be... The second action noise prediction result is Then the cloning loss of the diffusion behavior of the perturbation trajectory is: ; in, This represents the square of the Frobenius norm; the coefficient 1 / 2 is the standard coefficient setting in the training of the diffusion model, used to eliminate the factor 2 generated by the derivative of the squared term during gradient calculation, thus simplifying the gradient expression.

[0088] The total diffusion behavior cloning loss is obtained by summing the diffusion behavior cloning loss of the standard trajectory and the diffusion behavior cloning loss of the perturbed trajectory. ; Where c represents the standard trajectory and p represents the perturbation trajectory.

[0089] In this embodiment, if the perturbation type is visual or linguistic, the total diffusion behavior cloning loss is weighted and summed with the action consistency constraint to obtain the overall training objective: ; If the perturbation type is a state perturbation, then the total diffusion behavior cloning loss and the progress consistency constraint are weighted and summed to obtain the overall training objective: ; in, These are the weighting coefficients for the action consistency constraint. These are the weighting coefficients for schedule consistency constraints.

[0090] In one implementation, , The method for determining this value is as follows: In the simulation experiment, set the values ​​respectively. and The model's overall performance on standard task success rate and perturbation robustness was compared using different weight values ​​of 0.1, 0.5, 1, 2, and 5. Experimental results show that when both weight coefficients are set to 1, the model achieves the best overall performance in terms of standard task success rate and perturbation robustness. When the weights are too small (e.g., 0.1 or 0.5), the consistency constraint is insufficient, resulting in poor model robustness to perturbations; when the weights are too large (e.g., 2 or 5), the consistency constraint is too strong, which may interfere with the learning of expert actions by the cloning loss of the behavior diffusion, leading to a decrease in the standard task success rate.

[0091] In this embodiment, by minimizing the overall training objective, the gradient of each trainable parameter is calculated using the backpropagation algorithm, and the parameters are updated by the optimizer. In one implementation, the optimizer uses the AdamW optimization algorithm, with an initial learning rate set to 1×10⁻⁶. -4 The weight decay coefficient is set to 0.01, and the learning rate is scheduled using a cosine annealing strategy, meaning the learning rate gradually decays from its initial value to a minimum learning rate of 1×10⁻⁶ according to a cosine function curve. -6 The total number of training rounds is set to 500, with each batch containing 16 paired training units. In each training round, a batch of paired training units is randomly sampled from the training dataset. For each paired training unit, a corresponding overall training objective is constructed based on its perturbation type, the gradient is calculated, and the parameters are updated.

[0092] As can be seen from the above, this embodiment achieves joint optimization of basic action learning and robustness enhancement by weighted summation of diffusion behavior cloning loss and consistency constraints, enabling the model to gain resistance to perturbations while learning expert actions; by selectively introducing different types of constraints according to the type of perturbation, irrelevant constraints are avoided from interfering with model learning; the weight coefficients determined by experiments achieve a good balance between standard task performance and perturbation robustness, avoiding the subjectivity and uncertainty of manual parameter tuning.

[0093] In one embodiment of this application, the initial parameters of the visual language action model to be trained are obtained; the multimodal feature encoding units in the initial parameters are initialized based on the parameters of the pre-trained visual language model. During training, the parameters of the visual encoder and language model in the multimodal feature encoding unit are kept frozen, and only the parameters of the state mapping network, action-progress feature modeling unit, feature fusion network and diffusion action decoder are updated.

[0094] In this embodiment, the parameters of the visual encoder are initialized using visual encoder weights pre-trained on large-scale image-text pairing data, and the parameters of the language model are initialized using language model weights pre-trained on large-scale text corpora. The parameters of the multimodal projection layer are randomly initialized (e.g., Xavier initialization or Kaiming initialization).

[0095] In material sorting scenarios, the pre-trained visual language model has been pre-trained on a large-scale dataset containing billions of image-text pairs, demonstrating powerful visual and language understanding capabilities. By using its parameters as the initial parameters for the multimodal feature encoding unit, the model possesses a basic understanding of material appearance, spatial relationships, and language instructions from the early stages of training, eliminating the need to learn visual and language features from scratch and significantly accelerating training convergence.

[0096] The parameters of the state mapping network, action-progress feature modeling unit, feature fusion network, and diffusion action decoder are randomly initialized. In one implementation, the linear layer parameters in the state mapping network, feature fusion network, and diffusion action decoder are initialized using Kaiming, and the bias term is initialized to 0; the action query vector and progress query vector are randomly initialized using a normal distribution with a mean of 0 and a standard deviation of 0.02.

[0097] In this embodiment, parameter freezing refers to setting the gradients of all parameters of the visual encoder and language model to zero, so that they are not updated during backpropagation. Specifically, after each backpropagation gradient calculation, the gradients of the corresponding parameters of the visual encoder and language model are set to zero, or these parameters are excluded from the optimizer so that they do not participate in parameter updates.

[0098] In material sorting scenarios, the visual encoder contains approximately 300 million parameters, and the language model contains approximately 7 billion parameters, totaling approximately 7.3 billion parameters. The state mapping network contains approximately 8.4 million parameters (9×512+512×2048+2048×4096≈8.4×10). 6 The action-progress feature modeling unit contains approximately 27 million parameters (mainly composed of weight matrices from multi-head cross-attention layers), and the feature fusion network contains approximately 170 million parameters (36864×4096+4096×2048+2048×2048≈1.7×10). 8 The diffusion action decoder contains approximately 12 million parameters. The total number of trainable parameters is approximately 220 million, which is only about 3% of the total parameters in the model.

[0099] The purpose of this parameter freezing strategy is that the pre-trained visual language model has already learned rich visual and linguistic representations on large-scale data. These representations have strong transferability in downstream tasks such as material sorting, eliminating the need for significant adjustments for specific tasks. Freezing the parameters of the visual encoder and language model avoids catastrophic forgetting (i.e., the model losing the general visual and linguistic understanding capabilities acquired during pre-training) that might result from fine-tuning on small-scale robot operation data. Furthermore, it significantly reduces the number of trainable parameters, lowering memory usage and training time. In one implementation, using this parameter freezing strategy, a single graphics processor with 80GB of memory can complete the training, with each training round taking approximately 15 minutes, and 500 rounds taking approximately 5 days.

[0100] As can be seen from the above, by using the parameters of the pre-trained visual language model for initialization, the model has strong visual and language understanding capabilities in the early stages of training, which accelerates training convergence and reduces the need for large-scale robot operation data. By freezing the parameters of the visual encoder and language model, catastrophic forgetting caused by fine-tuning on small-scale robot data is effectively prevented, and the stability of the model's general representation ability is maintained.

[0101] Corresponding to the visual language action model training method based on cross-perturbation alignment in the above embodiment, Figure 2 This is a structural block diagram of a visual language action model training device based on cross-perturbation alignment, provided as an embodiment of this application. For ease of explanation, only the parts relevant to the embodiment of this application are shown. References Figure 2 The visual language action model training device 20 based on cross-perturbation alignment includes: a data acquisition module 21, a forward calculation module 22, a first constraint construction module 23, a second constraint construction module 24, and a parameter update module 25.

[0102] The data acquisition module 21 is used to acquire paired training data. The paired training data includes a standard trajectory, a perturbation trajectory corresponding to the standard trajectory, and the perturbation type of the perturbation trajectory. The perturbation type includes visual perturbation, verbal perturbation, and state perturbation. Visual perturbation refers to the perturbation that applies changes to visual observations in the standard trajectory without changing the physical state of the task and the expert actions. Verbal perturbation refers to the perturbation that applies changes to verbal instructions in the standard trajectory without changing the physical state of the task and the expert actions. State perturbation refers to the perturbation that changes the robot configuration or the spatial relationship of the scene. The forward computation module 22 is used to input the standard trajectory and the perturbation trajectory into the visual language action model with shared parameters for forward computation, to obtain the first action noise prediction result and the first task progress feature sequence corresponding to the standard trajectory, and the second action noise prediction result and the second task progress feature sequence corresponding to the perturbation trajectory; the visual language action model includes a multimodal feature encoding unit, an action-progress feature modeling unit and a continuous action generation unit; The first constraint construction module 23 is used to construct action consistency constraints based on the first action noise prediction result and the second action noise prediction result if the disturbance type is visual disturbance or linguistic disturbance. The second constraint construction module 24 is used to construct a schedule consistency constraint based on the first task schedule feature sequence and the second task schedule feature sequence if the disturbance type is a state disturbance. The parameter update module 25 is used to determine the overall training objective based on the diffusion behavior cloning loss and the action consistency constraint or progress consistency constraint, and to update the parameters of the visual language action model by minimizing the overall training objective; the diffusion behavior cloning loss is determined based on the difference between the random noise actually added to the expert action sequences of the standard trajectory and the perturbation trajectory and the corresponding action noise prediction results.

[0103] In one embodiment of this application, the forward computation module 22 is specifically used for: The visual encoder in the multimodal feature encoding unit is input into the continuous multi-frame images and language commands in the standard trajectory to obtain visual features; the visual features are then projected into the language model along with the language commands to obtain visual language features; the robot state in the standard trajectory is input into the state mapping network to obtain state features consistent with the dimensions of the visual language features; the visual language features and state features are concatenated along the feature dimensions to obtain the multimodal context corresponding to the standard trajectory. The multimodal context is input into the action-progress feature modeling unit. Multi-head cross-attention operation is performed on the multimodal context through the action query vector to obtain action-related features. Multi-head cross-attention operation is performed on the multimodal context through multiple progress query vectors to obtain multiple progress-related features. Both the action query vector and the multiple progress query vectors are learnable parameters. After concatenating action-related features and multiple progress-related features along the feature dimension, the concatenation is input into a feature fusion network for fusion processing to obtain the action generation conditions. Random noise is added to the expert action sequence of the standard trajectory to obtain the first noisy action block. The action generation conditions, the first noisy action block and the diffusion time step are input into the diffusion action decoder in the continuous action generation unit to obtain the first action noise prediction result. The first task progress feature sequence is obtained by averaging the progress-related features at the same time position among multiple progress-related features. Perform the same forward computation process as the standard trajectory on the disturbed trajectory to obtain the second motion noise prediction result and the second task progress feature sequence.

[0104] In one embodiment of this application, the first constraint construction module 23 is specifically used for: The same random noise was added to the expert action sequence of the standard trajectory and the expert action sequence of the perturbed trajectory, and the same diffusion time step was used; A stop gradient operation is performed on the first action noise prediction result to obtain the first action noise prediction result after stopping the gradient. The stop gradient operation means that when calculating the gradient of the action consistency constraint, the gradient is not propagated back to the calculation path that generated the first action noise prediction result. Calculate the sum of squares of the differences between each element in the second action noise prediction result and the first action noise prediction result after stopping the gradient, and use the sum of squares of the differences between each element as the action consistency constraint.

[0105] In one embodiment of this application, the second constraint construction module 24 is specifically used for: The task progress distance matrix is ​​calculated based on the first task progress feature sequence and the second task progress feature sequence; each element of the task progress distance matrix represents the task progress feature at a time position in the standard trajectory and the task progress distance at a time position in the perturbation trajectory. While maintaining the time order, determine the monotonic alignment path with the minimum cumulative distance from the task progress distance matrix; the time index in the monotonic alignment path is monotonically increasing along the time direction of both the standard trajectory and the perturbation trajectory. For each time position of the task progress feature determined by the monotonically aligned path in the first task progress feature sequence, a gradient-stopping operation is performed to obtain the task progress feature at each time position after gradient-stopping. The gradient-stopping operation means that when calculating the gradient of the progress consistency constraint, the gradient is not propagated back to the calculation path that generated the first task progress feature sequence. Based on the time position correspondence determined by the monotonic alignment path, the cosine distance between the task progress feature after stopping the gradient at each corresponding time position and the task progress feature at the corresponding time position in the second task progress feature sequence is calculated, and the mean of the cosine distance at each corresponding time position is used as the progress consistency constraint.

[0106] In one embodiment of this application, the second constraint construction module 24 is further configured to: Obtain the task progress features at each time position in the first task progress feature sequence and the task progress features at each time position in the second task progress feature sequence, respectively. For the task progress feature at time u in the first task progress feature sequence and the task progress feature at time v in the second task progress feature sequence, calculate the cosine distance between them and use the cosine distance as the element in the u-th row and v-th column of the task progress distance matrix; the cosine distance is equal to one minus the cosine similarity between the two task progress features. By iterating through all possible combinations of values ​​for u and v, the task progress distance matrix is ​​obtained.

[0107] In one embodiment of this application, the parameter update module 25 is specifically used for: The diffusion behavior cloning loss of the standard trajectory and the diffusion behavior cloning loss of the perturbation trajectory are calculated separately. The diffusion behavior cloning loss of the standard trajectory is determined by the sum of squares of the differences between each element of the random noise actually added to the expert action sequence of the standard trajectory and the prediction result of the first action noise. The diffusion behavior cloning loss of the perturbation trajectory is determined by the sum of squares of the differences between each element of the random noise actually added to the expert action sequence of the perturbation trajectory and the prediction result of the second action noise. The total diffusion behavior cloning loss is obtained by summing the diffusion behavior cloning loss of the standard trajectory and the diffusion behavior cloning loss of the perturbation trajectory. If the perturbation type is visual or linguistic, the total diffusion behavior cloning loss and the action consistency constraint are weighted and summed to obtain the overall training objective. If the perturbation type is state perturbation, then the total diffusion behavior cloning loss and the progress consistency constraint are weighted and summed to obtain the overall training objective.

[0108] In one embodiment of this application, the visual language action model training device 20 based on cross-perturbation alignment further includes: a training module, used for: Obtain the initial parameters of the visual language action model to be trained; the multimodal feature encoding units in the initial parameters are initialized based on the parameters of the pre-trained visual language model; During training, the parameters of the visual encoder and language model in the multimodal feature encoding unit are kept frozen, and only the parameters of the state mapping network, action-progress feature modeling unit, feature fusion network and diffusion action decoder are updated.

[0109] See Figure 3 , Figure 3 This is a schematic block diagram of an electronic device provided according to an embodiment of this application. Figure 3 The electronic device 300 in this embodiment may include one or more processors 301, one or more input devices 302, one or more output devices 303, and one or more memories 304. The processors 301, input devices 302, output devices 303, and memories 304 communicate with each other via a communication bus 305. The memories 304 store computer programs, including program instructions. The processors 301 execute the program instructions stored in the memories 304. Specifically, the processors 301 are configured to invoke the program instructions to perform the functions of the modules in the aforementioned device embodiments, for example... Figure 2 The functions of the data acquisition module 21, the forward calculation module 22, the first constraint construction module 23, the second constraint construction module 24, and the parameter update module 25 are shown.

[0110] It should be understood that, in the embodiments of this application, the processor 301 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0111] Input device 302 may include a touchpad, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint orientation information), a microphone, etc., and output device 303 may include a display (LCD, etc.), a speaker, etc.

[0112] The memory 304 may include read-only memory and random access memory, and provides instructions and data to the processor 301. A portion of the memory 304 may also include non-volatile random access memory. For example, the memory 304 may also store information such as the first motion noise prediction result and the first task progress feature sequence.

[0113] In specific implementations, the processor 301, input device 302, and output device 303 described in the embodiments of this application can execute the implementation method described in the visual language action model training method based on cross-perturbation alignment provided in the embodiments of this application, or they can execute the implementation method of the electronic device described in the embodiments of this application, which will not be repeated here.

[0114] In another embodiment of this application, a computer-readable storage medium is provided. This computer-readable storage medium stores a computer program, which includes program instructions. When executed by a processor, the program instructions implement all or part of the processes in the methods described above. Alternatively, the computer program can instruct related hardware to complete the process. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include any entity or device capable of carrying computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0115] The computer-readable storage medium can be an internal storage unit of the electronic device in any of the foregoing embodiments, such as a hard disk or memory of the electronic device. The computer-readable storage medium can also be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device. Furthermore, the computer-readable storage medium can include both internal and external storage units of the electronic device. The computer-readable storage medium is used to store computer programs and other programs and data required by the electronic device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0116] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0117] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the electronic devices and units described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0118] In the several embodiments provided in this application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections through some interfaces or units, or they may be electrical, mechanical, or other forms of connection.

[0119] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of this application, depending on actual needs.

[0120] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0121] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for training a visual language action model based on cross-perturbation alignment, characterized in that, include: Obtain paired training data; The paired training data includes a standard trajectory, a perturbation trajectory corresponding to the standard trajectory, and the perturbation type of the perturbation trajectory; the perturbation type includes visual perturbation, verbal perturbation, and state perturbation; wherein, visual perturbation refers to perturbation that applies changes to visual observations in the standard trajectory without changing the physical state of the task and the expert actions, verbal perturbation refers to perturbation that applies changes to verbal instructions in the standard trajectory without changing the physical state of the task and the expert actions, and state perturbation refers to perturbation that changes the robot configuration or the spatial relationship of the scene; The standard trajectory and the perturbation trajectory are respectively input into a visual language action model with shared parameters for forward computation to obtain the first action noise prediction result and the first task progress feature sequence corresponding to the standard trajectory, and the second action noise prediction result and the second task progress feature sequence corresponding to the perturbation trajectory; the visual language action model includes a multimodal feature encoding unit, an action-progress feature modeling unit, and a continuous action generation unit; If the perturbation type is the visual perturbation or the linguistic perturbation, then an action consistency constraint is constructed based on the first action noise prediction result and the second action noise prediction result; If the disturbance type is the state disturbance, then a progress consistency constraint is constructed based on the first task progress feature sequence and the second task progress feature sequence; The overall training objective is determined based on the diffusion behavior cloning loss and the action consistency constraint or the progress consistency constraint, and the parameters of the visual language action model are updated by minimizing the overall training objective; the diffusion behavior cloning loss is determined based on the difference between the random noise actually added to the expert action sequences of the standard trajectory and the perturbation trajectory and the corresponding action noise prediction results.

2. The visual language action model training method based on cross-perturbation alignment as described in claim 1, characterized in that, The step of performing forward computation on a visual language action model that shares parameters with inputting the standard trajectory and the perturbed trajectory respectively, to obtain a first action noise prediction result and a first task progress feature sequence corresponding to the standard trajectory, and a second action noise prediction result and a second task progress feature sequence corresponding to the perturbed trajectory, includes: The visual encoder in the multimodal feature encoding unit is input into the continuous multi-frame images and language commands in the standard trajectory to obtain visual features; the visual features are then projected into a language model along with the language commands to obtain visual language features; the robot state in the standard trajectory is input into a state mapping network to obtain state features consistent with the dimensions of the visual language features; the visual language features and the state features are concatenated along the feature dimensions to obtain the multimodal context corresponding to the standard trajectory. The multimodal context is input into the action-progress feature modeling unit. Multi-head cross-attention operation is performed on the multimodal context using action query vectors to obtain action-related features. Multi-head cross-attention operation is performed on the multimodal context using multiple progress query vectors to obtain multiple progress-related features. Both the action query vector and the multiple progress query vectors are learnable parameters. The action-related features and the multiple progress-related features are concatenated along the feature dimension and then input into a feature fusion network for fusion processing to obtain the action generation conditions. Random noise is added to the expert action sequence of the standard trajectory to obtain a first noisy action block. The action generation conditions, the first noisy action block and the diffusion time step are input into the diffusion action decoder in the continuous action generation unit to obtain the first action noise prediction result. The first task progress feature sequence is obtained by averaging the progress-related features at the same time position among the multiple progress-related features. Perform the same forward calculation process as the standard trajectory on the disturbed trajectory to obtain the second motion noise prediction result and the second task progress feature sequence.

3. The visual language action model training method based on cross-perturbation alignment as described in claim 1, characterized in that, The step of constructing action consistency constraints based on the first action noise prediction result and the second action noise prediction result includes: The same random noise is added to the expert action sequence of the standard trajectory and the expert action sequence of the perturbed trajectory, and the same diffusion time step is used; A gradient-stopping operation is performed on the first motion noise prediction result to obtain the first motion noise prediction result after gradient-stopping; the gradient-stopping operation means that when calculating the gradient of the motion consistency constraint, the gradient is not propagated back to the calculation path that generated the first motion noise prediction result. Calculate the sum of squares of the differences between each element in the second action noise prediction result and the first action noise prediction result after the stopping gradient, and use the sum of squares of the differences between each element as the action consistency constraint.

4. The visual language action model training method based on cross-perturbation alignment as described in claim 1, characterized in that, The step of constructing schedule consistency constraints based on the first task schedule feature sequence and the second task schedule feature sequence includes: Calculate a task progress distance matrix based on the first task progress feature sequence and the second task progress feature sequence; each element in the task progress distance matrix represents the task progress feature at a time position in the standard trajectory and the task progress distance at a time position in the perturbation trajectory. While maintaining the time order, the monotonic alignment path with the minimum cumulative distance is determined from the task progress distance matrix; the time index in the monotonic alignment path is monotonically increasing along the time direction of the standard trajectory and the time direction of the perturbation trajectory. A gradient-stopping operation is performed on the task progress features at each time position determined by the monotonic alignment path in the first task progress feature sequence to obtain the task progress features at each time position after gradient-stopping. The gradient-stopping operation means that when calculating the gradient of the progress consistency constraint, the gradient is not propagated back to the calculation path that generated the first task progress feature sequence. Based on the time position correspondence determined by the monotonic alignment path, the cosine distance between the task progress feature after the stopping gradient at each corresponding time position and the task progress feature at the corresponding time position in the second task progress feature sequence is calculated, and the mean of the cosine distance at each corresponding time position is used as the progress consistency constraint.

5. The visual language action model training method based on cross-perturbation alignment as described in claim 4, characterized in that, The step of calculating the task progress distance matrix based on the first task progress feature sequence and the second task progress feature sequence includes: Obtain the task progress features at each time position in the first task progress feature sequence and the task progress features at each time position in the second task progress feature sequence, respectively; For the task progress feature at the u-th time position in the first task progress feature sequence and the task progress feature at the v-th time position in the second task progress feature sequence, calculate the cosine distance between them, and use the cosine distance as the element in the u-th row and v-th column of the task progress distance matrix; By iterating through all possible combinations of values ​​for u and v, the task progress distance matrix is ​​obtained.

6. The visual language action model training method based on cross-perturbation alignment as described in claim 1, characterized in that, The determination of the overall training objective based on the diffusion behavior cloning loss and the action consistency constraint or the progress consistency constraint includes: The diffusion behavior cloning loss of the standard trajectory and the diffusion behavior cloning loss of the perturbation trajectory are calculated respectively. The diffusion behavior cloning loss of the standard trajectory is determined based on the sum of squares of the differences between each element of the random noise actually added to the expert action sequence of the standard trajectory and the first action noise prediction result. The diffusion behavior cloning loss of the perturbation trajectory is determined based on the sum of squares of the differences between each element of the random noise actually added to the expert action sequence of the perturbation trajectory and the second action noise prediction result. The total diffusion behavior cloning loss is obtained by summing the diffusion behavior cloning loss of the standard trajectory and the diffusion behavior cloning loss of the perturbation trajectory. If the perturbation type is the visual perturbation or the linguistic perturbation, then the total diffusion behavior cloning loss and the action consistency constraint are weighted and summed to obtain the overall training objective; If the perturbation type is the state perturbation, then the total diffusion behavior cloning loss and the progress consistency constraint are weighted and summed to obtain the overall training objective.

7. The visual language action model training method based on cross-perturbation alignment as described in claim 2, characterized in that, Obtain the initial parameters of the visual language action model to be trained; the multimodal feature encoding units in the initial parameters are initialized based on the parameters of the pre-trained visual language model; During training, the parameters of the visual encoder and the language model in the multimodal feature encoding unit are kept frozen, and only the parameters of the state mapping network, the action-progress feature modeling unit, the feature fusion network, and the diffusion action decoder are updated.

8. A training device for a visual language action model based on cross-perturbation alignment, characterized in that, include: The data acquisition module is used to acquire paired training data; The paired training data includes a standard trajectory, a perturbation trajectory corresponding to the standard trajectory, and the perturbation type of the perturbation trajectory; the perturbation type includes visual perturbation, verbal perturbation, and state perturbation; wherein, visual perturbation refers to perturbation that applies changes to visual observations in the standard trajectory without changing the physical state of the task and the expert actions, verbal perturbation refers to perturbation that applies changes to verbal instructions in the standard trajectory without changing the physical state of the task and the expert actions, and state perturbation refers to perturbation that changes the robot configuration or the spatial relationship of the scene; The forward computation module is used to input the standard trajectory and the perturbation trajectory into a visual language action model with shared parameters for forward computation, to obtain the first action noise prediction result and the first task progress feature sequence corresponding to the standard trajectory, and the second action noise prediction result and the second task progress feature sequence corresponding to the perturbation trajectory; the visual language action model includes a multimodal feature encoding unit, an action-progress feature modeling unit, and a continuous action generation unit; The first constraint construction module is used to construct action consistency constraints based on the first action noise prediction result and the second action noise prediction result if the disturbance type is the visual disturbance or the language disturbance. The second constraint construction module is used to construct a progress consistency constraint based on the first task progress feature sequence and the second task progress feature sequence if the disturbance type is the state disturbance. The parameter update module is used to determine the overall training objective based on the diffusion behavior cloning loss and the action consistency constraint or the progress consistency constraint, and to update the parameters of the visual language action model by minimizing the overall training objective; the diffusion behavior cloning loss is determined based on the difference between the random noise actually added to the expert action sequences of the standard trajectory and the perturbation trajectory and the corresponding action noise prediction results.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.