How transfer learning impacts linguistic knowledge in deep NLP models?

Nadir Durrani,Hassan Sajjad,Fahim Dalvi
DOI: https://doi.org/10.48550/arXiv.2105.15179
2021-06-01
Abstract:Transfer learning from pre-trained neural language models towards downstream tasks has been a predominant theme in NLP recently. Several researchers have shown that deep NLP models learn non-trivial amount of linguistic knowledge, captured at different layers of the model. We investigate how fine-tuning towards downstream NLP tasks impacts the learned linguistic knowledge. We carry out a study across popular pre-trained models BERT, RoBERTa and XLNet using layer and neuron-level diagnostic classifiers. We found that for some GLUE tasks, the network relies on the core linguistic information and preserve it deeper in the network, while for others it forgets. Linguistic information is distributed in the pre-trained language models but becomes localized to the lower layers post fine-tuning, reserving higher layers for the task specific knowledge. The pattern varies across architectures, with BERT retaining linguistic information relatively deeper in the network compared to RoBERTa and XLNet, where it is predominantly delegated to the lower layers.
Computation and Language
What problem does this paper attempt to address?
This paper aims to explore how transfer learning affects linguistic knowledge in deep natural language processing (NLP) models. Specifically, researchers are concerned with how the learned linguistic knowledge changes when these pre - trained language models are fine - tuned to adapt to downstream NLP tasks. The researchers selected three popular pre - trained models (BERT, RoBERTa and XLNet) and used hierarchical and neuron - level diagnostic classifiers to analyze the retention of linguistic knowledge in these models during the fine - tuning process. The study found that for some GLUE tasks, the network depends on core linguistic information and retains it in the deep layers of the network; while for other tasks, this part of the information may be "forgotten". In addition, models with different architectures also perform differently in this process. For example, BERT can relatively retain linguistic information in deeper layers, while RoBERTa and XLNet mainly delegate this information to lower layers.