Model training method and device based on noise-labeled sample set, and storage medium

By constructing a confidence sample set in the noisy labeled sample set and introducing a regularization loss term, the problem of model performance degradation during training in the noisy labeled sample set is solved, and high-performance model training in noisy environments is achieved.

CN117952169BActive Publication Date: 2026-11-20HARBIN INSTITUTE OF TECHNOLOGY (SHENZHEN) (INSTITUTE OF SCIENCE AND TECHNOLOGY INNOVATION HARBIN INSTITUTE OF TECHNOLOGY SHENZHEN)
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311835975.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2026-11-20
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively train high-performing neural network models using noisy labeled sample sets, especially when noise rates are high. The unreliable information about local neighbors in the feature space leads to a decline in model performance or even model crashes.

Method used

The semantic prediction information and feature vectors of noisy labeled samples are determined by the backbone network. A confidence sample set is constructed using the collaborative selection module. The backbone network is trained by the target loss term, including feature vector smoothing, pseudo-label construction and the introduction of regularization loss term, to reduce the unreliable impact of local information.

Benefits of technology

It improves the model's performance in noisy environments, reduces noise accumulation, and enhances the model's robustness and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117952169B_ABST
    Figure CN117952169B_ABST
Patent Text Reader

Abstract

The application discloses a model training method and device based on a noise label sample set and a storage medium. The method uses a double-space collaborative framework to jointly utilize information of a semantic space and a feature space. A set of class prototype features with global feature information is learned in the feature space by introducing local sample information. Then, the learned class prototype features and semantic prediction information are used together to select reliable samples, effectively reducing the influence of unreliable local information from neighbors in the feature space on model training in extremely noisy conditions, thereby improving the model performance of the target network model obtained by training. Meanwhile, the noise accumulation problem caused by sample selection bias is reduced by regularization from the semantic space to the feature space and regularization from the feature space to the semantic space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of deep learning technology, and in particular to a model training method, device and storage medium based on a noise-labeled sample set. Background Technology

[0002] Deep neural networks excel in various learning tasks such as image classification, object detection, and instance segmentation. Their performance relies heavily on high-quality labeled sample sets, which are typically expensive and time-consuming, especially for large datasets. Conversely, noisy labeled sample sets are more readily available, for example, from various websites or crowdsourcing platforms. However, noisy labeled sample sets may contain mislabeled samples. Therefore, effectively training high-performing neural network models using noisy labeled sample sets remains one of the major challenges in deep learning.

[0003] In recent years, sample selection methods have attracted much attention. These methods train models by selecting samples with correct labels. The main idea behind commonly used sample selection methods is to choose reliable samples based on the local structure of nearest neighbors in the feature space. However, local information in the feature space is often unreliable, especially in noisy environments (such as those with high noise rates). A sample's neighbors in the feature space may come from different classes, and their corresponding labels may be incorrect, thus affecting model performance and potentially causing the model to crash.

[0004] Therefore, the existing technology still needs to be improved and enhanced. Summary of the Invention

[0005] The technical problem to be solved by this application is to provide a model training method, device and storage medium based on a noise-labeled sample set, which addresses the shortcomings of the existing technology.

[0006] To address the aforementioned technical problems, the first aspect of this application provides a model training method based on a noise-labeled sample set, wherein the model training method based on the noise-labeled sample set specifically includes:

[0007] The semantic prediction information and feature vector of each noise label sample in the noise label sample set are determined by the backbone network;

[0008] Based on the semantic prediction information and the feature vector, the confidence sample set corresponding to the noise label sample set is determined by the collaborative selection module;

[0009] The target loss term is determined based on the confidence sample set, and the backbone network is trained based on the target loss term to obtain the trained target network model.

[0010] The process of determining the confidence sample set specifically includes:

[0011] The original sample labels of the noise-labeled samples are smoothed based on the feature vectors to obtain the first pseudo label, and the first clean sample set and the first corrected sample set corresponding to the noise-labeled sample set are determined based on the first pseudo label.

[0012] Based on feature vectors, category prototype features, and semantic prediction information, a second pseudo-label is constructed for each noise label sample, and a second clean sample set and a second corrected sample set corresponding to the noise label sample set are determined based on the second pseudo-label.

[0013] The intersection of the first clean sample set and the second clean sample set is taken as the target clean sample set, and the target correction sample set is determined based on the second correction sample set;

[0014] A confidence sample set is determined based on the target clean sample set and the target correction sample set.

[0015] The aforementioned model training method based on a noise-labeled sample set, wherein determining the semantic prediction information and feature vector of each noise-labeled sample in the noise-labeled sample set through a backbone network specifically includes:

[0016] For each noise-labeled sample in the noise-labeled sample set, the noise-labeled sample is input into the backbone network, and the high-dimensional features are determined by the feature encoding module in the backbone network.

[0017] The high-dimensional features are respectively input into the semantic space module in the backbone network, and the semantic space module determines the semantic prediction information.

[0018] The high-dimensional features are input into the feature space module of the backbone network, and the feature vector is determined by the feature space module.

[0019] The model training method based on a noisy labeled sample set, wherein smoothing the original sample labels of the noisy labeled samples based on feature vectors to obtain the first pseudo-label specifically includes:

[0020] For each noise label sample, obtain several neighboring samples of the noise label sample;

[0021] Based on the feature vector of the noise-labeled sample, the feature vectors of each neighboring sample, and the original sample label, a smooth label for the noise-labeled sample is constructed.

[0022] Based on the feature vector of the noise-labeled sample, the feature vectors of each neighboring sample, and the smoothing label, the first pseudo-label of the noise-labeled sample is constructed.

[0023] The model training method based on a noisy labeled sample set, wherein constructing a second pseudo-label for each noisy labeled sample based on feature vectors, category prototype features, and semantic prediction information specifically includes:

[0024] For each noise-labeled sample, calculate the feature similarity between the feature vector of the noise-labeled sample and the feature vectors of each category representative feature in the category prototype features;

[0025] For each original sample label included in the noise label sample set, the weighting coefficient of the original sample label is calculated based on the feature similarity corresponding to the category representative feature vector and all feature similarities.

[0026] The original sample labels are weighted based on the weighting coefficients of each original sample label to obtain the third pseudo label of the noisy label sample.

[0027] The third pseudo-label and the semantic prediction information are weighted to obtain the second pseudo-label of the noise label sample.

[0028] The model training method based on a noisy labeled sample set further includes:

[0029] Select the target noise label sample from the noise label sample that is contained in the union of the first clean sample set and the first corrected sample set;

[0030] For each target noise label sample, the label probability that the target noise label sample belongs to its corresponding original sample label is calculated based on the vector distance between the feature vector and the category representative feature vector in the category prototype feature.

[0031] A prototype loss function is constructed based on the label probability of each target noise label sample;

[0032] The class prototype features are learned based on the prototype loss function, and the learned class prototype features are used as class prototype features.

[0033] The model training method based on a noisy labeled sample set, wherein the process of determining the target loss term specifically includes:

[0034] Construct cross-loss and contrast loss terms based on the confidence sample set;

[0035] The collaborative regularization module uses the semantic prediction information of the noisy labeled samples to correct the feature distance between the noisy labeled samples and the confidence samples, so as to generate the first regularization loss term from the semantic space to the feature space; and uses manifold learning to embed the feature vector into the semantic space, so as to generate the second regularization loss term from the feature space to the semantic space.

[0036] The cross loss term, the contrast loss term, the first regularization loss term, and the second regularization loss term are weighted to obtain the target loss term.

[0037] In the aforementioned model training method based on a noisy labeled sample set, the expression for the first regularization loss term is:

[0038]

[0039]

[0040]

[0041]

[0042] Among them, L ins The first regularization loss term is represented; n represents the number of samples in the noisy labeled sample set; d i This represents the first similarity vector with weak enhancement; This represents the strongly enhanced second similarity vector; This represents the adjusted second similarity vector; z represents the strongly enhanced feature vector of the i-th noise label sample. The strongly enhanced feature vector is determined by the backbone network based on the strongly enhanced noise label sample; i B represents the feature vector of the i-th noisy labeled sample; B represents the confidence sample set; B z z represents the set of confidence feature vectors corresponding to the confidence sample set; b d represents the confidence eigenvector in the confidence eigenvector set; ib Indicate z i With z b Similarity; express With z b Similarity; p i The argmax(y) b ) elements; p i Represents semantic prediction information; x b y represents the confidence sample in the confidence sample set; b x represents b The original category label.

[0043] In the aforementioned model training method based on a noisy labeled sample set, the expression for the second regularization loss term is:

[0044]

[0045]

[0046] Among them, L loc Let α represent the second regularization loss term. ij p represents the weighting coefficient. j p represents the semantic prediction information of the j-th noisy labeled sample. i Let z represent the semantic prediction information of i noisy labeled samples. i Let z represent the feature vector of the i-th noise-labeled sample. j Let N' represent the feature vector of the j-th noise-labeled sample, σ represent the temperature coefficient, and N' represent the feature vector of the j-th noise-labeled sample. i Represents the noise-labeled sample x in the feature space i The neighborhood set.

[0047] A second aspect of this application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in the model training method based on the noise-labeled sample set as described above.

[0048] A third aspect of this application provides a terminal device, which includes: a processor and a memory;

[0049] The memory stores a computer-readable program that can be executed by the processor;

[0050] When the processor executes the computer-readable program, it implements the steps in any of the above-described model training methods based on a noisy labeled sample set.

[0051] Beneficial Effects: Compared with existing technologies, this application provides a model training method, device, and storage medium based on a noisy labeled sample set. The method employs a dual-space collaborative framework to jointly utilize information from the semantic space and feature space. By introducing local sample information, a set of category prototype features with global feature information is learned in the feature space. Then, the learned original category features and semantic prediction information are used together to select reliable samples. This effectively mitigates the impact of unreliable local information from neighbors in the feature space on model training under extremely noisy conditions, thereby improving the performance of the trained target network model. Simultaneously, regularization from the semantic space to the feature space and from the feature space to the semantic space mitigates the noise accumulation problem caused by sample selection bias. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a flowchart illustrating the principle of existing methods for sample selection using local information.

[0054] Figure 2 A flowchart of the model training method based on a noise-labeled sample set provided in this application.

[0055] Figure 3 The flowchart illustrates the principle of the model training method based on the noise-labeled sample set provided in this application.

[0056] Figure 4 This is a schematic diagram illustrating the principle of dual-space collaborative learning in the embodiments of this application.

[0057] Figure 5 A schematic diagram of the terminal device provided in this application. Detailed Implementation

[0058] This application provides a model training method, device, and storage medium based on a noise-labeled sample set. To make the objectives, technical solutions, and effects of this application clearer and more explicit, the following detailed description is provided with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only for explaining this application and are not intended to limit this application.

[0059] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.

[0060] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0061] It should be understood that the sequence number and size of each step in this embodiment do not imply the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application embodiment.

[0062] Research has shown that deep neural networks excel in various learning tasks such as image classification, object detection, and instance segmentation. The good performance of deep neural networks relies on a high-quality labeled sample set, which is typically both expensive and time-consuming, especially for large-scale datasets. Conversely, noisy labeled sample sets are easier to obtain, for example, from various websites or crowdsourcing platforms. However, noisy labeled sample sets may contain mislabeled samples. Therefore, effectively using noisy labeled sample sets to train high-performing neural network models remains one of the major challenges in the field of deep learning.

[0063] In recent years, sample selection-based methods have attracted much attention. These methods train models by selecting samples with the correct labels. The main idea is to use a two-stream architecture to project high-dimensional feature vectors onto a low-dimensional feature space and a semantic space, and then utilize contrastive learning to learn a robust feature space. Finally, confident samples are selected based on the local structure of neighbors in this feature space. However, as... Figure 1 As shown, existing sample selection methods generally use information from local neighbors to select samples. First, relying solely on local neighbor information for sample selection will negatively impact the performance of the trained model. This is because in noisy scenarios, a sample's neighbors in the feature space may belong to different classes, and the sample's label may be incorrect, leading to errors in the local neighbor information. Second, these methods ignore the significant noise accumulation problem, easily causing model training to collapse. This is because sample selection bias is unavoidable in practical applications. When samples with incorrect labels are selected in the initial training steps, these incorrect labels will cause model learning to degrade, thus severely exacerbating sample selection bias.

[0064] To address the aforementioned issues, in this embodiment, a backbone network is used to determine the semantic prediction information and feature vector of each noise label sample in the noise label sample set. Based on the semantic prediction information and the feature vector, a collaborative selection module determines the confidence sample set corresponding to the noise label sample set. A target loss term is determined based on the confidence sample set, and the backbone network is trained based on the target loss term to obtain a trained target network model. Specifically, when determining the confidence sample set, the original sample labels of the noise label samples are smoothed based on the feature vector to obtain a first pseudo-label, and a first clean sample set and a first corrected sample set corresponding to the noise label sample set are determined based on the first pseudo-label. A second pseudo-label is constructed for each noise label sample based on the feature vector, category prototype features, and semantic prediction information, and a second clean sample set and a second corrected sample set corresponding to the noise label sample set are determined based on the second pseudo-label. The intersection of the first clean sample set and the second clean sample set is taken as the target clean sample set, and a target corrected sample set is determined based on the second corrected sample set. Finally, a confidence sample set is determined based on the target clean sample set and the target corrected sample set. This application embodiment smooths the original sample labels by introducing local sample information to obtain a first pseudo-label. Then, based on the first pseudo-label and the original sample labels, a first clean sample set and a first corrected sample set are obtained. Then, based on the first clean sample set and the first corrected sample set, a set of category prototype features with global feature information is learned in the feature space. Finally, the original category features and semantic prediction information are used together to select reliable samples. This effectively reduces the sensitivity of local information to limited neighbors in extremely noisy conditions and reduces the impact of unreliable local information in the feature space on model training, thereby improving the model performance of the trained target network model.

[0065] The application content will be further explained below with reference to the accompanying drawings and through the description of the embodiments.

[0066] This embodiment provides a model training method based on a noise-labeled sample set. The target network model trained using this method can be used to perform tasks such as image classification, object detection, and instance segmentation. In other words, the target network model can be used for image classification, object detection, and instance segmentation. For example, if the target network model is an image classification model, it can be used to perform image classification tasks.

[0067] like Figure 2 As shown, the model training method based on the noise label sample set provided in this embodiment specifically includes steps S10-S30.

[0068] S10. Determine the semantic prediction information and feature vector of each noise label sample in the noise label sample set through the backbone network.

[0069] Specifically, the noise-labeled sample set is a set of samples with noisy labels. That is, the noise-labeled sample set may contain one or more noise-labeled samples whose original category label is incorrect. In this embodiment, the noise-labeled sample set is denoted as:

[0070]

[0071] Where D represents the noise-labeled sample set, x i Let i represent the i-th sample. Let [C] represent the original category label, where [C] = {1,2,3,...,C}, and C represents the number of original categories corresponding to the noise label sample set.

[0072] It should be noted that the noise label sample set has been weakly enhanced, which can be achieved through random cropping, random flipping, and standardization.

[0073] like Figure 4 As shown, the backbone network can include a feature encoding module, a semantic space module, and a feature space module. The feature encoding module is connected to both the semantic space module and the feature space module. The feature encoding module is used to extract high-dimensional features from noisy labeled samples, the semantic space module is used to determine semantic prediction information based on the high-dimensional features, and the feature space module is used to extract feature vectors based on the high-dimensional features. Furthermore, it is worth noting that before training the backbone network using the joint collaborative selection module, a noisy labeled sample set can be used to perform several training periods of warm-up training on the backbone network.

[0074] Based on this, in some implementations, determining the semantic prediction information and feature vector of each noise label sample in the noise label sample set through the backbone network specifically includes:

[0075] S11. For each noise label sample in the noise label sample set, the noise label sample is input into the backbone network, and the high-dimensional features are determined by the feature encoding module in the backbone network.

[0076] S12. Input the high-dimensional features into the semantic space module of the backbone network respectively, and determine the semantic prediction information through the semantic space module;

[0077] S13. Input the high-dimensional features into the feature space module of the backbone network respectively, and determine the feature vector through the feature space module.

[0078] Specifically, such as Figure 4As shown, the feature space module can employ a feature encoder f(·), where each noise label sample x i All of these are input terms to the feature encoder f(·), and the high-dimensional feature vector h is obtained through the feature encoder f(·). i =f(x) i Then the high-dimensional feature vector h i The semantic space and semantic space modules are mapped to the feature space and semantic space respectively to obtain semantic prediction information and feature vectors. The semantic prediction information is a sequence of predicted scores, which includes the predicted scores for each original category containing semantic information. In other words, the semantic prediction information includes the predicted scores of noisy labeled samples under the original categories, where the predicted scores are determined based on the semantic information of the noisy labeled samples. The feature vectors are obtained by extracting features from the noisy labeled samples.

[0079] In this embodiment, the feature space module can use a fully connected multilayer perceptron g(·), the semantic space module can use a fully connected multilayer perceptron p(·), and the high-dimensional feature vector h i The g(·) mapping is used to obtain a low-dimensional feature vector w. i =g(h i ), high-dimensional feature vector h i p(·) is mapped to semantic prediction information p i =p(h i Finally, the low-dimensional feature vector w i Normalization is performed to obtain the eigenvector z i ,in,

[0080] S20. Based on the semantic prediction information and the feature vector, the confidence sample set corresponding to the noise label sample set is determined by the collaborative selection module.

[0081] Specifically, the coordinated selection module is used to select confidence samples from the noisy label sample set based on category prototype features and semantic prediction information to obtain a confidence sample set. Among them, the category prototype features are learned from the feature vectors of each noisy label sample and contain global information of the feature space of the noisy label sample set, avoiding the unreliability of local structure and improving the model performance of the trained target network model.

[0082] For example, such as Figure 3 and Figure 4 As shown, the specific process of determining the confidence sample set corresponding to the noise label sample set through the collaborative selection module may include:

[0083] S21. Smooth the original sample labels of the noise label samples based on the feature vector to obtain the first pseudo label, and determine the first clean sample set and the first corrected sample set corresponding to the noise label sample set based on the first pseudo label;

[0084] S22. Based on feature vectors, category prototype features, and semantic prediction information, construct a second pseudo-label for each noise label sample, and determine the second clean sample set and the second corrected sample set corresponding to the noise label sample set based on the second pseudo-label.

[0085] S23. The intersection of the first clean sample set and the second clean sample set is taken as the target clean sample set, and the target correction sample set is determined based on the second correction sample set;

[0086] S24. Determine a confidence sample set based on the target clean sample set and the target correction sample set.

[0087] Specifically, in step S21, the first pseudo-label is obtained by smoothing the original sample label by introducing local neighbor sample information. The first clean sample set and the first corrected sample set are both subsets of the noise label sample set. The first clean sample set includes noise label samples whose difference between the original sample label and the first pseudo-label is less than a preset adaptive threshold. The first corrected sample set includes noise label samples whose maximum prediction score in the first pseudo-label is greater than the correction threshold.

[0088] In this embodiment of the application, the first clean sample set and the first corrected sample set are respectively represented as:

[0089]

[0090] P n ={(x i ,argmax(q i ))|max(q i )≥r}

[0091] Among them, P c P represents the first clean sample set. n Let q represent the first corrected sample set. i This indicates the first pseudo-tag. Represents the original sample label, γ c This indicates a preset adaptive threshold used to balance the number of samples from different classes when selecting samples. ce represents the cross-entropy loss, r represents the correction threshold, max(·) represents taking the maximum value, and argmax(·) represents the position of the maximum value.

[0092] It should be noted that other loss functions can also be used to calculate the difference between the original sample labels and the first pseudo-label when obtaining the first clean sample set, such as the similarity loss function.

[0093] For example, the process of smoothing the original sample labels of noisy labeled samples based on feature vectors to obtain the first pseudo-label specifically includes:

[0094] For each noise label sample, obtain several neighboring samples of the noise label sample;

[0095] Based on the feature vector of the noise-labeled sample, the feature vectors of each neighboring sample, and the original sample label, a smooth label for the noise-labeled sample is constructed.

[0096] Based on the feature vector of the noise-labeled sample, the feature vectors of each neighboring sample, and the smoothing label, the first pseudo-label of the noise-labeled sample is constructed.

[0097] Specifically, neighboring samples can be selected from the feature space corresponding to the noise label sample set based on the feature vector of the noise label sample. That is, when obtaining neighboring samples, the vector similarity between the feature vector of the noise label sample and the feature vectors of other noise label samples can be calculated. Then, other noise label samples with high vector similarity are selected as neighboring samples of the noise label sample. This is because noise label samples with high feature similarity have a higher probability of belonging to the same category than noise label samples with low feature similarity, thus improving the accuracy of the first pseudo-label obtained after smoothing the original sample label of the noise label sample based on neighboring samples. In this embodiment, feature similarity can be obtained using cosine distance. Of course, in practical applications, other methods can also be used to determine feature similarity, such as Euclidean distance.

[0098] Furthermore, the smoothed label is obtained by smoothing the original sample label of the noisy label sample based on several neighboring samples, and the first pseudo-label is obtained by smoothing the smoothed label of the noisy label sample based on several neighboring samples. That is, this embodiment of the application performs smoothing on the original sample label twice. Of course, in practical applications, only one smoothing or three smoothing operations can be performed. The expressions for the smoothed label and the first pseudo-label can be as follows:

[0099]

[0100]

[0101] Where, β i Indicates a smooth label, q i This indicates the first pseudo-tag. z represents the original sample label.i z represents the feature vector of the noisy labeled sample. k Let x represent the feature vector of the k-th neighboring sample. k Let N represent the k-th neighbor sample. i z represents the set of neighboring samples of a noise-labeled sample. r ∈N i Indicate z k Let be the feature vector of the r-th neighboring sample in the neighboring sample set.

[0102] In some implementations, the first clean sample set and the first corrected sample set are also used to learn category prototype features. These category prototype features include category-representative feature vectors corresponding to each original category. Each category-representative feature vector is obtained by learning global information from the feature space, ensuring that the category prototype features contain global information from the feature space. This provides enhanced noise resistance, resulting in stronger noise robustness for the trained target network models. The original category features can be represented as M = {m1, m2, ..., m...} C}, where C represents the original number of categories, m i This represents the category-representation feature vector corresponding to the i-th original category.

[0103] For example, the learning process of the category prototype features specifically includes:

[0104] Select the target noise label sample from the noise label sample that is contained in the union of the first clean sample set and the first corrected sample set;

[0105] For each target noise label sample, the label probability that the target noise label sample belongs to its corresponding original sample label is calculated based on the vector distance between the feature vector and the category representative feature vector in the category prototype feature.

[0106] A prototype loss function is constructed based on the label probability of each target noise label sample;

[0107] The class prototype features are learned based on the prototype loss function, and the learned class prototype features are used as class prototype features.

[0108] Specifically, the vector distance can be Euclidean distance, cosine distance, etc. In the embodiments of this application, the vector distance is Euclidean distance. That is, for each target noise label sample, the vector distance between the feature vector of the target noise label sample and the representative feature vectors of each category in the category prototype features is first calculated. Then, for each category representative feature vector, the label probability is calculated based on the vector distance between the feature vector of the target noise label sample and the representative feature vector of that category and all vector distances. The label probability can be the ratio of the vector distance and the sum of all vector distances, or it can be the ratio of an exponential function with the vector distance as the exponent and the sum of exponential functions with each vector distance as the exponent, etc.

[0109] In this embodiment of the application, the expression for the label probability can be:

[0110]

[0111] Where p(y) i |x i ) represents the target noise label sample x i The category represents the feature vector m yi The corresponding label probability of the original category, m yi The category representing the first original category is the feature vector, m. k The category representative feature vector represents the k-th original category, and γ represents the control coefficient.

[0112] Furthermore, after obtaining the label probabilities, a prototype loss function is constructed using these probabilities. Minimizing this prototype loss function reduces the distance between the class representative feature vector and the noisy label samples of its original class, while simultaneously increasing the distance between the representative feature vector and the representative feature vectors of other original classes. The expression for the prototype loss function can be:

[0113]

[0114] Among them, L pro This represents the prototype loss function.

[0115] In step S22, the second pseudo-label is determined based on category prototype features and semantic prediction information. This fully utilizes the predicted semantic information in the semantic space, allowing for the selection of samples with higher confidence, improving sample selection accuracy, and reducing sample selection bias. Specifically, the second pseudo-label is obtained by fusing pseudo-labels determined from the feature similarity between the feature vectors of noisy labeled samples and the feature vectors representing each category in the category prototype features, along with semantic prediction information.

[0116] For example, the construction of the second pseudo-label for each noisy label sample based on feature vectors, category prototype features, and semantic prediction information specifically includes:

[0117] For each noise-labeled sample, calculate the feature similarity between the feature vector of the noise-labeled sample and the feature vectors of each category representative feature in the category prototype features;

[0118] For each original sample label included in the noise label sample set, the weighting coefficient of the original sample label is calculated based on the feature similarity corresponding to the category representative feature vector and all feature similarities.

[0119] The original sample labels are weighted based on the weighting coefficients of each original sample label to obtain the third pseudo label of the noisy label sample.

[0120] The third pseudo-label and the semantic prediction information are weighted to obtain the second pseudo-label of the noise label sample.

[0121] Specifically, feature similarity can be determined based on cosine distance or Euclidean distance. In this embodiment, feature similarity is determined based on cosine distance. For each category-representing feature vector, the weighting coefficient of the category-representing feature vector is calculated based on the feature similarity between the category-representing feature vector and the feature vector of the noise label sample, and the feature similarity between all category-representing feature vectors and the feature vectors of the noise label samples. Accordingly, the expression for the third pseudo-label can be:

[0122]

[0123] in, Indicates the third pseudo-tag, y k Let m represent the one-hot label of the class of the k-th original sample. k This indicates that the k-th category represents the feature vector, m r Let z represent the feature vector of the r-th category. i Let represent the feature vector of the i-th noise-labeled sample.

[0124] Furthermore, after obtaining the third pseudo-label, the third pseudo-label and the semantic prediction information are weighted to obtain the second pseudo-label of the noise label sample, wherein the second pseudo-label can be represented as:

[0125]

[0126] in, This indicates the second pseudo-tag. This indicates the third pseudo-tag, p i This represents semantic prediction information, and α represents the weighting coefficient.

[0127] After obtaining the second pseudo-label, the first pseudo-label is replaced with the second pseudo-label. Following the same method used to determine the first clean sample set and the first corrected sample set, a second clean sample set and a second corrected sample set with higher confidence are generated. The specific generation process of the second clean sample set and the second corrected sample set will not be explained here; please refer to the generation process of the first clean sample set and the first corrected sample set for details. It is only necessary to note that a dynamic correction threshold τ is used to submit the correction threshold r when determining the second corrected sample set. t =h*θ t t represents the training period, h represents the initial threshold, and θ represents the decay factor corresponding to the training period t.

[0128] In step S23, the target clean sample set is the intersection of the first clean sample set and the second clean sample set. By selecting samples that exist simultaneously in both the first and second clean sample sets to form the target clean sample set, the confidence level of the target clean sample set can be further improved. The expression for the target clean sample set can be:

[0129]

[0130] in, Let P' represent the target clean sample set. c P represents the second clean sample set. c This represents the first set of leave requests.

[0131] The target correction sample set is determined based on the second correction sample set. The second correction sample set can be used directly as the target correction sample set, or samples appearing in multiple consecutive second correction sample sets can be combined to form a set as the target correction sample set. In this embodiment, correction samples appearing consecutively in three periods are added to the target correction sample set. That is, the target correction sample set is a continuously updated sample set. After obtaining the second correction sample set, the second correction sample sets obtained in the previous two training periods are read. Then, the intersection of these three second correction sample sets is selected, and finally, the samples included in the selected intersection are added to the target correction sample set to update it. The confidence sample set is determined using the target correction sample set updated in the current training period and the target clean sample set. Furthermore, it is worth noting that after obtaining the target correction sample set for the current training period, this target correction sample set is saved so that it can be updated in the next training period.

[0132] In step S24, after obtaining the target cleaning sample set and the target correction sample set, the union of the target cleaning sample set and the target correction sample set is obtained to obtain the confidence sample set, wherein the confidence sample set can be represented as:

[0133]

[0134] Where B represents the confidence sample set, This represents the target correction sample set.

[0135] S30. Determine the target loss term based on the confidence sample set, and train the backbone network based on the target loss term to obtain the trained target network model.

[0136] Specifically, the target loss term is used to train the backbone network to obtain the target network model. When determining the target loss term, it can be directly based on the confidence samples in the confidence sample set, or it can be adjusted by adding a regularization term to the loss term based on the confidence samples in the confidence sample set, and the adjusted loss term is used as the target loss term. The regularization term can include a regularization term from the semantic space to the feature space, a regularization term from the feature space to the semantic space, or a regularization term from the semantic space to the feature space and a regularization term from the feature space to the semantic space at the same time.

[0137] In this embodiment, a dual-space collaborative learning framework is employed, utilizing both regularization terms from the semantic space to the feature space and regularization from the feature space to the semantic space. This framework addresses the noise accumulation problem by jointly leveraging information from both the semantic space and the feature space. Based on this, as... Figure 3 and Figure 4 As shown, the process of determining the target loss term specifically includes:

[0138] Construct cross-loss and contrast loss terms based on the confidence sample set;

[0139] The collaborative regularization module uses the semantic prediction information of the noisy labeled samples to correct the feature distance between the noisy labeled samples and the confidence samples, so as to generate the first regularization loss term from the semantic space to the feature space; and uses manifold learning to embed the feature vector into the semantic space, so as to generate the second regularization loss term from the feature space to the semantic space.

[0140] The cross loss term, the contrast loss term, the first regularization loss term, and the second regularization loss term are weighted to obtain the target loss term.

[0141] Specifically, the cross-loss term reflects the difference between the semantic prediction information of the confidence sample and the original sample label, while the contrastive loss term reflects the contrast between the feature vector of the noisy labeled sample and the feature vector of its corresponding augmented sample. In this embodiment, the expression for the cross-loss term is:

[0142]

[0143] Among them, L cls Let B represent the cross-loss term, and let B represent the confidence sample set.

[0144] The expression for the contrast loss term is:

[0145]

[0146]

[0147] w ij =w i *w j

[0148]

[0149] Γ(i)={(x i ,x j )|j∈[2N]\{i},(x i ,x j )∈Γ}

[0150] Γ={(x i ,x j )|(x i ,y i ),(x j ,y j )∈B,y i =y j}

[0151] Among them, L ctr Represents the contrast loss term; n represents the number of samples in the noise-labeled sample set; w ij Indicates the weight of the contrast loss; w i The w represents the training weight of the i-th noisy labeled sample in the contrastive loss term; j Express the training weights of the j-th noisy labeled sample in the contrastive loss term; Indicates the target clean sample set; This represents the target correction sample set. This indicates the second pseudo-tag, z i z represents the feature vector of the i-th noise-labeled sample; jZ represents the feature vector of the j-th noise label sample; ξ represents the adjustment factor; [2N]\{i} represents the weakly augmented sample dataset obtained by performing two random weak data augmentations on N noise label samples randomly selected for the i-th noise label sample; z a P represents the feature vector of the weakly augmented sample data in the weakly augmented sample set, which is obtained through the backbone network; i,j Let Γ(i) represent the contrast loss between the i-th noise label sample and the i-th noise label sample; let Γ(i) represent the first subset corresponding to the i-th noise label sample, and let Γ represent the second subset corresponding to the i-th noise label sample.

[0152] Furthermore, the first regularization loss term is used for regularization from the semantic space to the feature space, utilizing semantic prediction information to correct the feature distance between noisy labeled samples and confidence samples. Specifically, the teacher-student learning framework has been proven effective for learning robust models from noisy labels, where the teacher contains weak data augmentation of noisy labeled samples, and the student contains strong data augmentation of noisy labeled samples. The student's task is to learn the distribution of the teacher's weak data augmentation in the feature space to enhance the robustness of the model. Based on this, in this embodiment, the first regularization loss term is constructed by calculating the similarity between the feature vector of weak data augmentation and the confidence sample, and the similarity between the feature vector of strong data augmentation and the confidence sample, wherein the similarity between the feature vector of weak data augmentation and the confidence sample and the similarity between the feature vector of strong data augmentation and the confidence sample can be expressed as follows:

[0153]

[0154]

[0155] Then, based on the two similarities, a weakly enhanced first similarity vector and a strongly enhanced second similarity vector are constructed, denoted as follows: and Then, the similarity d is determined by using the predicted information from the semantic space to adjust the strongly data-enhanced feature vector of each noisy labeled sample. ib d after adjustment ib It can be represented as in, The representation of can be:

[0156]

[0157] Based on this, the expression for the first regularization loss term is:

[0158]

[0159]

[0160]

[0161]

[0162] Among them, L ins The first regularization loss term is represented; n represents the number of samples in the noisy labeled sample set; d i This represents the first similarity vector with weak enhancement; This represents the strongly enhanced second similarity vector; This represents the adjusted second similarity vector; z represents the strongly enhanced feature vector of the i-th noise label sample. The strongly enhanced feature vector is determined by the backbone network based on the strongly enhanced noise label sample; i B represents the feature vector of the i-th noisy labeled sample; B represents the confidence sample set; B z z represents the set of confidence feature vectors corresponding to the confidence sample set; b d represents the confidence eigenvector in the confidence eigenvector set; ib Indicate z i With z b Similarity; express With z b Similarity; p i The argmax(y) b ) elements; p i Represents semantic prediction information; x b y represents the confidence sample in the confidence sample set; b x represents b The original category label.

[0163] Furthermore, it is worth noting that the strong enhancement in the embodiments of this application is obtained by performing the Fixmatch method.

[0164] Furthermore, the second regularization loss term, used for regularization from features to semantics, employs a manifold learning loss to project the structure of the feature space onto the semantic space, thereby adjusting the corresponding structure of the semantic space to optimally preserve, to some extent, the local neighborhood information of the feature space. The expression for the second regularization loss term is:

[0165]

[0166]

[0167] Among them, L loc Let α represent the second regularization loss term. ij p represents the weighting coefficient.j p represents the semantic prediction information of the j-th noisy labeled sample. i Let z represent the semantic prediction information of i noisy labeled samples. i Let z represent the feature vector of the i-th noise-labeled sample. j Let N' represent the feature vector of the j-th noise-labeled sample, σ represent the temperature coefficient, and N' represent the feature vector of the j-th noise-labeled sample. i Represents the noise-labeled sample x in the feature space i The neighborhood set.

[0168] Furthermore, to achieve efficient and stable training, a mini-batch strategy is used to learn the semantic space, where the nearest neighbor N′ is... i Discovered only within a batch. Meanwhile, to align the semantic space with the feature space, during L... loc Time feature space module g(·).

[0169] Finally, after obtaining the cross loss term, contrast loss term, first regularization loss term, and second regularization loss term, the cross loss term, contrast loss term, first regularization loss term, and second regularization loss term are weighted to obtain the target loss term. The expression for the target loss term can be:

[0170] L = L cls +λ c *L ctr +λ i *L ins +λ l *L loc ,

[0171] Where, λ c , λ i and λ l Both represent weight hyperparameters.

[0172] It should be noted that during the model training process, after a training period based on the noisy labeled sample set, a new training period will be conducted based on the noisy labeled sample set until the training end requirements are met, such as the number of training sessions reaching a preset training session threshold and / or the target loss function meeting the preset loss requirements.

[0173] In summary, this embodiment provides a model training method based on a noisy labeled sample set. The method smooths the original sample labels by introducing local sample information to obtain a first pseudo-label. Then, based on the first external label and the original sample labels, a first clean sample set and a second clean sample set are obtained. Next, based on the first and second clean sample sets, a set of category prototype features with global feature information is learned in the feature space. Finally, the original category features and semantic prediction information are combined to select reliable samples. This effectively reduces the sensitivity of local information to limited neighbors in extremely noisy conditions and reduces the impact of unreliable local information in the feature space on model training, thereby improving the performance of the trained target network model. Furthermore, this application reduces the noise accumulation problem caused by sample selection bias through bidirectional adjustment of the feature space and semantic space.

[0174] Based on the above-described model training method based on noise-labeled sample sets, this embodiment provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps in the model training method based on noise-labeled sample sets as described in the above embodiment.

[0175] Based on the above-described model training method using noise-labeled sample sets, this application also provides a terminal device, such as... Figure 5 As shown, it includes at least one processor 20; a display screen 21; and a memory 22, and may also include a communications interface 23 and a bus 24. The processor 20, display screen 21, memory 22, and communications interface 23 can communicate with each other via the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setup mode. The communications interface 23 can transmit information. The processor 20 can invoke logical instructions in the memory 22 to execute the methods described in the above embodiments.

[0176] Furthermore, the logical instructions in the aforementioned memory 22 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0177] The memory 22, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of this disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions, or modules stored in the memory 22, thereby implementing the methods in the above embodiments.

[0178] The memory 22 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 22 may include high-speed random access memory (RAM) and non-volatile memory. Examples include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks; it may also be a transient storage medium.

[0179] Furthermore, the specific process of loading and executing multiple instruction processors in the aforementioned storage medium and terminal device has been described in detail in the above method and will not be repeated here. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it; although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A model training method based on a noisy labeled sample set, characterized in that, The aforementioned model training method based on a noisy labeled sample set specifically includes: The semantic prediction information and feature vector of each noise label sample in the noise label sample set are determined by the backbone network; Based on the semantic prediction information and the feature vector, the confidence sample set corresponding to the noise label sample set is determined by the collaborative selection module; The target loss term is determined based on the confidence sample set, and the backbone network is trained based on the target loss term to obtain the trained target network model; the target network model is configured as an image classification model, and the image is classified for a task through the target network model; The process of determining the confidence sample set specifically includes: The original sample labels of the noise-labeled samples are smoothed based on the feature vectors to obtain the first pseudo label, and the first clean sample set and the first corrected sample set corresponding to the noise-labeled sample set are determined based on the first pseudo label. Based on feature vectors, category prototype features, and semantic prediction information, a second pseudo-label is constructed for each noise label sample, and a second clean sample set and a second corrected sample set corresponding to the noise label sample set are determined based on the second pseudo-label. The intersection of the first clean sample set and the second clean sample set is taken as the target clean sample set, and the target correction sample set is determined based on the second correction sample set; Determine a confidence sample set based on the target clean sample set and the target correction sample set; The construction of the second pseudo-label for each noise label sample based on feature vectors, category prototype features and semantic prediction information specifically includes: for each noise label sample, calculating the feature similarity between the feature vector of the noise label sample and the feature vectors of each category representative feature in the category prototype features; For each original sample label included in the noise label sample set, the weighting coefficient of the original sample label is calculated based on the feature similarity corresponding to the category representative feature vector and all feature similarities. The original sample labels are weighted based on the weighting coefficients of each original sample label to obtain the third pseudo label of the noisy label sample. The third pseudo-label and the semantic prediction information are weighted to obtain the second pseudo-label of the noise label sample; The model training method based on the noise-labeled sample set also includes: Select the target noise label sample from the noise label sample that is contained in the union of the first clean sample set and the first corrected sample set; For each target noise label sample, the label probability that the target noise label sample belongs to its corresponding original sample label is calculated based on the vector distance between the feature vector and the category representative feature vector in the category prototype feature. A prototype loss function is constructed based on the label probability of each target noise label sample; The class prototype features are learned based on the prototype loss function, and the learned class prototype features are used as class prototype features. The process of determining the target loss term specifically includes: Construct cross-loss and contrast loss terms based on the confidence sample set; The collaborative regularization module uses the semantic prediction information of the noisy labeled samples to correct the feature distance between the noisy labeled samples and the confidence samples, so as to generate the first regularization loss term from the semantic space to the feature space; and uses manifold learning to embed the feature vector into the semantic space, so as to generate the second regularization loss term from the feature space to the semantic space. The cross loss term, the contrast loss term, the first regularization loss term, and the second regularization loss term are weighted to obtain the target loss term.

2. The model training method based on a noise-labeled sample set according to claim 1, characterized in that, The determination of semantic prediction information and feature vector of each noise label sample in the noise label sample set through the backbone network specifically includes: For each noise-labeled sample in the noise-labeled sample set, the noise-labeled sample is input into the backbone network, and the high-dimensional features are determined by the feature encoding module in the backbone network. The high-dimensional features are respectively input into the semantic space module in the backbone network, and the semantic space module determines the semantic prediction information. The high-dimensional features are input into the feature space module of the backbone network, and the feature vector is determined by the feature space module.

3. The model training method based on a noise-labeled sample set according to claim 1, characterized in that, The process of smoothing the original sample labels of the noisy labeled samples based on feature vectors to obtain the first pseudo label specifically includes: For each noise label sample, obtain several neighboring samples of the noise label sample; Based on the feature vector of the noise-labeled sample, the feature vectors of each neighboring sample, and the original sample label, a smooth label for the noise-labeled sample is constructed. Based on the feature vector of the noise-labeled sample, the feature vectors of each neighboring sample, and the smoothing label, the first pseudo-label of the noise-labeled sample is constructed.

4. The model training method based on a noise-labeled sample set according to claim 1, characterized in that, The expression for the first regularization loss term is: in, This represents the first regularization loss term; Indicates the number of samples in the noise-labeled sample set; The first similarity vector represents the weak enhancement. The second similarity vector represents strong enhancement. Represents the adjusted second similarity vector Indicates the first The strongly enhanced feature vector of each noise label sample is determined by the backbone network based on the strongly enhanced noise label sample. Indicates the first Feature vectors of noise-labeled samples; Represents the confidence sample set; zb represents the set of confidence feature vectors corresponding to the confidence sample set; The confidence feature vectors in the confidence feature vector set; express and similarity express and similarity express The One element; Represents semantic prediction information; Represents the confidence samples in the confidence sample set; express The original category label.

5. The model training method based on a noise-labeled sample set according to claim 1, characterized in that, The expression for the second regularization loss term is: in, This represents the second regularization loss term. Indicates the weighting coefficient. Indicates the first Semantic prediction information for each noise-labeled sample. express Semantic prediction information for each noise-labeled sample. Indicates the first The feature vector of a noise-labeled sample Indicates the first The feature vector of a noise-labeled sample Indicates the temperature coefficient. Represents noise-labeled samples in the feature space The neighborhood set.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps in the model training method based on a noise-labeled sample set as described in any one of claims 1-5.

7. A terminal device, characterized in that, include: Processor and memory; The memory stores a computer-readable program that can be executed by the processor; When the processor executes the computer-readable program, it implements the steps in the model training method based on a noisy labeled sample set as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Passive domain and unsupervised domain adaptive image classification method, system and device and medium

    CN116543237A