「マスクとインフィル」:感情転移へのマスク言語モデルの適用
"Mask and Infill" : Applying Masked Language Model to Sentiment Transfer
"Mask and Infill" : Applying Masked Language Model to Sentiment Transfer
@misc{wu2019mask,
title = {"Mask and Infill" : Applying Masked Language Model to Sentiment Transfer},
author = {Xing Wu and Tao Zhang and Liangjun Zang and Jizhong Han and Songlin Hu},
year = {2019},
eprint = {1908.08039},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/1908.08039}
}
Wu, X., Zhang, T., Zang, L., Han, J., & Hu, S. (2019). "Mask and Infill" : Applying Masked Language Model to Sentiment Transfer [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1908.08039
WU X, ZHANG T, ZANG L, et al. "Mask and Infill" : Applying Masked Language Model to Sentiment Transfer[EB/OL]. (2019-08-21)[2026-11-30]. https://arxiv.org/abs/1908.08039.
要旨
本論文は、非並行テキストにおける感情転移タスクに焦点を当てている。このタスクは、文の感情属性(例:肯定または否定)を変更しつつ、属性に依存しない内容を保持するものである。RNN ベースのエンコーダー・デコーダー構造は、単語間の深い・長距離の依存関係を捉える能力に限界があるため、従来の手法ではゼロから満足できる文を生成することが困難であった。人間が文の感情属性を変換する際、ゼロから新しい文を構築するのではなく、文内の感情表現トークンをターゲットの感情表現に置き換えるという単純かつ効果的なアプローチが取られる。このプロセスは、テキストインフィリングまたはクローズ(Cloze)タスクと非常に類似しており、ディープバイディレクショナルマスク言語モデル(例:BERT)によって処理可能である。したがって、本論文では「Mask and Infill」という 2 ステップアプローチを提案する。Mask ステップでは、感情トークンの位置をマスクすることでスタイルとコンテンツを分離する。Infill ステップでは、MLM を属性条件付き MLM にリファットし、文脈 1 とターゲット感情を条件としてマスクされた位置を単語またはフレーズで埋める。我々は 2 つのレビューデータセットで定量的、定性的、および人間評価を用いてモデルを評価した。実験結果は、我々のモデルが最良の性能を向上させることを示している。
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.