SwitchPrompt: Learning Domain-Specific Gated Soft Prompts for Classification in Low-Resource Domains

Koustava Goswami, Lukas Lange, Jun Araki, Heike Adel
2/14/2023
cs.CLcs.AI

No official code found. Best implementation: boschresearch/switchprompt (52 stars, AGPL-3.0, last commit 2023-05-19).

Abstract

Prompting pre-trained language models leads to promising results across natural language processing tasks but is less effective when applied in low-resource domains, due to the domain gap between the pre-training data and the downstream task. In this work, we bridge this gap with a novel and lightweight prompting methodology called SwitchPrompt for the adaptation of language models trained on datasets from the general domain to diverse low-resource domains. Using domain-specific keywords with a trainable gated prompt, SwitchPrompt offers domain-oriented prompting, that is, effective guidance on the target domains for general-domain language models. Our few-shot experiments on three text classification benchmarks demonstrate the efficacy of the general-domain pre-trained language models when used with SwitchPrompt. They often even outperform their domain-specific counterparts trained with baseline state-of-the-art prompting methods by up to 10.7% performance increase in accuracy. This result indicates that SwitchPrompt effectively reduces the need for domain-specific language model pre-training.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

Resources related to EACL 2023 paper "SwitchPrompt: Learning Domain-Specific Gated Soft Prompts for Classification in Low-Resource Domains"

521PythonJan 26, 20233 years agoAGPL-3.0
paper-resource

Similar Papers

Cite this paper

@article{goswami2023switchprompt,
  title  = {SwitchPrompt: Learning Domain-Specific Gated Soft Prompts for Classification in Low-Resource Domains},
  author = {Koustava Goswami and Lukas Lange and Jun Araki and Heike Adel},
  year   = {2023},
  eprint = {2302.06868},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.06868v1}
}

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/2302.06868.svg)](https://codeofpaper.com/paper/2302.06868)

Discussion