Home > Technology peripherals > AI > body text

Damo Academy's open source semi-supervised learning framework Dash refreshes many SOTAs

PHPz
Release: 2023-04-11 17:07:03
forward
1494 people have browsed it

1. Research background

Supervised Learning

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

We know that the purpose of model training is actually to learn a prediction function. Mathematically, this can be described as a learning mapping function from data (X) to label (y). Supervised learning is one of the most commonly used model training methods. The improvement of its effect depends on a large amount of well-labeled training data, which is the so-called large amount of labeled data ((X,y)). However, labeling data often requires a lot of manpower and material resources, etc. Therefore, while the effect is improved, it will also bring about the problem of high cost. In practical applications, it is often encountered that there is a small amount of labeled data and a large amount of unlabeled data. The resulting semi-supervised learning has also attracted more and more attention from scientific workers.

Semi-Supervised Learning

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

half Supervised learning simultaneously learns from a small amount of labeled data and a large amount of unlabeled data, and its purpose is to improve the accuracy of the model with the help of unlabeled data. For example, self-training is a very common semi-supervised learning method. Its specific process is to learn the mapping of data from X to y for labeled data (X, y), and at the same time use the learned model to predict an unlabeled data X Pseudo-label Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs helps the model achieve better convergence and improve accuracy by further performing supervised learning on the pseudo-label data (X, Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs).

Core Solving Problem

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

Existing semi-supervised learning framework The use of unlabeled data can be roughly divided into two types. One is to participate in the training entirely, and the other is to use a fixed threshold to select samples with higher confidence for training (such as FixMatch). Since the use of unlabeled data by semi-supervised learning depends on the pseudo labels predicted by the current model, the accuracy of the pseudo labels will have a greater impact on the training of the model. Good prediction results will help the convergence and accuracy of the model. For new model learning, poor prediction results will interfere with model training. So we think: Not all unlabeled samples are necessary!

2. Paper & Code

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

  • ##Paper link: https://proceedings. mlr.press/v139/xu21e/xu21e.pdf
  • Code address: https://github.com/idstcv/Dash
  • Technology Application: https://modelscope.cn/models/damo/cv_manual_face-liveness_flrgb/summary

This paper innovatively proposes the use of dynamic threshold (dynamic threshold) As a method of screening unlabeled samples for semi-supervised learning (SSL), we transformed the training framework of semi-supervised learning and improved the selection strategy of unlabeled samples during the training process by dynamically changing thresholds. Select more effective unlabeled samples for training. Dash is a general strategy that can be easily integrated with existing semi-supervised learning methods. Experimentally, we fully verified its effectiveness on standard data sets such as CIFAR-10, CIFAR-100, STL-10 and SVHN. In theory, the paper proves the convergence properties of the Dash algorithm from the perspective of non-convex optimization.

3. Method

Fixmatch training framework

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

Before introducing our method Dash, we introduce the FixMatch algorithm proposed by Google, a semi-supervised learning method that uses a fixed threshold to select unlabeled samples. The FixMatch training framework was the previous SOTA solution. The key points of the entire learning framework can be summarized as the following points:

1. For unlabeled data, samples obtained through weak data enhancement (horizontal flipping, offset, etc.) are obtained through the current model Predicted value Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

2. For samples obtained by strong data enhancement (RA or CTA) of unlabeled data, the predicted value is obtained through the current model Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

3. Use the result of weak data enhancement Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs with high confidence to form a pseudo label Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs through one hot method, and then use Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs and X to predict the result of strong data enhancement The value Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs is used to train the model.

The advantage of fixmatch is that it uses weakly enhanced data to predict pseudo labels, which increases the accuracy of pseudo label predictions, and uses a fixed threshold of 0.95 during the training process (corresponding to a loss of 0.0513 ) Select prediction samples with high confidence (the threshold is greater than or equal to 0.95, that is, the loss is less than or equal to 0.0513) to generate pseudo labels, which further stabilizes the training process.

#Dash training framework

For the problem of selecting all pseudo-labels and selecting pseudo-labels with a fixed threshold, we Innovatively proposes a strategy of using dynamic thresholds for sample screening. That is, the dynamic threshold Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs is attenuated with t

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

In the formula, C=1.0001, Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs is the average loss of labeled data after the first epoch, and we select those Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs unlabeled samples to participate in gradient backpropagation. The figure below shows the change curve of the threshold Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs under different Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs values. You can see that the parameter Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs controls the rate of decline of the threshold curve. The change curve of Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs is similar to the downward trend of the loss function when simulating the training model.

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

The following figure compares the number of correct samples and the number of incorrect samples selected by FixMath and Dash during the training process as the training progresses changes (the data set used is cifar100). It can be clearly seen from the figure that compared to FixMatch, Dash can select more samples with correct labels and fewer samples with wrong labels, which ultimately helps to improve the accuracy of the training model.

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

Our algorithm can be summarized as follows Algorithm 1. Dash is a general strategy that can be easily integrated with existing semi-supervised learning methods. For convenience, in the experiments of this article we mainly integrate Dash with FixMatch. For more theoretical proofs, see the paper.

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

4. Results

We use commonly used data sets in semi-supervised learning: CIFAR-10, CIFAR-100, STL-10 The algorithm was verified on SVHN. The results are as follows:

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

Damo Academys open source semi-supervised learning framework Dash refreshes many SOTAs

It can be seen that our method has achieved better results in multiple experimental settings. SOTA has better results. What needs to be explained is the experiment on CIFAR-100 400label. ReMixMatch used the additional trick of data align to achieve better results. After adding the trick of data align to Dash, an error rate of 43.31% can be achieved. , lower than ReMixMatch’s 44.28% error rate.

5. Application

In the actual research and development process of task domain-oriented models, the semi-supervised Dash framework is often applied. Next, I will introduce to you the open source free models we have developed in various domains. You are welcome to experience and download (you can experience it on most mobile phones):

  • ​https://modelscope.cn/models/damo/cv_resnet50_face-detection_retinaface/summary​
  • ​https://modelscope.cn/models/damo/cv_resnet101_face-detection_cvpr22papermogface/summary​
  • ​https://modelscope.cn/models/damo/cv_manual_face-detection_tinymog/summary​
  • ​https://modelscope.cn/models/damo/cv_manual_face-detection_ulfd/summary​
  • ​https://modelscope.cn/models/damo/cv_manual_face-detection_mtcnn/summary​
  • ​https://modelscope.cn/models/damo/cv_resnet_face-recognition_facemask/summary​
  • ​https://modelscope.cn/models/damo/cv_ir50_face-recognition_arcface/summary​
  • ​https://modelscope.cn/models/damo/cv_manual_face-liveness_flir/summary​
  • ​https://modelscope.cn/models/damo/cv_manual_face-liveness_flrgb/summary​
  • ​https://modelscope.cn/models/damo/cv_manual_facial-landmark-confidence_flcm/summary​
  • ​https://modelscope.cn/models/damo/cv_vgg19_facial-expression-recognition_fer/summary​
  • ​https://modelscope.cn/models/damo/cv_resnet34_face-attribute-recognition_fairface/summary​

The above is the detailed content of Damo Academy's open source semi-supervised learning framework Dash refreshes many SOTAs. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:51cto.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!