Hai Zhao, Jiayi Wang, Rongzhou Bao
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Pre-trained contextualized language models (PrLMs) have led to strong performance gains in downstream natural language understanding tasks. However, PrLMs can still be easily fooled by adversarial word substitution, which is one of the most challenging textual adversarial attack methods. Existing defence approaches suffer from notable performance loss and complexities. Thus, this paper presents a compact and performance-preserved framework, Anomaly Detection with Frequency-Aware Randomization (ADFAR). In detail, we design an auxiliary anomaly detection classifier and adopt a multi-task learning procedure, by which PrLMs are able to distinguish adversarial input samples. Then, in order to defend adversarial word substitution, a frequency-aware randomization process is applied to those recognized adversarial input samples. Empirical results show that AD-FAR significantly outperforms those newly proposed defense methods over various tasks with much higher inference speed. Remarkably, ADFAR does not impair the overall performance of PrLMs. The code is available at https://github.com/LilyNLP/ADFAR.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2105.14553")
get_code_for_paper("2105.14553")
have("2105.14553")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2105.14553.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2105.14553)
Connect an agent — have() is free.