Large robot model and training method and device thereof

By using the Transformer unit and the position encoding unit in the language model, combined with the multi-head self-attention mechanism and the feed-forward neural network, the problems of limited vocabulary and insufficient semantic understanding of traditional language models are solved, and a deep understanding of natural language is achieved. and efficient processing of complex language tasks, improving robot interaction capabilities and intelligent applications.

CN118568504APending Publication Date: 2024-08-30SHANDONG NEW GENERATION INFORMATION IND TECH RES INST CO LTD

Patent Information

Application Number
CN202410823377.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional language models have problems with limited vocabulary and insufficient semantic understanding in the field of natural language processing, making it difficult to meet the needs of complex language tasks.

Method used

Using the Transformer unit and the position coding unit, through 48 encoder layers and 48 decoder layers, combined with the multi-head self-attention mechanism and the feed-forward neural network, it captures the dependencies and position information in the input sequence to achieve deep understanding of natural language. Hierarchical understanding and accelerated training process through distributed computing and optimization strategies.

Benefits of technology

It has significantly improved the performance and application value of natural language processing tasks, improved the ability of robots to interact with humans, promoted the application and development of intelligent solutions in various industries, and achieved efficient understanding and generation of complex language tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568504A
    Figure CN118568504A
Patent Text Reader

Abstract

The invention discloses a robot large model and a training method and device thereof, and relates to the technical field of robots, the robot large model adopts a deep learning technology based on a Transform architecture and comprises 48 encoder layers and 48 decoder layers, each encoder layer is provided with 32 self-attention heads and a feedforward neural network, and the model parameter scale reaches 1.5 billion. The model realizes efficient processing of complex language tasks through a multi-layer neural network structure and a self-attention mechanism. Training data is wide in source and comprises webpage documents, news articles, books and the like, and data quality is ensured through preprocessing steps of duplicate removal, noise filtering, language detection, data enhancement and the like. Model training is carried out on a high-performance distributed computing platform, an Adam optimizer and a learning rate scheduling strategy are adopted, and overfitting is prevented through Dropout and weight attenuation technologies. The model is widely applied to the field of robots, can enable a machine room inspection robot, a welcome robot and a building robot, and achieves deep understanding of natural languages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of robotics technology, and in particular to a large robot model and a training method and device thereof. Background Art

[0002] At present, with the rapid development of artificial intelligence technology, the application of language models in the field of natural language processing has made significant progress. However, traditional language models have problems such as limited vocabulary and insufficient semantic understanding ability, which makes it difficult to meet the needs of complex language tasks. Therefore, providing a large robot model to achieve a deep understanding of natural language is an urgent problem to be solved. Summary of the invention

[0003] The present disclosure provides a robot big model and its training method and device, the main purpose of which is to provide a robot big model to achieve a deep understanding of natural language.

[0004] According to a first aspect of the present disclosure, there is provided a robot model, comprising: A Transformer unit and a position encoding unit, wherein the Transformer unit is composed of an encoder and a decoder; The position encoding unit is used to add position encoding to the input sequence input to the Transformer unit, and generate a unique vector representation for each position encoding through sine and cosine functions, so that the robot macro model can utilize the position encoding in the input sequence; The encoder is stacked by 48 encoder layers of the same structure, each of which includes a multi-head self-attention mechanism component, a first feedforward neural network, and a residual connection and normalization component. The multi-head self-attention mechanism component is used to simultaneously focus on different position codes in the input sequence based on 32 self-attention heads, so as to capture various dependencies in the input sequence. Each 128-dimensional self-attention head in the 32 self-attention heads is used to calculate the autocorrelation of the input sequence based on dot product attention and generate corresponding attention weights. The dimension of the multi-head self-attention mechanism component is 4096. The first feedforward neural network composed of two linear transformations and an activation function is used to perform nonlinear transformation on the output result of the multi-head self-attention mechanism component. The input dimension and output dimension of the first feedforward neural network are both 4096. The hidden layer dimension of the first feedforward neural network is 8192. The residual connection and normalization components are arranged after each sublayer, and the sublayer includes the multi-head self-attention mechanism component and the first feedforward neural network. The decoder is composed of 48 decoder layers with the same structure stacked together, each of which includes a self-attention mechanism component, an encoder-decoder attention mechanism component and a second feedforward neural network. The self-attention mechanism component is used to pay attention to the target sequence currently generated by the decoder. The encoder-decoder attention mechanism component is used to pay attention to different positions in the output sequence of the encoder during the process of the decoder generating the target sequence, so as to utilize the information of the input sequence when generating the target sequence. The second feedforward neural network is used to perform nonlinear transformation on the representation in the decoder. The input dimension and output dimension of the second feedforward neural network are both 4096, and the hidden layer dimension of the second feedforward neural network is 8192.

[0005] According to a second aspect of the present disclosure, a robot large model training method is provided, wherein the method is applied to the robot large model described in the first aspect and comprises: Dividing the target task of training the robot large model into a plurality of subtasks; The multiple subtasks are distributed to different nodes for parallel execution to complete the target task and obtain a large robot model that has completed training.

[0006] Optionally, the method comprises: Calculate the first-order moment estimate and the second-order moment estimate of the robot large model based on the Adam optimizer; The learning rate of the robot large model is dynamically adjusted based on the first-order moment estimation and the second-order moment estimation, so that the robot large model converges faster during the training process.

[0007] Optionally, the method comprises: Increasing the learning rate of the robot large model based on a learning rate warm-up strategy; The learning rate of the robot macro model is reduced based on a cosine annealing strategy.

[0008] Optionally, the method comprises: Randomly discarding some neurons during the training process of the robot model to increase the generalization ability of the robot model; A weight decay term is added to the loss function of the robot model to prevent the robot model from overfitting.

[0009] Optionally, the method comprises: Based on visualization tools, real-time monitoring of the loss function changes and model accuracy of the robot model during training; A training strategy for the robot model based on the change of the loss function of the robot model and the model accuracy adjustment; Evaluate the performance of the trained robot model on multiple validation sets to obtain performance parameters corresponding to the multiple validation sets respectively; If the performance parameters corresponding to the multiple verification sets are all greater than or equal to the preset performance parameter threshold, the trained robot model is determined to be the trained robot model.

[0010] According to a third aspect of the present disclosure, a robot large model training device is provided, comprising: A division unit, used for dividing the target task of training the robot large model into a plurality of subtasks; The execution unit is used to distribute the multiple subtasks to different nodes for parallel execution to complete the target task and obtain a large robot model that has completed training.

[0011] Optionally, the device is also used for: Calculate the first-order moment estimate and the second-order moment estimate of the robot large model based on the Adam optimizer; The learning rate of the robot large model is dynamically adjusted based on the first-order moment estimation and the second-order moment estimation, so that the robot large model converges faster during the training process.

[0012] Optionally, the device is also used for: Increasing the learning rate of the robot large model based on a learning rate warm-up strategy; The learning rate of the robot macro model is reduced based on a cosine annealing strategy.

[0013] Optionally, the device is also used for: Randomly discarding some neurons during the training process of the robot model to increase the generalization ability of the robot model; A weight decay term is added to the loss function of the robot model to prevent the robot model from overfitting.

[0014] Optionally, the device is also used for: Based on visualization tools, real-time monitoring of the loss function changes and model accuracy of the robot model during training; A training strategy for the robot model based on the change of the loss function of the robot model and the model accuracy adjustment; Evaluate the performance of the trained robot model on multiple validation sets to obtain performance parameters corresponding to the multiple validation sets respectively; When the performance parameters corresponding to the multiple verification sets are all greater than or equal to the preset performance parameter threshold, the trained robot big model is determined to be the trained robot big model.

[0015] According to a fourth aspect of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the second aspect.

[0016] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the second aspect.

[0017] According to a sixth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method described in the second aspect is implemented.

[0018] The robot large model and its training method and device provided by the present disclosure include: a Transformer unit and a position encoding unit, wherein the Transformer unit is composed of an encoder and a decoder; the position encoding unit is used to add position encoding to the input sequence input to the Transformer unit, and generate a unique vector representation for each position encoding through sine and cosine functions, so that the robot large model can use the position encoding in the input sequence; the encoder is stacked by 48 encoder layers of the same structure, each of which includes a multi-head self-attention mechanism component, a first feedforward neural network, and a residual connection and normalization component. The multi-head self-attention mechanism component is used to simultaneously focus on different position encodings in the input sequence based on 32 self-attention heads, so as to capture various dependencies in the input sequence. Each 128-dimensional self-attention head in the 32 self-attention heads is used to calculate the autocorrelation of the input sequence based on dot product attention and generate corresponding attention weights. The dimension of the multi-head self-attention mechanism component is 4096, which is composed of two linear transformations and an activation function. The first feedforward neural network is used to perform nonlinear transformation on the output result of the multi-head self-attention mechanism component, the input dimension and output dimension of the first feedforward neural network are both 4096, the hidden layer dimension of the first feedforward neural network is 8192, the residual connection and normalization components are arranged after each sublayer, and the sublayer includes the multi-head self-attention mechanism component and the first feedforward neural network; the decoder is stacked by 48 decoder layers of the same structure, each of the decoder layers includes a self-attention mechanism component, an encoder-decoder attention mechanism component and a second feedforward neural network, the self-attention mechanism component is used to pay attention to the target sequence currently generated by the decoder, and the encoder-decoder attention mechanism component is used to pay attention to different positions in the output sequence of the encoder during the process of the decoder generating the target sequence, so as to utilize the information of the input sequence when generating the target sequence, and the second feedforward neural network is used to perform nonlinear transformation on the representation in the decoder, the input dimension and output dimension of the second feedforward neural network are both 4096, and the hidden layer dimension of the second feedforward neural network is 8192. Compared with related technologies, it achieves a deeper understanding of natural language based on 48 encoder layers and 48 decoder layers, as well as 32 self-attention heads and feedforward neural networks in each encoder layer. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings: Figure 1A schematic diagram of the structure of a large robot model provided by an embodiment of the present disclosure; Figure 2 A schematic diagram of a robot large model training method provided by an embodiment of the present disclosure; Figure 3 A schematic diagram of the structure of a large robot model training device provided by an embodiment of the present disclosure; Figure 4 A schematic block diagram of an exemplary electronic device 300 provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0021] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.

[0022] In addition, the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein.

[0023] The following describes the robot model and its training method and device according to the embodiments of the present disclosure with reference to the accompanying drawings.

[0024] In order to at least provide a robot macro model to achieve a deep understanding of natural language, this embodiment provides a robot macro model.

[0025] Figure 1 This is a schematic diagram of the structure of a robot model provided by an embodiment of the present disclosure. Figure 1 As shown, the robot model includes: A Transformer unit and a position encoding unit, wherein the Transformer unit is composed of an encoder and a decoder; The position encoding unit is used to add position encoding to the input sequence input to the Transformer unit, and generate a unique vector representation for each position encoding through sine and cosine functions, so that the robot macro model can utilize the position encoding in the input sequence; The encoder is stacked by 48 encoder layers of the same structure, each of which includes a multi-head self-attention mechanism component, a first feedforward neural network, and a residual connection and normalization component. The multi-head self-attention mechanism component is used to simultaneously focus on different position codes in the input sequence based on 32 self-attention heads, so as to capture various dependencies in the input sequence. Each 128-dimensional self-attention head in the 32 self-attention heads is used to calculate the autocorrelation of the input sequence based on dot product attention and generate corresponding attention weights. The dimension of the multi-head self-attention mechanism component is 4096. The first feedforward neural network composed of two linear transformations and an activation function is used to perform nonlinear transformation on the output result of the multi-head self-attention mechanism component. The input dimension and output dimension of the first feedforward neural network are both 4096. The hidden layer dimension of the first feedforward neural network is 8192. The residual connection and normalization components are arranged after each sublayer, and the sublayer includes the multi-head self-attention mechanism component and the first feedforward neural network. The decoder is composed of 48 decoder layers with the same structure stacked together, each of which includes a self-attention mechanism component, an encoder-decoder attention mechanism component and a second feedforward neural network. The self-attention mechanism component is used to pay attention to the target sequence currently generated by the decoder. The encoder-decoder attention mechanism component is used to pay attention to different positions in the output sequence of the encoder during the process of the decoder generating the target sequence, so as to utilize the information of the input sequence when generating the target sequence. The second feedforward neural network is used to perform nonlinear transformation on the representation in the decoder. The input dimension and output dimension of the second feedforward neural network are both 4096, and the hidden layer dimension of the second feedforward neural network is 8192.

[0026] In order to facilitate the understanding of the above embodiment, this embodiment is illustrative, for example: The robot model adopts a deep learning architecture based on Transformer. It achieves a scale of 15 billion parameters, and the overall architecture design of the model is as follows: Encoder Layers: 48 encoder layers. Decoder Layers: 48 decoder layers. Self-Attention Heads: Each encoder and decoder layer contains 32 self-attention heads. Feed-Forward Networks: Each feed-forward network has a hidden layer dimension of 8192. The overall parameter configuration of the model is: each self-attention head has a dimension of 128, so the total attention dimension of each layer is 32 x 128 = 4096. The input and output dimensions of the feed-forward network are 4096, and the hidden layer dimension is 8192.

[0027] The encoder is specifically composed of 48 encoder layers with the same structure, each of which contains the following components: Multi-Head Self-Attention Mechanism: Each encoder layer contains 32 self-attention heads. The multi-head self-attention mechanism allows the model to focus on different positions in different attention heads at the same time, thereby capturing various dependencies in the input sequence. Each attention head calculates the autocorrelation of the input sequence through scaled dot-product attention and generates corresponding attention weights. Feed-Forward Neural Network (FFN): The feed-forward network consists of two linear transformations and an activation function (usually ReLU). The input dimension and output dimension are both 4096, and the hidden layer dimension is 8192. Residual Connections and Layer Normalization: Residual connections are added after each sublayer (self-attention and feed-forward network), and layer normalization is performed to stabilize the training process and accelerate model convergence.

[0028] The decoder is specifically composed of 48 decoder layers with the same structure, each of which contains the following components: Self-Attention Mechanism: Similar to the encoder, the self-attention mechanism in the decoder allows the model to focus on the sequence currently generated by the decoder. Encoder-Decoder Attention Mechanism: This mechanism allows the decoder to focus on different positions of the encoder output sequence during the sequence generation process, thereby utilizing the information of the input sequence during generation. Feed-Forward Neural Network (FFN): Similar to the feed-forward network in the encoder, it is responsible for nonlinear transformation of the representation in the decoder. The input and output dimensions are both 4096, and the hidden layer dimension is 8192. Residual Connections and Layer Normalization: Similar to the encoder, residual connections are added after each sublayer, and layer normalization is performed.

[0029] Since the Transformer model has no built-in sequence order information, positional encoding is added to the input sequence based on the positional encoding unit, and a unique vector representation is generated for each position through sine and cosine functions, so that the robot large model can utilize the position information of the input sequence.

[0030] The robot large model provided by the present disclosure includes: a Transformer unit and a position encoding unit, wherein the Transformer unit is composed of an encoder and a decoder; the position encoding unit is used to add position encoding to the input sequence input into the Transformer unit, and generate a unique vector representation for each position encoding through sine and cosine functions, so that the robot large model can use the position encoding in the input sequence; the encoder is stacked by 48 encoder layers of the same structure, each of which includes a multi-head self-attention mechanism component, a first feedforward neural network, and a residual connection and normalization component. The multi-head self-attention mechanism component is used to simultaneously focus on different position encodings in the input sequence based on 32 self-attention heads, so as to capture various dependencies in the input sequence. Each 128-dimensional self-attention head in the 32 self-attention heads is used to calculate the autocorrelation of the input sequence based on dot product attention and generate corresponding attention weights. The dimension of the multi-head self-attention mechanism component is 4096, and the first one consisting of two linear transformations and an activation function A feedforward neural network is used to perform nonlinear transformation on the output result of the multi-head self-attention mechanism component, the input dimension and output dimension of the first feedforward neural network are both 4096, the hidden layer dimension of the first feedforward neural network is 8192, the residual connection and normalization components are arranged after each sublayer, and the sublayer includes the multi-head self-attention mechanism component and the first feedforward neural network; the decoder is stacked by 48 decoder layers of the same structure, each of the decoder layers includes a self-attention mechanism component, an encoder-decoder attention mechanism component and a second feedforward neural network, the self-attention mechanism component is used to pay attention to the target sequence currently generated by the decoder, the encoder-decoder attention mechanism component is used to pay attention to different positions in the output sequence of the encoder during the process of the decoder generating the target sequence, so as to utilize the information of the input sequence when generating the target sequence, the second feedforward neural network is used to perform nonlinear transformation on the representation in the decoder, the input dimension and output dimension of the second feedforward neural network are both 4096, and the hidden layer dimension of the second feedforward neural network is 8192. Compared with related technologies, it achieves a deeper understanding of natural language based on 48 encoder layers and 48 decoder layers, as well as 32 self-attention heads and feedforward neural networks in each encoder layer.

[0031] Figure 2 A schematic diagram of a robot large model training method provided in an embodiment of the present disclosure, Figure 2 The steps shown are as follows: Step 101, dividing the target task of training the robot large model into multiple subtasks; Step 102, distribute the multiple subtasks to different nodes for parallel execution to complete the target task and obtain a large robot model that has completed training.

[0032] To facilitate understanding of step 101 and step 102, this embodiment provides an exemplary description, for example: in order to process large-scale training data and complex model structures, a distributed computing platform is used to train the robot model. The distributed computing platform has the following characteristics: High-performance computing resources: GPU clusters and TPU clusters are used to improve computing efficiency. Each node is equipped with multiple high-performance GPUs or TPUs, and parallel computing is achieved through high-speed interconnection. Data parallelism and model parallelism: According to the model parameters and data scale of the robot model, the training task is divided into multiple subtasks, which are executed in parallel on different nodes. Data parallelism is to divide large batches of data into small batches and distribute them to different nodes for processing, and model parallelism is to divide the robot model into different nodes for training.

[0033] As a refinement of the embodiments of the present disclosure, the method may also adopt but is not limited to the following implementation methods, for example: calculating the first-order moment estimate and the second-order moment estimate of the robot large model based on the Adam optimizer; dynamically adjusting the learning rate of the robot large model based on the first-order moment estimate and the second-order moment estimate to accelerate the convergence of the robot large model during the training process.

[0034] As a refinement of the above embodiment, the method can also adopt but is not limited to the following implementation methods, for example: increasing the learning rate of the robot large model based on a learning rate warm-up strategy; reducing the learning rate of the robot large model based on a cosine annealing strategy.

[0035] In some embodiments, the training of the robot large model adopts an adaptive moment estimation optimizer, also known as the Adam optimizer, and is combined with a learning rate scheduling strategy. The specific optimization process is as follows: The Adam optimizer combines the advantages of momentum and RMSProp, and dynamically adjusts the learning rate by calculating the first-order and second-order moment estimates of the gradient to improve the convergence speed and stability. Use learning rate warm-up and cosine annealing strategies. In the initial stage, the learning rate warm-up strategy is adopted to gradually increase the learning rate to prevent the learning rate from being too large at the beginning, resulting in unstable training. Subsequently, the cosine annealing strategy is adopted to gradually reduce the learning rate to ensure fine adjustment of the model in the later stage of training.

[0036] As a refinement of the above embodiment, the method can also adopt but is not limited to the following implementation methods, for example: randomly discarding some neurons during the training process of the robot large model to increase the generalization ability of the robot large model; adding a weight attenuation term in the loss function of the robot large model to prevent the robot large model from overfitting.

[0037] In some embodiments, in order to prevent the model from overfitting, a variety of regularization techniques are used: randomly discarding some neurons during the training process to prevent the model from over-relying on specific neurons and improve the generalization ability of the model. Adding weight decay terms to the loss function to limit the excessive growth of model parameters and prevent overfitting.

[0038] As a refinement of the above embodiment, the method can also be implemented in the following ways, but not limited to, for example: based on a visualization tool, real-time monitoring of the loss function changes and model accuracy of the robot model during the training process; adjusting the training strategy of the robot model based on the loss function changes and model accuracy of the robot model; evaluating the performance of the trained robot model on multiple validation sets to obtain the performance parameters corresponding to the multiple validation sets; if the performance parameters corresponding to the multiple validation sets are greater than or equal to the preset performance parameter threshold, then the trained robot model is determined to be the trained robot model. The performance parameters include but are not limited to accuracy, and the preset performance threshold is but not limited to a preset accuracy threshold. If the accuracy corresponding to the multiple validation sets is greater than or equal to the preset accuracy threshold, then the trained robot model is determined to be the trained robot model.

[0039] In some embodiments, the loss function changes, model accuracy and other key indicators during the training of the robot model are monitored in real time through visualization tools, and the training strategy is adjusted in a timely manner. The model performance is evaluated on multiple validation sets to ensure the generalization ability of the robot model on different data.

[0040] In some embodiments, before training the robot macro model, the training data preparation process includes: Data collection: Collect large-scale text data from a variety of sources, including but not limited to web documents, news articles, books, Wikipedia entries, social media posts, forum discussions, and question-and-answer websites. Ensure data diversity, covering texts from different robotics fields, different languages, and different styles to enhance the generalization ability of the model.

[0041] Clean the collected data: Remove duplicate text entries to ensure the uniqueness of the data set. Use regular expressions and text analysis tools to filter out noise data, including advertisements, script codes, and malformed text. Use language detection tools to identify and remove text in non-target languages ​​to ensure the purity of the data set.

[0042] Preprocess the cleaned data: Segment the text into words or subword units that the model can process. Use word segmentation algorithms such as BPE (Byte Pair Encoding) or SentencePiece. Add necessary annotation information to the training data, such as part-of-speech tagging, entity recognition tagging, etc., to enhance the semantic understanding ability of the model. Generate more diverse training samples through data enhancement techniques (such as synonym replacement and word order adjustment) to improve the robustness of the model.

[0043] Label the preprocessed data: Since the model uses self-supervised learning, some segments of the input text will be randomly masked when generating training samples, and the model needs to predict these masked segments. For the dialogue generation task, prepare paired dialogue data to ensure context relevance and dialogue fluency.

[0044] In some embodiments, the application and current promotion of the robot model in the field of robotics are mainly concentrated in the following aspects: 1. Application in computer room inspection robots: The robot model can empower the inspection robot in the computer room and realize intelligent inspection and fault diagnosis through natural language processing technology. The specific applications are as follows: Natural language command understanding: The robot can understand and execute natural language commands from operators, such as "check server temperature" or "report current network status."

[0045] Inspection report generation: Based on the inspection data, the robot can automatically generate a detailed inspection report and describe the problems found and the suggested solutions in natural language.

[0046] Real-time fault detection and handling: Through real-time analysis of device logs and sensor data, the robot can detect abnormal situations and communicate with operation and maintenance personnel through natural language to assist in troubleshooting.

[0047] 2. Application in welcoming robots: The reception robot has a wide range of application scenarios in the service industry, and the robot large model can improve its interaction ability and service quality. The specific applications are as follows: Multi-language support: The model has multi-language processing capabilities and can have natural and fluent conversations with customers in different languages.

[0048] Personalized recommendations: Based on the conversation context and user preferences, the robot can provide personalized services and recommendations, such as restaurant recommendations, event introductions, etc.

[0049] Emotion recognition and response: Through natural language processing technology, robots can recognize the user's emotional state and make appropriate responses, such as providing comfort or humorous responses, to improve the user experience.

[0050] 3. Application in construction robots: In the construction field, large robot models can assist construction robots in completing complex tasks and improve construction efficiency and safety. Specific applications are as follows: Construction instruction parsing: The robot is able to understand and execute construction instructions, such as “lay floor tiles” or “install doors and windows,” and perform operations based on natural language descriptions.

[0051] Real-time collaboration and communication: During the construction process, robots are able to communicate with workers through natural language to coordinate work progress and task allocation to ensure smooth construction.

[0052] Construction report generation: Based on construction data, the robot can generate detailed construction progress reports and quality inspection reports, and describe the construction status and problems found in natural language.

[0053] In summary, the embodiments of the present disclosure can achieve the following effects: 1. Based on 48 encoder layers and 48 decoder layers, each encoder layer has 32 self-attention heads and feedforward neural networks to achieve a deep understanding of natural language.

[0054] 2. This disclosure provides an efficient, flexible and powerful robot model and its training method, which significantly improves the performance and application value of natural language processing tasks. The wide application of the model in the field of robotics not only improves the interaction ability between robots and humans, but also promotes the application and development of intelligent solutions in various industries.

[0055] 3. The robot model disclosed in this patent adopts an advanced deep learning architecture, including a multi-layer neural network structure and a self-attention mechanism, which can achieve efficient understanding and generation of natural language. Compared with traditional language models, this model has larger model parameters, richer language representation capabilities and stronger generalization capabilities, and can adapt to various complex language tasks and scenarios. At the same time, this patent also provides an efficient training method, which can achieve rapid training and optimization of the robot model through large-scale data sets and distributed computing platforms, thereby improving the performance and efficiency of the model.

[0056] Corresponding to the above-mentioned robot large model training method, the present invention also proposes a robot large model training device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.

[0057] Figure 3 A schematic diagram of the structure of a robot large model training device provided by an embodiment of the present disclosure, such as Figure 3 As shown, including: A division unit 21, used for dividing the target task of training the robot large model into a plurality of subtasks; The execution unit 22 is used to distribute the multiple subtasks to different nodes for parallel execution to complete the target task and obtain a large robot model that has completed training.

[0058] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 3 As shown, the device is also used for: Calculate the first-order moment estimate and the second-order moment estimate of the robot large model based on the Adam optimizer; The learning rate of the robot large model is dynamically adjusted based on the first-order moment estimation and the second-order moment estimation, so that the robot large model converges faster during the training process.

[0059] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 3 As shown, the device is also used for: Increasing the learning rate of the robot large model based on a learning rate warm-up strategy; The learning rate of the robot macro model is reduced based on a cosine annealing strategy.

[0060] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 3 As shown, the device is also used for: Randomly discarding some neurons during the training process of the robot model to increase the generalization ability of the robot model; A weight decay term is added to the loss function of the robot model to prevent the robot model from overfitting.

[0061] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 3 As shown, the device is also used for: Based on visualization tools, real-time monitoring of the loss function changes and model accuracy of the robot model during training; A training strategy for the robot model based on the change of the loss function of the robot model and the model accuracy adjustment; Evaluate the performance of the trained robot model on multiple validation sets to obtain performance parameters corresponding to the multiple validation sets respectively; When the performance parameters corresponding to the multiple verification sets are all greater than or equal to the preset performance parameter threshold, the trained robot big model is determined to be the trained robot big model.

[0062] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.

[0063] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0064] Figure 4 A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0065] like Figure 4 As shown, the device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 302 or a computer program loaded from a storage unit 308 to a RAM (Random Access Memory) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An I / O (Input / Output) interface 305 is also connected to the bus 304.

[0066] A number of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0067] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 301 performs the various methods and processes described above, such as a method for data encryption. For example, in some embodiments, the method for data encryption may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to execute the aforementioned data encryption method in any other appropriate manner (for example, by means of firmware).

[0068] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0069] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0070] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the foregoing.

[0071] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0072] The systems and techniques described herein may be implemented in a computing system that includes a backend component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a frontend component (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0073] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0074] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0075] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0076] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0077] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A robot model, characterized in that: include: A Transformer unit and a position encoding unit, wherein the Transformer unit is composed of an encoder and a decoder; The position encoding unit is used to add position encoding to the input sequence input to the Transformer unit, and generate a unique vector representation for each position encoding through sine and cosine functions, so that the robot macro model can utilize the position encoding in the input sequence; The encoder is stacked by 48 encoder layers of the same structure, each of which includes a multi-head self-attention mechanism component, a first feedforward neural network, and a residual connection and normalization component. The multi-head self-attention mechanism component is used to simultaneously focus on different position codes in the input sequence based on 32 self-attention heads, so as to capture various dependencies in the input sequence. Each 128-dimensional self-attention head in the 32 self-attention heads is used to calculate the autocorrelation of the input sequence based on dot product attention and generate corresponding attention weights. The dimension of the multi-head self-attention mechanism component is 4096. The first feedforward neural network composed of two linear transformations and an activation function is used to perform nonlinear transformation on the output result of the multi-head self-attention mechanism component. The input dimension and output dimension of the first feedforward neural network are both 4096. The hidden layer dimension of the first feedforward neural network is 8192. The residual connection and normalization components are arranged after each sublayer, and the sublayer includes the multi-head self-attention mechanism component and the first feedforward neural network. The decoder is composed of 48 decoder layers with the same structure stacked together, each of which includes a self-attention mechanism component, an encoder-decoder attention mechanism component and a second feedforward neural network. The self-attention mechanism component is used to pay attention to the target sequence currently generated by the decoder. The encoder-decoder attention mechanism component is used to pay attention to different positions in the output sequence of the encoder during the process of the decoder generating the target sequence, so as to utilize the information of the input sequence when generating the target sequence. The second feedforward neural network is used to perform nonlinear transformation on the representation in the decoder. The input dimension and output dimension of the second feedforward neural network are both 4096, and the hidden layer dimension of the second feedforward neural network is 8192.

2. A robot large model training method, characterized in that: The method is applied to the robot model of claim 1 and comprises: Dividing the target task of training the robot large model into a plurality of subtasks; The multiple subtasks are distributed to different nodes for parallel execution to complete the target task and obtain a large robot model that has completed training.

3. The method according to claim 2, characterized in that The method comprises: Calculate the first-order moment estimate and the second-order moment estimate of the robot large model based on the Adam optimizer; The learning rate of the robot large model is dynamically adjusted based on the first-order moment estimation and the second-order moment estimation, so that the robot large model converges faster during the training process.

4. The method according to claim 3, characterized in that The method comprises: Increasing the learning rate of the robot large model based on a learning rate warm-up strategy; The learning rate of the robot macro model is reduced based on a cosine annealing strategy.

5. The method according to claim 4, characterized in that The method comprises: Randomly discarding some neurons during the training process of the robot model to increase the generalization ability of the robot model; A weight decay term is added to the loss function of the robot model to prevent the robot model from overfitting.

6. The method according to claim 5, characterized in that The method comprises: Based on visualization tools, real-time monitoring of the loss function changes and model accuracy of the robot model during training; A training strategy for the robot model based on the change of the loss function of the robot model and the model accuracy adjustment; Evaluate the performance of the trained robot model on multiple validation sets to obtain performance parameters corresponding to the multiple validation sets respectively; If the performance parameters corresponding to the multiple verification sets are all greater than or equal to the preset performance parameter threshold, the trained robot model is determined to be the trained robot model.

7. A robot large model training device, characterized in that: include: A division unit, used for dividing the target task of training the robot large model into a plurality of subtasks; The execution unit is used to distribute the multiple subtasks to different nodes for parallel execution to complete the target task and obtain a large robot model that has completed training.

8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 2 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 2-6.

10. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 2 to 6.

Citation Information

Patent Citations

  • An English word and case joint prediction method based on neural machine translation

    CN109190131A

  • Distributed training method and device of deep learning model, equipment and storage medium

    CN113961351A

  • Distributed computing method, system and equipment and storage medium

    CN114756383A

  • Pure electric ship power battery SOC estimation method based on Extrol-Transform deep learning neural network

    CN118169572A

  • Optimizer learning method and apparatus, electronic device and readable storage medium

    EP3933712A1

Cited By

  • Decoding acceleration method, device and equipment, computer readable storage medium and product

    CN119761307A

  • Decoding acceleration method, device, equipment, computer-readable storage medium and product

    CN119761307B

  • Method and device for applying large model to intelligent customer service of electricity market

    CN119938826A

  • Large language model training method and device based on trainable residual connection and dual-scale convolution Transformer, computer equipment and readable storage medium

    CN119940416A

  • Financial business-based model data processing method and apparatus, device, and medium

    WO2026138270A1