Edit on GitHub

model = AutoAdapterModel.from_pretrained("roberta-base")
config = AdapterConfig.load("houlsby")
model.load_adapter("sentiment/sst-2@ukp", config=config)

Description

Adapter (with head) trained using the `run_glue.py` script with an extension that retains the best checkpoint (out of 30 epochs).

Properties

Pre-trained model
roberta-base
Adapter type
Prediction Head
  Yes
Task
Sentiment Analysis
Dataset

Architecture

Name
houlsby
Non-linearity
swish
Reduction factor
16
{
  "ln_after": false,
  "ln_before": false,
  "mh_adapter": true,
  "output_adapter": true,
  "adapter_residual_before_ln": false,
  "non_linearity": null,
  "original_ln_after": true,
  "original_ln_before": false,
  "reduction_factor": null,
  "residual_before_ln": true
}

Author

  Name
Andreas Rücklé
  GitHub
  Twitter

Versions

Identifier Comment Score Download
1 DEFAULT Achieves 94.49 Accuracy on the SST-2 devset

Citations

Adapter
@article{pfeiffer2020AdapterHub,
    title={AdapterHub: A Framework for Adapting Transformers},
    author={Jonas Pfeiffer,
            Andreas R\"uckl\'{e},
            Clifton Poth,
            Aishwarya Kamath,
            Ivan Vuli\'{c},
            Sebastian Ruder,
            Kyunghyun Cho,
            Iryna Gurevych},
    journal={ArXiv},
    year={2020}
}
Architecture
@misc{houlsby2019parameterefficient,
  title={Parameter-Efficient Transfer Learning for NLP},
  author={Neil Houlsby and Andrei Giurgiu and Stanislaw Jastrzebski and Bruna Morrone and Quentin de Laroussilhe and Andrea Gesmundo and Mona Attariyan and Sylvain Gelly},
  year={2019},
  eprint={1902.00751},
  archivePrefix={arXiv},
  primaryClass={cs.LG}
}
Task
@inproceedings{Socher2013RecursiveDM,
title={Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank},
author={Richard Socher and Alex Perelygin and Jean Wu and Jason Chuang and Christopher D. Manning and Andrew Y. Ng and Christopher Potts},
booktitle={EMNLP},
year={2013}
}