paper-with-me

홈 › Papers

"Mask and Infill" : Applying Masked Language Model to Sentiment Transfer

2019-08-21 · Xing Wu, Tao Zhang, Liangjun Zang, Jizhong Han, Songlin Hu

This paper focuses on the task of sentiment transfer on non-parallel text, which modifies sentiment attributes (e.g., positive or negative) of sentences while preserving their attribute-independent content. Due to the limited capability of RNNbased encoder-decoder structure to capture deep and long-range dependencies among words, previous works can hardly generate satisfactory sentences from scratch. When humans convert the sentiment attribute of a sentence, a simple but effective approach is to only replace the original sentimental tokens in the sentence with target sentimental expressions, instead of building a new sentence from scratch. Such a process is very similar to the task of Text Infilling or Cloze, which could be handled by a deep bidirectional Masked Language Model (e.g. BERT). So we propose a two step approach "Mask and Infill". In the mask step, we separate style from content by masking the positions of sentimental tokens. In the infill step, we retrofit MLM to Attribute Conditional MLM, to infill the masked positions by predicting words or phrases conditioned on the context1 and target sentiment. We evaluate our model on two review datasets with quantitative, qualitative, and human evaluations. Experimental results demonstrate that our models improve state-of-the-art performance.

📄 PDF Abstract BibTeX arXiv:1908.08039

Code (0)

등록된 구현이 없습니다.

Tasks

AttributeDecoderLanguage ModelingLanguage ModellingSentenceText Infilling

Similar Papers 제목 키워드 기반

Unlocking Prompt Infilling Capability for Diffusion Language Models

2026-04-04 · Yoshinari Fujinuma, Keisuke Sakaguchi arxiv

Masked diffusion language models (dLMs) generate text through bidirectional denoising, yet this capability remains locked for infilling prompts. This limitation is an artifact of the current supervised finetuning (SFT) c…

Enabling Autoregressive Models to Fill In Masked Tokens

2025-02-09 · Daniel Israel, Aditya Grover, Guy Van Den Broeck

Historically, LLMs have been trained using either autoregressive (AR) or masked language modeling (MLM) objectives, with AR models gaining dominance in recent years. However, AR models are inherently incapable of masked …

DecoderLanguage ModelingLanguage ModellingMasked Language Modeling

Enabling Language Models to Fill in the Blanks

2020-05-11 · ACL 2020 6 · Chris Donahue, Mina Lee, Percy Liang

We present a simple approach for text infilling, the task of predicting missing spans of text at any position in a document. While infilling could enable rich functionality especially for writing assistance tools, more a…

Language ModelingLanguage ModellingText Infilling

Tell Me What Happened: Unifying Text-guided Video Completion via Multimodal Masked Video Generation

2022-11-23 · CVPR 2023 1 · Tsu-Jui Fu, Licheng Yu, Ning Zhang, Cheng-Yang Fu 외

Generating a video given the first several static frames is challenging as it anticipates reasonable future frames with temporal coherence. Besides video prediction, the ability to rewind from the last frame or infilling…

Text-to-Video GenerationVideo GenerationVideo Prediction

Towards Probabilistically-Sound Beam Search with Masked Language Models

2024-02-22 · Creston Brooks, Robert Calef, Charlie Cowen-Breen, Anna Sappington

Beam search with masked language models (MLMs) is challenging in part because joint probability distributions over sequences are not readily available, unlike for autoregressive models. However, estimating such distribut…

Ancient Text RestorationText Infilling