Skip to content

Rethinking Why Intermediate-Task Fine-Tuning Works (Findings of EMNLP21)

Notifications You must be signed in to change notification settings

terarachang/Rethinking_STILT

Repository files navigation

Rethinking Why Intermediate-Task Fine-Tuning Works

Python 3.8 PyTorch 1.7.1

RTX3090

This repository contains the official PyTorch implementation of the following paper:

Rethinking Why Intermediate-Task Fine-Tuning Works (Findings of EMNLP 2021)
Ting-Yun Chang and Chi-Jen Lu

https: https://arxiv.org/pdf/2108.11696.pdf

Abstract: Supplementary Training on Intermediate Labeled-data Tasks (STILT) is a widely applied technique, which first fine-tunes the pretrained language models on an intermediate task before on the target task of interest. While STILT is able to further improve the performance of pretrained language models, it is still unclear why and when it works. Previous research shows that those intermediate tasks involving complex inference, such as commonsense reasoning, work especially well for RoBERTa-large. In this paper, we discover that the improvement from an intermediate task could be orthogonal to it containing reasoning or other complex skills --- a simple real-fake discrimination task synthesized by GPT2 can benefit diverse target tasks. We conduct extensive experiments to study the impact of different factors on STILT. These findings suggest rethinking the role of intermediate fine-tuning in the STILT pipeline.

Preprocessing

$ python run_gpt2_synth_dataset.py

Training & Evaluation

All Intermediate Tasks

$ bash run_intermediate_tasks.sh

All Target Tasks

$ bash run_target_tasks.sh

About

Rethinking Why Intermediate-Task Fine-Tuning Works (Findings of EMNLP21)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published