BERT Goes Off-Topic: Investigating the Domain Transfer Challenge using Genre Classification

Dmitri Roussinov, Serge Sharoff
11/27/2023
6 citations
cs.CL

Official code: dminus1/genre (0 stars, Python, last commit 2024-04-28).

Abstract

While performance of many text classification tasks has been recently improved due to Pre-trained Language Models (PLMs), in this paper we show that they still suffer from a performance gap when the underlying distribution of topics changes. For example, a genre classifier trained on \textit{political} topics often fails when tested on documents about \textit{sport} or \textit{medicine}.

Show full abstract

In this work, we quantify this phenomenon empirically with a large corpus and a large set of topics. Consequently, we verify that domain transfer remains challenging both for classic PLMs, such as BERT, and for modern large models, such as GPT-3. We also suggest and successfully test a possible remedy: after augmenting the training dataset with topically-controlled synthetic texts, the F1 score improves by up to 50\% for some topics, nearing on-topic training results, while others show little to no improvement. While our empirical results focus on genre classification, our methodology is applicable to other classification tasks such as gender, authorship, or sentiment classification. The code and data to replicate the experiments are available at https://github.com/dminus1/genre

View on arXivView PDF

Code Implementations(1)

dminus1/genreOfficial100%

The code and data for "BERT Goes Off-Topic: Investigating the Domain Transfer Challenge in Genre Classification" by Dmitri Roussinov, Serge Sharoff, EMNLP Findings, 2023

00PythonOct 18, 20232 years ago

Similar Papers

Cite this paper

@article{roussinov2023bert,
  title  = {BERT Goes Off-Topic: Investigating the Domain Transfer Challenge using Genre Classification},
  author = {Dmitri Roussinov and Serge Sharoff},
  year   = {2023},
  eprint = {2311.16083},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.16083v1}
}

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

Discussion