TRAINING DEVICE, TRAINING METHOD, AND TRAINING PROGRAM
A learning device acquires learning data of a model predicting a label of input data including an adversarial example. The learning device performs learning of the model using a loss function that flattens a loss landscape with respect to a parameter by adding noise in which KL divergence of a loss value in the model becomes maximum to the parameter of the model and learning data including the adversarial example when the noise is added to the parameter of the model and when the noise is not added.
1 . A learning device comprising:
a memory; and
a processor coupled to the memory and programmed to execute a process comprising:
acquiring learning data of a model predicting a label of input data including an adversarial example; and
performing learning of the model using a loss function that flattens a loss landscape with respect to a parameter by adding noise in which KL divergence of a loss value in the model becomes maximum to the parameter and learning data including the adversarial example when the noise is added to the parameter of the model and when the noise is not added.
2 . The learning device according to claim 1 ,
wherein the performing calculates a parameter of the model minimizing the loss calculated by the loss function using the learning data.
3 . The learning device according to claim 1 , the process further comprising:
predicting the label of the input data using the learned model.
4 . A learning method, the method comprising:
acquiring learning data of a model predicting a label of input data including an adversarial example; and
performing learning of the model using a loss function that flattens a loss landscape with respect to a parameter by adding noise in which KL divergence of a loss value in the model becomes maximum to the parameter and learning data including the adversarial example when the noise is added to the parameter of the model and when the noise is not added.
5 . A non-transitory computer readable storage medium having stored therein a learning program causing a computer to execute a process comprising the steps of:
acquiring learning data of a model predicting a label of input data including an adversarial example; and
performing learning of the model using a loss function that flattens a loss landscape with respect to a parameter by adding noise in which KL divergence of a loss value in the model becomes maximum to the parameter and learning data including the adversarial example when the noise is added to the parameter of the model and when the noise is not added.