File size: 2,412 Bytes
71f2493
 
 
 
24c6402
71f2493
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7f4b890
1fd5487
 
71f2493
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
license: apache-2.0
language:
- en
pipeline_tag: text-generation
tags:
- non-autoregressive text generation
- generative model
- flow matching


---
# Flow Matching for Conditional Text Generation in a Few Sampling Steps (EACL2024)

This model represents the official checkpoint of the paper titled "Flow Matching for Conditional Text Generation in a Few Sampling Steps (EACL2024)".


[Website](https://taohu.me/project_flowseq)
[![Paper](https://img.shields.io/badge/arXiv-PDF-b31b1b)](https://aclanthology.org/2024.eacl-short.33.pdf)
[![Hugging Face Model](https://img.shields.io/badge/🤗%20Hugging%20Face-Model-green)](https://huggingface.co./taohu/flowseq)
[![License](https://img.shields.io/badge/License-Apache--2.0-929292)](https://www.apache.org/licenses/LICENSE-2.0)


[Vincent Tao Hu](http://taohu.me),
[Di Wu](),
[Yuki M Asano](),
[Pascal Mettes](),
[Basura Fernando](),
[Björn Ommer]()
[Cees G.M. Snoek]()

![aaa](method.png)


Diffusion models are a promising tool for highquality text generation. However, current models face multiple drawbacks including slow
sampling, noise schedule sensitivity, and misalignment between the training and sampling
stages. In this paper, we introduce FlowSeq,
which bypasses all current drawbacks by leveraging flow matching for conditional text generation. FlowSeq can generate text in a few
steps by training with a novel anchor loss, alleviating the need for expensive hyperparameter
optimization of the noise schedule prevalent in
diffusion models. We extensively evaluate our
proposed method and show competitive performance in tasks such as question generation,
open-domain dialogue, and paraphrasing.


## 🎓 Citation

```bibtex
@inproceedings{HuEACL2024,
        title = {Flow Matching for Conditional Text Generation in a Few Sampling Steps},
        author = {Vincent Tao Hu and Di Wu and Yuki M Asano and Pascal Mettes and Basura Fernando and Björn Ommer and Cees G M Snoek},
        year = {2024},
        date = {2024-03-27},
        booktitle = {EACL},
        tppubtype = {inproceedings}
        }
```

## 🎫 License

This work is licensed under the Apache License, Version 2.0 (as defined in the [LICENSE](LICENSE.txt)).

By downloading and using the code and model you agree to the terms in the  [LICENSE](LICENSE.txt).

[![License](https://img.shields.io/badge/License-Apache--2.0-929292)](https://www.apache.org/licenses/LICENSE-2.0)