A method and device for constructing a lightweight world model
By constructing a training sample set in real-world open scenarios and employing physical consistency loss and knowledge distillation techniques, the geometric distortion and computational memory limitations of the world model are addressed, enabling the effective deployment and efficient prediction of a lightweight world model.
Patent Information
- Application Number
- CN202611405150.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing world models are prone to geometric distortion and physical inconsistencies when predicting future video frames or image sequences, and they are difficult to meet the computing power and memory constraints of robot edge devices, making it difficult to balance lightweight design with predictive performance.
Based on historical image frame sequences and scene state data collected by the robot in real open scenarios, a target training sample set is constructed. The physical consistency loss function is used as a training constraint. Combined with a parameter-sharing cyclic architecture and knowledge distillation technology, a lightweight world model is trained.
The model's adaptability to open and dynamic scenarios has been improved, and the prediction results have physical reliability, providing a credible decision-making basis for the robot's autonomous navigation planning, achieving a balance between lightweight design and predictive performance.
Smart Images

Figure CN123180214A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of embodied intelligence technology, and more particularly to a method and apparatus for constructing a lightweight world model. Background Technology
[0002] With the rapid development of embodied intelligence technology, world models, as core components of robot perception and decision-making, are widely used in tasks such as environmental understanding, scene prediction, and autonomous navigation.
[0003] In related technologies, world models are typically built on large-scale generative neural networks, trained end-to-end on massive datasets, and use historical image frames to predict future video frames or image sequences, thereby achieving modeling of dynamic changes in the scene.
[0004] However, using video frames or image sequences to predict the future is prone to geometric distortion and physical inconsistencies, and large-scale generative neural networks struggle to meet the computational and memory limitations of robotic end-user systems. Therefore, these technologies make it difficult for world models to balance lightweight design with predictive performance. Summary of the Invention
[0005] To address the aforementioned technical problems, this disclosure provides a method and apparatus for constructing a lightweight world model.
[0006] Firstly, this disclosure provides a method for constructing a lightweight world model, the method comprising: A target training sample set is constructed based on the historical image frame sequence and corresponding historical scene state data collected by the robot in a real open scene; the scene state data includes camera intrinsic and extrinsic parameters, depth map and semantic information. The physical consistency loss function is used as a training constraint, and the world model is trained using the target training sample set. The world model is configured to encode and map the historical image frame sequence to a latent state space, and to decode and predict future scene state data based on the latent state space. A lightweight network is constructed using a parameter-sharing recurrent architecture. The world model is used as the teacher network, and the lightweight network is used as the student network. The student network is trained through knowledge distillation to obtain the lightweight world model.
[0007] The representation layer is used to map the historical image frame sequence to the latent state space to obtain a historical latent state sequence; The prediction layer is used to perform time-series prediction based on the historical potential state sequence to obtain the future potential state sequence; the prediction layer adopts a time-series prediction method that combines autoregressive generation and diffusion generation. The decoding layer is used to decode based on the future potential state sequence to obtain the future scene state data.
[0008] Optionally, in some embodiments of this disclosure, constructing a target training sample set based on historical image frame sequences and corresponding historical scene state data collected by the robot in a real open scene includes: The robot acquires multimodal data collected in the real open scene; the multimodal data is collected by multi-source sensors mounted on the robot, including cameras, lidar, and inertial navigation units; The real image frames of the first n time steps and the real scene state of the last k time steps within each preset time window are extracted from the multimodal data, and used as the historical image frame sequence and the corresponding historical scene state data. The target training sample set is constructed based on the historical image frame sequence and the historical scene state data.
[0009] Optionally, in some embodiments of this disclosure, the step of extracting the real image frames of the first n time steps and the real scene states of the last k time steps within each preset time window from the multimodal data as the historical image frame sequence and the corresponding historical scene state data includes: The real image frames of the first n time steps within each preset time window are extracted from the multimodal data to obtain the historical image frame sequence; The semantic information is generated by performing open-vocabulary semantic annotation on the real image frames of the first n time steps using a visual language basic model. Using a three-dimensional vision model, depth maps corresponding to the last k time steps within each preset time window are extracted from the multimodal data; Simultaneous localization and mapping algorithms are used to extract camera intrinsic and extrinsic parameters corresponding to the last k time steps within each preset time window from the multimodal data; The semantic information, the depth map, and the camera intrinsic and extrinsic parameters are used as the real scene state for the last k time steps within each preset time window to obtain the historical scene state data.
[0010] Optionally, in some embodiments of this disclosure, the method further includes: Based on the historical image frame sequence and the historical scene state data, a simulation scene model of the real open scene is constructed; Dynamic objects are added to the simulation scene model, and a diffusion generation model is used to render and generate simulation image frames containing the dynamic objects for the first n time steps and simulation scene states for the last k time steps within each preset time window; the simulation scene states are generated by the dynamic objects in various motion states, and the various motion states include at least the sudden change state of the crowd and the appearance state of temporary obstacles. The simulated image frames from the first n time steps are used as newly added historical image frame sequences, and the simulated scene states from the last k time steps are used as newly added historical scene state data, which are then incorporated into the target training sample set.
[0011] Optionally, in some embodiments of this disclosure, the physical consistency loss function includes at least one of geometric consistency loss and temporal smoothness loss; The geometric consistency loss is used to constrain the consistency of the three-dimensional geometric relationships between time steps in the future scene state data. The temporal smoothness loss is used to constrain the temporal continuity between adjacent time steps in the future scene state data.
[0012] Optionally, in some embodiments of this disclosure, training the student network through knowledge distillation to obtain a lightweight world model includes: The historical image frame sequence is input into the teacher network and the student network respectively to obtain the future teacher scene state data predicted by the teacher network based on the latent state space, and the future student scene state data predicted by the student network based on the latent state space. Calculate the first loss between the future teacher scenario state data and the future student scenario state data; Calculate a second loss between the attention features of the student network and the teacher network in the latent state space; Calculate the third loss between the future student scenario state data and the historical scenario state data; The parameters of the student network are updated based on the first loss, the second loss, and the third loss to obtain the lightweight world model.
[0013] Optionally, in some embodiments of this disclosure, before updating the parameters of the student network based on the first loss, the second loss, and the third loss to obtain the lightweight world model, the method further includes: Extract the predicted state transition features between adjacent time steps of the teacher network and the student network in the latent state space; Calculate the fourth loss of the student network and the teacher network on the predicted state transition features; The step of updating the parameters of the student network based on the first loss, the second loss, and the third loss includes: The parameters of the student network are updated based on the first loss, the second loss, the third loss, and the fourth loss.
[0014] Secondly, this disclosure provides a lightweight world model construction apparatus, the apparatus comprising: The sample construction module is used to construct a target training sample set based on the historical image frame sequence and corresponding historical scene state data collected by the robot in a real open scene; the scene state data includes camera intrinsic and extrinsic parameters, depth map and semantic information. The world model construction module is used to train a world model using the physical consistency loss function as a training constraint and the target training sample set. The world model is configured to encode and map the historical image frame sequence to a latent state space, and decode and predict future scene state data based on the latent state space. The lightweight model construction module is used to construct a lightweight network using a parameter-sharing cyclic architecture. The world model is used as the teacher network, and the lightweight network is used as the student network. The student network is trained through knowledge distillation to obtain the lightweight world model.
[0015] Thirdly, this disclosure provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method described in the first aspect above.
[0016] Thirdly, this disclosure provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the method described in the first aspect above.
[0017] The technical solution provided in this disclosure has the following advantages compared with the prior art: A target training sample set is constructed based on historical image frame sequences and historical real-world scene state data collected by the robot in real open scenarios. This allows the model's learning to be directly geared towards real deployment environments, improving the model's adaptability to open and dynamic scenes. By using a physical consistency loss function as a training constraint, the world model aims to predict future scene state data such as camera intrinsic and extrinsic parameters, depth maps, and semantic information, rather than predicting future video frames or image sequences. This avoids geometric distortion and physical inconsistencies, ensuring the prediction results have physical reliability and providing a credible decision-making basis for the robot's autonomous navigation planning. Furthermore, a lightweight network is constructed using a parameter-sharing recurrent architecture. Knowledge distillation is used to guide the learning of student networks through the trained world model, enabling the lightweight world model to maintain prediction performance close to that of the teacher network while significantly reducing the number of parameters and inference computation overhead. This effectively solves the problem that large-scale generative neural networks cannot meet the computational and memory limitations of robot edge computing, achieving a balance between lightweight design and prediction performance. This lays the foundation for the deployment and application of lightweight world models on robot edge computing. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0019] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying 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 A flowchart illustrating a method for constructing a lightweight world model according to an embodiment of this disclosure is shown; Figure 2 A structural block diagram of another lightweight world model construction apparatus provided in an embodiment of this disclosure is shown; Figure 3 A structural block diagram of a lightweight world model construction apparatus provided in an embodiment of this disclosure is shown. Detailed Implementation
[0021] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0022] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0023] Some of the nouns or terms that appear in the description of the embodiments of this disclosure shall be interpreted as follows: World Model: A world model is a generative model that can learn the dynamic evolution of the environment and predict future states. Using historical observation data as input, a world model extrapolates future environmental changes, providing forward-looking information for agent decision-making.
[0024] Latent State Space: The latent state space refers to the low-dimensional feature space obtained by compressing and mapping high-dimensional observation data (such as images) through an encoder. Prediction and reasoning within the latent state space can reduce computational complexity and extract essential structural information about the scene.
[0025] Scene state data: Scene state data is a set of physical quantities that provide a structured description of the scene, including camera intrinsic and extrinsic parameters, depth maps, and semantic information. Camera intrinsic and extrinsic parameters include intrinsic and extrinsic parameters. Intrinsic parameters describe the camera's imaging characteristics, specifically including focal length, principal point coordinates, and distortion coefficients. Extrinsic parameters describe the camera's position and orientation in three-dimensional space, specifically including the camera's three-dimensional coordinates and rotation matrix. The depth map describes the distance from each point in the scene to the camera. Semantic information describes the semantic category of each region in the scene.
[0026] Knowledge distillation is a model compression method that transfers knowledge from a large, pre-trained model (teacher network) to a small model (student network), allowing the student network to maintain performance close to that of the teacher network while significantly reducing the number of parameters.
[0027] Recurrent Architecture: A recurrent architecture refers to a network structure where each layer shares the same set of parameters and processes information layer by layer through iterative loops. Compared to traditional multi-layered, independently parameterized stacked architectures, recurrent architectures can significantly reduce the number of parameters.
[0028] Physical consistency loss function: The physical consistency loss function is a loss function used to constrain the model prediction results to maintain physical consistency. For example, it can include geometric consistency loss to constrain the prediction results to maintain geometric consistency in three-dimensional space, and temporal smoothness loss to constrain the prediction results to maintain continuous smoothness in the time dimension.
[0029] Simultaneous Localization and Mapping (SLAM): SLAM is a technique for simultaneously estimating sensor pose and constructing an environment map in an unknown environment. In this embodiment, SLAM is used to extract camera pose parameters from multimodal data.
[0030] Before describing the embodiments of this disclosure in detail, the technical background involved in this disclosure will be described here so that those skilled in the art can have a clearer understanding of the embodiments of this disclosure.
[0031] In related technologies, to enable robots to achieve autonomous navigation and action decision-making in open and dynamic environments, robots need to understand their surroundings and predict future changes in the scene, thus providing a forward-looking basis for path planning and obstacle avoidance decisions. World models, as a core component for achieving this goal, enable robots to reason and plan in complex environments by learning the dynamic evolution patterns of the scene.
[0032] However, existing world models typically aim to predict future video frames or image sequences, resulting in predictions that lack clear physical meaning and are prone to geometric distortions and physical inconsistencies, making it difficult to provide reliable decision-making support for robots. Furthermore, the large network size and high computational resource consumption of existing world models create a significant contradiction with the limited computing power of robot edge devices, making them difficult to deploy and run in practical robotic systems. This makes it difficult for existing world models to balance lightweight design with predictive performance.
[0033] In view of this, in some embodiments of this disclosure, a method for constructing a lightweight world model is provided. Figure 1 A flowchart illustrating a method for constructing a lightweight world model is shown, such as... Figure 1 As shown, it includes: S102. Based on the historical image frame sequence and corresponding historical scene state data collected by the robot in a real open scene, construct the target training sample set.
[0034] The historical image frame sequence consists of the image frames of the first n time steps within the preset time window, and the historical scene state data consists of the real scene state of the last k time steps within the preset time window; the scene state data includes camera intrinsic and extrinsic parameters, depth map, and semantic information.
[0035] In this embodiment, the real open scene refers to the physical environment in which the robot actually performs its tasks, specifically including scenes such as sidewalks, intersections, squares, and parks. The historical image frame sequence refers to multiple real image frames collected by the robot in the chronological order of the first n time steps within a preset time window, serving as the training input for the subsequent world model. The historical scene state data refers to the structured description information of the scene collected in the chronological order of the last k time steps within a preset time window, serving as the training labels for the subsequent world model.
[0036] For example, camera intrinsic and extrinsic parameters include camera intrinsic parameters and camera extrinsic parameters. Camera intrinsic parameters describe the camera's imaging characteristics and may specifically include focal length, principal point coordinates, and distortion coefficients. Camera extrinsic parameters describe the camera's spatial position and orientation over the next k time steps and may specifically include the camera's 3D coordinates and rotation matrix. The depth map describes the distance information from each pixel in the scene to the camera. Semantic information describes the semantic categories of each region in the scene and may specifically include semantic labels such as pedestrians, vehicles, passable areas, and obstacles.
[0037] This disclosure embodiment constructs a training sample set using data collected in real open scenes, ensuring that the training samples directly originate from the actual physical environment in which the robot is deployed. This enhances the adaptability of the trained model to real open scenes. Furthermore, by using scene state data containing camera intrinsic and extrinsic parameters, depth maps, and semantic information as training labels, the model's learning objective is directly geared towards structured physical quantities, rather than pixel-level image content.
[0038] S104 uses the physical consistency loss function as a training constraint and trains the world model using the target training sample set.
[0039] The world model is configured to encode and map historical image frame sequences to a latent state space, and to decode and predict future scene state data based on the latent state space.
[0040] In this embodiment of the disclosure, the latent state space refers to the low-dimensional feature space obtained after compressing and representing the scene. The world model encodes and maps the image frames of the first n time steps to this latent state space, and then predicts the scene state of the next k time steps in the latent state space, i.e., the future scene state data, rather than directly predicting future video frames or image sequences.
[0041] It should be noted that future scene state data also includes camera intrinsic and extrinsic parameters, depth maps, and semantic information. Although it is consistent with historical scene state data in terms of data format—both including camera intrinsic and extrinsic parameters, depth maps, and semantic information—their roles in the training process differ: historical scene state data serves as the training labels for training the world model, while future scene state data serves as the predicted output of the world model. In other words, the former is the label, and the latter is the model's inference result.
[0042] For example, the physical consistency loss function is used to constrain the physical consistency of the future scene state data predicted by the world model. This physical consistency loss function can constrain the three-dimensional geometric relationships between time steps in the prediction results to remain consistent, and it can also constrain the prediction results between adjacent time steps to remain continuous and smooth in the time dimension.
[0043] This embodiment of the disclosure uses the physical consistency loss function as a training constraint, enabling the world model to target future scene state data such as camera intrinsic and extrinsic parameters, depth maps, and semantic information, rather than predicting future video frames or image sequences. This avoids the geometric distortion and physical inconsistency problems that easily occur when using pixel-level video frames as prediction targets, thus enabling the prediction results to have physical reliability and providing a credible decision-making basis for the robot's autonomous navigation planning.
[0044] S106 employs a parameter-sharing recurrent architecture to construct a lightweight network. The world model serves as the teacher network, and the lightweight network serves as the student network. The student network is trained through knowledge distillation to obtain the lightweight world model.
[0045] In this embodiment of the disclosure, the parameter-sharing cyclic architecture refers to a network where each layer shares the same set of parameters and processes information layer by layer through iterative loops, rather than setting independent parameters for each layer as in a traditional stacked architecture. Therefore, the number of parameters in a cyclic architecture is much smaller than that in a stacked architecture of the same depth.
[0046] For example, the training process for knowledge distillation may include: inputting a sequence of historical image frames into a teacher network and a student network respectively; comparing the differences between the future scene state data predicted by the student network and the future scene state data predicted by the teacher network; and updating the parameters of the student network based on the differences. During training, the parameters of the teacher network remain frozen, and only the parameters of the student network are updated.
[0047] For example, the training process of knowledge distillation may also include: comparing the differences between the student network and the teacher network in the attention features of the intermediate layer, comparing the differences between the future scene state data predicted by the student network and the historical scene state data, and comparing the differences between the student network and the teacher network in the predicted state transition features between adjacent time steps in the latent state space, and combining the above multiple losses for the parameter update of the student network.
[0048] The embodiments disclosed herein significantly reduce the number of network parameters and inference computation overhead through a parameter-sharing cyclic architecture. At the same time, the lightweight network learns prediction capabilities from the teacher network through knowledge distillation. Therefore, it can meet the computing power and memory limitations of the robot edge while maintaining prediction performance close to that of the teacher network, thus achieving a balance between lightweight design and prediction performance.
[0049] This disclosure constructs a target training sample set based on historical image frame sequences and historical scene state data collected by the robot in real open scenes. This allows the model's learning to be directly geared towards the real deployment environment, improving the model's adaptability to open and dynamic scenes. By using the physical consistency loss function as a training constraint, the world model can target scene state data such as predicting future camera intrinsic and extrinsic parameters, depth maps, and semantic information, rather than predicting future video frames or image sequences. This avoids geometric distortion and physical inconsistency issues, making the prediction results physically reliable and providing a credible decision-making basis for the robot's autonomous navigation planning. On this basis, a lightweight network is constructed using a parameter-sharing recurrent architecture. The trained world model is used as a teacher network to guide student network learning through knowledge distillation. This allows the lightweight world model to maintain prediction performance close to that of the teacher network while significantly reducing the number of parameters and inference computation overhead. This effectively solves the problem that large-scale generative neural networks cannot meet the computational power and memory limitations of robot edge devices, achieving a balance between lightweight design and prediction performance. This lays the foundation for the deployment and application of lightweight world models on robot edge devices.
[0050] In some embodiments of this disclosure, optionally, the world model includes a representation layer, a prediction layer, and a decoding layer; the representation layer is used to map historical image frame sequences to a latent state space to obtain a historical latent state sequence; the prediction layer is used to perform temporal prediction based on the historical latent state sequence to obtain a future latent state sequence; the prediction layer adopts a temporal prediction method that combines autoregressive generation and diffusion generation; the decoding layer is used to decode based on the future latent state sequence to obtain the future predicted scene state.
[0051] In this embodiment, the world model is trained using a combination of end-to-end training and modular tuning, completing representation learning, predictive modeling, and decoding optimization in stages. For example, in the first stage, the parameters of the prediction and decoding layers can be frozen, and only the representation layer can be pre-trained to allow it to fully learn the visual features of the scene. In the second stage, the parameters of the representation layer can be frozen, and the prediction layer can be trained to allow it to fully learn the temporal evolution of the latent states. In the third stage, the representation layer, prediction layer, and decoding layer can be jointly fine-tuned end-to-end to optimize the coordination between the layers.
[0052] Since the historical image frame sequence and historical scene state data are divided according to the image frames of the first n time steps and the real scene states of the last k time steps within the same preset time window, the future scene state data also corresponds to the last k time steps. For example, the representation layer can use a pre-trained visual encoder to encode the image frames of the first n time steps into compact latent state vectors. The latent state vectors corresponding to multiple frames are arranged in chronological order according to the n time steps, forming the latent state sequence of the first n time steps, thus obtaining the historical latent state sequence.
[0053] For example, the prediction layer is used to perform time series prediction based on the potential state sequence of the first n time steps to obtain the potential state sequence of the next k time steps, i.e., the future potential state sequence. This prediction layer employs a time series prediction method combining autoregressive generation and diffusion generation. For instance, the prediction layer can first use the autoregressive generation module to progressively generate initial estimates of the potential states for the next k time steps based on the potential state sequence of the first n time steps, and then use the diffusion generation module to iteratively denoise and refine the initial estimates to obtain the potential state sequence of the next k time steps. The autoregressive generation module can capture the temporal dependencies between potential states, while the diffusion generation module can refine the initial estimates; the combination of the two can balance the coherence of time series modeling and the precision of the prediction results.
[0054] For example, the decoding layer is used to decode the latent state sequence of the next k time steps to obtain the predicted scene state of the next k time steps, i.e., to obtain the future scene state data. For example, the decoding layer may include a camera decoder, a depth decoder, and a semantic decoder. The camera decoder is used to recover the camera intrinsic and extrinsic parameters of the next k time steps from the latent state sequence of the next k time steps, the depth decoder is used to recover the depth map of the next k time steps, and the semantic decoder is used to recover semantic information.
[0055] Specifically, the representation layer utilizes the visual base model. Will Frame Image Mapping to a unified and compact latent state space yields the sequence of latent states for the first n time steps, i.e., the historical latent state sequence. The prediction layer constructs a time-series prediction model that combines autoregression and diffusion generation. Based on the historical potential states of the previous n time steps The prediction yields the sequence of potential states k time steps after characterization, i.e., the future sequence of potential states. It captures the dynamic evolution of latent states; the decoding layer is designed based on alternating attention mechanisms or multi-level feature upsampling decoders, through a camera decoder. Depth decoder and semantic decoder Camera intrinsic and extrinsic parameters at k time steps after recovery Depth map Semantic information The structured description information of the scene, which represents the three-dimensional physical output, is used to obtain the future scene state data.
[0056] The working process of the above representation layer, prediction layer, and decoding layer can be represented by the following formula: ; ; ; ; ; in, Represents a sequence of historical image frames. Represents a sequence of historical potential states. Represents a sequence of potential future states. Indicates the internal and external parameters of the future camera. Represents the future depth map. It represents future semantic information. As the visual foundation model for the representation layer, For the time series prediction model of the prediction layer, , , These are the camera decoder, depth decoder, and semantic decoder, respectively.
[0057] Finally, the training process of the world model is constrained by the physical consistency loss function to ensure that the predicted future scene state data remains physically consistent.
[0058] This embodiment employs a three-layer progressive architecture consisting of a representation layer, a prediction layer, and a decoding layer. This decouples scene understanding, temporal deduction, and physical quantity recovery into independent functional modules. Through phased training, each layer can fully converge during its respective learning phase, avoiding training instability caused by mutual interference when multiple layers are trained simultaneously. The world model performs temporal prediction in the latent state space before decoding it into physically meaningful scene state data, rather than directly generating pixel-level video frames. Therefore, it balances prediction accuracy with the physical reliability of the output, allowing the prediction results to be directly used for the robot's autonomous navigation and behavioral decisions.
[0059] In some embodiments of this disclosure, optionally, a target training sample set is constructed based on the robot's historical image frame sequence and corresponding historical scene state data in a real open scene, including: acquiring multimodal data collected by the robot in a real open scene; extracting real image frames of the first n time steps and real scene states of the last k time steps within each preset time window from the multimodal data as historical image frame sequences and corresponding historical scene state data; and constructing a target training sample set based on the historical image frame sequences and historical scene state data.
[0060] The multimodal data is collected by multi-source sensors mounted on the robot, including cameras, lidar, and inertial navigation units.
[0061] For example, a camera is used to acquire RGB images or video streams of the scene. A LiDAR is used to acquire 3D point cloud data of the scene. An inertial navigation unit is used to acquire the robot's acceleration and angular velocity information. The multiple sensors are synchronized in time to ensure time alignment between the data from different modalities.
[0062] For example, real-world open scenarios can include various scene types such as sidewalks, intersections, squares, and parks, in which the robot collects data according to a preset route or an autonomous navigation route.
[0063] The embodiments disclosed herein collect multimodal data in real open scenes through multi-source sensors mounted on the robot, so that the training samples come directly from the physical environment in which the robot is actually deployed. Therefore, it can improve the adaptability of the trained world model to real open scenes and reduce the performance degradation caused by the distribution difference between the training data and the actual deployment environment.
[0064] In some embodiments of this disclosure, optionally, extracting real image frames for the first n time steps and real scene states for the last k time steps within each preset time window from multimodal data as historical image frame sequences and corresponding historical scene state data includes: extracting real image frames for the first n time steps within each preset time window from multimodal data to obtain an image frame sequence; performing open-vocabulary semantic annotation on the real image frames for the first n time steps using a visual language basic model to generate semantic information; extracting depth maps corresponding to the last k time steps within each preset time window from multimodal data using a 3D vision basic model; extracting camera intrinsic and extrinsic parameters corresponding to the last k time steps within each preset time window from multimodal data using a simultaneous localization and mapping algorithm; and using the semantic information, depth maps, and camera intrinsic and extrinsic parameters as real scene states for the last k time steps within each preset time window to obtain historical scene state data.
[0065] For example, the basic visual language model can be a model such as Grounding DINO or SAM. Open-vocabulary semantic annotation refers to the ability of a model to automatically identify and annotate various semantic elements in a scene without the need for manual pre-definition of semantic categories. For example, semantic information can include semantic labels such as pedestrians, vehicles, passable areas, obstacles, zebra crossings, and no-entry zones on lawns.
[0066] For example, the 3D vision base model can be a model such as VGGT, which can estimate dense depth maps from multimodal data. The simultaneous localization and mapping algorithm can estimate pose parameters at each time step based on laser point cloud and inertial navigation data.
[0067] This disclosure utilizes a visual language model for open-vocabulary semantic annotation, automatically identifying various semantic elements in a scene without requiring manual pre-definition of semantic categories, significantly reducing annotation costs. By extracting depth maps and camera intrinsic and extrinsic parameters using a 3D vision model and simultaneous localization and mapping (SLAM) algorithms, automated extraction from multimodal data to structured scene state data is achieved, thus enabling the efficient construction of large-scale, high-quality training sample sets.
[0068] Optionally, in some embodiments of this disclosure, the method further includes: constructing a simulation scene model of a real open scene based on historical image frame sequences and historical scene state data; adding dynamic objects to the simulation scene model, and using a diffusion generation model to render and generate simulation image frames containing dynamic objects for the first n time steps and simulation scene states for the last k time steps within each preset time window; using the simulation image frames for the first n time steps as newly added historical image frame sequences and the simulation scene states for the last k time steps as newly added historical scene state data, and incorporating them into the target training sample set.
[0069] The simulation scene state is generated by dynamic objects in various motion states, which include at least the sudden change of the crowd state and the appearance of temporary obstacles.
[0070] For example, a high-fidelity 3D reconstruction of a real open scene can be performed based on 3D Gaussian splashing technology to obtain a simulation scene model. After adding dynamic pedestrians and other objects to the simulation scene model, simulation image frames from a new perspective are generated by changing the pose of the virtual camera.
[0071] For example, a sudden change in crowd movement or density refers to a situation where the direction or density of a crowd in a scene changes abruptly, such as a crowd suddenly gathering, dispersing, or changing direction. A temporary obstacle appearance refers to the sudden appearance of obstacles that were not originally present in the scene, such as temporarily parked vehicles or suddenly placed construction barriers. These states occur infrequently in real-world scenarios and are difficult to collect; therefore, simulation-based generation can effectively supplement training data for such edge cases.
[0072] This disclosure embodiment constructs a simulation scene model and uses a diffusion generation model to render simulation data containing dynamic objects, which can effectively expand the coverage and diversity of training samples and simulate edge cases that are difficult to collect in the real world. Therefore, it can improve the prediction robustness of the world model when facing dynamic and complex scenes and enhance the model's generalization ability to unconventional scenes.
[0073] In some embodiments of this disclosure, optionally, the physical consistency loss function includes at least one of geometric consistency loss and temporal smoothness loss; the geometric consistency loss is used to constrain the consistency of the three-dimensional geometric relationship between each time step in the future scene state data; the temporal smoothness loss is used to constrain the temporal continuity between adjacent time steps in the future scene state data.
[0074] For example, geometric consistency loss can constrain the projection relationship between the predicted depth map and camera intrinsic and extrinsic parameters to remain consistent across time steps. That is, the depth value and camera intrinsic and extrinsic parameters corresponding to the same 3D point in different time steps should satisfy rigid body transformation constraints. Specifically, through encoder encoding and decoder decoding, the camera intrinsic and extrinsic parameters, depth map, and semantic information corresponding to the historical image frame sequence are obtained. The actual camera intrinsic and extrinsic parameters from the target training sample set are then used. Depth map and semantic information Construct the following loss function for supervised training:
[0075] in, Cross-entropy loss; These are the camera intrinsic and extrinsic parameters predicted by the world model. The training sample set contains the actual camera intrinsic and extrinsic parameters. The depth map is predicted by the world model. The target training sample set contains real depth maps. Semantic information obtained from world model predictions To obtain real semantic information from the target training sample set. This represents the cross-entropy loss.
[0076] For example, temporal smoothness loss can constrain the changes in depth map, camera intrinsic and extrinsic parameters, and semantic changes between adjacent time steps to keep them within a reasonable range, avoiding abrupt changes or jumps. Specifically, firstly, the historical image frame sequence is encoded into a latent state sequence using an encoder; then, the latent state sequence is divided into historical latent states and future latent states; next, the historical latent states, sampling noise, and time are input into the predictor, and the corresponding velocity is obtained through a diffusion model. Finally, velocity labels are constructed using future potential states. Supervised training is performed, and the loss function is...
[0077] in, The velocity predicted by the diffusion model, A velocity label constructed based on future potential states.
[0078] The embodiments disclosed herein constrain the geometric relationship of the prediction results in three-dimensional space through geometric consistency loss and constrain the continuity of the prediction results in the time dimension through temporal smoothness loss. Therefore, the future scene state data output by the world model can be kept consistent in a physical sense, avoiding geometric distortion or temporal jumps in the prediction results, and providing a physically reliable decision basis for the autonomous navigation planning of robots.
[0079] In some embodiments of this disclosure, optionally, a lightweight world model is obtained by training the student network through knowledge distillation, including: inputting a sequence of historical image frames into the teacher network and the student network respectively to obtain future teacher scene state data predicted by the teacher network based on the latent state space, and future student scene state data predicted by the student network based on the latent state space; calculating a first loss between the future teacher scene state data and the future student scene state data; calculating a second loss between the attention features of the student network and the teacher network in the latent state space; calculating a third loss between the future student scene state data and the historical scene state data; and updating the parameters of the student network based on the first loss, the second loss, and the third loss to obtain the lightweight world model.
[0080] In this embodiment of the disclosure, the teacher network is a trained world model whose parameters are frozen during distillation training. The student network is a lightweight network constructed using a recurrent architecture with parameter sharing, whose parameters are updated during distillation training.
[0081] For example, the first loss measures the difference between the final output of the student network and the final output of the teacher network, making the student network's predictions approximate the teacher network's predictions. The second loss measures the difference between the attention features of the student network and the teacher network in the latent state space, making the student network's attention distribution approximate the teacher network's attention distribution, i.e., learning the teacher network's attention patterns towards different regions of the scene. The third loss measures the difference between the student network's output and the true labels (i.e., the training labels of the world model, i.e., historical scene state data), ensuring that the student network's predictions do not deviate from the real world by completely imitating the teacher network.
[0082] The embodiments disclosed herein use a first loss to enable the student network to learn the prediction results of the teacher network, a second loss to enable the student network to learn the attention distribution of the teacher network, and a third loss for supervision with real labels. The three work together to enable the student network to converge quickly and maintain a prediction accuracy close to that of the teacher network when the teacher network parameters are frozen, while avoiding the inheritance of errors from the teacher network itself.
[0083] In some embodiments of this disclosure, optionally, before updating the parameters of the student network based on the first loss, the second loss, and the third loss to obtain the lightweight world model, the method further includes: extracting the predicted state transition features between adjacent time steps in the latent state space of the teacher network and the student network; calculating the fourth loss of the student network and the teacher network on the predicted state transition features; and updating the parameters of the student network based on the first loss, the second loss, the third loss, and the fourth loss.
[0084] For example, the predicted state transition features are used to describe the relationship between states in adjacent time steps in the latent state space, that is, the evolution from the latent state at step n to the latent state at step n+1. The teacher network and the student network each make stepwise predictions based on their respective latent state sequences of the first n time steps to obtain the latent states of the next k time steps, and then calculate the state transition features between adjacent time steps.
[0085] This embodiment of the disclosure extracts the predicted state transition features between adjacent time steps and calculates the fourth loss, enabling the student network to not only learn the final output and attention distribution of the teacher network, but also to learn the temporal reasoning process of how the teacher network's state gradually evolves in the latent state space. Therefore, it can further improve the student network's temporal prediction ability and generalization performance in dynamic scenarios.
[0086] Optionally, in some embodiments of this disclosure, the method further includes: performing model quantization and / or operator fusion processing on the lightweight world model based on the robot's hardware resource information; deploying the processed lightweight world model to the robot's edge inference platform; the edge inference platform includes an edge computing unit and / or a robot carrier computing unit.
[0087] For example, model quantization refers to converting floating-point parameters in the model into low-bit integer representations, such as quantizing 32-bit floating-point parameters into 8-bit integer representations, thereby reducing the model's storage footprint and computational overhead. Operator fusion refers to merging multiple consecutive computational operators in the model into one operator, reducing memory read / write operations and improving inference efficiency.
[0088] For example, hardware resource information may include the available memory size, computing power limit, and power consumption limit of the robot's edge inference platform. Based on the above hardware resource information, appropriate quantization precision and operator fusion strategies can be selected to ensure that the lightweight world model maintains optimal inference performance while meeting the edge hardware constraints.
[0089] The embodiments disclosed herein further compress the computational overhead of the lightweight world model through model quantization and / or operator fusion processing, and deploy it to the robot's edge inference platform. Therefore, the lightweight world model can achieve real-time inference on the robot's edge, meeting the real-time requirements of the robot's online operation in real open scenarios.
[0090] In some embodiments of this disclosure, a lightweight world model construction apparatus is provided. Figure 2 A structural block diagram of a lightweight world model construction device is shown, such as... Figure 2 As shown, the construction device 200 includes a sample construction module 202, a world model construction module 204, and a lightweight model construction module 206.
[0091] The sample construction module 202 is used to construct a target training sample set based on the historical image frame sequence and corresponding historical scene state data collected by the robot in a real open scene; the scene state data includes camera intrinsic and extrinsic parameters, depth map and semantic information. The world model construction module 204 is used to train a world model using the target training sample set with the physical consistency loss function as a training constraint; the world model is configured to encode and map the historical image frame sequence to a latent state space, and decode and predict future scene state data based on the latent state space. The lightweight model construction module 206 is used to construct a lightweight network using a parameter-sharing cyclic architecture, with the world model as the teacher network and the lightweight network as the student network. The student network is trained through knowledge distillation to obtain the lightweight world model.
[0092] This disclosure constructs a target training sample set based on historical image frame sequences and historical scene state data collected by the robot in real open scenes. This allows the model's learning to be directly geared towards the real deployment environment, improving the model's adaptability to open and dynamic scenes. By using the physical consistency loss function as a training constraint, the world model can target scene state data such as predicting future camera intrinsic and extrinsic parameters, depth maps, and semantic information, rather than predicting future video frames or image sequences. This avoids geometric distortion and physical inconsistency issues, making the prediction results physically reliable and providing a credible decision-making basis for the robot's autonomous navigation planning. On this basis, a lightweight network is constructed using a parameter-sharing recurrent architecture. The trained world model is used as a teacher network to guide student network learning through knowledge distillation. This allows the lightweight world model to maintain prediction performance close to that of the teacher network while significantly reducing the number of parameters and inference computation overhead. This effectively solves the problem that large-scale generative neural networks cannot meet the computational power and memory limitations of robot edge devices, achieving a balance between lightweight design and prediction performance. This lays the foundation for the deployment and application of lightweight world models on robot edge devices.
[0093] Figure 2 The construction apparatus of the illustrated embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be repeated here.
[0094] In addition, this disclosure also provides a computer device. Figure 3 Structural block diagrams of computer devices according to some embodiments of the present disclosure are shown, such as Figure 3 As shown, the computer device 300 includes: a memory 302, a processor 304, and a computer program 3022 stored in the memory 302 and executable on the processor 304; wherein, when the computer program 3022 is executed by the processor 304, it implements the steps of the lightweight world model construction method as described above.
[0095] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0096] The aforementioned computer-readable medium may be included in the aforementioned computer device; or it may exist independently and not assembled into the computer device.
[0097] The aforementioned computer-readable medium carries one or more programs that, when executed by the computer device, cause the computer device to: Based on the historical image frame sequences and corresponding historical scene state data collected by the robot in real open scenes, a target training sample set is constructed; the scene state data includes camera intrinsic and extrinsic parameters, depth maps and semantic information. The physical consistency loss function is used as a training constraint, and the world model is trained using the target training sample set. The world model is configured to encode and map historical image frame sequences to a latent state space, and to decode and predict future scene state data based on the latent state space. A lightweight network is constructed using a parameter-sharing recurrent architecture. The world model is used as the teacher network, and the lightweight network is used as the student network. The student network is trained through knowledge distillation to obtain the lightweight world model.
[0098] Optionally, when one or more of the above programs are executed by the computer device, the computer device may also perform other steps described in the above embodiments.
[0099] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0100] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0101] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules are not, in some cases, intended to limit the functionality of the module itself.
[0102] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0103] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0104] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0105] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for constructing a lightweight world model, characterized in that, The method includes: A target training sample set is constructed based on the historical image frame sequence and corresponding historical scene state data collected by the robot in a real open scene; the scene state data includes camera intrinsic and extrinsic parameters, depth map and semantic information. The physical consistency loss function is used as a training constraint, and the world model is trained using the target training sample set. The world model is configured to encode and map the historical image frame sequence to a latent state space, and to decode and predict future scene state data based on the latent state space. A lightweight network is constructed using a parameter-sharing recurrent architecture. The world model is used as the teacher network, and the lightweight network is used as the student network. The student network is trained through knowledge distillation to obtain the lightweight world model.
2. The method according to claim 1, characterized in that, The world model includes a representation layer, a prediction layer, and a decoding layer; The representation layer is used to map the historical image frame sequence to the latent state space to obtain a historical latent state sequence; The prediction layer is used to perform time-series prediction based on the historical potential state sequence to obtain the future potential state sequence; the prediction layer adopts a time-series prediction method that combines autoregressive generation and diffusion generation. The decoding layer is used to decode based on the future potential state sequence to obtain the future scene state data.
3. The method according to claim 1, characterized in that, The target training sample set is constructed based on the historical image frame sequence and corresponding historical scene state data collected by the robot in a real open scene, including: The robot acquires multimodal data collected in the real open scene; the multimodal data is collected by multi-source sensors mounted on the robot, including cameras, lidar, and inertial navigation units; The real image frames of the first n time steps and the real scene state of the last k time steps within each preset time window are extracted from the multimodal data, and used as the historical image frame sequence and the corresponding historical scene state data. The target training sample set is constructed based on the historical image frame sequence and the historical scene state data.
4. The method according to claim 3, characterized in that, The step of extracting the real image frames of the first n time steps and the real scene states of the last k time steps within each preset time window from the multimodal data, as the historical image frame sequence and the corresponding historical scene state data, includes: The real image frames of the first n time steps within each preset time window are extracted from the multimodal data to obtain the historical image frame sequence; The semantic information is generated by performing open-vocabulary semantic annotation on the real image frames of the first n time steps using a visual language basic model. Using a three-dimensional vision model, depth maps corresponding to the last k time steps within each preset time window are extracted from the multimodal data; Simultaneous localization and mapping algorithms are used to extract camera intrinsic and extrinsic parameters corresponding to the last k time steps within each preset time window from the multimodal data; The semantic information, the depth map, and the camera intrinsic and extrinsic parameters are used as the real scene state for the last k time steps within each preset time window to obtain the historical scene state data.
5. The method according to claim 4, characterized in that, The method further includes: Based on the historical image frame sequence and the historical scene state data, a simulation scene model of the real open scene is constructed; Dynamic objects are added to the simulation scene model, and a diffusion generation model is used to render and generate simulation image frames containing the dynamic objects for the first n time steps and simulation scene states for the last k time steps within each preset time window; the simulation scene states are generated by the dynamic objects in various motion states, and the various motion states include at least the sudden change state of the crowd and the appearance state of temporary obstacles. The simulated image frames from the first n time steps are used as newly added historical image frame sequences, and the simulated scene states from the last k time steps are used as newly added historical scene state data, which are then incorporated into the target training sample set.
6. The method according to claim 1, characterized in that, The physical consistency loss function includes at least one of geometric consistency loss and temporal smoothness loss; The geometric consistency loss is used to constrain the consistency of the three-dimensional geometric relationships between time steps in the future scene state data. The temporal smoothness loss is used to constrain the temporal continuity between adjacent time steps in the future scene state data.
7. The method according to claim 1, characterized in that, The process of training the student network through knowledge distillation to obtain a lightweight world model includes: The historical image frame sequence is input into the teacher network and the student network respectively to obtain the future teacher scene state data predicted by the teacher network based on the latent state space, and the future student scene state data predicted by the student network based on the latent state space. Calculate the first loss between the future teacher scenario state data and the future student scenario state data; Calculate a second loss between the attention features of the student network and the teacher network in the latent state space; Calculate the third loss between the future student scenario state data and the historical scenario state data; The parameters of the student network are updated based on the first loss, the second loss, and the third loss to obtain the lightweight world model.
8. The method according to claim 7, characterized in that, Before updating the parameters of the student network based on the first loss, the second loss, and the third loss to obtain the lightweight world model, the method further includes: Extract the predicted state transition features between adjacent time steps of the teacher network and the student network in the latent state space; Calculate the fourth loss of the student network and the teacher network on the predicted state transition features; The step of updating the parameters of the student network based on the first loss, the second loss, and the third loss includes: The parameters of the student network are updated based on the first loss, the second loss, the third loss, and the fourth loss.
9. The method according to any one of claims 1-8, characterized in that, The method further includes: Based on the robot's hardware resource information, the lightweight world model is subjected to model quantization processing and / or operator fusion processing. The processed lightweight world model is deployed to the robot's edge inference platform; the edge inference platform includes an edge computing unit and / or a robot carrier computing unit.
10. A lightweight world model construction device, characterized in that, The device includes: The sample construction module is used to construct a target training sample set based on the historical image frame sequence and corresponding historical scene state data collected by the robot in a real open scene; the scene state data includes camera intrinsic and extrinsic parameters, depth map and semantic information. The world model construction module is used to train a world model using the physical consistency loss function as a training constraint and the target training sample set. The world model is configured to encode and map the historical image frame sequence to a latent state space, and decode and predict future scene state data based on the latent state space. The lightweight model construction module is used to construct a lightweight network using a parameter-sharing cyclic architecture. The world model is used as the teacher network, and the lightweight network is used as the student network. The student network is trained through knowledge distillation to obtain the lightweight world model.
11. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 9.
