[Paper Review] Recall and Learn: Fine-tuning Deep Pretrained Language Models with Less Forgetting
This paper proposes a recall and learn mechanism to reduce catastrophic forgetting during fine-tuning of deep pretrained language models by jointly learning pretraining and downstream tasks without access to pretraining data. It introduces Pretraining Simulation to recall knowledge using only pretrained weights and Objective Shifting to gradually focus on downstream tasks, achieving state-of-the-art results on GLUE with BERT-base outperforming BERT-large and releasing the open-source RecAdam optimizer for broader adoption.
Deep pretrained language models have achieved great success in the way of pretraining first and then fine-tuning. But such a sequential transfer learning paradigm often confronts the catastrophic forgetting problem and leads to sub-optimal performance. To fine-tune with less forgetting, we propose a recall and learn mechanism, which adopts the idea of multi-task learning and jointly learns pretraining tasks and downstream tasks. Specifically, we propose a Pretraining Simulation mechanism to recall the knowledge from pretraining tasks without data, and an Objective Shifting mechanism to focus the learning on downstream tasks gradually. Experiments show that our method achieves state-of-the-art performance on the GLUE benchmark. Our method also enables BERT-base to achieve better performance than directly fine-tuning of BERT-large. Further, we provide the open-source RecAdam optimizer, which integrates the proposed mechanisms into Adam optimizer, to facility the NLP community.
Motivation & Objective
- To address catastrophic forgetting in sequential transfer learning of deep pretrained language models during fine-tuning.
- To enable multi-task learning of pretraining and downstream tasks without requiring access to large-scale pretraining data.
- To balance knowledge retention from pretraining with effective downstream task learning through dynamic objective weighting.
- To develop a practical optimizer that integrates these mechanisms for easy adoption in NLP research and applications.
Proposed method
- Proposes a Pretraining Simulation mechanism that reconstructs pretraining objectives (e.g., masked language modeling) using only the pretrained model's parameters, without access to original training data.
- Introduces an Objective Shifting mechanism that gradually increases the loss weight of the downstream task while decreasing that of the pretraining task during training.
- Designs a differentiable, parameter-efficient method to simulate pretraining task supervision using the frozen pretrained model's logits and gradients.
- Integrates the recall and learn mechanism into the Adam optimizer, resulting in the open-source RecAdam optimizer for plug-and-play use.
- Employs a quadratic regularization term approximated from pretrained model parameters to stabilize learning and reduce forgetting.
- Uses a dynamic loss weighting strategy that transitions from pretraining task focus to downstream task focus over training epochs.
Experimental results
Research questions
- RQ1Can multi-task learning be effectively applied to fine-tuning deep pretrained language models without access to pretraining data?
- RQ2How can knowledge from pretraining be recalled and preserved during downstream fine-tuning using only the pretrained model parameters?
- RQ3What dynamic loss weighting strategy enables better balance between retaining pretraining knowledge and learning downstream tasks?
- RQ4Can a joint learning mechanism outperform standard fine-tuning in terms of both downstream performance and forgetting reduction?
Key findings
- The proposed method achieves state-of-the-art performance on the GLUE benchmark, outperforming standard fine-tuning and existing baselines.
- BERT-base fine-tuned with the proposed method achieves better performance than directly fine-tuning BERT-large on GLUE, demonstrating significant forgetting reduction.
- The method enables strong performance even when initializing with random parameters, showing that the recall mechanism effectively recaptures pretraining knowledge.
- The RecAdam optimizer, which integrates the proposed mechanisms, achieves consistent improvements across multiple NLP tasks with minimal implementation overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.