On Robust Prefix-Tuning for Text Classification

By Zonghan Yang, Yang Liu. 2022

23 citations recorded by the source corpus.

Recently, prefix-tuning has gained increasing attention as a parameter-efficient finetuning method for large-scale pretrained language models. The method keeps the pretrained models fixed and only updates the prefix token parameters for each downstream task. Despite being lightweight and modular, prefix-tuning still lacks robustness to textual adversarial attacks. However, most currently developed defense techniques necessitate auxiliary model update and storage, which inevitably hamper the modularity and low storage of prefix-tuning. In this work, we propose a robust prefix-tuning framework that preserves the efficiency and modularity of prefix-tuning. The core idea of our framework is leveraging the layerwise activations of the language model by correctly-classified training data as the standard for additional prefix finetuning. During the test phase, an extra batch-level prefix is tuned for each batch and added to the original prefix for robustness enhancement. Extensive experiments on three text classification benchmarks show that our framework substantially improves robustness over several strong baselines against five textual attacks of different types while maintaining comparable accuracy on clean texts. We also interpret our robust prefix-tuning framework from the optimal control perspective and pose several directions for future research.

Subfields: Artificial Intelligence, Natural Language Processing, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Zhiyuan Liu
  2. Maosong Sun
  3. Mohit Bansal
  4. Yang Liu
  5. Jianfeng Gao
  6. Hannaneh Hajishirzi
  7. Graham Neubig
  8. Luke S. Zettlemoyer

In Natural Language Processing

  1. Zhiyuan Liu
  2. Maosong Sun
  3. Mohit Bansal
  4. Yang Liu
  5. Colin Raffel
  6. Graham Neubig
  7. Caiming Xiong
  8. Haokun Liu

In Efficiency & Compression

  1. Mohit Bansal
  2. Haitao Zheng
  3. Zhiding Yu
  4. Maosong Sun
  5. Zonghan Yang
  6. Tom Goldstein
  7. Anima Anandkumar
  8. Weilin Zhao

Citations in the corpus