Home

Awesome

<h1><img src="docs/fig/texygen-01.png" width="250"></h1>

Texygen is a benchmarking platform to support research on open-domain text generation models. Texygen has not only implemented a majority of text generation models, but also covered a set of metrics that evaluate the diversity, the quality and the consistency of the generated texts. The Texygen platform could help standardize the research on text generation and facilitate the sharing of fine-tuned open-source implementations among researchers for their work. As a consequence, this would help in improving the reproductivity and reliability of future research work in text generation.

For more details, please refer to our SIGIR 2018 paper: Texygen: A Benchmarking Platform for Text Generation Models by Yaoming Zhu et al.

Should you have any questions and enquiries, please feel free to contact Yaoming Zhu (ym-zhu [AT] outlook.com) and Weinan Zhang (wnzhang [AT] sjtu.edu.cn).

Requirement

We suggest you run the platform under Python 3.6+ with following libs:

Or just type pip install -r requirements.txt in your terminal.

Implemented Models and Original Papers

Get Started

git clone https://github.com/geek-ai/Texygen.git
cd Texygen
# run SeqGAN with default setting
python3 main.py

More detailed documentation for the platform and code setup is provided here.

Evaluation Results

BLEU on image COCO caption test dataset:

SeqGANMaliGANRankGANLeakGANTextGANMLE
BLEU20.7450.6730.7430.7460.5930.731
BLEU30.4980.4320.4670.5280.4630.497
BLEU40.2940.2570.2640.3550.2770.305
BLEU50.1800.1590.1560.2300.2070.189

Mode Collapse (Self-BLEU):

         SeqGANMaliGANRankGANLeakGANTextGAN      MLE
S-BLEU20.9500.9180.9590.9660.9420.916
S-BLEU30.8400.7810.8820.9130.9310.769
S-BLEU40.6700.6060.7620.8480.8040.583
S-BLEU50.4890.4370.6180.7800.7460.408

More detailed benchmark settings and evaluation results are provided here.

Reference

@article{zhu2018texygen,
  title={Texygen: A Benchmarking Platform for Text Generation Models},
  author={Zhu, Yaoming and Lu, Sidi and Zheng, Lei and Guo, Jiaxian and Zhang, Weinan and Wang, Jun and Yu, Yong},
  journal={SIGIR},
  year={2018}
}