Subword Pooling Makes a Difference

Judit Ács, Ákos Kádár, András Kornai
2/22/2021
cs.CL

Official code: juditacs/subword-choice (8 stars, Jupyter Notebook, MIT, last commit 2021-05-06).

Abstract

Contextual word-representations became a standard in modern natural language processing systems. These models use subword tokenization to handle large vocabularies and unknown words.

Show full abstract

Word-level usage of such systems requires a way of pooling multiple subwords that correspond to a single word. In this paper we investigate how the choice of subword pooling affects the downstream performance on three tasks: morphological probing, POS tagging and NER, in 9 typologically diverse languages. We compare these in two massively multilingual models, mBERT and XLM-RoBERTa. For morphological tasks, the widely used `choose the first subword' is the worst strategy and the best results are obtained by using attention over the subwords. For POS tagging both of these strategies perform poorly and the best choice is to use a small LSTM over the subwords. The same strategy works best for NER and we show that mBERT is better than XLM-RoBERTa in all 9 languages. We publicly release all code, data and the full result tables at \url{https://github.com/juditacs/subword-choice}.

View on arXivView PDF

Code Implementations(1)

MIT

Code and result tables for the "Subword Pooling Makes a Difference" paper

81Jupyter Notebook, TeXJan 25, 20215 years agoMIT

Similar Papers

Cite this paper

@article{cs2021subword,
  title  = {Subword Pooling Makes a Difference},
  author = {Judit Ács and Ákos Kádár and András Kornai},
  year   = {2021},
  eprint = {2102.10864},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.10864}
}

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

Discussion