Skip to main content
QUICK REVIEW

[Paper Review] EncT5: Fine-tuning T5 Encoder for Non-autoregressive Tasks

Frederick Liu, Siamak Shakeri|arXiv (Cornell University)|Oct 16, 2021
Topic ModelingComputer Science12 references11 citations
TL;DR

This paper proposes EncT5, a method that fine-tunes only the encoder of pre-trained T5 models for non-autoregressive tasks like classification and regression. By leveraging only the encoder, EncT5 achieves performance comparable to full T5 models with less than half the parameters, demonstrating high efficiency on the GLUE benchmark.

ABSTRACT

Encoder-decoder transformer architectures have become popular recently with the advent of T5 models. It is also more favorable over architectures like BERT for pre-training on language model task when it comes to large scale models which could take months to train given it's generality. While being able to generalize to more tasks, it is not evident if the proposed encoder-decoder architecture is the most efficient for fine-tuning on classification and regression tasks given the pre-trained model. In this work, we study fine-tuning pre-trained encoder-decoder models such as T5. Particularly, we propose extbf{EncT5} as a way to efficiently fine-tune pre-trained encoder-decoder T5 models for classification and regression tasks by using the encoder layers. Our experimental results show that extbf{EncT5} with less than half of the parameters of T5 performs similarly to T5 models on GLUE benchmark. We believe our proposed approach can be easily applied to any pre-trained encoder-decoder model.

Motivation & Objective

  • To investigate whether fine-tuning only the encoder of pre-trained T5 models can match the performance of full T5 models on non-autoregressive tasks.
  • To improve parameter efficiency in fine-tuning encoder-decoder models like T5 for downstream classification and regression tasks.
  • To provide a generalizable approach applicable to any pre-trained encoder-decoder model by focusing on the encoder-only adaptation.
  • To reduce computational cost and inference time while maintaining competitive performance on standard benchmarks.

Proposed method

  • The method involves freezing the decoder and decoder-attention layers of a pre-trained T5 model and fine-tuning only the encoder for classification and regression tasks.
  • Input sequences are tokenized and fed into the T5 encoder, which generates contextual representations used for classification or regression heads.
  • A classification or regression head is attached to the [CLS] token representation from the encoder's final layer for prediction.
  • The model is fine-tuned end-to-end using standard cross-entropy or mean squared error loss for respective tasks.
  • The approach is evaluated on the GLUE benchmark using standard metrics for classification and regression tasks.

Experimental results

Research questions

  • RQ1Can fine-tuning only the encoder of a pre-trained T5 model achieve performance comparable to full T5 fine-tuning on non-autoregressive tasks?
  • RQ2How does the parameter efficiency of EncT5 compare to full T5 models across different GLUE tasks?
  • RQ3Does the encoder-only adaptation maintain generalization ability across diverse NLP tasks?
  • RQ4Can this method be generalized to other pre-trained encoder-decoder models beyond T5?

Key findings

  • EncT5 achieves performance on the GLUE benchmark that is comparable to full T5 models despite using less than half the number of parameters.
  • The encoder-only adaptation maintains strong generalization across diverse NLP tasks, including both classification and regression.
  • The method significantly reduces model size and computational cost during fine-tuning while preserving task performance.
  • The approach is transferable and can be applied to any pre-trained encoder-decoder model with minimal modification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.