Unlock instant, AI-driven research and patent intelligence for your innovation.

Natural adversarial example generation method and related device for text classifier

A technology against samples and text classification, which is applied in text database clustering/classification, neural learning methods, text database query, etc. It can solve the problems of difficulty in using gradients, difficulty in ensuring sentence fluency, and high difficulty, so as to maintain similarity, The effect of good natural language features

Active Publication Date: 2021-11-02
BEIJING UNIV OF POSTS & TELECOMM
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

First of all, since the sentence space is discrete, it is very difficult to perturb along the gradient direction. The gradient direction represents the most effective perturbation direction. If the gradient cannot be effectively used, the adversarial samples cannot be efficiently generated; secondly, the operation of adding, deleting and modifying words It is difficult to guarantee the fluency of sentences
That is to say, in the existing technology, if you want to apply the adversarial example in the field of natural language processing, there are problems that the gradient is difficult to use and the fluency of the sentence is difficult to guarantee.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Natural adversarial example generation method and related device for text classifier
  • Natural adversarial example generation method and related device for text classifier
  • Natural adversarial example generation method and related device for text classifier

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0036] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure shall have ordinary meanings understood by those skilled in the art to which the present disclosure belongs. "First", "second" and similar words used in the embodiments of the present disclosure do not indicate any sequence, quantity or importance, but are only used to distinguish different components. "Comprising" or "comprising" and similar words mean that the elements or items appearing before the word include the elements or items listed after the word and their equivalents, without excluding other elements or items. Words such as "connected" or "connected" are not lim...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The disclosure provides a natural adversarial sample generation method and related devices for text classifiers, which map the discrete vector corresponding to the text sample into a continuous space, and use the gradient to find a general disturbance in the continuous space, and control the update of the noise Threshold to further balance the relationship between attack rate and naturalness. Generating adversarial samples through this general perturbation can ensure that any sample in the sample set has good natural language characteristics after adding general perturbation, and maintains a high degree of similarity with the original sample, thus efficiently and accurately realizing text classification. Generation of natural adversarial examples for machines.

Description

technical field [0001] The present disclosure relates to the technical field of adversarial examples, in particular to a method for generating natural adversarial examples for text classifiers and related devices. Background technique [0002] Adversarial examples have been deeply researched and widely used in the field of computer vision. For example, a model receiving an image input can be made to produce a completely wrong output by adding a well-designed perturbation to the input, while the perturbation itself is so small that it is not even visible to the human eye. [0003] The effect of adversarial examples often means that the model uses unrobust features, which makes the model itself unrobust. Adversarial training uses data enhancement to mix adversarial samples into the training set in proportion, and the model trained on the new data set no longer uses these unrobust features, which will make the model more robust. [0004] How to effectively construct adversari...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/33G06F16/35G06K9/62G06N3/04G06N3/08
CPCG06F16/334G06F16/35G06N3/08G06N3/048G06N3/044G06N3/045G06F18/241
Inventor 张华高浩然杨兴国涂腾飞王华伟秦素娟高飞
Owner BEIJING UNIV OF POSTS & TELECOMM