English

s2s-ft: Fine-Tuning Pretrained Transformer Encoders for Sequence-to-Sequence Learning

Computation and Language 2021-10-27 v1

Abstract

Pretrained bidirectional Transformers, such as BERT, have achieved significant improvements in a wide variety of language understanding tasks, while it is not straightforward to directly apply them for natural language generation. In this paper, we present a sequence-to-sequence fine-tuning toolkit s2s-ft, which adopts pretrained Transformers for conditional generation tasks. Inspired by UniLM, we implement three sequence-to-sequence fine-tuning algorithms, namely, causal fine-tuning, masked fine-tuning, and pseudo-masked fine-tuning. By leveraging the existing pretrained bidirectional Transformers, experimental results show that s2s-ft achieves strong performance on several benchmarks of abstractive summarization, and question generation. Moreover, we demonstrate that the package s2s-ft supports both monolingual and multilingual NLG tasks. The s2s-ft toolkit is available at https://github.com/microsoft/unilm/tree/master/s2s-ft.

Keywords

Cite

@article{arxiv.2110.13640,
  title  = {s2s-ft: Fine-Tuning Pretrained Transformer Encoders for Sequence-to-Sequence Learning},
  author = {Hangbo Bao and Li Dong and Wenhui Wang and Nan Yang and Furu Wei},
  journal= {arXiv preprint arXiv:2110.13640},
  year   = {2021}
}

Comments

Demo paper for the s2s-ft toolkit: https://github.com/microsoft/unilm/tree/master/s2s-ft

R2 v1 2026-06-24T07:11:50.889Z