Fine-Tuning Transformers: Vocabulary Transfer
Vladislav Mosin, Igor Samenko, Alexey Tikhonov, Borislav Kozlovskii, Ivan P. Yamshchikov
TL;DR
This work introduces vocabulary transfer as a transfer-learning paradigm for transformers, formalizing corpus-specific tokenization and embedding initialization as a means to improve fine-tuning. The proposed VIPI method initializes new vocabulary embeddings by partial inheritance from the pretrained space, preserving information via partition-based averaging. Across multiple datasets (Quora, Sentiment140, Hyperpartisan News) and vocabulary sizes, corpus-specific tokenization plus VIPI, especially with an intermediary MLM fine-tuning step, yields consistent accuracy gains and faster transfer, with notable benefits in scientific text processing (MeDAL). The findings suggest expanding transfer learning to include tokenization adaptation, with practical impact for domain-specific and specialized-language NLP tasks.
Abstract
Transformers are responsible for the vast majority of recent advances in natural language processing. The majority of practical natural language processing applications of these models are typically enabled through transfer learning. This paper studies if corpus-specific tokenization used for fine-tuning improves the resulting performance of the model. Through a series of experiments, we demonstrate that such tokenization combined with the initialization and fine-tuning strategy for the vocabulary tokens speeds up the transfer and boosts the performance of the fine-tuned model. We call this aspect of transfer facilitation vocabulary transfer.
