TextBox 2.0: A Text Generation Library with Pre-trained Language Models

Tianyi Tang, Junyi Li, Zhipeng Chen, Yiwen Hu, Zhuohao Yu +7 more
12/26/2022
cs.CL

Official code: RUCAIBox/TextBox (1,093 stars, Python, MIT, PyTorch, last commit 2023-07-27).

Abstract

To facilitate research on text generation, this paper presents a comprehensive and unified library, TextBox 2.0, focusing on the use of pre-trained language models (PLMs). To be comprehensive, our library covers $13$ common text generation tasks and their corresponding $83$ datasets and further incorporates $45$ PLMs covering general, translation, Chinese, dialogue, controllable, distilled, prompting, and lightweight PLMs.

Show full abstract

We also implement $4$ efficient training strategies and provide $4$ generation objectives for pre-training new PLMs from scratch. To be unified, we design the interfaces to support the entire research pipeline (from data loading to training and evaluation), ensuring that each step can be fulfilled in a unified way. Despite the rich functionality, it is easy to use our library, either through the friendly Python API or command line. To validate the effectiveness of our library, we conduct extensive experiments and exemplify four types of research scenarios. The project is released at the link: https://github.com/RUCAIBox/TextBox.

View on arXivView PDF

Code Implementations(1)

RUCAIBox/TextBoxOfficial100%
PyTorchMIT

TextBox 2.0 is a text generation library with pre-trained language models

1,093112Python, HTMLNov 8, 20203 years agoMIT
deep-learningnatural-language-generationnatural-language-processingpretrained-modelspython+3 more

Similar Papers

Cite this paper

@article{tang2022textbox,
  title  = {TextBox 2.0: A Text Generation Library with Pre-trained Language Models},
  author = {Tianyi Tang and Junyi Li and Zhipeng Chen and Yiwen Hu and Zhuohao Yu and Wenxun Dai and Zican Dong and Xiaoxue Cheng and Yuhao Wang and Wayne Xin Zhao and Jian-Yun Nie and Ji-Rong Wen},
  year   = {2022},
  eprint = {2212.13005},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.13005}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.13005.svg)](https://codeofpaper.com/paper/2212.13005)

Discussion