Device-cloud collaborative data mining method, device, and system, and computer cluster

Through the end-cloud collaborative data mining method, the encoding technology and large model compression of multi-modal large models of graphics and text are used to solve the resource and cost problems of data mining of autonomous driving algorithms, and achieve efficient and accurate data screening and algorithm optimization. Good scalability.

WO2024199068A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082939
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-21
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing data mining methods for autonomous driving algorithms require a large amount of manpower, material and financial resources, and the designed rules and task models are not scalable, making it difficult to efficiently screen out effective data for mass-produced vehicles, affecting the continuous optimization of the algorithm.

Method used

The device-cloud collaborative data mining method is used to encode text features and image features using a large multi-modal model of graphics and text. Through the collaborative work of the cloud and the vehicle, efficient screening and data mining of target images are achieved, using large model compression and fine-tuning parameter technology. , reduce resource requirements and improve data mining accuracy and scalability.

Benefits of technology

It achieves efficient screening of target data under resource constraints, reduces human and material costs, improves the iteration efficiency and accuracy of autonomous driving algorithms, and has good scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082939_03102024_PF_FP_ABST
    Figure CN2024082939_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A device-cloud collaborative data mining method, comprising: a cloud determining target text and a task configuration file according to a service requirement; encoding the target text by means of a text encoder to obtain a text feature; placing the text feature in the task configuration file and issuing the task configuration file to a vehicle end; the vehicle end encoding image data by means of a first image encoder to obtain an image feature; calculating a value of the similarity between the text feature and the image feature; determining a target image according to the value of the similarity and the task configuration file; and uploading the target image to the cloud, wherein the first image encoder is obtained by performing compressing and tuning in a second image encoder, and the text encoder and the second image encoder are two modules of an image-text multi-modal large model. The present application is applied to an automatic driving shadow mode, data mining of any target text of interest can be completed by utilizing a large model, and a detection rule does not need to be designed and developed for each type of targets of interest. Image encoders of a vehicle end can be continuously updated and optimized, and the model iteration efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

End-cloud collaborative data mining method, device, system and computer cluster

[0001] This application claims priority to Chinese patent application number 202310379187.X, filed on March 31, 2023, entitled “End-cloud collaborative data mining method, device, system and computer cluster,” the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of intelligent driving, and in particular to a method, device, system and computer cluster for end-cloud collaborative data mining. Background Art

[0003] With the advancement of autonomous driving technology, the gap between sensing and monitoring solutions is narrowing. The mass production of vehicles equipped with autonomous driving algorithms is accelerating. Efficiently filtering the required, valid data from the vast amount of data from mass-produced vehicles to drive the automatic iteration of autonomous driving algorithms is key to the continuous optimization of autonomous driving algorithms. The current approach to vehicle-side data mining is to design and develop task models or rules based on autonomous driving requirements, publish the task models, and then distribute them to the vehicle to perform data mining for the corresponding tasks. Task models developed using this approach require the collection of large amounts of training data and targeted training and tuning. Before testing the task models, the training data is typically annotated automatically or manually, requiring significant human, material, and financial resources. Furthermore, the rules and task models designed using this approach are tailored to specific needs and are not scalable.

[0004] Summary of the Invention

[0005] In order to solve the above problems, embodiments of the present application provide an end-cloud collaborative data mining method, system, and computer cluster.

[0006] In the first aspect, an embodiment of the present application provides an end-cloud collaborative data mining method, which includes: the cloud determines the target text and task profile according to business needs; encodes the target text through a text encoder to obtain text features; puts the text features in the task profile and sends them to the vehicle end; the vehicle end encodes the image data through a first image encoder to obtain image features; calculates the similarity value between the text features and the image features; determines the target image based on the similarity value and the task profile; uploads the target image to the cloud; wherein, the first image encoder is obtained by compression and tuning of the second image encoder; the text encoder and the second image encoder are two modules of the large multimodal model of text and image.

[0007] Therefore, by utilizing the strong generalization performance of the large multimodal model of text and images, the text and image branches of the large multimodal model of text and images are deployed separately on the cloud and vehicle side. The cloud side encodes the target text to obtain text features, and the vehicle side encodes any image data to obtain image features, thereby realizing end-cloud collaborative mining of target images; the use of the first image encoder that has been compressed and optimized can meet the needs of running the multimodal large model on resource-constrained devices.

[0008] In a possible implementation, the method further includes a step of compressing the image-text multimodal large model: the cloud performs large model compression by extracting supervision information of the second image encoder to obtain the first image encoder.

[0009] Therefore, the complex structure of the large multimodal model of images and text is compressed in the cloud to obtain a small image encoder model with similar effect and simple structure, which reduces the complexity of the network model and meets the needs of running the multimodal large model on devices with resource constraints. The compressed small image encoder model has the same performance as the large image encoder model.

[0010] In one possible implementation, the large model compression includes distillation, quantization and / or operator tuning.

[0011] Therefore, large model compression and network model simplification can be further achieved through the above-mentioned distillation, quantization and / or operator tuning.

[0012] In one possible implementation, the method also includes a step of fine-tuning the parameters of the large image-text multimodal model: inputting the labeled samples into the large image-text multimodal model for training, and obtaining fine-tuning parameters when the image-text alignment loss between the second image encoder and the text encoder reaches convergence; the fine-tuning parameters include visual fine-tuning parameters and / or text fine-tuning parameters.

[0013] As a result, we can improve the accuracy of large, multimodal image and text models using a small number of samples and fine-tuning a small number of parameters. This reduces the human, material, and financial costs of model training. We can also fine-tune a small number of parameters to improve mining accuracy based on different needs.

[0014] In a possible implementation, the cloud updates the text encoder according to the text fine-tuning parameters to generate new text features.

[0015] Therefore, the accuracy of the text encoder can be improved by adding only a small number of text parameters without changing the text encoder.

[0016] In a possible implementation, the task configuration file includes the visual fine-tuning parameters, and the vehicle-side updates the first image encoder according to the visual fine-tuning parameters.

[0017] Therefore, the accuracy of the image encoder can be improved by adding only a small number of visual fine-tuning parameters without changing the image encoder.

[0018] In a possible implementation, the task configuration file includes an algorithm name, and the vehicle end starts the corresponding first image encoder according to the algorithm name.

[0019] Therefore, corresponding mining algorithms can be launched for different tasks, which is scalable.

[0020] In one possible implementation, the task profile includes a similarity threshold, and determining the target image based on the similarity value and the task profile includes: when the similarity value between the text feature and the image feature is greater than the similarity threshold, determining that the corresponding image data is the target image.

[0021] In this way, the vehicle can efficiently filter out the required target images from a large amount of data based on the tasks sent from the cloud, realizing end-cloud collaborative data mining.

[0022] In a possible implementation, the cloud determines the target text and the task configuration file according to business needs, including: the cloud updates the task configuration file according to business needs, and the task configuration file includes an updated similarity threshold.

[0023] Therefore, corresponding similarity thresholds can be set for different tasks to drive the automatic iteration of the algorithm, continuously optimize the algorithm, improve the generalization performance of large models, and make them scalable.

[0024] In a second aspect, an embodiment of the present application provides an end-cloud collaborative data mining device, the device comprising: a demand processing module disposed on the cloud, the demand processing module determining the target text and task configuration file according to business needs; encoding the target text through a text encoder to obtain text features; placing the text features in the task configuration file and sending them together to the vehicle end. A graphic processing module, disposed on the vehicle end, the graphic processing module encodes the image data through a first image encoder to obtain image features; calculating the similarity value between the text features and the image features; determining the target image based on the similarity value and the task configuration file; uploading the target image to the cloud; wherein the first image encoder is obtained by compression and tuning of the second image encoder; the text encoder and the second image encoder are two modules of a large graphic and text multimodal model.

[0025] In a possible implementation, the end-cloud collaborative data mining device also includes: a compression module, which is set in the cloud, and the compression training module is used to compress the large model by extracting the supervision information of the image encoder large model to obtain a first image encoder. A parameter update module inputs the labeled samples into the image-text multimodal large model for prompt tuning training, and obtains fine-tuning parameters when the image-text alignment loss between the second image encoder and the text encoder reaches convergence; the fine-tuning parameters include visual fine-tuning parameters and / or text fine-tuning parameters. A model update module, the cloud updates the text encoder according to the text fine-tuning parameters to generate new text features; the vehicle side updates the first image encoder according to the visual fine-tuning parameters to generate new image features.

[0026] In the third aspect, an embodiment of the present application provides an end-cloud collaborative data mining system, which includes: a demand processing device, which is arranged on the cloud side, and the demand processing device is used to determine the target text and task profile according to business needs; encode the target text through the text encoder to obtain text features; put the text features in the task profile and send them together to the vehicle side; a graphic processing device, which is arranged on the vehicle side, and the graphic processing device is used to encode the image data through the first image encoder to obtain image features; calculate the similarity value between the text features and the image features; determine the target image according to the similarity value and the task profile; upload the target image to the cloud; wherein, the first image encoder is obtained by compression and tuning of the second image encoder; the text encoder and the second image encoder are two modules of the graphic and text multimodal large model.

[0027] In a fourth aspect, an embodiment of the present application provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method as described in any one of the first aspects.

[0028] In a fifth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.

[0029] In a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed by a computing device cluster, enables the computing device cluster to execute the method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the multiple embodiments disclosed in this specification, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings described below are only the multiple embodiments disclosed in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0031] The following is a brief introduction to the drawings required for describing the embodiments or prior art.

[0032] FIG1 is a diagram of the software architecture provided in an embodiment of the present application;

[0033] FIG2 is a schematic diagram of a method for end-cloud collaborative data mining provided by an embodiment of the present application;

[0034] Figure 3 is a schematic diagram of the end-cloud collaborative update of the image encoder small model;

[0035] FIG4 is a schematic diagram of large model compression in the end-cloud collaborative data mining method provided in Example 1 of the present application;

[0036] FIG5 is a flow chart of a method for end-cloud collaborative data mining according to Example 2 of the present application;

[0037] FIG6 is a flow chart of a method for end-cloud collaborative data mining according to Example 3 of the present application;

[0038] FIG7 is a schematic diagram of a device-cloud collaborative data mining system provided in an embodiment of the present application;

[0039] FIG8 is a schematic diagram of a device-cloud collaborative data mining apparatus provided in an embodiment of the present application;

[0040] FIG9 is a schematic diagram of a computing device cluster provided in an embodiment of the present application;

[0041] FIG10 is a schematic diagram of a connection method between computing device clusters provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0043] In the description of the embodiments of the present application, words such as "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of the present application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.

[0044] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the term "plurality" means two or more. For example, "multiple systems" refers to two or more systems, and "multiple terminals" refers to two or more terminals.

[0045] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly identifying the technical features being referred to. Thus, features specified as "first" or "second" may explicitly or implicitly include one or more of such features. The terms "include," "comprising," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized.

[0046] In the description of the embodiments of the present application, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.

[0047] In the description of the embodiments of the present application, the terms "first\second\third, etc." or module A, module B, module C, etc. are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that the specific order or sequence can be interchanged where permitted so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0048] In the description of the embodiments of the present application, the numbers representing the steps, such as S110, S120, etc., do not necessarily mean that the steps must be executed in this manner. If permitted, the order of the previous and next steps can be interchanged, or they can be executed simultaneously.

[0049] Compression of large models involves leveraging the redundancy of neural network parameters and network structure to streamline the model, enabling it to run on resource-constrained devices. These constraints fall into two categories: limited memory space and limited computing power. Model compression methods include network pruning, knowledge distillation, parameter quantization, architecture design, and dynamic computing. Resource-constrained devices include mobile phones, watches, aircraft, smart glasses, and autonomous driving systems.

[0050] Distillation (Knowledge Distillation) compresses a large model with a complex structure (teacher) to obtain a small model with a simple structure that has similar effects (student). Due to the reduction in the complexity of the network model, the performance of the compressed small model is improved.

[0051] Parameter Quantization uses fewer bits to store values. For example, instead of using 32 bits to store parameters, 16 bits can be used to store parameters, which directly reduces the network size by half.

[0052] Prompt technology involves inserting a learnable parameter into the input token, and then fine-tuning the model by training this parameter. When a new task has only a small number of training examples, conventional fine-tuning often leads to overfitting due to the excessive number of model parameters. Prompt technology can fix the model parameters and add a small number of additional parameters for training.

[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0054] The first solution sets up a target recognition algorithm for triggering targets of interest. The target recognition algorithm is defined based on the type of target of interest and sets a corresponding seed trigger for each type of target of interest. The target recognition algorithm is then deployed on the vehicle. Based on business needs, the cloud triggers the corresponding target recognition algorithm on the vehicle and outputs the target of interest data results. Once the target of interest data results are collected, they are annotated and fed into the corresponding seed trigger for iterative algorithm training, forming a closed-loop data loop to optimize the target recognition algorithm. Targets of interest include target vehicles, target non-motorized vehicles (Pedestrians), signboards, obstacles, traffic signals, and more.

[0055] This solution requires designing and training an object recognition algorithm for each target of interest, which requires collecting a large amount of training data. The seed triggers deployed on the vehicle cannot be updated and iterated, which prevents the vehicle from accurately mining targets of interest. While the vehicle can upgrade the entire seed trigger by updating the model or interface and then perform data mining for the target of interest, the update and upgrade process is cumbersome.

[0056] Data mining is key to continuously improving autonomous driving's perception systems. The hardware in these systems includes sensors and processors. Vehicles collect large amounts of data, including video and image information, through sensors. The processors perform data mining and processing, uploading the mined target data to the cloud. Software includes the operating system, sensor drivers, and various functional units.

[0057] The end-cloud collaborative data mining method provided in this application embodiment is primarily applied to autonomous driving perception systems. Models are trained in the cloud, and newly added parameters are distributed along with the task to the vehicle. These newly added parameters are then used for data mining for the new task. This method addresses the issues of vehicle-side accuracy in mining targets of interest, the need to collect large amounts of training data, and the cumbersome update and upgrade process.

[0058] Figure 1 is a diagram of the cloud-based software architecture provided by an embodiment of this application. As shown in Figure 1, the cloud-based software architecture includes: a data mining unit 11 that obtains target data from a large amount of data based on business needs; a data processing unit 12 that pre-labels or manually labels the target data; and a model pre-training unit 13 that inputs the labeled target data into a target model to pre-train the target model and continuously improve its performance. The target data includes target text and target images.

[0059] The target model is a large multimodal model for text and image data, which is used to measure the text-to-image relevance between text and image data in text-to-image information retrieval scenarios. The large multimodal model has two modal branches: image and text. A large text encoder model is configured for the text modality, and a large image encoder model is configured for the image modality.

[0060] Using the large model compression method, a small image encoder model is constructed. This small image encoder model has the same performance as the large image encoder model and is deployed on the vehicle. The small image encoder model can be referred to as the first image encoder, and the large image encoder model as the second image encoder. The first image encoder is the small model obtained by compressing and tuning the second image encoder.

[0061] Methods for compressing large models include knowledge distillation, parameter quantization, and other methods.

[0062] FIG2 is a schematic diagram of the end-cloud collaborative data mining method provided by an embodiment of the present application. As shown in FIG2, the text encoder 21 is configured on the cloud processor (referred to as the cloud), and the vehicle-side image encoder small model is configured on the vehicle-side processor (referred to as the vehicle-side). The method includes: the cloud determines the target text and task configuration file according to business needs, and encodes the target text through the text encoder 21 to obtain text features; the text features and task configuration file are sent to the vehicle; the image data is encoded by the image encoder small model 22 on the vehicle to obtain image features; the similarity value of the text features and the image features is calculated; the target image is determined based on the similarity and the task configuration file; the target image is uploaded to the cloud; wherein the image encoder small model is obtained by compressing and tuning the image encoder large model; the text encoder and the image encoder large model are two modules of the text-image multimodal large model.

[0063] The end-cloud collaborative data mining method provided by the embodiment of the present application is described in detail below. The end-cloud collaborative data mining method provided by the embodiment of the present application includes the following steps S21-S27.

[0064] S21, the cloud determines the target text and task profile based on business needs.

[0065] Business requirements are business interest targets or scenarios, such as vehicles, non-motorized vehicles, pedestrians, signs, obstacles, traffic signal glare, rainy days, etc.

[0066] For example, the business requirement is to mine pictures of sun glare. The cloud determines that the target text is "A photo of a sun glare" based on the business requirement.

[0067] Task configuration files are set based on business needs. Task-related configurations set in the task configuration file include the similarity threshold, the name of the algorithm to be activated, and fine-tuning parameters. The similarity threshold is used to ensure the accuracy of image-text alignment in data mining. The similarity between the image features of the target image and the text features of the target text must exceed the set similarity threshold. The algorithm name indicates which algorithm to activate on the vehicle side. Fine-tuning parameters are used to update the parameters of the text encoder and / or the first image encoder.

[0068] S22, encoding the target text through the text encoder 21 to obtain text features.

[0069] The text encoder 21 is used to encode a variable-length target text into a fixed-length feature vector, which is recorded as a text feature.

[0070] S23: Place the text features in the task configuration file and send it to the vehicle.

[0071] The task configuration file includes a similarity threshold; the cloud sends the text features obtained in step S22 together with the similarity threshold to the vehicle side.

[0072] In some feasible implementations, the task configuration file also includes the name of the algorithm to be started, such as the image encoder large model, the image encoder small model, etc.

[0073] S24: The vehicle side starts the vehicle side image encoder small model 22 according to the task requirement information. The image encoder small model 22 encodes the image data received by the sensor into image features. Specifically, the following steps are included:

[0074] S241, the vehicle side receives the task configuration file sent from the cloud, parses the task configuration file to obtain the algorithm name, similarity threshold and text features to be started; and starts the vehicle side mining algorithm according to the algorithm name.

[0075] The vehicle-side mining algorithm can be the image encoder small model 22 in this application, or it can be other image or radar mining algorithms, such as a special-shaped vehicle mining algorithm.

[0076] S242, the vehicle side obtains image data through the sensor.

[0077] Sensors include on-board cameras, radars, etc. The vehicle collects image data information through the on-board camera and obtains image data

[0078] S243, encode the image data through the picture encoder small model 22 to obtain corresponding image features.

[0079] The image encoder model 22 is used to encode any image data into a feature vector of fixed length; the feature vector corresponding to the image data can be recorded as the image feature.

[0080] The image data obtained in step 242 is input into the picture encoder small model 22 for encoding, and the corresponding image features are output. The image features are Y = (y1, y2, y3, ....., yn), and the length of the image features is the same as the length of the text features, both of which are n.

[0081] S25, calculating the similarity between the image feature and the text feature to obtain a similarity value.

[0082] Similarity refers to the similarity between two objects. It is obtained by calculating the distance between the feature vectors of the two objects. If the distance between the features of the two objects is small, the similarity is high; if the distance between the features of the two objects is large, the similarity is low.

[0083] For text features X = (x1, x2, x3, ….., xn) and image features Y = (y1, y2, y3, ….., yn), the similarity can be evaluated using cosine similarity, which is the cosine value of the angle between the two vectors.

[0084] S26, determining a target image according to the similarity and the similarity threshold.

[0085] The similarity value is compared with the similarity threshold. If the similarity value is greater than or equal to the similarity threshold, the image is determined to be the target image; if the similarity value is less than the similarity threshold, the image is discarded.

[0086] For example, the similarity threshold obtained by the vehicle-side parsing task configuration file is 0.8; the similarity value between the image feature X = (x1, x2, x3, ….., xn) and the text feature Y = (y1, y2, y3, ….., yn) calculated by the cosine similarity method is 0.86. If the similarity is greater than the similarity threshold, then the image data corresponding to the image feature is the target image.

[0087] S27, upload the target image to the cloud.

[0088] To improve the accuracy of data mining, the cloud uses prompt tuning to efficiently fine-tune parameters and sends the newly added parameters to the vehicle along with the task for data mining of new tasks.

[0089] Hinted learning methods are used to improve model accuracy using a small number of samples and fine-tuning a small number of parameters. Using hinted learning methods for efficient parameter fine-tuning can improve model accuracy by adding a small number of parameters without changing the text encoder or image encoder.

[0090] Figure 3 illustrates the collaborative end-cloud update of the image encoder mini-model. As shown in Figure 3, the cloud uses a small number of samples or mined target images to train the text encoder and the second image encoder through prompt learning, obtaining text fine-tuning parameters and / or visual fine-tuning parameters. The visual fine-tuning parameters are added to the task configuration file and distributed to the vehicle. The vehicle then adds the visual fine-tuning parameters to the image encoder mini-model 22. Simultaneously, the cloud also adds the text fine-tuning parameters to the text encoder to generate new text features.

[0091] The model optimization and update in the end-cloud collaborative data mining method provided in the embodiment of the present application includes the following steps S31-S S36.

[0092] In step S31, the cloud optimizes and trains the text encoder and the second image encoder through prompt tuning to obtain text fine-tuning parameters and visual fine-tuning parameters.

[0093] The training data can be the target images uploaded by the vehicle, or a small number of labeled training sample images in the database.

[0094] S32: Place the visual fine-tuning parameters in a task configuration file and send them to the vehicle. In some feasible implementations, the task configuration file also includes a new similarity threshold.

[0095] S33: The vehicle receives the task configuration file and parses the task configuration file to obtain visual fine-tuning parameters and / or a new similarity threshold.

[0096] S34, adding the visual fine-tuning parameters to the picture encoder small model 22, updating the picture encoder small model 22, and obtaining an optimized picture encoder small model 22.

[0097] When the sensor receives new image data, the optimized image encoder small model 22 is used to encode the corresponding image features, and the similarity between the image features and the text features encoded by the cloud model is calculated. The target image data of interest is mined according to whether the similarity is greater than the new similarity threshold.

[0098] Example 1

[0099] The end-cloud collaborative data mining method provided in Example 1 of this application compresses and fine-tunes a complex multimodal image and text model in the cloud to produce a small image encoder model 22 with similar performance and a simple structure, thereby reducing the complexity of the network model. The text encoder 21 is then deployed in the cloud, and the small image encoder model 22 is deployed on the vehicle, for end-cloud collaborative data mining training.

[0100] Figure 4 is a schematic diagram of large model compression in the end-cloud collaborative data mining method provided in Example 1 of this application. As shown in Figure 4, large model compression includes the following steps S41-S42.

[0101] S41, compress and optimize the image encoder large model in the image-text multimodal large model to obtain the image encoder small model 22.

[0102] The knowledge distillation method can be used to extract the supervision information of the image encoder large model in the image-text multimodal large model, and construct a small image encoder model 22, which has the same performance as the image encoder large model.

[0103] S42, respectively input a small number of labeled samples into the large multimodal model of text and image for fine-tuning, and calculate the cross entropy loss based on the similarity and labeled categories of the text features output by the text encoder 21 and the image features output by the small model of the picture encoder 22. When the cross entropy loss converges, the fine-tuned text encoder 21 and the small model of the picture encoder 22 are obtained.

[0104] In some feasible implementations, a parameter quantization method may be used to fine-tune and optimize the image encoder small model 22 .

[0105] The steps of performing end-cloud collaborative data mining based on the compressed image encoder small model 22 are as follows S43-S46.

[0106] S43, based on business needs, determine the target text to be mined and the mining algorithm to be used.

[0107] S44, deploy the fine-tuned text encoder 21 and the image encoder small model 22 separately, with the text encoder 21 deployed in the cloud and the image encoder small model 22 deployed in the vehicle.

[0108] S45, the cloud sets the similarity threshold according to business requirements and writes the mining algorithm name and similarity threshold into the task configuration file.

[0109] For example, the business requirement may be to mine sun glare, and the corresponding similarity threshold is set to 0.80. The algorithm name "general text retrieval" and the similarity threshold of 0.80 are written into the task configuration file.

[0110] S46: Perform end-cloud collaborative data mining based on new business needs. The specific implementation method can refer to steps S21-S27 and will not be repeated here.

[0111] Example 2

[0112] FIG5 is a flow chart of the end-cloud collaborative data mining method of Example 2 of the present application. As shown in FIG5, based on the above-mentioned Example 1, the text encoder 21 and the image encoder small model 22 of the large multimodal model of text and image are deployed separately. The text encoder 21 is deployed in the cloud, and the image encoder small model 22 is deployed in the vehicle. The image encoder small model 22 is obtained by compression based on the image encoder large model. The end-cloud collaborative data mining method includes the following steps:

[0113] S51, determine business requirements, and determine the target text according to the business requirements.

[0114] Business needs can be the target of mining.

[0115] For example, the cloud determines that the target of interest is a garbage bag on the road based on the corner case scenario of the current autonomous driving model, and the target text is "a photo of garbage bag on the road".

[0116] S52 , inputting the target text determined in step S51 into the text encoder 21 , and the text encoder 21 outputs corresponding text features.

[0117] The text encoder 21 is a text module of the multimodal text-image model.

[0118] Exemplarily, the cloud inputs the target text "a photo of garbage bag on the road" into the text encoder 21 to generate a text vector X = (x1, x2, x3, ....., xn) with a length of 512 bits, where x1, x2, x3, ....., xn are natural numbers.

[0119] S53: The cloud sends the task configuration file to the vehicle. The task configuration file includes text features, the name of the algorithm to be activated, and the similarity threshold.

[0120] For example, based on the business requirement of digging up garbage bags on the road, the cloud determines that the algorithm to be activated is named "General Text Search." The similarity between the target image and the target text must be greater than the set similarity threshold of 0.80. The cloud then sends the 512-bit text vector X = (x1, x2, x3, ..., xn), the algorithm name "General Text Search," and 0.80 to the vehicle.

[0121] S54, the vehicle receives the task configuration file and parses the task configuration file to obtain text features, the name of the algorithm to be started, and the similarity threshold.

[0122] For example, the algorithm to be started is named "general text retrieval", the similarity threshold is 0.80, and the text vector X=(x1, x2, x3, ..., xn).

[0123] S55, the vehicle side can obtain frame-by-frame image data through the sensor, and then input the image encoder small model 22 for encoding to obtain a fixed-length feature vector corresponding to each frame of image data.

[0124] For example, the vehicle inputs the image data collected by the sensor into the "Universal Text Retrieval" image encoder frame by frame for encoding, obtaining the image features corresponding to each frame of image data. Each frame of image features is a fixed-length feature vector of length n.

[0125] S56 , respectively calculating the similarity between the image feature of each frame and the text feature X, and obtaining the value of the similarity between the image feature of each frame and the text feature.

[0126] Exemplarily, the similarities between the image features Y1, Y2, ..., Y100 corresponding to each frame of image data and the text feature X are calculated respectively to obtain the similarity value between each frame of image features and text features.

[0127] S57 , respectively comparing the similarity value of each frame of image data with a similarity threshold, and obtaining a plurality of target images when the similarity value is greater than the similarity threshold.

[0128] Exemplarily, the similarity values ​​of each frame of image data are: 0.71, 0.74, 0.61, 0.88..., 0.87; the similarity threshold is 0.80, and the similarity value of each frame of image data is compared with the similarity threshold. Image data with a similarity value greater than 0.80 is the target picture, and the number of target pictures is multiple.

[0129] S58, multiple target images with similarities greater than a similarity threshold within a time period are packaged and uploaded to the cloud.

[0130] The end-cloud collaborative data mining method provided in Example 2 of the present application is based on a large multimodal model of text and images. It utilizes the strong generalization performance of the large multimodal model of text and images to separately deploy the text and image branches of the large multimodal model of text and images on the cloud and vehicle side. The cloud side encodes the target text to obtain text features, and the vehicle side encodes any image data to obtain image features; the target image is mined based on the text features, image features and similarity thresholds.

[0131] Example 3

[0132] Figure 6 is a flow chart of the end-cloud collaborative data mining method according to Example 3 of the present application. As shown in Figure 6, the end-cloud collaborative data mining method provided in Example 3 of the present application utilizes model compression and prompt technology in the cloud to accurately and effectively adjust new task-specific parameters using the mined target images, thereby improving the accuracy of the mined target images. The parameters are then pushed to the vehicle to accommodate the new mining task.

[0133] S61, the cloud uses a prompt tuning method to efficiently fine-tune parameters, adding one or more text fine-tuning parameters and / or image fine-tuning parameters without changing the large model of the text encoder and the small model of the image encoder.

[0134] The cloud uses the prompt tuning method to efficiently fine-tune the pre-trained model using the mined target images and obtain fine-tuning parameters that meet specific task requirements.

[0135] For example, the mined target image may be a picture of "a large garbage bag full of garbage on the road", which does not match the target text "a photo of garbage bag on the road". To improve the matching degree or adapt to new mining tasks, the cloud uses a prompt learning method to efficiently fine-tune the image-text multimodal model and obtain one or more text fine-tuning parameters and image fine-tuning parameters that are more consistent with the target image.

[0136] S62: Generate new text features according to one or more text fine-tuning parameters, and add the new text features to the task configuration file.

[0137] S63: Add one or more image fine-tuning parameters to the task configuration file and send it to the vehicle. The task configuration file to which the one or more image fine-tuning parameters and / or new text features are added may be recorded as a second task configuration file.

[0138] After introducing the new fine-tuning parameters, the classification accuracy can be readjusted. In some feasible implementations, a new similarity threshold can be set according to specific task requirements, and the new similarity threshold, algorithm name, and one or more visual fine-tuning parameters can be added to the second task configuration file.

[0139] S64, the vehicle receives the new task configuration file, parses the new task configuration file, and obtains visual fine-tuning parameters and / or a new similarity threshold.

[0140] S65, replacing or adding the visual fine-tuning parameters to the image encoder small model 22 to obtain an optimized image encoder small model 22.

[0141] S66 , encoding the new image data received by the sensor using the optimized image encoder small model 22 to obtain a second image feature.

[0142] S67, calculating the similarity between the second image feature and the new text feature, and determining new target image data according to whether the similarity is greater than a new similarity threshold. The accuracy of the new target image data is improved.

[0143] In a new round of data mining tasks, the cloud can instruct the vehicle on the algorithm name of the small image encoder model to be activated based on business requirements. Alternatively, the cloud can use prompt tuning to efficiently fine-tune parameters. Without changing the architecture of the large text encoder and image encoder models, one or more fine-tuning parameters can be added. These parameters are then distributed to the vehicle along with the task configuration file for use in the target data mining.

[0144] The end-cloud collaborative data mining method of the embodiment of the present application is applied to the shadow mode of autonomous driving, and can realize data mining of any target of interest text using a large model without the need to design and develop detection rules for each type of target of interest.

[0145] The end-cloud collaborative data mining method of the embodiment of the present application can continuously update and optimize the image encoder on the vehicle side and improve the model iteration efficiency.

[0146] The implementation of the embodiments of this application requires the use of the hardware and software systems of the autonomous vehicle, where the hardware system includes sensors and processors in the perception system, and the software system includes an operating system, sensor drivers, and processing programs for various systems.

[0147] FIG7 is a schematic diagram of an end-cloud collaborative data mining system provided in an embodiment of the present application. As shown in FIG7 , it includes: a demand processing device 71, which is set in the cloud. The demand processing device 71 determines the target text and task configuration file according to business needs; encodes the target text through a text encoder to obtain text features; and puts the text features in the task configuration file and sends it to the vehicle side. A graphic processing device 72, which is set in the vehicle side, encodes the image data through a first image encoder to obtain image features; calculates the similarity value between the text features and the image features; determines the target image according to the similarity value and the task configuration file; and uploads the target image to the cloud.

[0148] The demand processing device 71 and the image and text processing device 72 can both be implemented by software or hardware. As an example, the implementation of the demand processing device 71 is described below. Similarly, the implementation of the image and text processing device 72 can refer to the implementation of the demand processing device 71.

[0149] As an example of a software functional unit, the demand processing device 71 may include code running on a computing instance. The computing instance may be at least one of a physical host (computing device), a virtual machine, a container, and other computing devices. Furthermore, the above-mentioned computing device may be one or more. For example, the demand processing device 71 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the application may be distributed in the same region or in different regions. The multiple hosts / virtual machines / containers used to run the code may be distributed in the same AZ or in different AZs, and each AZ includes one data center or multiple data centers with close geographical locations. Generally, a region may include multiple AZs.

[0150] Similarly, the multiple hosts / virtual machines / containers running the code can be distributed within the same VPC or across multiple VPCs. Typically, a VPC is located within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0151] As an example of a hardware functional unit, a module can include at least one computing device, such as a server. Alternatively, demand processing device 71 can be implemented using an ASIC or a PLD. The PLD can be implemented using a CPLD, FPGA, GAL, or any combination thereof.

[0152] The multiple computing devices included in the demand processing device 71 can be distributed in the same region or in different regions. The multiple computing devices included in the demand processing device 71 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the demand processing device 71 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0153] FIG8 is a schematic diagram of a device-cloud collaborative data mining apparatus provided in an embodiment of the present application. As shown in FIG8 , it includes:

[0154] The demand processing module 81 is set in the cloud. The demand processing module 81 determines the target text and task configuration file according to business needs; encodes the target text through a text encoder to obtain text features; and puts the text features in the task configuration file and sends it to the vehicle end.

[0155] The image and text processing module 82 is set at the vehicle end. The image and text processing module 82 encodes the image data through the first image encoder to obtain image features; calculates the similarity value between the text features and the image features; determines the target image based on the similarity value and the task configuration file; and uploads the target image to the cloud.

[0156] The end-cloud collaborative data mining device of the present application also includes: a compression module 83, which is set in the cloud. The compression training module is used to compress the large model by extracting the supervision information of the large model of the image encoder to obtain the first image encoder.

[0157] The parameter updating module 84 inputs the labeled samples into the large multimodal image-text model for prompt tuning training. When the image-text alignment loss between the second image encoder and the text encoder reaches convergence, fine-tuning parameters are obtained; the fine-tuning parameters include visual fine-tuning parameters and / or text fine-tuning parameters.

[0158] Model update module 85, the cloud updates the text encoder according to the text fine-tuning parameters to generate new text features; the vehicle side updates the first image encoder according to the visual fine-tuning parameters to generate new image features.

[0159] The demand processing module 81 , the image and text processing module 82 , the compression module 83 , the parameter updating module 84 and the model updating module 85 may all be implemented by software or hardware.

[0160] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0161] As shown in FIG9 , the computing device cluster includes at least one computing device 100. Computing device 100 includes a bus 102, a processor 104, a memory 106, and a communication interface 108. Processor 104, memory 106, and communication interface 108 communicate with each other via bus 102. Computing device 100 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 100.

[0162] Bus 102 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG9 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 102 may include a path for transmitting information between various components of computing device 100 (e.g., memory 106, processor 104, and communication interface 108).

[0163] The processor 104 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0164] The memory 106 may include volatile memory, such as random access memory (RAM). The memory 106 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0165] The memory 106 stores executable program code, and the processor 104 executes the executable program code to respectively implement the functions of the aforementioned processing module 81, compression module 83 and / or parameter update module 84, thereby realizing the end-cloud collaborative data mining method.

[0166] Alternatively, the memory 106 stores executable code, and the processor 104 executes the executable code to respectively implement the functions of the aforementioned image and text processing module 82 and the model updating module 85, thereby realizing the end-cloud collaborative data mining method.

[0167] The communication interface 103 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 100 and other devices or a communication network.

[0168] The memory 106 in one or more computing devices 100 in the computing device cluster may store the same instructions for executing the end-cloud collaborative data mining method.

[0169] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing the end-cloud collaborative data mining method. In other words, the combination of one or more computing devices 100 can jointly execute instructions for executing the end-cloud collaborative data mining method.

[0170] It should be noted that the memory 106 in different computing devices 100 in the computing device cluster may store different instructions, each for executing part of the functions of the demand processing device 71 or the image and text processing device 72. That is, the instructions stored in the memory 106 in different computing devices 100 may implement the functions of one or more of the demand processing module 81, the compression module 83, the parameter updating module 84, or the image and text processing module 82 and the model updating module 85.

[0171] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network, which may be a wide area network or a local area network.

[0172] Figure 10 illustrates a possible implementation. As shown in Figure 10 , two computing devices 100A and 100B are connected via a network. Specifically, each computing device is connected to the network via a communication interface within the computing device. In this possible implementation, the memory 106 of computing device 100A stores instructions for executing the functions of the demand processing module 81. Simultaneously, the memory 106 of computing device 100B stores instructions for executing the functions of the image and text processing module 82.

[0173] The connection method between the computing device clusters shown in Figure 10 can be based on the fact that the end-cloud collaborative data mining method provided in this application requires a large amount of data storage and optimization and fine-tuning of the model. Therefore, it is considered to hand over the functions implemented by the compression module 83 and the parameter update module 84 to the computing device 100A for execution, and the model update module 85 to the computing device 100B for execution.

[0174] It should be understood that the functions of the computing device 100A shown in FIG10 may also be completed by multiple computing devices 100. Similarly, the functions of the computing device 100B may also be completed by multiple computing devices 100.

[0175] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the end-cloud collaborative data mining method.

[0176] Embodiments of the present application also provide a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the end-cloud collaborative data mining method.

[0177] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for end-cloud collaborative data mining, characterized in that: The method comprises: The cloud determines the target text and the task configuration file according to the business requirements; encodes the target text through a text encoder to obtain text features; and puts the text features in the task configuration file and sends them to the vehicle end; The vehicle end encodes the image data through a first image encoder to obtain image features; calculates the similarity value between the text feature and the image feature; determines a target image according to the similarity value and the task configuration file; and uploads the target image to the cloud; Among them, the first image encoder is obtained by compressing and tuning the second image encoder; the text encoder and the second image encoder are two modules of the large image-text multimodal model.

2. The method according to claim 1, characterized in that The method further comprises the step of compressing the large multimodal model of images and texts: The cloud obtains the first image encoder by extracting the supervision information of the second image encoder to perform large model compression.

3. The method according to claim 2, characterized in that The large model compression includes distillation, quantization and / or operator tuning.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises the step of fine-tuning the parameters of the large multi-modal model of images and texts: Inputting the labeled samples into the image-text multimodal large model for training, and obtaining fine-tuning parameters when the image-text alignment loss between the second image encoder and the text encoder reaches convergence; The fine-tuning parameters include visual fine-tuning parameters and / or text fine-tuning parameters.

5. The method according to claim 4, characterized in that The cloud updates the text encoder according to the text fine-tuning parameters to generate new text features.

6. The method according to claim 4, characterized in that The task configuration file includes the visual fine-tuning parameters, and the vehicle end updates the first image encoder according to the visual fine-tuning parameters.

7. The method according to any one of claims 1 to 5, characterized in that: The task configuration file includes an algorithm name, and the vehicle end starts the corresponding first image encoder according to the algorithm name.

8. The method according to any one of claims 1 to 7, characterized in that: The task configuration file includes a similarity threshold, and determining the target image according to the similarity value and the task configuration file includes: When the similarity value between the text feature and the image feature is greater than the similarity threshold, the corresponding image data is determined to be the target image.

9. The method according to any one of claims 1 to 8, characterized in that: The cloud determines the target text and task configuration file according to business requirements, including: The cloud updates the task configuration file according to business requirements, and the task configuration file includes an updated similarity threshold.

10. A device for end-cloud collaborative data mining, characterized in that: The device comprises: A demand processing module is provided in the cloud, and is used to determine a target text and a task configuration file according to business needs; encode the target text by the text encoder to obtain text features; and put the text features in the task configuration file and send them to the vehicle end; The image and text processing module is arranged at the vehicle end, and is used to encode the image data through the first image encoder to obtain image features; calculate the similarity value between the text features and the image features; determine the target image according to the similarity value and the task configuration file; and upload the target image to the cloud; Among them, the first image encoder is obtained by compressing and tuning the second image encoder; the text encoder and the second image encoder are two modules of the large image-text multimodal model.

11. The device according to claim 10, characterized in that Also includes: A compression module is set in the cloud, and the compression module is used to extract the supervision information of the second image encoder to perform large model compression to obtain the first image encoder.

12. The device according to claim 10 or 11, characterized in that Also includes: A parameter updating module, which is set in the cloud, is used to input the labeled samples into the image-text multimodal large model for prompt tuning training, and obtain fine-tuning parameters when the image-text alignment loss between the second image encoder and the text encoder reaches convergence; The fine-tuning parameters include visual fine-tuning parameters and / or text fine-tuning parameters.

13. The device according to claim 10 or 11, characterized in that Also includes: A model updating module, wherein the cloud updates the text encoder according to the text fine-tuning parameters to generate new text features; The vehicle end updates the first image encoder according to the visual fine-tuning parameters to generate new image features.

14. A terminal-cloud collaborative data mining system, characterized in that: The system comprises: A demand processing device is arranged in the cloud, and is used to determine a target text and a task configuration file according to business needs; encode the target text by the text encoder to obtain text features; and put the text features in the task configuration file and send them to the vehicle end; A graphic processing device is provided at the vehicle end, and is used for encoding the image data by the first image encoder to obtain image features; calculating the similarity value between the text features and the image features; determining a target image according to the similarity value and the task configuration file; and uploading the target image to the cloud; Among them, the first image encoder is obtained by compressing and tuning the second image encoder; the text encoder and the second image encoder are two modules of the large image-text multimodal model.

15. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 9.

16. A computer storage medium, wherein instructions are stored in the computer storage medium, and when the instructions are executed on a computer, the computer executes the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • End-cloud cooperative data mining method, device, system and computer cluster

    CN116561194B

  • Cross-modal image-text retrieval method

    CN110457516A

  • Training method and device for displaying object recognition model and electronic equipment

    CN115100472A

  • Method, system and device for dynamically configuring cloud tasks on Internet of Vehicles data and medium

    CN115134383A

  • End-cloud collaborative data mining method, device and system and computer cluster

    CN116561194A