Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

EACL2024: Diffusion-NAT: Self-Prompting Discrete Diffusion for Non-Autoregressive Text Generation

Notifications You must be signed in to change notification settings

RUCAIBox/DiffusionNAT

 
 

Repository files navigation

Diffusion-NAT: Self-Prompting Discrete Diffusion for Non-Autoregressive Text Generation

[Paper][Code]

Highlight

🎉 🎉 🎉 Our Diffusion-NAT has received the Evaluation and Model Insight Award in EACL 2024!!

Contributions

1.we propose a new solution for integrating Pre-trained LM into Diffusion Model, to perform discrete diffusion for text-to-text generation. It requires only low-cost fine-tuning and can performs better than vanilla fine-tuning;

2.we unify the inference process of PLMs and denoising process of discrete diffusion models, into the same masked token recovering task in the non-autoregressive manner;

Diffusion-NAT

Method

Model

Experimental Results

We conduct extensive experiments on seven text-to-text generation datasets, where our approach can outperform competitive NAR text generation methods, even surpassing SOTA autoregressive PLMs;

Exp1

Exp1

Also, as we can use DDIM for fast inference, we can set the diffusion steps for balancing the inference latency and performance:

Exp1

Quick Start

Setup

conda create -n diffusion python=3.10
conda activate diffusion
pip install -r requirements.txt

Prepare Data

To obtain the data, first download from the Google-Drive:

tar -zxvf datasets.tar.gz

Training

cd scripts
bash run_train_CNNDM.sh

Citation

If you find this repository helpful, please consider citing our paper:

@inproceedings{zhou2024diffusion,
  title={Diffusion-NAT: Self-Prompting Discrete Diffusion for Non-Autoregressive Text Generation},
  author={Zhou, Kun and Li, Yifan and Zhao, Wayne Xin and Wen, Ji-Rong},
  booktitle={Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={1438--1451},
  year={2024}
}

About

EACL2024: Diffusion-NAT: Self-Prompting Discrete Diffusion for Non-Autoregressive Text Generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.3%
  • Shell 2.7%