Robot combined video generation method, device, equipment and computer program product
By combining language planning and video diffusion generation models, the problems of missing subject representation and misaligned spatial relationships in embodied intelligence scenarios are solved, generating composite videos that conform to physical causality, which are suitable for downstream strategy learning and world simulation of robots.
Patent Information
- Application Number
- CN202611430575.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-20
AI Technical Summary
Existing mainstream text-based video diffusion models suffer from issues such as missing subject representation and misaligned relationships between subjects in embodied intelligence scenarios. This results in insufficient physical causal rationality of the generated videos, making it difficult to meet the needs of downstream strategy learning and world simulation for robots.
By acquiring combined prompts from user input, scene analysis is performed using a language planning model to obtain prior information on the subject set and spatiotemporal layout. Subject perception conditions are generated through text encoding, and layout-forced attention modulation is performed by combining the cross-attention layer of the video diffusion generation model to generate the target combined video.
It solves the problems of missing subject presentation and misaligned spatial relationships in embodied intelligence scenarios, ensuring that all elements appear completely in the generated video and that the interaction relationships conform to physical causality, thus adapting to the video data requirements of downstream robot applications.
Smart Images

Figure CN123145461A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer vision technology, and in particular to a method, apparatus, device and computer program product for generating robot combined video. Background Technology
[0002] Video generation in embodied AI scenarios is a key data source for robot world modeling and policy learning. Its core objective is to generate videos of robots performing tasks in real physical scenarios based on natural language instructions provided by users. Unlike general text-based videos (i.e., AI automatically generates corresponding videos based on input text descriptions), embodied scenarios are inherently "combinatorial": each video typically contains multiple elements such as the robot itself, the manipulated object, the supporting surface / container, and background distractions, and it is necessary to depict the intricate and complex interaction relationships between these elements.
[0003] However, while existing mainstream textual video diffusion models have made significant progress on simple single-subject cues, they still face two fundamental problems when dealing with embodied cues involving multiple elements and relationships: 1) The main subject is missing, that is, not all of the multiple elements explicitly declared in the prompt appear in the generated video. This often results in the robot or target object being missing or misattributed. 2) Misalignment of inter-subject relationships, that is, although all elements appear, their spatial layout and interaction direction ("where to put", "which way to push", "who to contact") do not match the language instructions.
[0004] Any of these issues would undermine the physical causal plausibility of the generated video as a credible future vision for robots, making it difficult to serve downstream policy learning and world simulation. Summary of the Invention
[0005] The main purpose of this application is to provide a method, apparatus, device and computer program product for generating robot assemblies videos, which aims to improve the problems of missing subjects and misaligned spatial interaction relationships in videos generated under embodied assemblies prompts, ensure the physical causal rationality of the output video, and adapt to the needs of downstream robot strategy learning and world simulation.
[0006] To achieve the above objectives, this application proposes a method for generating robot ensemble videos, the method comprising: Obtain the combined prompt information input by the target user; The combined prompt information is analyzed using a language planning model to obtain the subject set and spatiotemporal layout prior information. The combined prompt information and each subject in the subject set are text-encoded respectively. Subject perception condition interpolation is performed based on the encoding results to obtain the subject perception condition. The subject perception conditions and the spatiotemporal layout prior information are input into the video diffusion generation model, and layout-forced attention modulation processing is performed in the cross-attention layer of the video diffusion generation model to generate the target combined video.
[0007] In one possible implementation, the step of performing combined scenario parsing on the combined prompt information using a language planning model to obtain the subject set and spatiotemporal layout prior information includes: Construct prompts for context learning, and add the combined prompt information to the prompts to generate model input text. The prompts include scene planning instructions, output format examples, and chained inference trigger content. The input text of the model is input into the language planning model for combined scenario parsing processing, which triggers the language planning model to perform chain reasoning on the input text of the model and outputs the model parsing result; The subject set and spatiotemporal layout prior information are extracted from the model analysis results.
[0008] In one possible implementation, the text encoding of the combined prompt information and each subject in the subject set includes: The combined prompt information is subjected to context encoding by a text encoder to obtain the complete prompt encoding result; From the complete prompt encoding result, extract the context subject features corresponding to each subject in the subject set; For any subject in the subject set, the text encoder performs independent encoding on the subject and outputs the semantic anchor features corresponding to the subject.
[0009] In one possible implementation, the step of performing subject-aware conditional interpolation based on the encoding result to obtain the subject-aware condition includes: Read the contextual subject features and semantic anchor features corresponding to each subject, and calculate the similarity between the contextual subject features and semantic anchor features corresponding to any subject to obtain the subject saliency of any subject; For each subject, a difference operation is performed between the semantic anchor features of the other subjects and the semantic anchor features of the current subject, and the results of the difference operation are summarized to generate the recovery vector corresponding to the current subject. Obtain the denoising process parameters output by the video diffusion generation model during inference, extract time step information from the denoising process parameters, and generate time decay constraint weights based on the extracted time step information; Based on the time decay constraint weights and the subject saliency and recovery vector corresponding to each subject, interpolation correction is performed on the context subject features to obtain the subject perception conditions.
[0010] In one possible implementation, the interpolation correction of the contextual subject features based on the time decay constraint weights and the subject saliency and recovery vector corresponding to each subject to obtain the subject perception conditions includes: For any of the subjects, an interpolation adjustment coefficient is generated by combining the time decay constraint weight and the subject saliency corresponding to the subject. Using the interpolation adjustment coefficient and the recovery vector, semantic interpolation is performed on the context subject features corresponding to the subject to obtain interpolated semantic features, and the interpolated semantic features are used to replace the context subject features at the corresponding positions in the complete prompt encoding result; The subject perception condition is obtained by replacing the interpolated semantic features corresponding to all the subjects with the complete prompt encoding result.
[0011] In one possible implementation, the video diffusion generation model comprises multiple stacked decoding blocks, each of which includes a self-attention layer, a cross-attention layer, and a feedforward network layer. The step of inputting the subject perception conditions and the spatiotemporal layout prior information into the video diffusion generation model, and performing layout-forced attention modulation processing in the cross-attention layer of the video diffusion generation model to generate the target composite video includes: The subject perception conditions and the spatiotemporal layout prior information are input into the video diffusion generation model. The initial noisy video latent variables are obtained by sampling through the video diffusion generation model, and a multi-step denoising inference process is started. In each step of the denoising inference process, when it is the first denoising step, the initial noisy video latent variable is sent as the input video latent variable feature to the self-attention layer of the current decoding block. When it is not the first denoising step, the updated video latent variable feature output from the previous denoising step is sent as the input video latent variable feature to the self-attention layer of the current decoding block, so as to perform video spatiotemporal dimension feature association calculation on the input video latent variable feature through the self-attention layer and output self-attention feature. The self-attention features are fed into the cross-attention layer of the current decoding block. During the operation of the cross-attention layer, the video text attention map corresponding to each subject is read and output, and the video text attention map corresponding to each subject is subjected to threshold binarization to generate the adaptive perception layout corresponding to each subject. The adaptive perception layout of each subject is compared with the prior information of the spatiotemporal layout by performing an intersection-union-comparison (CIUC) operation, and the attention modulation intensity corresponding to each subject is determined based on the CIUC operation result. Based on the planned layout area of each subject in the spatiotemporal layout prior information, attention enhancement region and attention inhibition region are divided, and bidirectional attention bias corresponding to each subject is constructed in combination with the attention modulation intensity; The bidirectional attention bias is superimposed on the attention calculation stage of the cross-attention layer to correct the attention distribution parameters of the cross-attention layer, and cross-attention features are output based on the corrected attention distribution parameters. The cross-attention features are fed into the feedforward network layer of the current decoding block to complete the nonlinear feature transformation. The features output by the feedforward network layer are input into the next decoding block. After all decoding blocks are processed in sequence, the updated video latent variable features corresponding to the current denoising step are output. After completing all the iterative processing steps of denoising, the latent variable features of the target video are obtained, and the latent variable features of the target video are input into the decoding module to perform decoding operations to generate the target combined video.
[0012] In one possible implementation, the step of dividing the planned layout area of each subject into an attention enhancement region and an attention inhibition region based on the prior spatiotemporal layout information, and constructing a bidirectional attention bias corresponding to each subject in combination with the attention modulation intensity, includes: For any of the subjects, read the planning layout region corresponding to the subject from the spatiotemporal layout prior information, and delineate the attention enhancement region and attention inhibition region of the subject based on the planning layout region; A positive bias component is configured within the attention enhancement region, and a negative bias component is configured within the attention suppression region to form the original bias matrix of the subject. The original bias matrix and the attention modulation intensity corresponding to the subject are operated on element by element, and the result is used as the bidirectional attention bias corresponding to the subject.
[0013] Furthermore, to achieve the above objectives, this application also proposes a robot ensemble video generation device, which includes: The acquisition module is used to acquire combined prompt information input by the target user; The parsing module is used to perform combined scene parsing processing on the combined prompt information through a language planning model to obtain the subject set and spatiotemporal layout prior information; The interpolation module is used to perform text encoding on the combined prompt information and each subject in the subject set, and to perform subject perception condition interpolation processing based on the encoding results to obtain the subject perception conditions. The generation module is used to input the subject perception conditions and the spatiotemporal layout prior information into the video diffusion generation model, and perform layout-forced attention modulation processing in the cross-attention layer of the video diffusion generation model to generate the target combined video.
[0014] Furthermore, to achieve the above objectives, this application also proposes a robot ensemble video generation device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the robot ensemble video generation method as described above.
[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the robot combination video generation method described above.
[0016] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the robot combination video generation method described above.
[0017] This application provides a method, apparatus, device, and computer program product for generating robot composite videos. The robot composite video generation method obtains composite prompt information input by a target user, and then performs composite scene analysis processing on the composite prompt information through a language planning model to obtain a set of subjects and spatiotemporal layout prior information. The method then performs text encoding on the composite prompt information and each subject in the subject set, and performs subject perception conditional interpolation processing based on the encoding results to obtain subject perception conditions. The subject perception conditions and the spatiotemporal layout prior information are then input into a video diffusion generation model. Layout-forced attention modulation processing is performed in the cross-attention layer of the video diffusion generation model to generate a target composite video. The method uses a language planning model to analyze the set of subjects and the spatiotemporal layout prior in the composite prompts, recovering the suppressed subject semantics through subject perception conditional interpolation and aligning the attention distribution of each subject to the planned layout through layout-forced attention modulation. This simultaneously solves two major problems: missing subject presentation and misaligned spatial relationships between subjects under multi-element prompts, enabling the generated video to have complete element composition and interactive relationships consistent with physical causality. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating an embodiment of the robot combination video generation method of this application. Figure 2 Example diagrams showing the comparison of generation effects in a combined embodied simulation scenario, provided for the robot combined video generation method of this application; Figure 3 This is a schematic diagram of the module structure of the robot combined video generation device according to an embodiment of this application; Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the robot combined video generation method in the embodiments of this application.
[0021] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0022] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0023] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0024] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device, big data service platform, or robot combination video generation system capable of realizing the above functions. The following description uses a robot combination video generation system as an example to illustrate this embodiment and the subsequent embodiments.
[0025] Based on this, embodiments of this application provide a method for generating robot ensemble videos, referring to... Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the robot combination video generation method of this application.
[0026] In this embodiment, the robot combined video generation method includes steps S11 to S14: Step S11: Obtain the combined prompt information input by the target user; It should be noted that the target user refers to the person who initiates the request to generate the embodied scene video; the combined prompt information refers to natural language text information used to describe the interactive behaviors and spatial relationships of multiple subjects and objects within the robot's embodied task scenario. In one possible implementation, the target user manually enters natural language text through an interactive interface to obtain the combined prompt information; in another possible implementation, the target user generates the combined prompt information through speech-to-text conversion, or the upstream task program can automatically output the corresponding text as the combined prompt information.
[0027] Specifically, the system receives text data from the input interface, performs format filtering on the text data to remove invalid control characters, and obtains well-formatted combined prompt information. This combined prompt information is then cached in system memory for subsequent steps to retrieve. For example, if a target user inputs a natural language message: "The robot places the red square on the white tray," the robot combined video generation system reads this natural language text, removes redundant spaces, and obtains the corresponding combined prompt information.
[0028] Step S12: The combined prompt information is processed by the language planning model to obtain the subject set and the spatiotemporal layout prior information. It should be noted that the language planning model refers to a large language model with context learning and chain reasoning capabilities, used to decompose scene elements from natural language. The language planning model can directly output the normalized bounding box coordinates of each subject and generate a planning layout mask from the coordinates. The combined scene parsing process refers to the element decomposition of the natural language prompts of the embodied scene, separating all entities contained in the scene, their corresponding spatial positions, and interaction relationships from the natural language. The subject set refers to the set of all entity objects participating in scene interaction extracted from the combined prompt information. The spatiotemporal layout prior information refers to the planning constraint information of each subject in the video temporal and spatial positions, recorded by the language planning model, including the placement position, interaction direction, and contact relationship of each subject. The purpose of this step is to transform unstructured natural language prompts into structured scene planning conditions that can be used by the subsequent video generation model, eliminating the problem of missing elements caused by the ambiguity of natural language descriptions.
[0029] Furthermore, the language planning model relies on pre-built prompts to learn context when performing combined scene parsing. In one possible implementation, the language planning model outputs raw unstructured text, and the system then performs regular expression parsing on the raw unstructured text to separate the subject set and spatiotemporal layout prior information. In another possible implementation, the language planning model directly outputs JSON formatted structured data, and the system directly reads fields from the structured data to obtain the subject set and spatiotemporal layout prior information.
[0030] Specifically, the combined prompt information is filled into the prompt text containing scene planning instructions, output format examples, and chain reasoning trigger content to generate model input text. After the model input text is input into the language planning model, chain reasoning operation is triggered. The language planning model outputs the model parsing result. The robot combined video generation system separates and extracts the subject set and spatiotemporal layout prior information from the model parsing result.
[0031] For example, if the combined prompt is "the robot will place the red cube on the white tray", the language planning model will process the combined scene analysis and output the subject set including the robot, the red cube, and the white tray. The output spatiotemporal layout prior information records that the target spatial position of the red cube is above the white tray, and the robot and the red cube have a grasping interaction relationship.
[0032] Step S13: Text encoding is performed on the combined prompt information and each subject in the subject set, and subject perception condition interpolation is performed based on the encoding results to obtain the subject perception conditions; It should be noted that text encoding refers to the operation of calling a text encoder to map text content into a high-dimensional semantic feature vector; the encoding result refers to the complete prompt encoding result, contextual subject features, and semantic anchor features output by the text encoder; subject-aware conditional interpolation refers to the process of using the subject's features in the context environment and independent semantic anchor features, combined with the recovery vector and time decay constraint weights, to perform weighted interpolation to correct semantic features; subject-aware conditions refer to the text conditional feature sequence obtained after interpolation correction, which is used as input to the video diffusion generation model. The purpose of this step is to alleviate the semantic mutual suppression and interference problem caused by multiple subjects appearing together in the same prompt text, and to repair the interfered semantic expression of the subjects.
[0033] Furthermore, text encoding is divided into two types of encoding processes: one performs contextual encoding for complete combined cue information, and the other performs independent encoding for each subject within the subject set. In one possible implementation, the text encoder and the subsequent video diffusion generation model use a pre-trained text encoder; in another possible implementation, the text encoder is a separately deployed pre-trained language encoding network.
[0034] Specifically, the text encoder is invoked to perform context encoding on the combined prompt information to obtain the complete prompt encoding result. From the complete prompt encoding result, the context subject features corresponding to each subject are extracted. The text encoder is invoked to perform independent encoding on each subject within the subject set to obtain semantic anchor features. Based on the context subject features and semantic anchor features, the subject saliency is calculated to generate a recovery vector. The time decay constraint weights are generated by combining the time step information output by the video diffusion generation model inference process. Semantic interpolation is performed and the features at the corresponding positions are replaced to complete the subject perception condition interpolation processing and output the subject perception condition.
[0035] For example, the subject set includes a robot, a red square, and a white tray. The robot combination video generation system performs context encoding on the complete sentence "The robot places the red square on the white tray" to extract the context subject features corresponding to the robot, the red square, and the white tray respectively. On the other hand, it sends "robot", "red square", and "white tray" separately to the text encoder to output their respective semantic anchor features. Based on the above features, it calculates the subject saliency, recovery vector, and time decay constraint weights, completes weighted interpolation and feature replacement, and generates subject perception conditions.
[0036] Step S14: Input the subject perception conditions and the spatiotemporal layout prior information into the video diffusion generation model, and perform layout forced attention modulation processing in the cross-attention layer of the video diffusion generation model to generate the target combined video.
[0037] It should be noted that the video diffusion generation model refers to a network that generates text-based videos based on a diffusion denoising framework. This model consists of multiple stacked decoding blocks, each containing a self-attention layer, a cross-attention layer, and a feedforward network layer. The cross-attention layer is the network layer within the video diffusion generation model used to perform cross-modal correlation calculations between video latent variable features and text conditional features. Layout-forced attention modulation processing refers to modifying the attention distribution parameters within the cross-attention layer based on bidirectional attention bias, so that the video attention responses of each subject are aligned with the planned positions of the spatiotemporal layout prior information. The target composite video refers to the final output video data of the adapted robot embodied simulation task, containing multi-subject interactive content. The purpose of this step is to introduce the repaired subject semantic conditions and the planned spatiotemporal layout constraints into the video generation inference process, constraining the subject attention distribution during video generation. In addition, layout-forced attention modulation processing is executed synchronously with each step of the denoising inference in the video diffusion generation model.
[0038] Specifically, the subject perception conditions and spatiotemporal layout prior information are input into the video diffusion generation model. The video diffusion generation model samples the initial noisy video latent variables and initiates multi-step denoising inference. In each round of denoising inference, the data sequentially passes through the self-attention layer, cross-attention layer, and feedforward network layer within the decoding block. In the cross-attention layer, the video text attention map is read to generate an adaptive perception layout. The attention modulation intensity is obtained by combining the spatiotemporal layout prior information, and a bidirectional attention bias is constructed. The bidirectional attention bias is then superimposed to complete the correction of the attention distribution parameters. After all denoising iterations are completed, the target video latent variable features are obtained and sent to the decoding module for decoding operations to generate the target combined video.
[0039] For example, the repaired subject perception conditions and the spatiotemporal layout prior information recording the placement of the red square are input into the video diffusion generation model. The video diffusion generation model performs layout-forced attention modulation processing in the cross-attention layer of each step of denoising inference to constrain the spatial position and interaction relationship of the robot, the red square, and the white tray in the video, and finally outputs a target combination video containing the robot grabbing the red square and placing it on the white tray.
[0040] This embodiment acquires combined prompt information input by the target user, then uses a language planning model to parse the combined prompt information into a combined scene, obtaining a structured set of subjects and spatiotemporal layout prior information. Text encoding is then performed on the combined prompt information and each subject within the subject set. Based on the encoding results, subject perception condition interpolation is performed to obtain subject perception conditions that repair the semantics of the subjects. Finally, the subject perception conditions and spatiotemporal layout prior information are input into a video diffusion generation model. Layout-forced attention modulation processing is performed across the attention layer to generate the target combined video. On one hand, the language planning model completes the conversion from natural language to structured scene elements, and the subject perception condition interpolation alleviates the problem of missing subject presentation caused by mutual suppression of semantics between different subjects in multi-subject prompt scenarios. On the other hand, the layout-forced attention modulation processing across the attention layer constrains the attention distribution of each subject during the video generation stage, reducing the probability of misalignment in spatial interaction relationships between subjects. This ensures that all entities within the output target combined video appear completely, and the spatial positions and interaction relationships between subjects conform to the description of the original combined prompt information, guaranteeing the physical causal rationality of the generated video. The output target combined video can provide a usable video data source for downstream robot policy learning and world model simulation.
[0041] In one feasible implementation, the step of performing combined scenario parsing processing on the combined prompt information using a language planning model to obtain the subject set and spatiotemporal layout prior information includes: Step S21: Construct prompts for context learning, add the combined prompt information to the prompts, and generate model input text. The prompts include scene planning instructions, output format examples, and chain inference trigger content. It should be noted that the prompts used for context learning refer to the guiding text that sets the task role, task requirements, and output paradigm for the language planning model; the scene planning instructions refer to the instruction text that informs the language planning model that it needs to complete the task of assembling and analyzing the specific scene elements; the output format examples refer to a set of pre-given parsing output samples that constrain the output structure of the language planning model; the chain reasoning trigger content refers to the prompt content that guides the language planning model to think step by step and gradually break down the scene elements; and the model input text refers to the complete text that is directly fed into the language planning model for calculation after the prompts and combined prompt information are spliced and merged.
[0042] The purpose of this operation is to guide the language planning model to parse embodied scenarios according to a fixed paradigm through context learning, reducing output chaos caused by arbitrary descriptions in natural language and improving the regularity of the parsing results. Furthermore, the content of the prompts can be adapted to the type of embodied task. In one possible implementation, the robot ensemble video generation system reads a locally pre-stored prompt template, fills it with scene planning instructions, output format examples, and chained reasoning trigger content, and completes the prompt construction. In another possible implementation, the robot ensemble video generation system dynamically adjusts the specific description of the scene planning instructions based on the semantic category of the combined prompt information to generate prompts adapted to the current task.
[0043] Specifically, the system reads the locally stored prompt template string, performs field filling operations on the template string, and writes the preset scene planning instruction string, output format example string, and chained inference trigger string into the corresponding placeholder fields of the template to complete the assembly of the prompts for context learning. Then, it uses string concatenation technology to append the obtained combined prompt information string to the preset placeholder text to be parsed in the prompt. The concatenated complete string is then subjected to special character filtering to filter out invisible control characters and redundant newline characters, resulting in well-formatted model input text. This model input text is then written into the memory buffer to prepare input parameter data for calling the language planning model inference interface.
[0044] For example, the local pre-stored prompt template placeholder structure is: [Scene Planning Instruction] + [Output Format Example] + [Chained Reasoning Trigger Content] + [User Instruction to be Parsed: {{user_prompt}}], where: The scene planning instruction string after filling is: "As an embodied combination scene planning expert, please analyze all the entity subjects in the user instruction and the spatial and interactive layout relationships between the subjects"; Example string for output format: "Example input: The robot pushes the blue box to the edge of the table; Example output: Main set: [robot, blue box, table]; Spatiotemporal layout: The final spatial coordinates of the blue box are located in the edge area of the table, and the robot has contact and pushing interaction with the blue box"; The chained reasoning triggers the string: "Let's think step by step"; The combined prompt message string to be processed is: "The robot places the red square onto the white tray".
[0045] The system performs string padding and concatenation, filling the combined prompt information into the placeholder {{user_prompt}}, filtering out extra line breaks, and finally generating the complete model input text: "As an embodied combination scene planning expert, please analyze all the entities in the user's instructions and the spatial and interactive layout relationships between them. Example input: The robot pushes the blue box to the edge of the table; Example output: Entity set: [robot, blue box, table]; Spatiotemporal layout: The final spatial coordinates of the blue box are located in the edge area of the table, and the robot has a contact and pushing interaction with the blue box. Let's think step by step. User instruction to be analyzed: The robot places the red square on the white tray."
[0046] Step S22: Input the model input text into the language planning model for combined scene parsing processing, trigger the language planning model to perform chain reasoning on the model input text, and output the model parsing result; It's important to clarify that chained reasoning refers to the language planning model's step-by-step logical deduction process, sequentially identifying entities, recognizing interactive behaviors, and deriving spatial constraints. The model parsing result refers to the raw text data output by the language planning model after receiving input text and completing combined scene parsing. The purpose of this operation is to leverage the reasoning capabilities of a large model to extract implicit entity interaction and spatial constraint information from unstructured user prompts. Furthermore, the chained reasoning process is completed internally within the language planning model; external systems do not interfere with the intermediate reasoning process.
[0047] Specifically, the language planning model calls its exposed text inference interface, encapsulates the model input text stored in the memory buffer into an interface request message, sets the model inference hyperparameters, including sampling temperature and maximum number of output tokens, and sends an inference request to the language planning model. The language planning model receives the model input text in the request message, performs tokenization and word segmentation on the model input text to convert it into an input token sequence, sends the token sequence into the model network layer for computation, and performs step-by-step chained inference operations guided by chained inference trigger content to complete the combined scene parsing. The language planning model decodes the inference output token sequence into text, and sends it back to the robot combined video generation system as the model parsing result through an interface response message.
[0048] For example, the robot-based video generation system encapsulates the complete model input text obtained in the previous step into an interface request, sets the sampling temperature to 0.1 and the maximum output token value to 256, and initiates an inference call to the language planning model. The language planning model performs token segmentation on the input text to obtain an input token sequence, and performs step-by-step chain-like inference: the first step identifies the entity objects in the user's instructions, the second step identifies the interaction actions between entities, and the third step derives the spatial and temporal constraints corresponding to the entities. After the inference is completed, the decoded output model parsing result text is: "First step: Identify scene entities: The scene contains a robot, a red cube, and a white tray; Second step: Identify interaction actions: The robot performs grasping and placing actions, and the target object is the red cube; Third step: Derive spatiotemporal layout constraints: After the red cube is placed, its spatial position is above the white tray, and the robot maintains contact with the red cube during the action phase; Entity set: [robot, red cube, white tray]; Spatiotemporal layout: The target space of the red cube is located on the upper surface of the white tray, and there is a grasping-placing temporal interaction between the robot and the red cube."
[0049] Step S23: Extract the subject set and spatiotemporal layout prior information from the model analysis results.
[0050] It should be noted that separation and extraction refers to the processing operations performed by the robot ensemble video generation system on the model parsing results, including field recognition, text matching, and entity extraction. In one possible implementation, if the model parsing result is in a structured format, the robot ensemble video generation system directly reads the corresponding fields to obtain the subject set and spatiotemporal layout prior information; in another possible implementation, if the model parsing result is free text, the robot ensemble video generation system completes information extraction through entity matching and keyword regular expression matching.
[0051] Specifically, the system receives interface response messages and obtains the original text of the model parsing results; it configures preset regular expression matching rules, specifically regular expressions for matching the keyword "subject set" and regular expressions for matching the keyword "spatiotemporal layout"; it calls regular text matching techniques to match and locate the text fragments corresponding to "subject set" and "spatiotemporal layout" in the original text of the model parsing results; it performs symbol cleaning on the matched subject set text fragments, removing irrelevant symbols such as parentheses and square brackets, and segmenting them into individual subject entity texts; it performs text normalization on the matched spatiotemporal layout text fragments, removing the step-by-step explanation text of the reasoning process and retaining only the spatial location and interaction timing constraints; it summarizes the processed subject entities into a subject set, organizes the normalized spatial and timing constraints into spatiotemporal layout prior information, and writes it into system memory for subsequent text encoding steps to read and call.
[0052] For example, the model parsing result to be processed is the original text output in the previous step. The system performs regular expression matching and matches the text fragment of the subject set: [robot, red square, white tray]. After removing the square brackets and separating them with Chinese commas, the subject set {"robot", "red square", "white tray"} is obtained. The regular expression matching continues to locate the spatiotemporal layout fragment: the target space of the red square is located on the upper surface of the white tray, and there is a grasping-placement temporal interaction between the robot and the red square. The reasoning explanation text of the previous three steps is filtered out, and this content is organized as the spatiotemporal layout prior information.
[0053] This embodiment constructs prompts that include scene planning instructions, output format examples, and chain-reasoning trigger content. The combined prompt information is added to the input text of the prompt generation model. The model input text is then fed into the language planning model to trigger chain-reasoning and obtain the model's parsing result. From the model's parsing result, the subject set and spatiotemporal layout prior information are extracted. Context learning guides the language planning model to complete embodied scene parsing according to a unified paradigm. This reduces parsing bias caused by the arbitrariness of users' natural language expressions and reliably decomposes all interactive entities and their corresponding spatiotemporal layout constraints from the user's unstructured combined prompt information, providing standardized structured input conditions for subsequent text encoding, subject semantic repair, and video generation.
[0054] In one feasible implementation, the text encoding of the combined prompt information and each subject in the subject set includes: Step S31: Perform context encoding on the combined prompt information using a text encoder to obtain the complete prompt encoding result; It should be noted that the text encoder refers to a pre-trained encoding network that can convert natural language text into a high-dimensional semantic feature vector sequence. This text encoder is adapted to the text input conditions of the video diffusion generation model. Context encoding refers to taking the complete combined prompt information as input, and the text encoder considers the contextual dependencies between words during the encoding process, outputting the semantic feature sequence corresponding to each token. The complete prompt encoding result refers to the token-level semantic feature sequence output by the text encoder after context encoding of the combined prompt information. Each set of feature vectors in the sequence corresponds to a text token within the combined prompt information.
[0055] Specifically, the robot combined video generation system sends the combined prompt information to the input interface of the text encoder. The text encoder first performs text tokenization segmentation on the combined prompt information, dividing the continuous natural language text into a discrete token sequence. The token sequence is converted into corresponding word embedding vectors, and positional encoding is superimposed to obtain the input vector. The input vector is fed into the multi-layer network of the text encoder for forward propagation. The network layers update the semantics of each token according to the context dependency. The text encoder outputs a feature sequence composed of the semantic feature vectors corresponding to each token, as the complete prompt encoding result.
[0056] Step S32: Extract the context subject features corresponding to each subject in the subject set from the complete prompt encoding result; It should be noted that the contextual subject feature refers to the semantic feature vector obtained by encoding the subject phrase in the subject set within the context of the complete combined prompt information through a text encoder. This feature is affected by the semantic interference of other entity words in the prompt text. In one possible implementation, the subject corresponds to only a single token, and the feature vector at that token position is directly read as the contextual subject feature; in another possible implementation, the subject consists of multiple consecutive tokens, and the contextual subject feature of the subject is obtained by averaging or taking the first token vector from the feature vectors at the multiple token positions.
[0057] Specifically, the system reads the text string of each subject within the subject set, matches and searches for all consecutive token index positions covered by the subject phrase in the token sequence of the original combined prompt information; based on the found token index, it locates the corresponding feature vector in the feature sequence of the complete prompt encoding result; if a subject corresponds to multiple consecutive tokens, it performs vector mean operation on the semantic feature vectors of all token positions covered by the subject to obtain the unified context subject feature of the subject; it iterates through all subjects in the subject set, obtains the context subject feature corresponding to each subject, and establishes a mapping relationship between all context subject features and the corresponding subject.
[0058] Step S33: For any subject in the subject set, perform independent encoding on the subject using the text encoder and output the semantic anchor features corresponding to the subject.
[0059] It should be noted that independent encoding refers to inputting a single subject phrase as text into the text encoder for encoding, without semantic interference from other entity texts. Semantic anchor features refer to the semantic feature vectors obtained by encoding a single subject phrase independently of the combined cue information context, without interference from the semantics of other entities, representing the inherent semantics of the subject itself. The purpose of this operation is to obtain the subject's baseline semantics, unaffected by context, to be compared with the context subject features and to determine the degree to which the subject's semantics are suppressed in a multi-subject context.
[0060] Furthermore, the independent encoding reuses the same set of text encoder network weights. In one possible implementation, each subject is encoded independently sequentially; in another possible implementation, multiple subject phrases are assembled into a batch of input, and the independent encoding of multiple subjects is completed in a batch inference manner.
[0061] Specifically, the robot-based video generation system sequentially extracts the text phrase of each subject in the subject set and passes it as a separate text input to the text encoder. The text encoder performs tokenized word segmentation and word embedding overlay position encoding on the subject phrase, and outputs the token feature sequence corresponding to the subject phrase after forward propagation of the network. When the subject phrase contains multiple tokens, the feature vectors corresponding to all tokens are averaged to obtain the semantic anchor features of the subject. After traversing all subjects in the subject set, the semantic anchor features corresponding to all subjects are obtained.
[0062] This embodiment obtains the complete prompt encoding result by performing context encoding on the complete combined prompt information through a text encoder. Then, based on the token index corresponding to the subject phrase, the context subject features of each subject are extracted from the complete prompt encoding result. Each subject phrase is then fed into the text encoder separately for independent encoding to obtain semantic anchor features. This approach obtains both the context subject features of each subject after being interfered with by the semantics of other entities in a multi-subject coexistence context, and the semantic anchor features that are not interfered with by other entities. These two sets of features provide a paired feature input basis for subsequent calculation of subject saliency, generation of recovery vectors, and subject-aware conditional interpolation processing. This facilitates the subsequent identification of the degree to which the subject semantics are suppressed under multi-subject prompts and provides data support for repairing the suppressed subject semantics.
[0063] In one feasible implementation, the step of performing subject-aware conditional interpolation processing based on the encoding result to obtain subject-aware conditions includes: Step S41: Read the context subject features and semantic anchor features corresponding to each subject, and calculate the similarity between the context subject features and semantic anchor features corresponding to any subject to obtain the subject saliency of any subject. It should be noted that the contextual subject feature refers to the distorted semantic vector obtained by encoding the subject phrase in the context of the complete combined prompt information; the semantic anchor feature refers to the baseline semantic vector obtained by encoding the subject phrase alone without interference from other entities; similarity refers to the metric used to characterize the semantic closeness between two sets of high-dimensional semantic vectors; subject saliency refers to the similarity used to characterize the contextual subject feature and the semantic anchor feature, and the lower the value, the more severely the subject semantics are suppressed.
[0064] Furthermore, similarity can be calculated using different vector similarity operators. In one possible implementation, cosine similarity is used to calculate the similarity between the contextual subject features and the semantic anchor features; in another possible implementation, Euclidean distance transformation is used to obtain the similarity value.
[0065] Specifically, the robot-based video generation system traverses each subject in the subject set, reads the context subject feature vector and semantic anchor point feature vector mapped to that subject from memory; calls vector similarity calculation techniques to input the two sets of high-dimensional vectors corresponding to the same subject into the similarity calculation function to calculate the similarity value corresponding to that subject; maps the similarity value to the subject saliency, the magnitude of the subject saliency value reflects the degree of semantic interference of that subject; establishes a mapping relationship between the subject saliency and the corresponding subject, writes it into the memory buffer, and provides it for subsequent weighted interpolation operations.
[0066] Step S42: For each subject, perform a difference operation based on the semantic anchor features of the other subjects and the semantic anchor features of the current subject, and summarize the difference operation results to generate the recovery vector corresponding to the current subject. It should be noted that the difference operation refers to the vector operation of subtracting elements from each other in high-dimensional vectors; the recovery vector refers to the vector obtained by summing the deviations of the semantic anchors of other subjects relative to the current subject. This recovery vector is used to characterize the direction and amount of semantic interference shift brought by other subjects to the current subject.
[0067] Specifically, the robot-based video generation system traverses each current subject within the subject set that serves as the processing object; it reads the current subject. The semantic anchor features are then used to traverse the subject set, excluding the current subject, and read the semantic anchor features corresponding to the other subjects in turn. Perform element-wise subtraction of vectors one by one, i.e., extract the current subject's semantic anchor features. Subtract other main semantic anchor features This yields a set of difference vectors; a vector summation operation is then performed on all the obtained difference vectors to generate the recovery vector corresponding to the current subject. This achieves a two-way effect of "distancing oneself from others and getting closer to oneself":
[0068] Step S43: Obtain the denoising process parameters output by the video diffusion generation model during inference, extract time step information from the denoising process parameters, and generate time decay constraint weights based on the extracted time step information; It should be noted that the denoising process parameters refer to the set of inference state parameters output by the video diffusion generation model in each round of inference during the multi-step denoising inference process; the time step information refers to the identifier information representing which iteration step of the diffusion denoising inference is currently in; and the time decay constraint weight refers to the weight value that changes with the denoising iteration step, used to control the compensation intensity of the recovery vector at different denoising stages. The purpose of this operation is to make the semantic interpolation compensation intensity dynamically change with the diffusion denoising process, adapting to the feature update rules of different denoising stages of the diffusion model. In addition, the generation function of the time decay constraint weight can be configured. In one possible implementation, a preset decay function is used to map the weights according to the time step information; in another possible implementation, a lookup table method is used to read the pre-stored weight table according to the time step index to obtain the time decay constraint weight.
[0069] Specifically, during each round of denoising inference execution of the video diffusion generation model, the robot-assembled video generation system receives denoising process parameters output by the model inference interface; it parses and extracts time step information representing the current iteration round from the denoising process parameter fields; and it then processes the time step information... Input a preset attenuation mapping function so that interpolation is only significantly effective in the early denoising steps:
[0070] in: For time step The corresponding time decay constraint weight; This provides the time step information for the current denoising inference. ; The total number of denoising steps for the video diffusion generation model is calculated. After completing the numerical mapping operation, the time decay constraint weights corresponding to the current denoising step are generated.
[0071] Step S44: Based on the time decay constraint weights and the subject saliency and recovery vector corresponding to each subject, perform interpolation correction on the context subject features to obtain the subject perception conditions.
[0072] It should be noted that interpolation correction refers to a vector operation that combines weights, subject saliency, and recovery vectors to weight and adjust the context subject feature vector; subject-aware conditions refer to the text conditional feature sequence obtained after interpolation correction and provided to the video diffusion generation model. The purpose of this operation is to use the recovery vector to compensate for and repair the subject semantics suppressed by the context, thereby alleviating the subject loss problem caused by mutual inhibition of subject semantics under multiple subject cues.
[0073] It should also be noted that the interpolation correction is repeated with each round of denoising inference. In one possible implementation, the complete interpolation correction process is re-executed at each denoising step; in another possible implementation, interpolation correction can be turned off for some time steps, and the original features can be used directly.
[0074] Specifically, the robot-based video generation system reads the time decay constraint weights corresponding to the current denoising step, traverses each subject in the subject set, and reads the subject saliency, recovery vector, and context subject features corresponding to that subject. It multiplies the time decay constraint weights with the subject saliency to obtain an adjustment amplitude, uses this adjustment amplitude to scale the recovery vector, and then superimposes the scaled recovery vector onto the context subject features to obtain interpolated semantic features. The interpolated semantic features replace the context subject features at the corresponding position in the complete cue encoding result. After all subjects have completed feature replacement, the updated complete cue encoding result becomes the subject perception condition. This subject perception condition is then loaded into memory for use as cross-modal condition input in the video diffusion generation model of this denoising step.
[0075] This embodiment reads the contextual subject features and semantic anchor features of each subject, calculates their similarity to obtain subject saliency, and quantifies the degree to which the semantics of each subject is suppressed by contextual interference. Then, it uses the semantic anchor features of other subjects to calculate the difference with the semantic anchor features of the current subject and summarizes them to obtain a recovery vector, which is a correction vector used for semantic compensation. Next, it obtains the denoising process parameters output by the video diffusion generation model, extracts time step information to generate dynamically changing time decay constraint weights, and finally combines the time decay constraint weights, subject saliency, and recovery vector to perform interpolation correction on the contextual subject features to obtain the subject perception conditions. This enables dynamic compensation and repair of subject features suppressed by the semantics of other entities under multi-subject cues, weakens the semantic interference caused by the context, and reduces the probability of subject presentation loss in subsequent generated videos.
[0076] In one feasible implementation, the step of performing interpolation correction on the contextual subject features based on the time decay constraint weights and the subject saliency and recovery vector corresponding to each subject to obtain the subject perception conditions includes: Step S51: For any of the subjects, generate an interpolation adjustment coefficient by combining the time decay constraint weight and the subject saliency corresponding to the subject. It should be noted that the interpolation adjustment coefficient refers to the scalar coefficient obtained by operating on the time decay constraint weight and the subject saliency. This interpolation adjustment coefficient is used to control the compensation magnitude of the restored vector for the context subject features. The time decay constraint weight refers to the weight scalar that dynamically changes with the denoising time step of the video diffusion generation model.
[0077] Specifically, the robot-based video generation system iterates through each subject in the subject set, reads the time decay constraint weights of the current denoising step cached in memory, and reads the subject saliency corresponding to that subject. It then uses scalar multiplication to multiply the time decay constraint weights by the subject saliency to obtain the interpolation adjustment coefficients corresponding to that subject. The formula for calculating the interpolation adjustment coefficients is as follows:
[0078] in: This is the interpolation adjustment coefficient corresponding to the k-th subject; The weights for the time decay constraint corresponding to the current denoising time step t; Let be the subject saliency corresponding to the k-th subject.
[0079] Step S52: Using the interpolation adjustment coefficient and the recovery vector, perform semantic interpolation calculation on the context subject features corresponding to the subject to obtain interpolated semantic features, and replace the context subject features at the corresponding positions in the complete prompt encoding result with the interpolated semantic features; It should be noted that semantic interpolation calculation refers to the vector operation of scaling the recovered vector using interpolation adjustment coefficients and then superimposing it onto the contextual subject features; interpolated semantic features refer to the semantic vector of the subject after semantic interpolation calculation; and the complete prompt encoding result refers to the token semantic feature sequence output by context encoding the combined prompt information. The purpose of this operation is to complete the semantic compensation and correction of a single subject, updating the semantic expression of the subject in the original feature sequence.
[0080] Specifically, the robot-based combined video generation system extracts the interpolation adjustment coefficients, restoration vectors, and contextual subject features corresponding to any subject. The interpolation adjustment coefficients are scaled using vector scalar multiplication and vector addition techniques. The scaled restored vector is then superimposed onto the contextual features to obtain the interpolated semantic features. The semantic interpolation calculation formula is as follows:
[0081] in: The interpolated semantic features of the k-th subject; The original contextual subject features of the k-th subject; This is the interpolation adjustment coefficient for the k-th subject; This is the recovery vector of the k-th subject.
[0082] Read the token index position corresponding to the subject in the complete prompt encoding result; assign the interpolated semantic features to the corresponding index position in the complete prompt encoding result, overwriting the original context subject features stored at that position, and complete the feature replacement of a single subject.
[0083] Step S53: Replace the interpolated semantic features corresponding to all the subjects with the complete prompt encoding result to obtain the subject perception condition.
[0084] It should be noted that the interpolation semantic feature replacement for all the subjects refers to traversing each subject within the subject set and sequentially performing the semantic interpolation calculation and feature replacement operation in step S52. Furthermore, the positions of ordinary tokens not covered by the subject set are not modified. In one possible implementation, the replacement is completed sequentially by traversing each subject; in another possible implementation, the interpolation and replacement of multiple subjects are completed in a batch parallel manner.
[0085] Specifically, the robot-based video generation system iterates through all remaining unprocessed subjects in the subject set, repeatedly executing semantic interpolation calculations and corresponding position feature replacements. During the traversal, only the features of the corresponding token positions for each subject are updated, while the features of ordinary tokens that do not belong to any subject in the complete prompt encoding result remain unchanged. After all subjects in the subject set have completed interpolation and semantic feature replacement, the complete prompt encoding result in memory, which has been updated multiple times, becomes the subject perception condition. The subject perception condition is cached and used to feed into the video diffusion generation model for this round of denoising inference.
[0086] For example, after the feature replacement of the red square has been completed, the robot and the white tray are processed sequentially. The interpolated semantic features corresponding to the robot replace the features at index 0, and the interpolated semantic features corresponding to the white tray replace the features at indexes 6 and 7. The features at non-subject token positions such as "will", "place", "to", and "above" remain unchanged. After all the subjects are replaced, the complete prompt encoding result in memory is the subject perception condition, which is output for the inference of the video diffusion generation model in this round.
[0087] This embodiment generates interpolation adjustment coefficients for each subject by combining time decay constraint weights with subject saliency calculations. Then, using the interpolation adjustment coefficients and recovery vectors, semantic interpolation calculations are performed on the context subject features to obtain interpolated semantic features. The interpolated semantic features replace the context subject features at the corresponding positions in the complete prompt encoding result. After traversing all subjects and completing feature replacement, the subject perception conditions are obtained. Thus, by decomposing the interpolation operation step by step, the interpolation adjustment coefficients that control the compensation intensity are first obtained, and then semantic correction and replacement are performed on each subject one by one. This not only allows for differentiated setting of compensation amplitudes according to the degree of suppression of different subjects, but also preserves the original semantics of non-subject tokens without destroying them. Finally, the semantically repaired subject perception conditions are output, alleviating the problem of mutual suppression of subject semantics in multi-subject prompt scenarios.
[0088] In one feasible implementation, the video diffusion generation model comprises multiple stacked decoding blocks, each decoding block including a self-attention layer, a cross-attention layer, and a feedforward network layer; the step of inputting the subject perception conditions and the spatiotemporal layout prior information into the video diffusion generation model, and performing layout-forced attention modulation processing in the cross-attention layer of the video diffusion generation model to generate a target composite video includes: Step S61: Input the subject perception conditions and the spatiotemporal layout prior information into the video diffusion generation model, obtain the initial noisy video latent variables through the sampling of the video diffusion generation model, and start the multi-step denoising inference process; It should be noted that the initial noisy video latent variables refer to the latent space noise features of the video sampled from a preset noise distribution at the beginning of the inference stage; the multi-step denoising inference process refers to the multi-round iterative calculation process by which the video diffusion generation model gradually restores the clear video latent variables from the noisy latent variables. Furthermore, the noise distribution can be selected based on the model's pre-training configuration. In one possible implementation, the initial noisy video latent variables are obtained by sampling from a standard Gaussian distribution; in another possible implementation, a Gaussian distribution with a preset variance is used for sampling.
[0089] Specifically, the robot-based video generation system encapsulates the subject perception conditions and spatiotemporal layout prior information cached in memory into model input parameters and inputs them into the video diffusion generation model. The video diffusion generation model calls the sampling module to perform random sampling operations according to the noise distribution preset by the model, generating initial noise video latent variables that match the video latent space dimension. The initial noise video latent variables are set as the initial latent variable state of the inference process, and a multi-step denoising inference process is started. The current denoising step index is recorded, and the system waits to execute the first round of decoding block operations.
[0090] For example, the subject perception condition is the token semantic feature sequence after interpolation correction, and the layout prior information records the planned spatial positions of the robot, the red square, and the white tray; the video diffusion generation model samples from the standard Gaussian distribution to obtain the initial noisy video latent variable with dimension matching, and uses this noisy latent variable as the starting point for inference to start a multi-step denoising inference process with a total of 50 steps.
[0091] In step S62, during each denoising inference step, when it is the first denoising step, the initial noisy video latent variable is sent as the input video latent variable feature to the self-attention layer of the current decoding block. When it is not the first denoising step, the updated video latent variable feature output from the previous denoising step is sent as the input video latent variable feature to the self-attention layer of the current decoding block, so as to perform video spatiotemporal dimension feature association calculation on the input video latent variable feature through the self-attention layer and output the self-attention feature. It should be noted that the input video latent variable features refer to the latent space features of the video fed into the decoding block for computation; the decoding block refers to the basic computational modules stacked within the video diffusion generation model, and each decoding block contains a self-attention layer, a cross-attention layer, and a feedforward network layer; the self-attention layer refers to the network layer used to mine the dependencies between pixels in the temporal and spatial dimensions within the video; the video spatiotemporal dimension feature association computation refers to the attention operation of the self-attention layer in associating features of different frames in the temporal dimension and features of different positions within the same frame in the spatial dimension; the self-attention feature refers to the feature output after the input video latent variable features have been processed by the self-attention layer.
[0092] In addition, the self-attention layer processes both spatial and temporal dimensions. In one possible implementation, spatiotemporal joint self-attention is used to complete the computation; in another possible implementation, spatial self-attention and temporal self-attention are executed sequentially.
[0093] Specifically, the robot-based video generation system determines whether the current denoising step is the first denoising step in the inference process. If it is the first denoising step, the initial noisy video latent variable is taken as the input video latent variable feature. If it is not the first denoising step, the updated video latent variable feature output from the previous denoising step is read as the input video latent variable feature. The input video latent variable feature is then sent to the self-attention layer within the current decoding block. The self-attention layer performs spatiotemporal attention scoring and weighted summation operations to establish feature dependencies between different frames and spatial locations in the video, outputs self-attention features, caches the self-attention features, and transmits them to the cross-attention layer within the same decoding block.
[0094] For example, the total number of steps in the multi-step denoising inference is 50; step 0 is the first denoising step, which sends the initial noisy video latent variables into the self-attention layer; when the denoising step 12 is executed, the updated video latent variable features output from step 11 are read as input video latent variable features and sent into the self-attention layer; the self-attention layer performs spatiotemporal correlation calculation on the features and outputs self-attention features for subsequent use across attention layers.
[0095] Step S63: The self-attention features are sent to the cross-attention layer of the current decoding block. During the operation of the cross-attention layer, the video text attention map corresponding to each subject is read and output, and the video text attention map corresponding to each subject is subjected to threshold binarization to generate the adaptive perception layout corresponding to each subject. It should be noted that the cross-attention layer refers to the network layer that performs cross-modal association calculations between video features and text conditional features; the video-text attention map refers to the two-dimensional probability distribution map output by the cross-attention operation, representing the attention response intensity of each spatial location in the video corresponding to the current subject text condition; threshold binarization refers to the image processing operation of setting a judgment threshold, classifying positions in the attention map above the threshold as valid regions and those below the threshold as invalid regions; and adaptive perceptual layout refers to the binary mask map obtained after binarization, reflecting the actual attention response range of the model. The purpose of this operation is to obtain the subject spatial regions that the model truly pays attention to in the current inference step, for comparison with the planned layout.
[0096] In addition, the binarization threshold can be set fixedly or dynamically. In one possible implementation, a globally fixed threshold is used to complete binarization; in another possible implementation, the threshold is dynamically calculated based on the statistical distribution of the attention map.
[0097] Specifically, the robot-based video generation system inputs self-attention features into the cross-attention layer of the current decoding block; the cross-attention layer combines the subject perception conditions to complete the video-text cross-modal attention calculation, splitting the video text attention map corresponding to each subject; for each video text attention map, it traverses the spatial position pixels, compares the attention response value with a preset threshold, and marks pixels greater than the threshold as valid and pixels less than the threshold as invalid; after binarization, the adaptive perception layout corresponding to the subject is obtained, and the adaptive perception layouts of all subjects are saved to memory for subsequent intersection-union calculations.
[0098] For example, after cross-attention layer operations, the video text attention map corresponding to the red square is output; a binarization threshold of 0.45 is set; pixels with an attention response greater than 0.45 are marked as valid regions, and the rest are marked as invalid, thus obtaining the adaptive perception layout mask map of the red square; similarly, the adaptive perception layouts of the robot and the white tray are generated.
[0099] Step S64: Perform an intersection-union comparison (IUCN) operation on the adaptive perception layout of each subject and the prior information of the spatiotemporal layout, and determine the attention modulation intensity corresponding to each subject based on the IUCN operation result; It should be noted that the intersection-union ratio (IUU) operation refers to the ratio of the intersection to the union of the adaptive sensing layout mask and the planned layout mask within the prior information of the spatiotemporal layout; the attention modulation intensity index is a numerical value that characterizes the strength of the bias that needs to be applied to the attention distribution of the subject. The purpose of this operation is to measure the deviation between the actual sensing area of the model and the ideal planned layout; the greater the deviation, the higher the modulation intensity.
[0100] Furthermore, the mapping relationship between the cross-parallel ratio (CPR) and the modulation intensity is configurable. In one possible implementation, a linear mapping is used, where a smaller CPR results in a larger attention modulation intensity; in another possible implementation, an upper limit threshold for the CPR is set, and modulation intensity is directly set to zero if the CPR exceeds the threshold.
[0101] Specifically, the robot-based combined video generation system reads a single subject. Adaptive perceptive layout mask and the planning layout mask corresponding to the spatiotemporal layout prior information. Perform a bitwise AND operation between the masks to obtain the intersection region, and a bitwise OR operation to obtain the union region; calculate the effective pixel area of the intersection and union, and then calculate the intersection-union ratio. Then, substituting the values into the mapping formula and combining it with the preset basic modulation hyperparameters, the attention modulation intensity of the subject is calculated. Establish a mapping relationship between the subject and the intensity of attention modulation and store it in memory.
[0102] Step S65: Divide the attention enhancement region and the attention inhibition region according to the planned layout region of each subject in the spatiotemporal layout prior information, and construct the bidirectional attention bias corresponding to each subject in combination with the attention modulation intensity; It should be noted that the attention enhancement region refers to the target effective spatial region corresponding to the planned layout mask, where the model is expected to improve the attention response of the subject at that location; the attention suppression region refers to the spatial region outside the planned layout, where the model is expected to reduce the attention response of the subject at that location; the bidirectional attention bias refers to a bias matrix containing positive and negative components, used to modify the original attention scoring matrix across attention layers. The purpose of this operation is to generate a bias matrix that can guide attention towards the planned region. In one possible implementation, the enhancement region has a fixed positive base component, and the suppression region has a fixed negative base component; in another possible implementation, the base components are adaptively adjusted with resolution.
[0103] Specifically, the robot-based video generation system reads the planned layout area of the subject from the prior information of the spatiotemporal layout; defines the spatial locations covered by the planned layout as attention enhancement regions and the remaining spatial locations as attention suppression regions; initializes an original bias matrix with the same size as the attention map; fills the attention enhancement regions with positive fundamental components and the attention suppression regions with negative fundamental components; and sets the original bias matrix... With attention modulation intensity Element-wise multiplication yields the subject's bidirectional attention bias. .
[0104] Step S66: In the attention calculation stage of the cross-attention layer, the bidirectional attention bias is superimposed to correct the attention distribution parameters of the cross-attention layer, and the cross-attention features are output based on the corrected attention distribution parameters; It should be noted that the attention calculation stage refers to the computational phase of attention scoring and softmax normalization across attention layers; bidirectional attention bias refers to the bias matrix used to perturb the attention scoring matrix; attention distribution parameters refer to the attention scoring matrix before or after softmax; and cross-attention features refer to the corrected cross-modal attention weighted output features. The purpose of this operation is to forcibly guide the video's attention response to the subject to align with the planned layout.
[0105] In addition, the timing of bias stacking can be chosen. In one possible implementation, the bias is stacked on the attention scoring matrix before softmax normalization; in another possible implementation, the bias is stacked on the probability distribution obtained after softmax normalization.
[0106] Specifically, the robot-based video generation system acquires the unnormalized original attention scoring matrix within the cross-attention layer; it then superimposes the bidirectional attention biases corresponding to each subject onto the original attention scoring matrix to perturb the scoring matrix values; it performs softmax normalization on the superimposed biased scoring matrix to obtain the corrected attention distribution parameters; and it uses the corrected attention distribution parameters to perform a weighted summation operation on the text conditional features, outputting the cross-attention features.
[0107] in: The modulated cross-attention distribution; This is the query vector matrix across the attention layer; The key vector matrix spanning the attention layer; The original attention scoring matrix; The planning layout mask for the k-th entity; For the k-th subject, the bidirectional attention bias is set. This refers to the dimensions of the query vector and key vector.
[0108] Step S67: The cross-attention features are fed into the feedforward network layer of the current decoding block to complete the nonlinear feature transformation. The features output by the feedforward network layer are input to the next decoding block. After all decoding blocks are processed in sequence, the updated video latent variable features corresponding to the current denoising step are output. It should be noted that the feedforward network layer refers to the sub-layer of the network within the decoding block, consisting of fully connected layers and non-linear activation functions, used to perform non-linear mapping transformations of features; updating video latent variable features refers to the video latent variable features updated after all decoding blocks have been processed in the current denoising step. The purpose of this operation is to complete the iterative update of features within the multi-layer network of the single-step denoising inference.
[0109] It should also be noted that the decoding blocks are in a stacked serial structure. In one possible implementation, residual connections are set between the decoding blocks; in another possible implementation, layer normalization processing is added between the decoding blocks.
[0110] Specifically, the robot-based combined video generation system inputs cross-attention features into the feedforward network layer inside the current decoding block; the feedforward network layer completes nonlinear feature transformation through fully connected mapping and nonlinear activation functions; the features output by the feedforward network layer serve as the input features for the next decoding block, flowing sequentially through all the stacked decoding blocks of the model; after the last decoding block is completed, the updated video latent variable features corresponding to the current denoising step are output, and these updated video latent variable features are saved as the input for the next round of denoising inference.
[0111] For example, the video diffusion generation model stacks a total of 8 decoding blocks; cross-attention features are fed into the feedforward network layer of the first decoding block, and the output features are fed into the second, third... up to the eighth decoding block; after all decoding blocks are processed, the updated video latent variable features corresponding to the 12th denoising step are output for the 13th denoising step to call.
[0112] Step S68: After completing all the iterative processing steps of the denoising process, the latent variable features of the target video are obtained, and the latent variable features of the target video are input into the decoding module to perform decoding operations to generate the target combined video.
[0113] It should be noted that the iterative processing of all denoising steps refers to repeatedly performing steps S62-S67 until all preset denoising steps are completed; the target video latent variable features refer to the final video latent space features obtained after multiple rounds of denoising iterations; the decoding module refers to the network module that restores the latent space features to pixel frame images; and the target combined video refers to the output video frame sequence containing multi-subject interaction content. The purpose of this operation is to map the latent space features to the pixel space to obtain the final observable embodied task video.
[0114] It should also be noted that the output format of the decoding module is configurable. In one possible implementation, the decoding module outputs the original frame image sequence; in another possible implementation, the decoding module simultaneously completes video encapsulation and outputs a video file.
[0115] Specifically, the robot-generated video assembly system iteratively executes each round of denoising inference, and performs latent variable updates in each round. When the denoising step index reaches the model's preset total number of denoising steps, the iteration stops, and the updated video latent variable features output in the last step are used as the target video latent variable features. The target video latent variable features are then fed into the decoding module, which performs the decoding operation from latent features to pixel images and outputs a multi-frame image sequence, which constitutes the target assembled video.
[0116] For example, with a total of 50 denoising steps, after the 49th denoising step is completed, the latent variable features of the target video are obtained; these features are then sent to the decoding module for decoding, and the output is a target composite video consisting of multiple frames of images. The video content shows the robot grabbing a red square and placing it on top of a white tray.
[0117] This embodiment performs forced attention modulation on the layout within each round of denoising inference in the diffusion model. It dynamically generates bidirectional attention bias based on the deviation between the model's actual perceived layout and the ideal planned layout, and corrects the attention distribution across attention layers in real time. This guides the video attention responses of each subject to align with the spatiotemporal layout prior information, effectively suppressing the misalignment of spatial interaction relationships between subjects. Combined with the previous subject perception conditional interpolation to repair the semantics of the subjects, it ensures that all subjects within the prompt can be presented in the video, and that the spatial positions and interaction relationships of each subject conform to the user's original instruction description. This improves the physical causal rationality of the generated video and can provide high-quality simulation video data for downstream robot strategy learning and world model simulation.
[0118] In one feasible implementation, the step of dividing the planned layout area of each subject into an attention enhancement region and an attention inhibition region based on the prior spatiotemporal layout information, and constructing a bidirectional attention bias corresponding to each subject in combination with the attention modulation intensity, includes: Step S71: For any subject, read the planning layout region corresponding to the subject in the spatiotemporal layout prior information, and delineate the attention enhancement region and attention inhibition region of the subject based on the planning layout region; It should be noted that, in one possible implementation, the spatial location covered by the planned layout area is designated as the attention enhancement area, and all spatial locations outside the planned layout area are designated as the attention suppression area; in another possible implementation, a preset neighborhood range is extended outward from the planned layout area as the attention enhancement area, and a transition buffer area is set between the suppression area and the enhancement area.
[0119] Specifically, the robot-based video generation system traverses each subject within the subject set, reads the planned layout region data corresponding to that subject from the spatiotemporal layout prior information, and parses it to obtain the set of position coordinates of the planned layout region in the video frame space. All spatial locations covered by the planned layout region are marked as attention enhancement regions; all remaining spatial locations are marked as attention suppression regions. For example, the planned layout region of the red square in the spatiotemporal layout prior information is the coordinate range of the upper left area of the video frame; the robot-based video generation system defines all pixel positions within this upper left area coordinate range as the attention enhancement region of the red square; defines all pixels in the remaining positions of the frame as the attention suppression region of the red square; and generates an enhancement and suppression region label mask corresponding to the red square, storing it in memory.
[0120] Step S72: Configure a positive bias component in the attention enhancement region and a negative bias component in the attention suppression region to form the original bias matrix of the subject; It should be noted that the original bias matrix refers to the intermediate bias matrix obtained after filling the enhancement and suppression regions with positive and negative basic components respectively, without fusing with the attention modulation intensity. Furthermore, the values of the positive and negative bias basic components can be configured. In one possible implementation, the enhancement region is set with a positive basic value, and the suppression region is set with a negative basic value, with the absolute values of the positive and negative basic values being equal; in another possible implementation, the positive and negative basic values can be set differently according to the subject category or scene complexity.
[0121] Specifically, the robot-based video generation system reads the enhancement and suppression region marker masks corresponding to the subject, initializes the original bias matrix with the same spatial size as the video attention map, and initializes all positions of the original bias matrix to zero; it traverses all spatial positions of the video frame, and if the current position belongs to the attention enhancement region, it assigns the position a positive bias component; if the current position belongs to the attention suppression region, it assigns the position a negative bias component; after the traversal is completed, the original bias matrix of the subject is obtained.
[0122] Step S73: Perform element-wise operations on the original bias matrix and the attention modulation intensity corresponding to the subject, and use the operation result as the bidirectional attention bias corresponding to the subject.
[0123] It should be noted that element-wise operation refers to a matrix operation that multiplies the scalar attention modulation intensity with each spatial value within the original bias matrix; attention modulation intensity refers to a scalar value representing the strength of the bias applied to the subject's attention distribution; bidirectional attention bias refers to the bias matrix obtained after weighting by attention modulation intensity, used to modify the attention scoring matrix across attention layers. The purpose of this operation is to dynamically adjust the amplitude of the bias base components based on the degree of deviation between the subject's actual perception and the planned layout, thereby obtaining a final bias matrix adapted to the current subject.
[0124] Specifically, the robot combined video generation system reads the original bias matrix of the subject and the attention modulation intensity corresponding to the subject; using the attention modulation intensity as a scalar, it performs multiplication operations on all spatial positions in the original bias matrix one by one to obtain new values of each spatial position after amplitude scaling; and reorganizes the scaled result into a matrix with the same size as the original bias matrix as the bidirectional attention bias of the subject.
[0125] This embodiment reads the planned layout area from the spatiotemporal layout prior information for each subject, delineates the subject's attention enhancement area and attention suppression area, configures positive bias components in the enhancement area and negative bias components in the suppression area to form an original bias matrix, and then performs element-wise operations on the original bias matrix and the subject's attention modulation intensity to obtain a bidirectional attention bias. This enables the generation of an attention bias matrix with direction distinction and intensity adaptive adjustment by combining the subject's planned spatial position and real-time modulation intensity. The bias can positively enhance the attention response of the target subject within the planned area and negatively suppress non-target positions outside the planned area. This provides a direct matrix-based control means for subsequently superimposing this bias across attention layers to correct attention distribution and constrain the subject's spatial position to align with the spatiotemporal layout prior information, thereby reducing the probability of misalignment of subject spatial interaction relationships during video generation.
[0126] In a multi-agent interactive embodied simulation scenario, two different sets of combined prompts were set for video generation testing. The first set of prompts indicated that the white service robot moved to the right, the yellow sponge remained on the left, and the silver sink remained in the center of the frame. The second set of prompts indicated that the silver robot moved to the right, the cardboard box remained on the left, and the red ball rolled to the right. Using the first model (Wan2.2-A14B model), the second model (a textural video method with an overlaid LVD module), the third model (a textural video method with an overlaid ViCo module), and this model (the robot combined video generation method of this application), video generation was performed based on the above two sets of combined prompts, resulting in the following... Figure 2 The video frame comparison results are shown.
[0127] The generated video frames reveal that existing video generation methods using Wan2.2-A14B, overlaid with LVD and ViCo modules, are prone to issues such as missing subjects, incorrect spatial positioning of subjects, and object movement directions that do not conform to the prompts. For example, some generated results may lack the specified robot or object, or the left-right relative positions of objects or robots may not match the natural language description, and some objects may exhibit incorrect movement trajectories that do not conform to the instructions.
[0128] The robot ensemble video generation method of this application, which is to generate video by superimposing the Comp-Attn layout forced attention modulation mechanism, can completely preserve all robots and objects in the ensemble prompt. The relative spatial position and motion direction of each subject can be consistent with the scene description given by the ensemble prompt. In the embodied scene where multiple subjects coexist and there are interactive actions, it can stably ensure the completeness of subjects in the scene and the accuracy of spatial and motion constraints.
[0129] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0130] This application also provides a robot combination video generation device, please refer to... Figure 3 The robot combined video generation device includes: The acquisition module 31 is used to acquire the combined prompt information input by the target user; The parsing module 32 is used to perform combined scene parsing processing on the combined prompt information through a language planning model to obtain the subject set and spatiotemporal layout prior information; Interpolation module 33 is used to perform text encoding on the combined prompt information and each subject in the subject set, and perform subject perception condition interpolation processing based on the encoding result to obtain subject perception conditions; The generation module 34 is used to input the subject perception conditions and the spatiotemporal layout prior information into the video diffusion generation model, and perform layout forced attention modulation processing in the cross-attention layer of the video diffusion generation model to generate the target combined video.
[0131] The robot combined video generation apparatus provided in this application, employing the robot combined video generation method in the above embodiments, can solve the technical problems in the background art. Compared with the prior art, the beneficial effects of the robot combined video generation apparatus provided in this application are the same as the beneficial effects of the robot combined video generation method provided in the above embodiments, and other technical features in the robot combined video generation apparatus are the same as the features disclosed in the methods of the above embodiments, and will not be repeated here.
[0132] This application provides a robot assemblies video generation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the robot assemblies video generation method in Embodiment 1 above.
[0133] The following is for reference. Figure 4The diagram illustrates a structural schematic suitable for implementing the robot combined video generation device of the embodiments of this application. The robot combined video generation device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The robot-based video generation device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this application.
[0134] like Figure 4 As shown, the robot combined video generation device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the robot combined video generation device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 allows the robot-assembled video generation device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a robot-assembled video generation device with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0135] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0136] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included 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.
[0137] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the robot combined video generation method provided by the methods described above.
[0138] The system embodiments described above are merely illustrative. 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 modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0139] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0140] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for generating robot ensemble video, characterized in that, include: Obtain the combined prompt information input by the target user; The combined prompt information is analyzed using a language planning model to obtain the subject set and spatiotemporal layout prior information. The combined prompt information and each subject in the subject set are text-encoded respectively. Subject perception condition interpolation is performed based on the encoding results to obtain the subject perception condition. The subject perception conditions and the spatiotemporal layout prior information are input into the video diffusion generation model, and layout-forced attention modulation processing is performed in the cross-attention layer of the video diffusion generation model to generate the target combined video.
2. The robot combination video generation method as described in claim 1, characterized in that, The process of parsing the combined prompt information using a language planning model to obtain the subject set and spatiotemporal layout prior information includes: Construct prompts for context learning, and add the combined prompt information to the prompts to generate model input text. The prompts include scene planning instructions, output format examples, and chained inference trigger content. The input text of the model is input into the language planning model for combined scenario parsing processing, which triggers the language planning model to perform chain reasoning on the input text of the model and outputs the model parsing result; The subject set and spatiotemporal layout prior information are extracted from the model analysis results.
3. The robot combination video generation method as described in claim 1, characterized in that, The step of text encoding the combined prompt information and each subject in the subject set includes: The combined prompt information is subjected to context encoding by a text encoder to obtain the complete prompt encoding result; From the complete prompt encoding result, extract the context subject features corresponding to each subject in the subject set; For any subject in the subject set, the text encoder performs independent encoding on the subject and outputs the semantic anchor features corresponding to the subject.
4. The robot combination video generation method as described in claim 3, characterized in that, The step of performing subject-aware conditional interpolation based on the encoding result to obtain subject-aware conditions includes: Read the contextual subject features and semantic anchor features corresponding to each subject, and calculate the similarity between the contextual subject features and semantic anchor features corresponding to any subject to obtain the subject saliency of any subject; For each subject, a difference operation is performed between the semantic anchor features of the other subjects and the semantic anchor features of the current subject, and the results of the difference operation are summarized to generate the recovery vector corresponding to the current subject. Obtain the denoising process parameters output by the video diffusion generation model during inference, extract time step information from the denoising process parameters, and generate time decay constraint weights based on the extracted time step information; Based on the time decay constraint weights and the subject saliency and recovery vector corresponding to each subject, interpolation correction is performed on the context subject features to obtain the subject perception conditions.
5. The robot combination video generation method as described in claim 4, characterized in that, The process of interpolating and correcting the contextual subject features based on the time decay constraint weights, the subject saliency corresponding to each subject, and the recovery vector, to obtain the subject perception conditions, includes: For any of the subjects, an interpolation adjustment coefficient is generated by combining the time decay constraint weight and the subject saliency corresponding to the subject. Using the interpolation adjustment coefficient and the recovery vector, semantic interpolation is performed on the context subject features corresponding to the subject to obtain interpolated semantic features, and the interpolated semantic features are used to replace the context subject features at the corresponding positions in the complete prompt encoding result; The subject perception condition is obtained by replacing the interpolated semantic features corresponding to all the subjects with the complete prompt encoding result.
6. The robot combination video generation method as described in claim 1, characterized in that, The video diffusion generation model comprises multiple stacked decoding blocks, each of which includes a self-attention layer, a cross-attention layer, and a feedforward network layer; The step of inputting the subject perception conditions and the spatiotemporal layout prior information into the video diffusion generation model, and performing layout-forced attention modulation processing in the cross-attention layer of the video diffusion generation model to generate the target composite video includes: The subject perception conditions and the spatiotemporal layout prior information are input into the video diffusion generation model. The initial noisy video latent variables are obtained by sampling through the video diffusion generation model, and a multi-step denoising inference process is started. In each step of the denoising inference process, when it is the first denoising step, the initial noisy video latent variable is sent as the input video latent variable feature to the self-attention layer of the current decoding block. When it is not the first denoising step, the updated video latent variable feature output from the previous denoising step is sent as the input video latent variable feature to the self-attention layer of the current decoding block, so as to perform video spatiotemporal dimension feature association calculation on the input video latent variable feature through the self-attention layer and output self-attention feature. The self-attention features are fed into the cross-attention layer of the current decoding block. During the operation of the cross-attention layer, the video text attention map corresponding to each subject is read and output, and the video text attention map corresponding to each subject is subjected to threshold binarization to generate the adaptive perception layout corresponding to each subject. The adaptive perception layout of each subject is compared with the prior information of the spatiotemporal layout by performing an intersection-union-comparison (CIUC) operation, and the attention modulation intensity corresponding to each subject is determined based on the CIUC operation result. Based on the planned layout area of each subject in the spatiotemporal layout prior information, attention enhancement region and attention inhibition region are divided, and bidirectional attention bias corresponding to each subject is constructed in combination with the attention modulation intensity; The bidirectional attention bias is superimposed on the attention calculation stage of the cross-attention layer to correct the attention distribution parameters of the cross-attention layer, and cross-attention features are output based on the corrected attention distribution parameters. The cross-attention features are fed into the feedforward network layer of the current decoding block to complete the nonlinear feature transformation. The features output by the feedforward network layer are input into the next decoding block. After all decoding blocks are processed in sequence, the updated video latent variable features corresponding to the current denoising step are output. After completing all the iterative processing steps of denoising, the latent variable features of the target video are obtained, and the latent variable features of the target video are input into the decoding module to perform decoding operations to generate the target combined video.
7. The robot combination video generation method as described in claim 6, characterized in that, The step of dividing the planned layout area of each subject into attention enhancement regions and attention suppression regions based on the prior information of the spatiotemporal layout, and constructing a bidirectional attention bias corresponding to each subject in combination with the attention modulation intensity, includes: For any of the subjects, read the planning layout region corresponding to the subject from the spatiotemporal layout prior information, and delineate the attention enhancement region and attention inhibition region of the subject based on the planning layout region; A positive bias component is configured within the attention enhancement region, and a negative bias component is configured within the attention suppression region to form the original bias matrix of the subject. The original bias matrix and the attention modulation intensity corresponding to the subject are operated on element by element, and the result is used as the bidirectional attention bias corresponding to the subject.
8. A robot-based video generation device, characterized in that, include: The acquisition module is used to acquire combined prompt information input by the target user; The parsing module is used to perform combined scene parsing processing on the combined prompt information through a language planning model to obtain the subject set and spatiotemporal layout prior information; The interpolation module is used to perform text encoding on the combined prompt information and each subject in the subject set, and to perform subject perception condition interpolation processing based on the encoding results to obtain the subject perception conditions. The generation module is used to input the subject perception conditions and the spatiotemporal layout prior information into the video diffusion generation model, and perform layout-forced attention modulation processing in the cross-attention layer of the video diffusion generation model to generate the target combined video.
9. A robot-based video generation device, characterized in that, The robot assembly video generation device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the robot assembly video generation method as described in any one of claims 1 to 7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the robot combined video generation method as described in any one of claims 1 to 7.
