InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspective

Boxin Wang, Shuohang Wang, Yu Cheng, Zhe Gan, Ruoxi Jia +2 more
10/5/2020
138 citations
cs.CLcs.AIcs.LG

Official code: AI-secure/InfoBERT (85 stars, Python, last commit 2023-10-25).

Abstract

Large-scale language models such as BERT have achieved state-of-the-art performance across a wide range of NLP tasks. Recent studies, however, show that such BERT-based models are vulnerable facing the threats of textual adversarial attacks.

Show full abstract

We aim to address this problem from an information-theoretic perspective, and propose InfoBERT, a novel learning framework for robust fine-tuning of pre-trained language models. InfoBERT contains two mutual-information-based regularizers for model training: (i) an Information Bottleneck regularizer, which suppresses noisy mutual information between the input and the feature representation; and (ii) a Robust Feature regularizer, which increases the mutual information between local robust features and global features. We provide a principled way to theoretically analyze and improve the robustness of representation learning for language models in both standard and adversarial training. Extensive experiments demonstrate that InfoBERT achieves state-of-the-art robust accuracy over several adversarial datasets on Natural Language Inference (NLI) and Question Answering (QA) tasks. Our code is available at https://github.com/AI-secure/InfoBERT.

View on arXivView PDF

Code Implementations(1)

AI-secure/InfoBERTOfficial100%

[ICLR 2021] "InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspective" by Boxin Wang, Shuohang Wang, Yu Cheng, Zhe Gan, Ruoxi Jia, Bo Li, Jingjing Liu

8510Python, ShellJan 13, 20213 years ago
adversarial-attacksadversarial-defenseadversarial-robustnessbertinformation-theory+2 more

Similar Papers

Cite this paper

@article{wang2020infobert,
  title  = {InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspective},
  author = {Boxin Wang and Shuohang Wang and Yu Cheng and Zhe Gan and Ruoxi Jia and Bo Li and Jingjing Liu},
  year   = {2020},
  eprint = {2010.02329},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.02329}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.02329.svg)](https://codeofpaper.com/paper/2010.02329)

Discussion