Adversarial text sample generation method and device and storage medium

A text and sample technology, applied in the field of adversarial text sample generation methods, devices and storage media, can solve problems such as language disorders, difficulty in obtaining smooth and semantically adversarial samples, and discrete text samples, and achieve semantic smoothness and optimal attack. effect, good robustness effect

Pending Publication Date: 2021-11-26
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, different from the field of machine vision, the text samples in the field of natural language processing are usually discrete. If the best adversarial samples are generated by

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
  • Adversarial text sample generation method and device and storage medium
  • Adversarial text sample generation method and device and storage medium
  • Adversarial text sample generation method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0064] The embodiments of the present application may acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .

[0065] Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometrics technology, speech processing technology, na...

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 invention relates to the technical field of artificial intelligence, and provides an adversarial text sample generation method and device and a storage medium, the adversarial text sample generation method comprises the following steps: obtaining a first model obtained by training a plurality of first text samples; obtaining a plurality of second text samples which are similar to the first text samples in semantics; obtaining at least one to-be-trained text sample from the plurality of second text samples, and inputting the at least one to-be-trained text sample into the first model to obtain a prediction recognition result; determining at least one alternative text sample; performing parameter adjustment on the first model according to the at least one alternative text sample; and obtaining to-be-trained text samples from the remaining text samples of the plurality of second text samples until a prediction recognition result corresponding to each obtained to-be-trained text sample is consistent with an actual recognition result, and determining all alternative text samples as optimal confrontation text samples. By implementing the method, the optimal confrontation text sample with smooth semantics can be obtained, and the robustness of the model is improved.

Description

technical field [0001] The present application relates to the technical field of artificial intelligence, and in particular to a method, device and storage medium for generating an adversarial text sample. Background technique [0002] Adversarial attacks are an emerging intersection of machine learning and computer security. The technology of adversarial attacks mainly includes two aspects: how to find the most effective and representative best adversarial samples, and the other direction is how to effectively defend against adversarial samples. There have been a lot of exploration and application of adversarial attacks in the field of machine vision. In the field of machine vision, the way to generate the best adversarial samples is often to add small perturbations to the original samples. After adding the perturbed samples, the human eye cannot see the difference. , but due to the addition of small perturbations, it often makes artificial intelligence (AI) model recognit...

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
IPC IPC(8): G06F40/30G06F40/279G06F40/211G06K9/62
CPCG06F40/30G06F40/279G06F40/211G06F18/22G06F18/214
Inventor 南海顺
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products