A knowledge distillation distributed vincent graph method and system based on mobile crowdsourcing
Through mobile crowdsourcing technology and knowledge distillation method, combined with variational autoencoder and SD diffusion model, the difficulty of large Vincent graph model in terms of data requirements, computing resources and personalized requirements is solved, and efficient and personalized image generation is achieved. , protects data privacy and improves model generalization capabilities.
Patent Information
- Application Number
- CN202410985215.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-23
AI Technical Summary
Existing large-scale Vincentian graph models have difficulties in training data requirements, computing resource consumption, and user personalized needs, including large data requirements, high cost of computing resources, and insufficient diversity of generated images.
Using the knowledge distillation distributed Vincent graph method based on mobile crowdsourcing, individuality is achieved by obtaining image generation tasks, knowledge data distillation, image generation quality optimization, combination of variational autoencoders and SD diffusion models, multi-task learning and combined model operations. oriented, high-quality image generation.
On the premise of ensuring data privacy and efficient use of distributed resources, it improves the generalization ability of the model and the diversity of image generation, reduces the demand for computing resources, and is suitable for application scenarios that require processing of sensitive data.
Smart Images

Figure CN118520977B
Abstract
Description
Technical Field
[0001] The present invention relates to the intersection of generative artificial intelligence and mobile crowdsourcing technology, and in particular to a knowledge distillation distributed vincent graph method and system based on mobile crowdsourcing. Background Art
[0002] With the birth of artificial intelligence (AIGC), artificial intelligence has entered the era of 2.0. AIGC is a milestone for the production relations and artificial intelligence of human society. With the question-answering model GPT, the Wenshengtu model Stable-diffusion, and the later SORA generative video model, through the learning and training of a single large-scale data, the AI model has the knowledge of different fields and can complete many real-life tasks. In addition, mobile crowdsourcing uses mobile devices and computing resources to complete large-scale data collection, data generation and other tasks through a large number of people. With the development of mobile devices such as mobile phones and laptops, the computing power of crowdsourcing people has been continuously improved. Combining the Wenshengtu SD model as a plug-in, it allows customized generation styles or characters and IPs to be achieved with a small amount of data without modifying the SD model. LoRA injects model parameters into the SD model by training a low-rank matrix, thereby affecting the generation style of the SD model. LoRA is an effective model fine-tuning technology that can customize large language models or image generation models without significantly increasing the computing cost to adapt to different application scenarios and needs. At present, there are several difficulties in the task of generating real scene images with the Wenshengtu model:
[0003] Training data requirements: The large-scale image processing model requires a large amount of data for training. The model parameters are learned through sample data to improve the generalization ability of the model and the image quality. It takes a lot of time and resources to obtain training images, and there are privacy and copyright issues with image data. Therefore, the construction of image training data and privacy protection are major difficulties that need to be solved in the current large-scale image processing model.
[0004] Computing resources: The training of large models requires a lot of computing resources, such as GPUs and CPUs. Therefore, centralized training requires a lot of computing resources and is costly. Training a large number of images poses a greater challenge to the complexity of the semantic understanding of the model. How to improve the computing efficiency of large model training and save computing resources is the main difficulty facing AIGC at present.
[0005] Personalized needs of users: The images generated by large models need to be diverse and meet the needs of different users. However, the training data lacks the part that is oriented to user needs. For large models to be applied to large-scale image generation tasks, it is necessary to improve the model's ability to generate pictures of different styles. Improve the model's innovation and diversity in generating images to meet the personalized needs of users. How to improve the generalization ability of the model and meet the personalized diversity needs of users is a difficulty faced by current large image models. At this stage, a knowledge distillation distributed text graph method and system based on mobile crowdsourcing is needed. Summary of the invention
[0006] In order to solve the defects and deficiencies in the existing technology in the field of generative artificial intelligence image generation, the present invention provides a knowledge distillation distributed vincent graph method and system based on mobile crowdsourcing, which can realize personalized and high-quality vincent graph tasks under the premise of ensuring data privacy and efficient use of distributed resources.
[0007] In a first aspect, the present invention provides a knowledge distillation distributed vincent graph method based on mobile crowdsourcing, which adopts the following technical solution:
[0008] A distributed vincent graph method for knowledge distillation based on mobile crowdsourcing, comprising:
[0009] Acquiring image generation tasks, including acquiring image generation tasks by using mobile crowdsourcing, and making task execution judgments based on the attributes of a device for executing the task and the images to be acquired;
[0010] Perform knowledge data distillation based on the acquired image generation tasks, including distillation selection and optimization of Prompt engineering for generative images using mobile crowdsourcing;
[0011] The image generation task after knowledge distillation is used to optimize the image generation quality, including injecting feature knowledge into the generated image and using multi-task learning methods to predict and optimize the prompt words;
[0012] The predicted optimized prompt words are normalized and combined with the variational autoencoder and the SD diffusion model to generate image denoising.
[0013] Use the processed image generation task to set up crowdsourcing tasks, and perform combined model operations based on the image generation task type;
[0014] The image generation operation is performed based on the crowdsourcing task setting, including diffusion and denoising using the SD diffusion model, and the image is gradually constructed according to the diffusion and denoising process.
[0015] Furthermore, the knowledge data distillation based on the acquired image generation task includes using mobile crowdsourcing to distill and select the prompt project of the generative image, optimizing the prompt by screening the prompt words, and then using the input text to drive the image generation, wherein the image generation process includes mapping the noise image to the query matrix through the prior layer, extracting the feature vector of the prompt word in the text, and mapping the feature vector to the key and value matrices respectively, and finally using the graph attention to drive the text and image generation, and the graph attention driving formula is expressed as:
[0016] ,
[0017] Where M represents the final matrix generated by the image, which contains information combining text and image features, and d represents the dimension of the feature vector. represents the characteristics of the noise image, and K represents the attention matrix mapped by the feature vector.
[0018] Furthermore, the image generation task after knowledge distillation performs image generation quality optimization, including optimizing the connection between text and image by injecting words generated by specific text, wherein the corresponding attention values of the words originally existing in the text are used, the modified attention values are used for the newly added words in the text, and a multi-task learning method is used to share and jointly train multiple related tasks to improve the generalization ability and prediction performance of the model.
[0019] Furthermore, the multi-task learning method is used to share and jointly train multiple related tasks, including using a joint loss function to calculate the loss, taking the user's own preferred image type as the main task, the image relevance as the auxiliary task, and using a weight coefficient to balance the loss of the main task and the auxiliary task, and constructing a multi-gated expert network according to the joint loss function. The multi-gated expert network is used to characterize the correlation between tasks and learn specific task functions based on shared representation.
[0020] Furthermore, the multi-gated expert network is constructed according to the joint loss function, including an underlying structure composed of multiple shared sub-networks, and a threshold network is introduced to learn the influence of each shared sub-network on the target under different tasks. The input ends are respectively input to multiple shared sub-networks, and the output ends are connected to the threshold network. The threshold network outputs the probability of each shared sub-network being selected, and the outputs of the multiple shared sub-networks are weighted summed and output to the Tower network. The multi-gated expert network is expressed as:
[0021] ,
[0022] in, It is represented as a Tower network corresponding to each subtask. Represented as the output of the subtask, Represented as a shared subnetwork, Represented as the effective features of each threshold network.
[0023] Furthermore, the variational autoencoder is combined with the SD diffusion model to generate image denoising processing, including using the encoder to reduce the dimension of the input image to the latent space, and forward sampling the latent space features, controlling the noise intensity generated at each step through weights, executing the U-network to fuse multimodal information using cross-attention, and predicting the noise that needs to be subtracted in each step.
[0024] Furthermore, the diffusion and denoising using the SD diffusion model includes gradually diffusing the latent space features using the SD diffusion model, wherein the gradual diffusion includes gradually adding noise that satisfies the Gaussian distribution, converting the image into a random noise distribution for simulating physical diffusion, and estimating and gradually removing the noise of the image in the latent space through a noise predictor to restore a clear image.
[0025] In the second aspect, a knowledge distillation distributed text graph system based on mobile crowdsourcing includes:
[0026] The task acquisition module is configured to: acquire an image generation task, including acquiring the image generation task by using mobile crowdsourcing, and making a task execution judgment based on the device attributes for executing the task and the image to be acquired;
[0027] The preprocessing module is configured to: perform knowledge data distillation based on the acquired image generation task, including distillation selection and optimization of Prompt engineering of generative images using mobile crowdsourcing;
[0028] The conversion module is configured to: optimize the image generation quality of the image generation task after knowledge distillation, including injecting feature knowledge into the generated image and using a multi-task learning method to predict and optimize the prompt words;
[0029] The model module is configured to: normalize the predicted optimized prompt words, and combine the variational autoencoder with the SD diffusion model to generate denoising processing for the image;
[0030] The task setting module is configured to: use the processed image generation task to perform crowdsourcing task setting, and perform a combined model operation according to the image generation task type;
[0031] The image generation module is configured to: perform image generation operations based on crowdsourcing task settings, including diffusion and denoising using the SD diffusion model, and gradually construct an image according to the diffusion and denoising process.
[0032] In a third aspect, the present invention provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, a distributed vinyasa graph method for knowledge distillation based on mobile crowdsourcing.
[0033] In a fourth aspect, the present invention provides a terminal device including a processor and a computer-readable storage medium, the processor being used to implement various instructions; the computer-readable storage medium being used to store multiple instructions, the instructions being suitable for being loaded and executed by the processor, a distributed vinyasa graph method for knowledge distillation based on mobile crowdsourcing.
[0034] In summary, the present invention has the following beneficial technical effects:
[0035] 1. The present invention adopts distributed federated learning to allow model training while maintaining data localization. The original data does not need to be stored in a single location. Each participant only needs to share the update of model parameters, which greatly reduces the risk of data leakage. In addition, distributed federated learning also allows data to be processed in parallel among multiple participants, speeding up training speed and efficiency and reducing the computational burden of a single centralized model.
[0036] 2. The present invention greatly reduces the cost of data communication between participants by transmitting model parameter updates instead of original data. This reduction can significantly improve the efficiency of large-scale model training. The AI generation model based on distributed federated learning can not only effectively protect data privacy and improve the generalization ability of the model, but also significantly improve the efficiency of large-scale data processing and model training. It is suitable for application scenarios that need to process sensitive data and are widely distributed. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the network architecture of the distributed personalized cultural graph method for adaptive knowledge distillation based on mobile crowdsourcing and federated learning technology in an embodiment of the present invention.
[0038] Figure 2 1 is a diagram showing the working principle of the Lora parameter model in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0040] Example 1
[0041] Reference Figure 1 ,A knowledge distillation distributed ,vincent graph method based on mobile crowdsourcing in this embodiment includes: obtaining an image generation task, including obtaining the ,image generation task by using mobile crowdsourcing, and making a task execution judgment ,according to the device attributes of the task and the image to be acquired;
[0042] Perform knowledge data distillation based on the acquired image generation tasks, including distillation selection and optimization of Prompt engineering for generative images using mobile crowdsourcing;
[0043] The image generation task after knowledge distillation is used to optimize the image generation quality, including injecting feature knowledge into the generated image and using multi-task learning methods to predict and optimize the prompt words;
[0044] The predicted optimized prompt words are normalized and combined with the variational autoencoder and the SD diffusion model to generate image denoising.
[0045] Use the processed image generation task to set up crowdsourcing tasks, and perform combined model operations based on the image generation task type;
[0046] The image generation operation is performed based on the crowdsourcing task setting, including diffusion and denoising using the SD diffusion model, and the image is gradually constructed according to the diffusion and denoising process.
[0047] Specifically, a distributed vincent graph method for knowledge distillation based on mobile crowdsourcing in this embodiment includes the following steps:
[0048] like Figure 1 As shown, Figure 1 It is a SD diffusion algorithm based on federated learning. Figure 1It can be seen that the SD model based on the Transformer framework in this paper freezes some parameter layers and uses the LORA parameter model uploaded by distributed mobile crowdsourcing workers. It is used to generate large models of text images of different styles. At the same time, the multi-task learning model is used to dynamically learn user preference prompt words to optimize the quality of image generation. The core idea of LORA is to decompose a large number of parameter matrices of the original model into the product of two low-rank matrices. Through this low-rank decomposition, the number of parameters and the amount of calculation can be greatly reduced while ensuring the performance of the model. The LORA plug-in optimizes the parameter structure of the Transformer model through low-rank decomposition, making model training and reasoning more efficient and reducing storage requirements. It greatly reduces the computational complexity while maintaining model performance and is an effective model optimization technique. Combining Stable Diffusion (SD) with Low-Rank Adaptation (LoRA) can play a powerful role in improving model efficiency and effectiveness, especially in large-scale models such as natural language processing (NLP) and computer vision. Stable diffusion is a generative model that is often used to generate high-quality images or improve the stability of model training. It diffuses data over time to achieve a stable distribution, which helps learn complex patterns and structures. LoRA reduces the parameter complexity of large models through low-rank decomposition. It does this by decomposing the original high-dimensional matrix into the product of two smaller matrices, thereby reducing the overall number of parameters and computational load. Combining stable diffusion with low-rank adaptation creates a robust framework that improves model performance and efficiency. This combination makes it possible to deploy large-scale models in resource-constrained environments without significantly sacrificing quality or performance.
[0049] S1. Obtaining an image generation task, including using mobile crowdsourcing to obtain the image generation task, and making a task execution judgment based on the device attributes of the task and the image to be obtained;
[0050] Using the distributed data mining capabilities of mobile crowdsourcing, the image generation task issued by the image data requester, the mobile crowdsourcing worker combines the local device and image attribute information to choose whether to execute the task. Since the LORA parameter model has high requirements for device attributes, it is necessary to determine whether the local device and image meet the requirements for executing the task.
[0051] UW = [ 1 − Log ( m ax ( dev , 1 ))]
[0052] Among them, UW represents the task performed by the worker, dev represents the device attribute requirements, and if the device meets the task requirements, then dev is less than 1, and UW=1, indicating that the training task requirements are met.
[0053] S2, knowledge data distillation based on the acquired image generation tasks, including distillation selection and optimization of Prompt engineering of generative images using mobile crowdsourcing;
[0054] Knowledge data distillation uses the computing power of mobile crowdsourcing to distill and select the prompt project of the generative image, and uses crowdsourcing workers to screen the prompt word project and optimize the prompt. A well-designed prompt can significantly improve the quality of the generated image and make the generated image more in line with user expectations. At the same time, it can enhance the controllability of the generated model, so that the model can generate images of a specific type or style. The process of using text to drive image generation is:
[0055] Contains noisy images , mapped into a query matrix through a prior layer , the feature vector of the prompt word P in this paper are mapped into key and value matrices respectively, and Using graph attention to drive text and image generation:
[0056] ,
[0057] Where M represents the final matrix generated by the image, which contains information combining text and image features, and d represents the dimension of the feature vector. represents the characteristics of the noisy image, and K and V are both attention matrices mapped by text feature vectors
[0058] S3, optimizing the image generation quality of the image generation task after knowledge distillation, including injecting feature knowledge into the generated image and using multi-task learning methods to predict and optimize the prompt words;
[0059] Feature knowledge injection, by injecting words into specific text, can optimize the connection between text and image. For example, images in certain scenes can be injected with words that are different from those in other scenes to enhance the style generation of a certain type of image:
[0060] ,
[0061] Where W t Represents the weight of a specific prompt word, W t * represents the attention weight of other prompt words, is a specific preset threshold. If the weight value t is less than the threshold Representatives are injected into specific areas of knowledge.
[0062] Simply put, if a word exists in the original description, its corresponding attention value is used directly. If it is a newly added word, the modified attention value is used. This modification method can modify a local object in the image or edit the overall style of the entire image. Personalized prompt word prediction uses multi-task learning to predict and optimize the preferred prompt words of different users. Personalized prompt word prediction is of great significance in image generation tasks. Different users have different preferences for image generation. Accurately predicting and optimizing prompt words can improve user experience and generation quality. Multi-task learning (MTL) methods can play a key role in this situation. By sharing and jointly training multiple related tasks, the generalization ability and prediction performance of the model can be improved.
[0063] 1. Multi-task joint training: Use the joint loss function to optimize the loss of the main task and the auxiliary task. Use the user's own preferred image type as the main prediction task, and use the image relevance as the auxiliary task.
[0064] ,
[0065] in, and is the weight coefficient used to balance the losses of the main task and the auxiliary task.
[0066] 2. Deployment of multi-task learning network training model: A multi-task learning model is adopted, and multiple deep learning networks (DNNs) with multi-gated multi-expert networks are used to jointly learn the user preference prompt word task, and the gated network is used to normalize the learning results of multiple networks. The task learning model improves the learning efficiency and quality of tasks by learning the connections and differences between different tasks. The multi-task learning framework widely adopts a shared subnetwork (shared-bottom) structure, and the bottom hidden layer is shared between different tasks. The risk of overfitting can be reduced, but the effect is affected by task differences and data distribution. Therefore, the present invention adopts a multi-gated expert network structure to characterize the correlation of tasks, and learns specific task functions based on shared representations. The shared-bottom network (expressed as a function ) is located at the bottom layer, and multiple tasks share this layer. Each subtask corresponds to a tower network (represented as ), the output of each subtask is:
[0067] ,
[0068] The hybrid expert gated network is composed of multiple Expert networks at the bottom layer. Experts are independent of each other. The Gate network is introduced to learn the influence of each Expert network on the target under different tasks. The original MoE model can be formalized as:
[0069] ,
[0070] in Expressed as: The output of each network is a valid feature, , is n expert networks (expert network can be considered as a neural network), and g is a gating network that combines the results of experts. Specifically, g generates a probability distribution over n experts, and the final output is the weighted sum of all experts.
[0071] 3. The bottom layer of the hybrid expert network (MoE) is composed of multiple Experts networks. OMoE introduces the MoE layer in multi-task learning, and inputs the input to three Experts (shared sub-networks) respectively, but the Experts do not share parameters. At the same time, the input is output to the Gate (threshold network), and the Gate outputs the probability of each Expert being selected, and then the outputs of the three Experts are weighted and summed and output to the Tower. The OMoE model can be formalized as:
[0072] ,
[0073] in, It is represented as a Tower network corresponding to each subtask. Represented as the output of the subtask, Represented as a shared subnetwork, Represented as the effective features of each threshold network.
[0074] S4, normalizing the predicted optimized prompt words, and combining the variational autoencoder with the SD diffusion model to generate denoising processing for the image;
[0075] The pre-trained CLIP model is used to generate corresponding description words for the image data that needs to be trained. The present invention combines a multi-task learning model to normalize and learn the user's preference prompt words.
[0076] Using a pre-trained universal variational autoencoder, first use the encoder to reduce the dimensionality of the input image to the latent space (usually downsampling by a factor of 4-16).
[0077] The latent space features are input into the diffusion model for diffusion (forward sampling), and noise is generated step by step (in this process, the intensity of the noise generated at each step is controlled by the weight β until pure noise is generated, and the data of the noise generated at each step is recorded as GT.
[0078] Execute Unet (U-network), use cross-attention to fuse multimodal information, and predict the noise that needs to be subtracted at each step:
[0079] ,
[0080] Map the input data x to a distribution in the latent space, which is usually a Gaussian distribution. , given a sample x0, gradually add noise to generate a series of intermediate states x1,x2,x3,...,x t ,in, is the noise variance, .
[0081] S5, using the processed image generation task to set a crowdsourcing task, and performing a combined model operation according to the image generation task type;
[0082] Crowdsourcing task setting: Set up N downstream training task sets , each downstream task has its own characteristic attributes , which includes the downstream training task quality threshold q, the dataset z required for the downstream training task, the time cost c for training, and the style type d of the downstream training task. Data request for your own personalized image requirements for uploading the style type requirements for the generated image and the type of dataset required. The MCS crowdsourcing platform is based on crowdsourcing workers Collect the uploaded trained LORA parameter models. Sort by worker capability values and generate the image generation task type required by the data requester. Combine different large models of cultural images and LORA parameter model comprehensive model to execute the data request sent by the data requester.
[0083] Combined model operation: Crowdsourcing workers have equipment attributes, capability values, and task completion rates. Combined LORA: The MCS crowdsourcing platform will perform different weighted summations on the LORA pre-trained models uploaded by workers based on their characteristic attributes. Where m is the size of the combined strategy model, which is set according to the requester's requirements for generative images. The higher the requirements for image quality and granularity, the larger the value of m. is the weight coefficient, which is calculated by the MCS platform by uploading the characteristic attributes of the pre-trained LoRa model worker.
[0084] ,
[0085] in, Expressed as weight coefficients of different weights, Represents different attributes of the device.
[0086] like Figure 2 As shown in S6, an image generation operation is performed based on a crowdsourcing task setting, including diffusion and denoising using the SD diffusion model, and the image is gradually constructed according to the diffusion and denoising process.
[0087] SD diffusion model generates images: Forward diffusion In the latent space, the model "diffuses" the image by gradually adding noise, eventually transforming the image into a completely random noise distribution. This process simulates the diffusion phenomenon in physics, gradually adding Gaussian noise to the data. This causes the features of the image to gradually disappear.
[0088] ,
[0089] in, Simulate the process of gradually adding noise to the original image x0, and its noise distribution β satisfies the Gaussian distribution; I is the unit matrix.
[0090] Backward diffusion: In the generation phase, the model uses a noise predictor to estimate the noise of the image in the latent space and gradually removes the noise to restore a clear image from the noise. The formula is as follows:
[0091] ,
[0092] in, represents the process of back-diffusion image generation, It is represented as a model parameter, which is obtained through training and learning. N represents the normal distribution. Represents the noise weight coefficient.
[0093] For a model with a parameter number D , training the model means finding an effective solution in D-dimensional space. For large models, testing the intrinsic dimension can tell how many parameters need to be adjusted to approximately solve a certain type of downstream problem. The LORA low-rank matrix can solve the downstream image generation style task by adjusting a few parameters. Its formula is as follows:
[0094] ,
[0095] Among them, D represents the number of parameters and R represents the model parameter decision space.
[0096] As shown in the above formula, the generative image model is trained, that is, only the d-dimensional parameters are adjusted during training. , Pre-trained parameters.
[0097] The combination of the base SD large model and the LORA weight model protects the image privacy of workers while providing personalized image generation tasks. The "data does not leave the local area" feature of federated learning is used to protect data privacy while providing image generation models of different styles and types, saving the computing efficiency of the central platform.
[0098] Example 2
[0099] The difference between this embodiment and embodiment 1 is that this embodiment provides a knowledge distillation distributed text graph system based on mobile crowdsourcing:
[0100] The task acquisition module is configured to: acquire an image generation task, including acquiring the image generation task by using mobile crowdsourcing, and making a task execution judgment based on the device attributes for executing the task and the image to be acquired;
[0101] The preprocessing module is configured to: perform knowledge data distillation based on the acquired image generation task, including distillation selection and optimization of Prompt engineering of generative images using mobile crowdsourcing;
[0102] The conversion module is configured to: optimize the image generation quality of the image generation task after knowledge distillation, including injecting feature knowledge into the generated image and using a multi-task learning method to predict and optimize the prompt words;
[0103] The model module is configured to: normalize the predicted optimized prompt words, and combine the variational autoencoder with the SD diffusion model to generate denoising processing for the image;
[0104] The task setting module is configured to: use the processed image generation task to perform crowdsourcing task setting, and perform a combined model operation according to the image generation task type;
[0105] The image generation module is configured to: perform image generation operations based on crowdsourcing task settings, including diffusion and denoising using the SD diffusion model, and gradually construct an image according to the diffusion and denoising process.
[0106] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, a distributed vincent graph method for knowledge distillation based on mobile crowdsourcing.
[0107] A terminal device includes a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded and executed by the processor, a distributed vinyasa graph method for knowledge distillation based on mobile crowdsourcing.
[0108] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A knowledge distillation distributed vincent graph method based on mobile crowdsourcing, characterized in that: include: Acquiring image generation tasks, including acquiring image generation tasks by using mobile crowdsourcing, and making task execution judgments based on the attributes of a device for executing the task and the images to be acquired; Perform knowledge data distillation based on the acquired image generation tasks, including distillation selection and optimization of Prompt engineering for generative images using mobile crowdsourcing; The image generation task after knowledge distillation is used to optimize the image generation quality, including injecting feature knowledge into the generated image and using multi-task learning methods to predict and optimize the prompt words; The predicted optimized prompt words are normalized and combined with the variational autoencoder and the SD diffusion model to generate image denoising. Use the processed image generation task to set up crowdsourcing tasks, and perform combined model operations based on the image generation task type; The image generation operation is performed based on the crowdsourcing task setting, including diffusion and denoising using the SD diffusion model, and the image is gradually constructed according to the diffusion and denoising process.
2. According to claim 1, a distributed vincent graph method for knowledge distillation based on mobile crowdsourcing is characterized in that: The knowledge data distillation based on the acquired image generation task includes using mobile crowdsourcing to distill and select the prompt project of the generative image, optimizing the prompt by screening the prompt words, and then using the input text to drive the image generation, wherein the image generation process includes mapping the noise image to the query matrix through the prior layer, extracting the feature vector of the prompt word in the text, and mapping the feature vector to the key and value matrices respectively, and finally using the graph attention to drive the text and image generation, and the expression of the graph attention drive is: , Where M represents the final matrix generated by the image, which contains information combining text and image features, and d represents the dimension of the feature vector. represents the characteristics of the noise image, and K represents the attention matrix mapped by the feature vector.
3. The method for distributed vincent graph based on mobile crowdsourcing for knowledge distillation according to claim 2, characterized in that: The image generation task after knowledge distillation is used to optimize the image generation quality, including optimizing the connection between text and image by injecting words generated by specific text, wherein the corresponding attention values of the words originally existing in the text are used, and the modified attention values are used for the newly added words in the text, and a multi-task learning method is used to share and jointly train multiple related tasks to improve the generalization ability and prediction performance of the model.
4. The method for distributed knowledge distillation based on mobile crowdsourcing according to claim 3 is characterized in that: The method uses a multi-task learning method to share and jointly train multiple related tasks, including using a joint loss function to calculate the loss, using the user's own preferred image type as the main task, the image relevance as the auxiliary task, and using a weight coefficient to balance the loss of the main task and the auxiliary task, and constructing a multi-gated expert network according to the joint loss function. The multi-gated expert network is used to characterize the correlation between tasks and learn specific task functions based on shared representation.
5. The method for distributed vincent graph based on mobile crowdsourcing for knowledge distillation according to claim 4, characterized in that: The multi-gated expert network is constructed according to the joint loss function, including an underlying structure composed of multiple shared sub-networks, and a threshold network is introduced to learn the influence of each shared sub-network on the target under different tasks. The input end is respectively input to multiple shared sub-networks, and the output end is connected to the threshold network. The threshold network outputs the probability of each shared sub-network being selected, and the outputs of multiple shared sub-networks are weighted summed and output to the Tower network. The multi-gated expert network is expressed as: , in, It is represented as a Tower network corresponding to each subtask. Represented as the output of the subtask, Represented as a shared subnetwork, Represented as the effective features of each threshold network.
6. The method for distributed knowledge distillation based on mobile crowdsourcing according to claim 5, characterized in that: The variational autoencoder is combined with the SD diffusion model to generate image denoising processing, including using the encoder to reduce the dimension of the input image to the latent space, and forward sampling the latent space features, controlling the noise intensity generated at each step through weights, executing the U-network to fuse multimodal information using cross-attention, and predicting the noise that needs to be subtracted in each step.
7. The method for distributed knowledge distillation based on mobile crowdsourcing according to claim 6, characterized in that: The diffusion and denoising using the SD diffusion model includes gradually diffusing the latent space features using the SD diffusion model, wherein the gradual diffusion includes gradually adding noise that satisfies the Gaussian distribution, converting the image into a random noise distribution for simulating physical diffusion, and estimating and gradually removing the noise of the image in the latent space through a noise predictor to restore a clear image.
8. A knowledge distillation distributed vincent graph system based on mobile crowdsourcing, characterized in that: include: The task acquisition module is configured to: acquire an image generation task, including acquiring the image generation task by using mobile crowdsourcing, and making a task execution judgment based on the device attributes for executing the task and the image to be acquired; The preprocessing module is configured to: perform knowledge data distillation based on the acquired image generation task, including distillation selection and optimization of Prompt engineering of generative images using mobile crowdsourcing; The conversion module is configured to: optimize the image generation quality of the image generation task after knowledge distillation, including injecting feature knowledge into the generated image and using a multi-task learning method to predict and optimize the prompt words; The model module is configured to: normalize the predicted optimized prompt words, and combine the variational autoencoder with the SD diffusion model to generate denoising processing for the image; The task setting module is configured to: use the processed image generation task to perform crowdsourcing task setting, and perform a combined model operation according to the image generation task type; The image generation module is configured to: perform image generation operations based on crowdsourcing task settings, including diffusion and denoising using the SD diffusion model, and gradually construct an image according to the diffusion and denoising process.
9. A computer-readable storage medium storing a plurality of instructions, characterized in that: The instructions are suitable for being loaded by a processor of a terminal device and executing a knowledge distillation distributed text graph method based on mobile crowdsourcing as described in any one of claims 1-7.
10. A terminal device, comprising a processor and a computer-readable storage medium, wherein the processor is used to implement each instruction; and the computer-readable storage medium is used to store multiple instructions, characterized in that: The instructions are suitable for being loaded by a processor and executing a knowledge distillation distributed text graph method based on mobile crowdsourcing as described in any one of claims 1-7.
Citation Information
Patent Citations
Crowdsourcing image learning method based on multi-expert system and knowledge distillation
CN114299349A
Generative model transfer learning method and device based on knowledge distillation and medium
CN116362322A
Federal learning algorithm based on diffusion model and weight adaptive knowledge distillation
CN116665000A
Heterogeneous federated learning privacy protection method and system based on diffusion model
CN118211268A
Systems and methods for federated learning with heterogeneous clients via data-free knowledge distillation
US20240104427A1
