Skip to content

luka-group/PASTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PASTA

This is the repository for the resources of paper Parameter-efficient Tuning with Special Token Adaptation (EACL 2023) .

Abstract

Parameter-efficient tuning aims at updating only a small subset of parameters when adapting a pretrained model to downstream tasks. In this work, we introduce PASTA, in which we only modify the special token representations (e.g., [SEP] and [CLS] in BERT) before the self-attention module at each layer in Transformer-based models. PASTA achieves comparable performance to fine-tuning in natural language understanding tasks including text classification and NER with up to only 0.029% of total parameters trained. Our work not only provides a simple yet effective way of parameter-efficient tuning, which has a wide range of practical applications when deploying finetuned models for multiple tasks, but also demonstrates the pivotal role of special tokens in pretrained language models.

image

Environment

python=3.7.11
pytorch=1.10.2 (with cuda11.3)
cudatoolkit=11.3.1
transformers==4.20.1
@inproceedings{yang2023pasta,
  title={Parameter-efficient Tuning with Special Token Adaptation,
  author={Yang, Xiaocong and Huang, James and Zhou, Wenxuan and Chen, Muhao},
  booktitle={Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics (EACL)},
  year={2023}
}

About

This is the code for Parameter-efficient Tuning with Special Token Adaptation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published