paper-with-me

Papers

AdvCodec: Towards A Unified Framework for Adversarial Text Generation

2019-09-25 · Boxin Wang, Hengzhi Pei, Han Liu, Bo Li

Machine learning (ML) especially deep neural networks (DNNs) have been widely applied to real-world applications. However, recent studies show that DNNs are vulnerable to carefully crafted \emph{adversarial examples} which only deviate from the original data by a small magnitude of perturbation. While there has been great interest on generating imperceptible adversarial examples in continuous data domain (e.g. image and audio) to explore the model vulnerabilities, generating \emph{adversarial text} in the discrete domain is still challenging. The main contribution of this paper is to propose a general targeted attack framework \advcodec for adversarial text generation which addresses the challenge of discrete input space and be easily adapted to general natural language processing (NLP) tasks. In particular, we propose a tree based autoencoder to encode discrete text data into continuous vector space, upon which we optimize the adversarial perturbation. With the tree based decoder, it is possible to ensure the grammar correctness of the generated text; and the tree based encoder enables flexibility of making manipulations on different levels of text, such as sentence (\advcodecsent) and word (\advcodecword) levels. We consider multiple attacking scenarios, including appending an adversarial sentence or adding unnoticeable words to a given paragraph, to achieve arbitrary \emph{targeted attack}. To demonstrate the effectiveness of the proposed method, we consider two most representative NLP tasks: sentiment analysis and question answering (QA). Extensive experimental results show that \advcodec has successfully attacked both tasks. In particular, our attack causes a BERT-based sentiment classifier accuracy to drop from $0.703$ to $0.006$, and a BERT-based QA model's F1 score to drop from $88.62$ to $33.21$ (with best targeted attack F1 score as $46.54$). Furthermore, we show that the white-box generated adversarial texts can transfer across other black-box models, shedding light on an effective way to examine the robustness of existing NLP models.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Adversarial TextQuestion AnsweringSentenceSentiment AnalysisText Generation

Similar Papers 제목 키워드 기반

TextCLIP: Text-Guided Face Image Generation And Manipulation Without Adversarial Training

2023-09-21 · Xiaozhou You, Jian Zhang

Text-guided image generation aimed to generate desired images conditioned on given texts, while text-guided image manipulation refers to semantically edit parts of a given image based on specified texts. For these two si…

Image GenerationImage Manipulationtext-guided-generation

UniGame: Turning a Unified Multimodal Model Into Its Own Adversary

2025-11-24 · Zhaolong Su, Wang Lu, Hao Chen, Sharon Li 외 arxiv

Unified Multimodal Models (UMMs) have shown impressive performance in both understanding and generation with a single architecture. However, UMMs still exhibit a fundamental inconsistency: understanding favors compact em…

Adversarial Robustness

Hyper-Bagel: A Unified Acceleration Framework for Multimodal Understanding and Generation

2025-09-23 · Yanzuo Lu, Xin Xia, Manlin Zhang, Huafeng Kuang 외 arxiv

Unified multimodal models have recently attracted considerable attention for their remarkable abilities in jointly understanding and generating diverse content. However, as contexts integrate increasingly numerous interl…

Text-to-Image GenerationImage Editing

Unveiling the Achilles' Heel of NLG Evaluators: A Unified Adversarial Framework Driven by Large Language Models

2024-05-23 · Yiming Chen, Chen Zhang, Danqing Luo, Luis Fernando D'Haro 외

The automatic evaluation of natural language generation (NLG) systems presents a long-lasting challenge. Recent studies have highlighted various neural metrics that align well with human evaluations. Yet, the robustness …

nlg evaluationText Generation

A Unified Framework for Adversarial Attack and Defense in Constrained Feature Space

2021-12-02 · Thibault Simonetto, Salijona Dyrmishi, Salah Ghamizi, Maxime Cordy 외

The generation of feasible adversarial examples is necessary for properly assessing models that work in constrained feature space. However, it remains a challenging task to enforce constraints into attacks that were desi…

Adversarial AttackAdversarial Robustness