AVocaDo: Strategy for Adapting Vocabulary to Downstream Domain

Jimin Hong, Taehee Kim, Hyesu Lim, Jaegul Choo
10/26/2021
cs.CL

Official code: Jimin9401/avocado (23 stars, Python, PyTorch, last commit 2022-05-31).

Abstract

During the fine-tuning phase of transfer learning, the pretrained vocabulary remains unchanged, while model parameters are updated. The vocabulary generated based on the pretrained data is suboptimal for downstream data when domain discrepancy exists.

Show full abstract

We propose to consider the vocabulary as an optimizable parameter, allowing us to update the vocabulary by expanding it with domain-specific vocabulary based on a tokenization statistic. Furthermore, we preserve the embeddings of the added words from overfitting to downstream data by utilizing knowledge learned from a pretrained language model with a regularization term. Our method achieved consistent performance improvements on diverse domains (i.e., biomedical, computer science, news, and reviews).

View on arXivView PDF

Code Implementations(1)

Jimin9401/avocadoOfficial100%
PyTorch

AVocaDo : Strategy for Adapting Vocabulary to Downstream Domain

232Python, ShellMay 17, 20214 years ago
domain-adaptationnlppytorchtokenization

Similar Papers

Cite this paper

@article{hong2021avocado,
  title  = {AVocaDo: Strategy for Adapting Vocabulary to Downstream Domain},
  author = {Jimin Hong and Taehee Kim and Hyesu Lim and Jaegul Choo},
  year   = {2021},
  eprint = {2110.13434},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.13434}
}

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

Discussion