To token or not to token: A Comparative Study of Text Representations for Cross-Lingual Transfer

Md Mushfiqur Rahman, Fardin Ahsan Sakib, Fahim Faisal, Antonios Anastasopoulos
10/12/2023
cs.CLcs.LG

No official code found. Best implementation: mushfiqur11/tokenfreetransfer (0 stars, last commit 2024-08-29).

Abstract

Choosing an appropriate tokenization scheme is often a bottleneck in low-resource cross-lingual transfer. To understand the downstream implications of text representation choices, we perform a comparative analysis on language models having diverse text representation modalities including 2 segmentation-based models (\texttt{BERT}, \texttt{mBERT}), 1 image-based model (\texttt{PIXEL}), and 1 character-level model (\texttt{CANINE}). First, we propose a scoring Language Quotient (LQ) metric capable of providing a weighted representation of both zero-shot and few-shot evaluation combined. Utilizing this metric, we perform experiments comprising 19 source languages and 133 target languages on three tasks (POS tagging, Dependency parsing, and NER). Our analysis reveals that image-based models excel in cross-lingual transfer when languages are closely related and share visually similar scripts. However, for tasks biased toward word meaning (POS, NER), segmentation-based models prove to be superior. Furthermore, in dependency parsing tasks where word relationships play a crucial role, models with their character-level focus, outperform others. Finally, we propose a recommendation scheme based on our findings to guide model selection according to task and language requirements.

View on arXivView PDF

Code Implementations(1)

00Shell, PythonNov 26, 20222 years ago

Cite this paper

@article{rahman2023token,
  title  = {To token or not to token: A Comparative Study of Text Representations for Cross-Lingual Transfer},
  author = {Md Mushfiqur Rahman and Fardin Ahsan Sakib and Fahim Faisal and Antonios Anastasopoulos},
  year   = {2023},
  eprint = {2310.08078},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.08078v1}
}

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

Discussion