Domain Adversarial Fine-Tuning as an Effective Regularizer

Giorgos Vernikos, Katerina Margatina, Alexandra Chronopoulou, Ion Androutsopoulos
9/28/2020
cs.LGstat.ML

Official code: GeorgeVern/AFTERV1.0 (8 stars, Python, last commit 2023-06-12).

Abstract

In Natural Language Processing (NLP), pretrained language models (LMs) that are transferred to downstream tasks have been recently shown to achieve state-of-the-art results. However, standard fine-tuning can degrade the general-domain representations captured during pretraining.

Show full abstract

To address this issue, we introduce a new regularization technique, AFTER; domain Adversarial Fine-Tuning as an Effective Regularizer. Specifically, we complement the task-specific loss used during fine-tuning with an adversarial objective. This additional loss term is related to an adversarial classifier, that aims to discriminate between in-domain and out-of-domain text representations. In-domain refers to the labeled dataset of the task at hand while out-of-domain refers to unlabeled data from a different domain. Intuitively, the adversarial classifier acts as a regularizer which prevents the model from overfitting to the task-specific domain. Empirical results on various natural language understanding tasks show that AFTER leads to improved performance compared to standard fine-tuning.

View on arXivView PDF

Code Implementations(1)

Python source code for EMNLP 2020 Findings paper: "Domain Adversarial Fine-Tuning as an Effective Regularizer".

81PythonApr 3, 20203 years ago
adversarial-learningdomain-adaptationfine-tuninglanguage-modelregularization-methods

Similar Papers

Cite this paper

@article{vernikos2020domain,
  title  = {Domain Adversarial Fine-Tuning as an Effective Regularizer},
  author = {Giorgos Vernikos and Katerina Margatina and Alexandra Chronopoulou and Ion Androutsopoulos},
  year   = {2020},
  eprint = {2009.13366},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.13366}
}

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

Discussion