English

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

Computation and Language 2023-02-15 v1 Artificial Intelligence

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.

Keywords

Cite

@article{arxiv.2302.06868,
  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},
  journal= {arXiv preprint arXiv:2302.06868},
  year   = {2023}
}

Comments

Accepted at EACL 2023 Main Conference

R2 v1 2026-06-28T08:39:34.213Z