Domain-Adaptive Text Classification with Structured Knowledge from Unlabeled Data

Tian Li, Xiang Chen, Zhen Dong, Weijiang Yu, Yijun Yan +2 more
6/20/2022
cs.CL

Official code: hikaru-nara/DASK (11 stars, Python, last commit 2023-03-08).

Abstract

Domain adaptive text classification is a challenging problem for the large-scale pretrained language models because they often require expensive additional labeled data to adapt to new domains. Existing works usually fails to leverage the implicit relationships among words across domains.

Show full abstract

In this paper, we propose a novel method, called Domain Adaptation with Structured Knowledge (DASK), to enhance domain adaptation by exploiting word-level semantic relationships. DASK first builds a knowledge graph to capture the relationship between pivot terms (domain-independent words) and non-pivot terms in the target domain. Then during training, DASK injects pivot-related knowledge graph information into source domain texts. For the downstream task, these knowledge-injected texts are fed into a BERT variant capable of processing knowledge-injected textual data. Thanks to the knowledge injection, our model learns domain-invariant features for non-pivots according to their relationships with pivots. DASK ensures the pivots to have domain-invariant behaviors by dynamically inferring via the polarity scores of candidate pivots during training with pseudo-labels. We validate DASK on a wide range of cross-domain sentiment classification tasks and observe up to 2.9% absolute performance improvement over baselines for 20 different domain pairs. Code will be made available at https://github.com/hikaru-nara/DASK.

View on arXivView PDF

Code Implementations(1)

hikaru-nara/DASKOfficial100%

This is the official implmentation of Domain-Adaptive Text Classification with Structured Knowledge from Unlabeled Data (IJCAI 2022 Long Oral)

112Python, ShellApr 29, 20223 years ago

Similar Papers

Cite this paper

@article{li2022domainadaptive,
  title  = {Domain-Adaptive Text Classification with Structured Knowledge from Unlabeled Data},
  author = {Tian Li and Xiang Chen and Zhen Dong and Weijiang Yu and Yijun Yan and Kurt Keutzer and Shanghang Zhang},
  year   = {2022},
  eprint = {2206.09591},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.09591}
}

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

Discussion