WO2022252017A1 - Method and apparatus for deep learning - Google Patents

Method and apparatus for deep learning Download PDF

Info

Publication number
WO2022252017A1
WO2022252017A1 PCT/CN2021/097267 CN2021097267W WO2022252017A1 WO 2022252017 A1 WO2022252017 A1 WO 2022252017A1 CN 2021097267 W CN2021097267 W CN 2021097267W WO 2022252017 A1 WO2022252017 A1 WO 2022252017A1
Authority
WO
WIPO (PCT)
Prior art keywords
samples
adversarially
deep learning
labels
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/097267
Other languages
French (fr)
Inventor
Yinpeng DONG
Xiao Yang
Zhijie Deng
Tianyu PANG
Hang SU
Jun Zhu
Ze CHENG
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Robert Bosch GmbH
Original Assignee
Tsinghua University
Robert Bosch GmbH
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University, Robert Bosch GmbH filed Critical Tsinghua University
Priority to US18/565,510 priority Critical patent/US20240256889A1/en
Priority to CN202180098740.1A priority patent/CN117441173A/en
Priority to DE112021007308.7T priority patent/DE112021007308T5/en
Priority to PCT/CN2021/097267 priority patent/WO2022252017A1/en
Publication of WO2022252017A1 publication Critical patent/WO2022252017A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/09Supervised learning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/094Adversarial learning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N7/00Computing arrangements based on specific mathematical models
    • G06N7/01Probabilistic graphical models, e.g. probabilistic networks

Definitions

  • aspects of the present disclosure relate generally to artificial intelligence or machine learning, and more particularly, to a method and an apparatus for deep learning.
  • DNNs Deep neural networks
  • DNNs Deep neural networks
  • DNNs are highly expressive models that have recently achieved state of the art performance on speech and visual recognition tasks.
  • adversarial examples adversarially perturbed examples that cause mis-classification while being nearly “imperceptible” , i.e., close to the original example.
  • adversarially training has proven to be among the most effective defense techniques, in which the network is trained on the adversarially augmented samples instead of on the natural or original ones.
  • a method for deep learning comprising: receiving, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augmenting, by the deep learning model, the plurality of samples based on a threat model; and assigning, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
  • apparatus for deep learning comprises a memory; and at least one processor coupled to the memory.
  • the at least one processor is configured to receive, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augment, by the deep learning model, the plurality of samples based on a threat model; and assign, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
  • a computer program product for deep learning comprises processor executable computer code for receiving, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augmenting, by the deep learning model, the plurality of samples based on a threat model; and assigning, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
  • a computer readable medium stores computer code for deep learning.
  • the computer code when executed by a processor causes the processor to receive, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augment, by the deep learning model, the plurality of samples based on a threat model; and assign, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
  • the presented method may leverage all training samples to suffice the need of sample complexity for adversarially training and hinder deep learning models from excessive memorization of one-hot labels in adversarially training.
  • FIG. 1 shows an example of robust overfitting.
  • FIG. 2 illustrates an example flow diagram of method according to one or more aspects of the present disclosure.
  • FIG. 3 shows a conceptual illustration of decision boundaries.
  • FIG. 4A and FIG. 4B show the natural and robust training accuracies of PGD-AT and TRADES, respectively, when trained on true or random labels, with explicit regularizations turned off.
  • FIG. 4C shows the generalization gap under varying levels of label noise from 0% (true labels) to 100% (completely random labels) .
  • FIG. 5 illustrates an example of a hardware implementation for an apparatus according to one or more aspects of the present disclosure.
  • FIG. 1 shows an example of robust overfitting, where four accuracy curves of TRADES (TRadeoff-inspired Adversarial DEfense via Surrogate-loss minimization) on CIFAR-10 illustrate a standard generalization gap between natural training accuracy and natural test accuracy, and a robust generalization gap between robust training accuracy and robust test accuracy respectively.
  • TRADES TRadeoff-inspired Adversarial DEfense via Surrogate-loss minimization
  • the present disclosure proposes a method for mitigating robust overfitting.
  • the present disclosure identifies that the cause of robust overfitting of adversarially training may lie in memorization of one-hot labels.
  • Some samples may naturally lie close to a decision boundary (e.g., may be referred to as “hard” samples hereafter) , and should be assigned a low prediction confidence for the corresponding worst-case adversarially augmented samples relative to the samples that are located relatively far from the decision boundary (e.g., may be referred to as “easy” samples hereafter) . Because it may be difficult for a network to assign one-hot labels for all perturbed samples within a perturbation budget, and labels can be inappropriate for some adversarially augmented samples that lie close to the decision boundary.
  • the true labels of some training samples may be noisy for adversarially training.
  • the true one-hot labels of some training samples may become wrong labels when being attacked by augmenting some perturbations, particularly for the “hard” samples.
  • a deep learning model may start to memorize these “hard” training samples with noisy labels, leading to a degeneration of test robustness.
  • the presented method for mitigating robust overfitting proposes to fit relatively “easy” samples with one-hot labels and assign a low predictive confidence for “hard” samples in adversarially training.
  • the presented method may leverage all training samples to suffice the need of sample complexity for adversarially training and hinder deep learning models from excessive memorization of one-hot labels in adversarially training.
  • FIG. 2 illustrates an example flow diagram of method 200 according to one or more aspects of the present disclosure.
  • Method 200 may be performed by a deep learning model.
  • a plurality of samples and a plurality of labels corresponding to the plurality of samples may be received by the deep learning model.
  • the plurality of samples and the plurality of labels corresponding to the plurality of samples may comprise a training dataset.
  • the plurality of samples may be adversarially augmented by the deep learning model based on a threat model.
  • the deep learning model may comprise an adversarial defense method or model in deep learning under black-box attacks or white-box attacks.
  • a low predictive confidence may be assigned by the deep learning model to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
  • “hard” samples may be assigned a low predictive confidence than “easy” samples.
  • the plurality of labels may comprise one-hot labels.
  • the deep learning model may comprise one or more of projected gradient descent adversarial training (PGD-AT) , or TRADES.
  • the threat model may comprise one or more of l 2 -norm threat model, or l ⁇ -norm threat model.
  • FIG. 3 shows a conceptual illustration of decision boundaries.
  • the present disclosure proposes to consider models trained on random labels, in addition to true labels as usual. It is shown in FIG. 3 decision boundaries learned via standard training and adversarially training with true and random labels, respectively. As shown in FIG. 3, there may be a significantly more complicated decision boundary when training samples with random labels.
  • FIG. 4A, FIG. 4B, and FIG. 4C illustrate adversarially training with random labels on CIFAR-10.
  • FIG. 4A and FIG. 4B show the natural and robust training accuracies of PGD-AT and TRADES, respectively, when trained on true or random labels, with explicit regularizations turned off. For both methods, the network achieves almost 100%natural and robust training accuracies when trained on true labels.
  • the labels are random, totally different behaviors are observed between PGD-AT and TRADES -PGD-AT fails to converge while TRADES still reaches nearly 100%training accuracies.
  • FIG. 4C shows the generalization gap under varying levels of label noise from 0% (true labels) to 100% (completely random labels) .
  • PGD-AT fails to converge and TRADES can converge under this circumstance.
  • the latter may demonstrate that deep learning networks may have sufficient capacity to memorize adversarial samples of training dataset with completely random labels.
  • the convergence issue of PGD-AT when trained on random labels may result from the intrinsic algorithm, i.e., adversarial loss function of PGD-AT.
  • PGD-AT formulates adversarial training as the following robust optimization problem:
  • f ⁇ may be a DNN classifier with parameters ⁇ that predicts probabilities over all classes
  • TRADES formulates adversarially training by minimizing a different adversarial loss:
  • classification loss e.g., the cross-entropy loss
  • is a balancing hyperparameter
  • TRADES in Eq. (2) may minimize a clean cross-entropy loss on natural samples, which may make DNNs memorize natural samples with random labels at first, before fitting adversarial samples. It can be seen from FIG. 4B that at the very early stage of TRADES training (e.g., the first 25 epochs) , the natural accuracy starts to increase while the robust accuracy does not. But differently, PGD-AT in Eq. (1) directly minimizes the cross-entropy loss on adversarial samples with random labels, which could introduce unstable gradients with large variance, making it fail to converge.
  • the cross-entropy loss on natural samples may be added into the PGD-AT objective (e.g., Eq. (1) ) to resemble the learning of TRADES with random labels, which may be written as:
  • the training on random labels can successfully converge.
  • the improvement from Eq. (1) (failing to converge) to Eq. (3) (able to converge) may indicate that it may be beneficial to fit relatively “easy” samples with one-hot labels and assign a low predictive confidence for “hard” samples in adversarially training.
  • the corresponding adversarially augmented samples may become closer to or even cross the decision boundary due to the attacking, which may result in noisy labels.
  • the present disclosure identifies that several typical methods training models on the identified clean samples may be not suitable for adversarially training. Because these methods will neglect a portion of training data with noisy labels, which can lead to inferior results for adversarially training due to the reduction of sample complexity.
  • the present disclosure proposes to regularize the predictions of adversarial samples from being over-confident by integrating the temporal ensembling (TE) approach into the adversarial training frameworks. TE maintains an ensemble prediction of each data and penalizes the difference between the current prediction and the ensemble prediction.
  • TE temporal ensembling
  • the present disclosure identifies that TE is suitable for adversarially training since it enables to leverage all training samples and hinders the network from excessive memorization of one-hot labels with a regularization term.
  • the training objective of PGD-AT may be rewritten as:
  • TE may be similarly integrated with TRADES with the same regularization term.
  • regularization term the deep learning model would learn to fit relatively “easy” samples with one-hot labels and assign low confidence for “hard” samples at initial. After the learning rate decays, the regularization term may avoid fitting one-hot labels for the “hard” samples. Therefore, the proposed algorithm may enable to learn under label noise in adversarially training and alleviate the robust overfitting problem.
  • FIG. 5 illustrates an example of a hardware implementation for an apparatus 500 according to one or more aspects of the present disclosure.
  • the apparatus 500 for deep learning may comprise a memory 510 and at least one processor 520.
  • the processor 52 0 may be coupled to the memory 510 and configured to perform the method 200 described above with reference to FIG. 2 and one or more aspects of the present disclosure.
  • the processor 520 may be a general-purpose processor, or may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • the memory 510 may store the input data, output data, data generated by processor 520, and/or instructions executed by processor 520.
  • a computer program product for deep learning may comprise processor executable computer code for performing the method 200 described above with reference to FIG. 2 and one or more aspects of the present disclosure.
  • a computer readable medium may store computer code for deep learning, the computer code when executed by a processor may cause the processor to perform the method 200 described above with reference to FIG. 2 and one or more aspects of the present disclosure.
  • Computer-readable media includes both non-transitory computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Any connection may be properly termed as a computer-readable medium. Other embodiments and implementations are within the scope of the disclosure.
  • the method described in the present disclosure may be implemented by software, hardware, firmware, or any combination thereof, and may provide a machine learning model that is configured to perform one or more particular machine learning tasks.
  • the machine learning tasks may include speech and visual recognition tasks.
  • the machine learning tasks may be an agent control task carried out in a control system for automatic driving, a control system for an industrial facility, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Molecular Biology (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present disclosure provides a method for deep learning. The method comprises: receiving, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augmenting, by the deep learning model, the plurality of samples based on a threat model; and assigning, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.

Description

METHOD AND APPARATUS FOR DEEP LEARNING FIELD
Aspects of the present disclosure relate generally to artificial intelligence or machine learning, and more particularly, to a method and an apparatus for deep learning.
BACKGROUND
Deep neural networks (DNNs) have proved their effectiveness on a variety of domains and tasks. For example, DNNs are highly expressive models that have recently achieved state of the art performance on speech and visual recognition tasks. However, it has been found that DNNs are highly vulnerable to adversarial examples: adversarially perturbed examples that cause mis-classification while being nearly “imperceptible” , i.e., close to the original example. To enhance the robustness of DNNs against adversarial examples, adversarially training has proven to be among the most effective defense techniques, in which the network is trained on the adversarially augmented samples instead of on the natural or original ones.
However, a key problem of adversarially training is that, unlike in traditional deep learning, overfitting is a dominant phenomenon in adversarially training of deep networks. That is, adversarially training has the property that, after a certain point, further training will continue to substantially decrease the robust training loss, while increasing the robust test loss, witnessing a significant generalization gap. This failure on robust generalization may be surprising particularly since properly tuned DNNs (e.g., convolutional networks) rarely overfit much on standard vision datasets.
Many efforts have been devoted to studying robust generalization of adversarially training theoretically or empirically. In an aspect, some study results show that significantly increased sample complexity may be necessary for robust generalization, since robust generalization may require a more nuanced understanding of the data distribution than standard generalization. In another aspect, when the number of parameters is large, some theory suggests that some form of regularization is needed to ensure small generalization error.
It may be desirable to provide a method to mitigate robust overfitting and achieve better robustness.
SUMMARY
The following presents a simplified summary of one or more aspects according to the present disclosure in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
In an aspect of the disclosure, a method for deep learning, comprising: receiving, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augmenting, by the deep learning model, the plurality of samples based on a threat model; and assigning, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
In another aspect of the disclosure, apparatus for deep learning comprises a memory; and at least one processor coupled to the memory. The at least one processor is configured to receive, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augment, by the deep learning model, the plurality of samples based on a threat model; and assign, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
In another aspect of the disclosure, a computer program product for deep learning comprises processor executable computer code for receiving, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augmenting, by the deep learning model, the plurality of samples based on a threat model; and assigning, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
In another aspect of the disclosure, a computer readable medium stores computer code for deep learning. The computer code when executed by a processor causes the processor to receive, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples; adversarially augment, by the deep learning model, the plurality of samples based on a threat model; and assign, by the deep learning model, a low predictive confidence to one or more adversarially  augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
To assign a relatively low predictive confidence for adversarially augmented samples having noisy labels in adversarially training, the presented method may leverage all training samples to suffice the need of sample complexity for adversarially training and hinder deep learning models from excessive memorization of one-hot labels in adversarially training.
Other aspects or variations of the disclosure, as well as other advantages thereof will become apparent by consideration of the following detailed description and accompanying drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
The disclosed aspects will hereinafter be described in connection with the appended drawings that are provided to illustrate and not to limit the disclosed aspects.
FIG. 1 shows an example of robust overfitting.
FIG. 2 illustrates an example flow diagram of method according to one or more aspects of the present disclosure.
FIG. 3 shows a conceptual illustration of decision boundaries.
FIG. 4A and FIG. 4B show the natural and robust training accuracies of PGD-AT and TRADES, respectively, when trained on true or random labels, with explicit regularizations turned off.
FIG. 4C shows the generalization gap under varying levels of label noise from 0% (true labels) to 100% (completely random labels) .
FIG. 5 illustrates an example of a hardware implementation for an apparatus according to one or more aspects of the present disclosure.
DETAILED DESCRIPTION
The present disclosure will now be discussed with reference to several example implementations. It is to be understood that these implementations are discussed only for enabling those skilled in the art to better understand and thus implement the embodiments of the present disclosure, rather than suggesting any limitations on the scope of the present disclosure.
Recent studies identify the robust overfitting phenomenon in adversarially training, i.e., shortly after the first learning rate decay, further training will continue to decrease the robust test accuracy. It further identifies that several remedies for overfitting, including explicit l 1 and l 2 regularization, data augmentation, etc., cannot  gain improvements upon early stopping. Although robust overfitting has been thoroughly investigated, there may still lack an explanation of why it occurs. FIG. 1 shows an example of robust overfitting, where four accuracy curves of TRADES (TRadeoff-inspired Adversarial DEfense via Surrogate-loss minimization) on CIFAR-10 illustrate a standard generalization gap between natural training accuracy and natural test accuracy, and a robust generalization gap between robust training accuracy and robust test accuracy respectively. As shown in FIG. 1, after the first learning rate decay (e.g., around 100 epochs) , further training will continue to increase the natural test accuracy, however to decrease the robust test accuracy steadily, witnessing growing robust generalization gap.
The present disclosure proposes a method for mitigating robust overfitting. The present disclosure identifies that the cause of robust overfitting of adversarially training may lie in memorization of one-hot labels. Some samples may naturally lie close to a decision boundary (e.g., may be referred to as “hard” samples hereafter) , and should be assigned a low prediction confidence for the corresponding worst-case adversarially augmented samples relative to the samples that are located relatively far from the decision boundary (e.g., may be referred to as “easy” samples hereafter) . Because it may be difficult for a network to assign one-hot labels for all perturbed samples within a perturbation budget, and labels can be inappropriate for some adversarially augmented samples that lie close to the decision boundary. In one aspect of the present disclosure, the true labels of some training samples may be noisy for adversarially training. As an example, the true one-hot labels of some training samples may become wrong labels when being attacked by augmenting some perturbations, particularly for the “hard” samples. As another example, after a certain epoch in training, a deep learning model may start to memorize these “hard” training samples with noisy labels, leading to a degeneration of test robustness.
To address this identified problem, the presented method for mitigating robust overfitting proposes to fit relatively “easy” samples with one-hot labels and assign a low predictive confidence for “hard” samples in adversarially training. The presented method may leverage all training samples to suffice the need of sample complexity for adversarially training and hinder deep learning models from excessive memorization of one-hot labels in adversarially training.
FIG. 2 illustrates an example flow diagram of method 200 according to one or more aspects of the present disclosure. Method 200 may be performed by a deep learning model. At block 210, a plurality of samples and a plurality of labels corresponding to the plurality of samples may be received by the deep learning model. In one aspect of the present disclosure, the plurality of samples and the plurality of  labels corresponding to the plurality of samples may comprise a training dataset.
At block 220, the plurality of samples may be adversarially augmented by the deep learning model based on a threat model. In one aspect of the present disclosure, the deep learning model may comprise an adversarial defense method or model in deep learning under black-box attacks or white-box attacks.
At block 230, a low predictive confidence may be assigned by the deep learning model to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model. In one aspect of the present disclosure, after being adversarially augmented, “hard” samples may be assigned a low predictive confidence than “easy” samples.
As an example, the plurality of labels may comprise one-hot labels. As another example, the deep learning model may comprise one or more of projected gradient descent adversarial training (PGD-AT) , or TRADES. As a further example, the threat model may comprise one or more of l 2-norm threat model, or l -norm threat model.
It will be appreciated by those skilled that other models or labels may be possible, and one or more additional steps may be included in the method 200.
FIG. 3 shows a conceptual illustration of decision boundaries. In order to illustrate the identified cause of robust overfitting and influences of “hard” samples and “easy” samples on adversarially training, the present disclosure proposes to consider models trained on random labels, in addition to true labels as usual. It is shown in FIG. 3 decision boundaries learned via standard training and adversarially training with true and random labels, respectively. As shown in FIG. 3, there may be a significantly more complicated decision boundary when training samples with random labels.
In order to illustrate potential behaviors of defense models under extreme condition, such as random labels, adversarially training is performing by PGD-AT and TRADES with random labels sampled uniformly over all classes. FIG. 4A, FIG. 4B, and FIG. 4C illustrate adversarially training with random labels on CIFAR-10. FIG. 4A and FIG. 4B show the natural and robust training accuracies of PGD-AT and TRADES, respectively, when trained on true or random labels, with explicit regularizations turned off. For both methods, the network achieves almost 100%natural and robust training accuracies when trained on true labels. When the labels are random, totally different behaviors are observed between PGD-AT and TRADES -PGD-AT fails to converge while TRADES still reaches nearly 100%training accuracies. FIG. 4C shows the generalization gap under varying levels of label noise  from 0% (true labels) to 100% (completely random labels) .
As shown in FIG. 4A and FIG. 4B, PGD-AT fails to converge and TRADES can converge under this circumstance. The latter may demonstrate that deep learning networks may have sufficient capacity to memorize adversarial samples of training dataset with completely random labels. Furthermore, the convergence issue of PGD-AT when trained on random labels may result from the intrinsic algorithm, i.e., adversarial loss function of PGD-AT.
PGD-AT formulates adversarial training as the following robust optimization problem:
Figure PCTCN2021097267-appb-000001
Where let
Figure PCTCN2021097267-appb-000002
denote a training dataset with n samples, where x i∈R d is a natural sample and y i∈ {1, …, C} is its true label often encoded as an one-hot vector
Figure PCTCN2021097267-appb-000003
with totally C classes. Where f θ may be a DNN classifier with parameters θ that predicts probabilities over all classes, 
Figure PCTCN2021097267-appb-000004
is the classification loss (e.g., the cross-entropy loss as
Figure PCTCN2021097267-appb-000005
and S (x) = {x′: ‖x′-x‖ p≤∈} is an adversarial region centered at x with radius ∈>0 under the l p-norm threat models (e.g., l 2 and l  norms) .
TRADES formulates adversarially training by minimizing a different adversarial loss:
Figure PCTCN2021097267-appb-000006
Where
Figure PCTCN2021097267-appb-000007
is the classification loss (e.g., the cross-entropy loss) , 
Figure PCTCN2021097267-appb-000008
is the Kullback–Leibler divergence, and β is a balancing hyperparameter.
In one aspect of the present disclosure, it is identified that TRADES in Eq. (2) may minimize a clean cross-entropy loss on natural samples, which may make DNNs memorize natural samples with random labels at first, before fitting adversarial samples. It can be seen from FIG. 4B that at the very early stage of TRADES training (e.g., the first 25 epochs) , the natural accuracy starts to increase while the robust  accuracy does not. But differently, PGD-AT in Eq. (1) directly minimizes the cross-entropy loss on adversarial samples with random labels, which could introduce unstable gradients with large variance, making it fail to converge.
Based on the analysis, the cross-entropy loss on natural samples may be added into the PGD-AT objective (e.g., Eq. (1) ) to resemble the learning of TRADES with random labels, which may be written as:
Figure PCTCN2021097267-appb-000009
Where γ is gradually increased from 0 to 1.
By using the improved adversarial loss (i.e., Eq. (3) ) , the training on random labels can successfully converge. The improvement from Eq. (1) (failing to converge) to Eq. (3) (able to converge) may indicate that it may be beneficial to fit relatively “easy” samples with one-hot labels and assign a low predictive confidence for “hard” samples in adversarially training. In one aspect of the present disclosure, as shown in FIG. 3, in the two images of right column, relative to the natural samples (for example, as indicated by 310) , the corresponding adversarially augmented samples (for example, as indicated by 320) may become closer to or even cross the decision boundary due to the attacking, which may result in noisy labels. Therefore, memorizing natural samples (that may be easier relative to corresponding adversarially augmented samples) with random labels at first, before fitting adversarial samples, as identified in Eq. (2) and utilized in Eq. (3) , can improve the adversarially training even under extreme condition, such as random labels.
In one aspect of the present disclosure, the present disclosure identifies that several typical methods training models on the identified clean samples may be not suitable for adversarially training. Because these methods will neglect a portion of training data with noisy labels, which can lead to inferior results for adversarially training due to the reduction of sample complexity. In another aspect of the present disclosure, the present disclosure proposes to regularize the predictions of adversarial samples from being over-confident by integrating the temporal ensembling (TE) approach into the adversarial training frameworks. TE maintains an ensemble prediction of each data and penalizes the difference between the current prediction and the ensemble prediction. In further aspect of the present disclosure, the present disclosure identifies that TE is suitable for adversarially training since it enables to leverage all training samples and hinders the network from excessive memorization of one-hot labels with a regularization term.
In an example, by adding a regularization term of TE, the training objective of PGD-AT may be rewritten as:
Figure PCTCN2021097267-appb-000010
Where ensemble prediction of a training sample x i is denoted as Ρ i, which is updated after each training epoch as Ρ i←η·Ρ i+ (1-η) ·f θ (x i) , where η is the momentum term. Wherein
Figure PCTCN2021097267-appb-000011
is the normalization of Ρ i as a probability vector and ω is a balancing weight.
In another example, TE may be similarly integrated with TRADES with the same regularization term. With the regularization term, the deep learning model would learn to fit relatively “easy” samples with one-hot labels and assign low confidence for “hard” samples at initial. After the learning rate decays, the regularization term may avoid fitting one-hot labels for the “hard” samples. Therefore, the proposed algorithm may enable to learn under label noise in adversarially training and alleviate the robust overfitting problem.
It will be appreciated by those skilled that other algorithms may be possible to perform the method 200 described above with reference to FIG. 2.
To evaluate the performance of the proposed algorithm, experiment results are listed in Table 1. It is reported in Table 1 the test accuracy on the best checkpoint obtaining the highest robust accuracy under PGD-10 and the final checkpoint, as well as the difference between these two checkpoints. Besides PGD-10, PGD-1000, C&W-1000, AutoAttack and SPSA also be adopted for a more rigorous robustness evaluation. It can be observed that the difference between best and final test accuracies is reduce to around 1%. Due to the mitigation of robust overfitting, the proposed method or algorithm may achieve better robustness.
Table 1. Test accuracy (%) of several methods on CIFAR-10 under the l  norm with ∈=8/255 based on the ResNet-18 architecture.
Figure PCTCN2021097267-appb-000012
FIG. 5 illustrates an example of a hardware implementation for an apparatus 500 according to one or more aspects of the present disclosure. The apparatus 500 for deep learning may comprise a memory 510 and at least one processor 520. The processor 52 0 may be coupled to the memory 510 and configured  to perform the method 200 described above with reference to FIG. 2 and one or more aspects of the present disclosure. The processor 520 may be a general-purpose processor, or may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. The memory 510 may store the input data, output data, data generated by processor 520, and/or instructions executed by processor 520.
The various operations, models, and networks described in connection with the disclosure herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. According one or more aspects of the disclosure, a computer program product for deep learning may comprise processor executable computer code for performing the method 200 described above with reference to FIG. 2 and one or more aspects of the present disclosure. According to one or more aspects of the disclosure, a computer readable medium may store computer code for deep learning, the computer code when executed by a processor may cause the processor to perform the method 200 described above with reference to FIG. 2 and one or more aspects of the present disclosure. Computer-readable media includes both non-transitory computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Any connection may be properly termed as a computer-readable medium. Other embodiments and implementations are within the scope of the disclosure.
The method described in the present disclosure may be implemented by software, hardware, firmware, or any combination thereof, and may provide a machine learning model that is configured to perform one or more particular machine learning tasks. In one example, the machine learning tasks may include speech and visual recognition tasks. In another example, the machine learning tasks may be an agent control task carried out in a control system for automatic driving, a control system for an industrial facility, or the like.
The preceding description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the various embodiments. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the scope of the various embodiments. Thus, the claims are not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the following claims and the principles and novel features disclosed herein.

Claims (11)

  1. A method for deep learning, comprising:
    receiving, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples;
    adversarially augmenting, by the deep learning model, the plurality of samples based on a threat model; and
    assigning, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
  2. The method of claim 1, wherein the plurality of labels comprising one-hot labels.
  3. The method of claim 2, wherein the one or more adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model are located closely to a decision boundary.
  4. The method of claim 1, wherein the assigning the low predictive confidence to the one or more adversarially augmented samples having noisy labels is performed by regularizing predictions of the plurality of adversarially augmented samples via temporal ensembling (TE) .
  5. The method of claim 4, wherein the deep learning model comprising one or more of projected gradient descent adversarial training (PGD-AT) , or TRadeoff-inspired Adversarial DEfense via Surrogate-loss minimization (TRADES) .
  6. The method of claim 1, wherein the threat model comprising one or more of 
    Figure PCTCN2021097267-appb-100001
    -norm threat model, or
    Figure PCTCN2021097267-appb-100002
    -norm threat model.
  7. An apparatus for deep learning, comprising:
    a memory; and
    at least one processor coupled to the memory and configured to perform the method of one of claims 1-6.
  8. A computer program product for deep learning, comprising: processor executable computer code for performing the method of one of claims 1-6.
  9. A computer readable medium, storing computer code for deep learning, the computer code when executed by a processor, causing the processor to perform the method of one of claims 1-6.
  10. A method for visual recognition, comprising:
    receiving, by a deep learning model, a plurality of samples and a plurality of labels corresponding to the plurality of samples, wherein the deep learning model is configured to perform a visual recognition task and the plurality of samples comprising a plurality of images;
    adversarially augmenting, by the deep learning model, the plurality of samples based on a threat model; and
    assigning, by the deep learning model, a low predictive confidence to one or more adversarially augmented samples of the plurality of adversarially augmented samples having noisy labels due to the adversarially augmenting based on the threat model.
  11. The method of claim 10, wherein the plurality of samples and the plurality of labels corresponding to the plurality of samples comprising one or more of CIFAR-10 training dataset, or MNIST training dataset.
PCT/CN2021/097267 2021-05-31 2021-05-31 Method and apparatus for deep learning Ceased WO2022252017A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US18/565,510 US20240256889A1 (en) 2021-05-31 2021-05-31 Method and apparatus for deep learning
CN202180098740.1A CN117441173A (en) 2021-05-31 2021-05-31 Methods and apparatus for deep learning
DE112021007308.7T DE112021007308T5 (en) 2021-05-31 2021-05-31 METHOD AND APPARATUS FOR DEEP LEARNING
PCT/CN2021/097267 WO2022252017A1 (en) 2021-05-31 2021-05-31 Method and apparatus for deep learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/097267 WO2022252017A1 (en) 2021-05-31 2021-05-31 Method and apparatus for deep learning

Publications (1)

Publication Number Publication Date
WO2022252017A1 true WO2022252017A1 (en) 2022-12-08

Family

ID=76444194

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097267 Ceased WO2022252017A1 (en) 2021-05-31 2021-05-31 Method and apparatus for deep learning

Country Status (4)

Country Link
US (1) US20240256889A1 (en)
CN (1) CN117441173A (en)
DE (1) DE112021007308T5 (en)
WO (1) WO2022252017A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12189662B1 (en) * 2023-11-21 2025-01-07 Jpmorgan Chase Bank, N.A. Systems and methods for fairness-aware data distillation for attribute classification
CN118849286B (en) * 2024-09-24 2025-02-28 青岛海益塑业有限责任公司 A method, medium and system for determining drying parameters in the production process of HIPS boards
CN120071936B (en) * 2025-04-25 2025-07-11 浪潮智慧供应链科技(山东)有限公司 Intelligent shopping guide voice recognition method and system based on transfer learning

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200372301A1 (en) * 2019-05-21 2020-11-26 Retrace Labs Adversarial Defense Platform For Automated Dental Image Classification
CN110995652B (en) * 2019-11-04 2021-11-12 中国电子科技网络信息安全有限公司 Big data platform unknown threat detection method based on deep migration learning

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BO HAN ET AL: "A Survey of Label-noise Representation Learning: Past, Present and Future", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 9 November 2020 (2020-11-09), XP081809994 *
LESLIE RICE ET AL: "Overfitting in adversarially robust deep learning", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 26 February 2020 (2020-02-26), XP081608597 *
TAHERI SHAYAN ET AL: "RazorNet: Adversarial Training and Noise Training on a Deep Neural Network Fooled by a Shallow Neural Network", BIG DATA AND COGNITIVE COMPUTING, vol. 3, no. 3, 1 September 2019 (2019-09-01), pages 43, XP055776488, DOI: 10.3390/bdcc3030043 *

Also Published As

Publication number Publication date
CN117441173A (en) 2024-01-23
US20240256889A1 (en) 2024-08-01
DE112021007308T5 (en) 2024-02-08

Similar Documents

Publication Publication Date Title
US12619874B2 (en) Stochastic gradient boosting for deep neural networks
Sagawa et al. Distributionally robust neural networks for group shifts: On the importance of regularization for worst-case generalization
Dong et al. Exploring memorization in adversarial training
Yao et al. Deep discriminative CNN with temporal ensembling for ambiguously-labeled image classification
Dieng et al. Prescribed generative adversarial networks
Warde-Farley et al. 11 adversarial perturbations of deep neural networks
Sprechmann et al. Memory-based parameter adaptation
Blundell et al. Weight uncertainty in neural network
CN109271958B (en) Face age identification method and device
WO2023019456A1 (en) Method and apparatus for evaluation of adversarial robustness
US20240256889A1 (en) Method and apparatus for deep learning
Zhao et al. Adversarial training: A survey
US20190122081A1 (en) Confident deep learning ensemble method and apparatus based on specialization
Wang et al. Posterior collapse of a linear latent variable model
Nguyen Sequencematch: Revisiting the design of weak-strong augmentations for semi-supervised learning
US12585945B2 (en) Parameter optimization method, electronic device, and storage medium
WO2023067782A1 (en) Machine learning program, machine learning method, and information processing device
Zhang et al. Toward unified data and algorithm fairness via adversarial data augmentation and adaptive model fine-tuning
Bansal et al. Metabalance: High-performance neural networks for class-imbalanced data
Cao et al. Exploring test-time adaptation for object detection in continually changing environments
US20250307654A1 (en) Training multi-task neural network while minimizing catastrophic forgetting
Sirbu et al. MultiMatch: Multihead Consistency Regularization Matching for Semi-Supervised Text Classification
Shen et al. Continual domain adversarial adaptation via double-head discriminators
Wang et al. Towards the Mitigation of Confirmation Bias in Semi-supervised Learning: a Debiased Training Perspective
Lee Bayesian weight enhancement with steady-state adaptation for test-time adaptation in dynamic environments

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21732179

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 112021007308

Country of ref document: DE

WWE Wipo information: entry into national phase

Ref document number: 202180098740.1

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 18565510

Country of ref document: US

122 Ep: pct application non-entry in european phase

Ref document number: 21732179

Country of ref document: EP

Kind code of ref document: A1