paper-with-me

홈 › Papers

Parallel Refinements for Lexically Constrained Text Generation with BART

2021-09-26 · EMNLP 2021 11 · Xingwei He

Lexically constrained text generation aims to control the generated text by incorporating some pre-specified keywords into the output. Previous work injects lexical constraints into the output by controlling the decoding process or refining the candidate output iteratively, which tends to generate generic or ungrammatical sentences, and has high computational complexity. To address these challenges, we propose Constrained BART (CBART) for lexically constrained text generation. CBART leverages the pre-trained model BART and transfers part of the generation burden from the decoder to the encoder by decomposing this task into two sub-tasks, thereby improving the sentence quality. Concretely, we extend BART by adding a token-level classifier over the encoder, aiming at instructing the decoder where to replace and insert. Guided by the encoder, the decoder refines multiple tokens of the input in one step by inserting tokens before specific positions and re-predicting tokens with low confidence. To further reduce the inference latency, the decoder predicts all tokens in parallel. Experiment results on One-Billion-Word and Yelp show that CBART can generate plausible text with high quality and diversity while significantly accelerating inference.

📄 PDF Abstract BibTeX arXiv:2109.12487

Code (1)

nlpcode/cbart 공식 구현 pytorch

Tasks

DecoderDiversitySentenceText Generation

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Multi-Head Attention 설명 없음
Adam 설명 없음

Similar Papers 제목 키워드 기반

Show Me How To Revise: Improving Lexically Constrained Sentence Generation with XLNet

2021-09-13 · Xingwei He, Victor O. K. Li

Lexically constrained sentence generation allows the incorporation of prior knowledge such as lexical constraints into the output. This technique has been applied to machine translation, and dialog response generation. P…

Machine TranslationPositionResponse GenerationSentence+1

Gradient-guided Unsupervised Lexically Constrained Text Generation

2020-11-01 · EMNLP 2020 11 · Lei Sha

Lexically constrained generation requires the target sentence to satisfy some lexical constraints, such as containing some specific words or being the paraphrase to a given sentence, which is very important in many real-…

Paraphrase GenerationSentenceText Generation

AutoTemplate: A Simple Recipe for Lexically Constrained Text Generation

2022-11-15 · Hayate Iso

Lexically constrained text generation is one of the constrained text generation tasks, which aims to generate text that covers all the given constraint lexicons. While the existing approaches tackle this problem using a …

SentenceText Generation

InsNet: An Efficient, Flexible, and Performant Insertion-based Text Generation Model

2021-02-12 · Sidi Lu, Tao Meng, Nanyun Peng

We propose InsNet, an expressive insertion-based text generator with efficient training and flexible decoding (parallel or sequential). Unlike most existing insertion-based text generation works that require re-encoding …

Machine TranslationStory GenerationText GenerationTranslation

Improved Lexically Constrained Decoding for Translation and Monolingual Rewriting

2019-06-01 · NAACL 2019 6 · J. Edward Hu, Huda Khayrallah, Ryan Culkin, Patrick Xia 외

Lexically-constrained sequence decoding allows for explicit positive or negative phrase-based constraints to be placed on target output strings in generation tasks such as machine translation or monolingual text rewritin…

Data AugmentationMachine TranslationNatural Language InferenceQuestion Answering+1