Gradual Fine-Tuning for Low-Resource Domain Adaptation

Haoran Xu, Seth Ebner, Mahsa Yarmohammadi, Aaron Steven White, Benjamin Van Durme, Kenton W. Murray

Introduction

In many real-world Natural Language Processing (NLP) applications, the goal is to develop models for specific "target domains" (e.g., medical records or niche dialects) where labeled data is scarce. The standard approach is domain adaptation, typically involving a one-step "fine-tuning" process where a model pretrained on massive general data is adapted to a small target dataset. However, this abrupt shift from diverse, large-scale data to a tiny, specialized set can be jarring, often leading to suboptimal performance or the "forgetting" of useful general features.

This paper introduces Gradual Fine-Tuning, a simple yet powerful multi-stage strategy that eases the transition to the target domain. By iteratively training the model on datasets that progressively shift from out-of-domain to in-domain distributions, researchers achieve significant performance gains without altering model architecture or loss functions.

Methodology

Gradual Fine-Tuning is inspired by curriculum learning, where the model follows a "trajectory" of datasets rather than jumping straight to the target data. The process consists of three main phases:

  1. Mixed Domain Training: The model is initially trained on a large mixture of out-of-domain data ($D_o$) and the limited in-domain data ($D_i$).
  2. Iterative Refinement: The model undergoes several fine-tuning stages. In each stage, the volume of out-of-domain data is systematically reduced (e.g., from 4k examples to 2k, then 0.5k).
  3. Final Polish: The final stage involves fine-tuning exclusively on the in-domain data.
Overview of the Gradual Fine-Tuning process, showing the decreasing volume of out-of-domain data ($D_o$) across stages.

Crucially, this method is "no-frills." It requires no changes to the model's code or learning objectives—only the data configuration files need to be updated for each stage.

Experimental Setup

The researchers evaluated Gradual Fine-Tuning on two distinct NLP tasks:

  • Dialogue State Tracking (MultiWOZ v2.0): Adapting models to specific domains like "restaurant" and "hotel" using other domains as auxiliary data.
  • Event Extraction (ACE 2005): Adapting to Arabic as a low-resource target domain, augmented with English data as the out-of-domain source.

Results and Discussion

The gradual approach consistently outperformed both "no fine-tuning" and standard "one-stage fine-tuning" across tasks.

Slot accuracy comparison for Restaurant and Hotel domains. Gradual FT (blue) consistently outperforms One-step FT (dashed black) and baselines.

Key Performance Gains

  • MultiWOZ: In the restaurant domain, gradual fine-tuning achieved a 15.11% absolute gain in joint accuracy over a model trained only on in-domain data, and beat one-stage fine-tuning by over 6%.
  • ACE 2005: On Arabic event extraction, the method achieved a 5.84% absolute gain in trigger classification (TrigC) compared to state-of-the-art models trained only on Arabic data.

Insights

  • Data-Centric Adaptation: While most research focuses on complex loss functions, this work demonstrates that scheduling data presentation can be equally effective.
  • Learning Rate Sensitivity: A critical finding is that a constant learning rate across stages can lead to "model collapse." The learning rate must be carefully scheduled and generally reduced as the model specializes.

Conclusion and Future Work

Gradual Fine-Tuning offers a robust baseline for low-resource domain adaptation. However, it introduces new hyperparameters, such as the data reduction schedule and stage-specific learning rates, which currently require manual tuning. Future work may explore more sophisticated data selection methods—choosing out-of-domain examples most similar to the target—to further enhance performance. While computationally more intensive than one-stage fine-tuning, the significant accuracy gains make it a compelling strategy for high-stakes low-resource applications.

Summary updated

Abstract

Fine-tuning is known to improve NLP models by adapting an initial model trained on more plentiful but less domain-salient examples to data in a target domain. Such domain adaptation is typically done using one stage of fine-tuning. We demonstrate that gradually fine-tuning in a multi-stage process can yield substantial further gains and can be applied without modifying the model or learning objective.
BibTeX
@misc{xu2021gradual,
  author = {Haoran Xu and Seth Ebner and Mahsa Yarmohammadi and Aaron Steven White and Benjamin Van Durme and Kenton W. Murray},
  title = {{Gradual Fine-Tuning for Low-Resource Domain Adaptation}},
  year = {2021},
  eprint = {2103.02205},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.02205},
}
Figure