Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Delete, Retrieve, Generate: Approach for Text S...
Search
Scatter Lab Inc.
September 18, 2019
Research
1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Delete, Retrieve, Generate: Approach for Text Style Transfer
Scatter Lab Inc.
September 18, 2019
More Decks by Scatter Lab Inc.
See All by Scatter Lab Inc.
zeta introduction
scatterlab
0
1.9k
SimCLR: A Simple Framework for Contrastive Learning of Visual Representations
scatterlab
0
4.4k
Adversarial Filters of Dataset Biases
scatterlab
0
2.3k
Sparse, Dense, and Attentional Representations for Text Retrieval
scatterlab
0
2.3k
Weight Poisoning Attacks on Pre-trained Models
scatterlab
0
2.2k
Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
scatterlab
0
2.5k
Beyond Accuracy: Behavioral Testing of NLP Models with CheckList
scatterlab
0
2.3k
Open-Retrieval Conversational Question Answering
scatterlab
0
2.3k
What Can Neural Networks Reason About?
scatterlab
0
2.3k
Other Decks in Research
See All in Research
2026年1月の生成AI領域の重要リリース&トピック解説
kajikent
0
1k
2026 東京科学大 情報通信系 研究室紹介 (大岡山)
icttitech
0
3.7k
NLP colloquium: AI Safety Survey
kanekomasahiro
0
540
データセンター事業者を取り巻く近年の状況とその中での研究開発動向、テストベッドへの貢献の可能性
kikuzo
1
160
存立危機事態の再検討
jimboken
0
290
都市交通マスタープランとその後への期待@熊本商工会議所・熊本経済同友会
trafficbrain
0
220
IEEE AIxVR 2026 Keynote Talk: "Beyond Visibility: Understanding Scenes and Humans under Challenging Conditions with Diverse Sensing"
miso2024
0
190
AIを叩き台として、 「検証」から「共創」へと進化するリサーチ
mela_dayo
0
280
Ghost in the 7‑Zip: The Shadow of Residential Proxies Creeping into Your Life
nttcom
0
920
FUSE-RSVLM: Feature Fusion Vision-Language Model for Remote Sensing
satai
3
840
Research Engineerという仕事 / Research Engineering: Bridging Research and Business
chck
1
200
セマンティック通信勉強会 6Gに向けたデバイス間効率的な通信の技術紹介・課題・今後展望
satai
3
150
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Pragmatic Product Professional
lauravandoore
37
7.3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
22k
How to train your dragon (web standard)
notwaldorf
97
6.7k
Documentation Writing (for coders)
carmenintech
77
5.4k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
860
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Prompt Engineering for Job Search
mfonobong
0
330
How to Think Like a Performance Engineer
csswizardry
28
2.6k
Become a Pro
speakerdeck
PRO
31
6k
How STYLIGHT went responsive
nonsquared
100
6.2k
Transcript
Delete,Retrieve,Generate Approach for Text Style Transfer (ML Engineer, Pingpong)
ݾର ݾର 1. ࣁա ѐਃ 2. Delete,Retrieve,Generate: A Simple
Approach to Sentiment and Style Transfer (NAACL 2018) 3. Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer (EMNLP 2019)
ࣁա ѐਃ " ࣁա ѐਃ
• Style Transfer • ࠺ ࠙ঠীࢲח ੜ ঌ۰ ӝࣿ۽
ղ బஎ (য়࠳ં)ח ਬೞݶࢲ, झఋੌ݅ਸ ߸ജೞৈ ܳ ҳࢿೞח ӝࣿ ࣁա ѐਃ What is Style Transfer?
• Text Style Transfer • ఫझ ղਊ ਬೞݶࢲ, ఫझ झఋੌਸ
߸ജೞৈ ఫझܳ ҳࢿೞח ӝࣿ • Ӓ۞ա, ఫझীࢲ ݈ೞח ղਊҗ झఋੌۆ…? • গݒೞҊ ೞӝ য۰ ѐ֛ • ٮۄࢲ, ࣿੋ োҳٜ ఫझ хࢿ ߂ दઁ ١ ౠ attributeী ୡਸ ݏ୶ח ҃о ݆ ࣁա ѐਃ What is Text Style Transfer? The chicken was delicious The chicken was terrible positive negative
• Delete,Retrieve,Generate (DRG)ۄח ߑߨۿਸ ਊೠ Text Style Transferী ҙೠ ֤ޙਸ
2ѐ ࣗѐ • ఫझ Style Transferܳ ా೧ Controllableೠ ޙ ࢤࢿਸ ԫ೧ࠅ ࣻ • ઁয оמೠ (Controllable) ޙ ࢤࢿ ܻীѱ যࢲ рҗೡ ࣻ হח ࠗ࠙ 1. ೝಯо ޖਸ ݈ೞחب ਃೞ݅ যڌѱ ݈ೞחী ٮۄ ച ݅بח ѱ ׳ۄ • झ݀ زച, ಕܰࣗա ాੌ ١ 2. ೝಯ ݈ਸ য়۽ ݽ؛ী݅ ઓೞח Ѫ ইפۄ ӝദ بী ٮۄ ઁয оמ • ߣ ఢ negativeೠ ߸݈Ҋ positiveೠ ߸ਸ ೞ! ۄ؍о • ߣ ఢ ಣࢲޙ ইפۄ ޙਸ ؍ઉࠁ! ۄ؍о ࣁա ѐਃ ࣁա ѐਃ
1. Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style
Transfer (NAACL 2018) Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer
• ಕয ؘఠࣇ ইצ non-parallel ؘఠࣇਸ ਊೞৈ झఋੌਸ ߸ജೞח ߑߨۿਸ
ઁউ • ੌ߈ਵ۽ زੌೠ ஶబஎী झఋੌ݅ ܲ ఫझ ಕযहਸ ҳೞӝח য۰ • ֤ޙ ীח ఫझ۽ࠗఠ content latent representations৬ style latent representationsܳ implicit ೞѱ ܻ࠙ೞח ݽ؛ਸ णೞח ߑधী ࣁ. Ӓ۞ա… 1. ӝࠄਵ۽ ࢤࢿػ ޙ fluencyо ڄযѢա झఋੌ ߸ജ ੜ উؽ 2. content ࠁઓਯ ߂ style ߸ജਯ ۨ٘ য়ܳ ઑೞӝо ൨ٝ • ୭Ӕ Text Style Transfer ҙ۲ ࠗ࠙ ֤ޙٜীࢲ ߬झۄੋਵ۽ ॳח ݽ؛ Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer ֤ޙ ѐਃ
• ߑߨۿ 1. Delete: ޙਵ۽ࠗఠ ਗې झఋੌী ೧ೞח attribute
words݅ਸ ઁѢ 2. Retrieve: target style corpus۽ࠗఠ ਗ ޙҗ ਬࢎೠ ஶబஎܳ ޙਸ Ѩ࢝ೞৈ, Ӓ ޙ ղ attribute wordsܳ ୶ 3. Generate: Delete җীࢲ झఋੌ ࣘࢿ ઁѢػ ޙҗ Retrieve җীࢲ Ѩ࢝ػ झఋੌ ࣘࢿ ױযٜਸ ਊೞৈ target झఋੌ۽ ߸ജػ ޙਸ ࢤࢿ Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Method ӛ ࠗ Delicious So good Friendly Awesome Loves … Ugly Very rude Sucks Not good … Great food but horrible staff and very rude workers Great food but staff and workers 1.Delete 2.Retrieve Awesome, Friendly 3.Generate Great food, awesome staff and friendly workers
Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Delete
• ಌझ ղীࢲ झఋੌী ೠ ध߹۱ о ֫ (झఋੌ ӓࢿ о ) word-ngramsܳ ઁѢ • п n-gramsо пп ಌझী ١ೞח ࠼بܳ ష۽ ࣻܳ ҅ • ౠ thresholdܳ ֈ n-gramী ೧ࢲ attribute words۽ р
Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Retrieve
• ೠ target style attribute wordsܳ ୶ೞӝ ਤ೧ source sentence৬ ਬࢎೠ ޙਸ target style corpusীࢲ Ѩ࢝ • This food is (delicious) -> This food is ugly (X), This food is bland (O) • ਤ धীࢲ ف ޙ ࢎ Ѣܻܳ ח ೣࣻ dח ޙ р Ѣܻܳ ח ইޖ metricա ࢚ҙ হ 1. TF-IDF weighted word overlap 2. Euclidean distance using sentence embedding 3. Edit distance ١١…
Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Generate
• ୨ 4о ߑߨਸ ઁউ 1. RetrieveOnly: Retrieve Ѿҗ Ѩ࢝ػ target sentenceܳ Ӓ۽ ਊ 2. TemplateBased: Deleteػ ޙҗ Retrieveীࢲ Ѩ࢝ػ target attribute markersܳ ױࣽ concat 3. DeleteOnly: Deleteػ ޙҗ target style ࣘࢿਸ ੑ۱ೞݶ target style sentenceо ࢤࢿغب۾ ೞח LSTMӝ߈ encoder-decoder ݽ؛ 4. DeleteAndRetrieve: Deleteػ ޙҗ Retrieveীࢲ Ѩ࢝ػ target attribute markersܳ ੑ۱ೞݶ target style sentenceо ࢤࢿغب۾ ೞח LSTMӝ߈ encoder-decoder ݽ؛
Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Experiments
• ؘఠࣇ • Yelp, Amazon ܻ࠭ positive, negative ؘఠࣇ • ࣌ romantic, humorous ؘఠࣇ • ಣоח ۄ٘ ࣗयਸ ਊೞৈ 5ױ҅ ಣо • ղਊ ࠁઓਯ • ࣘࢿ (झఋੌ) ߸҃ਯ • ޙ োझ۞
Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Experimental
Results • 4 5ਸ ߉ ҃ Success۽ р • RetrieveOnly, TemplateBased ١ ߬झۄੋ ݽ؛ٜ ӝઓ ݽ؛ٜࠁ જ ࢿמ • DeleteAndRetrieve ݽ؛ ࢿמ о ࣻೞա Human Ѿҗীח ݆ ޅ ஜ
2. Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer
(EMNLP 2019) Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer
• Pre-trained language modelҗ Transformer ౠࢿਸ ਊ೧ࢲ ӝઓ ֤ޙ ױਸ
ࠁ৮ೞ 1. Delete җীࢲ ղਊী ೧ೞח ೨ब ױযܳ ઁѢೣ 2. Source style ױযܳ ઁѢೞ ޅೣ 3. LSTMӝ߈ encoder-decoder ݽ؛ Ӓ ۽ߡझೞ ޅ೧ োझ۞ ޙਸ ղߜ ޅೣ 4. ӟ ޙী ஂডೣ Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer ֤ޙ ѐਃ
• Delete, Retrieve, Generateۄח ߑߨۿ ח زੌ Transforming Delete,Retrieve,Generate
Approach for Controlled Text Style Transfer Method
• Input reduction (Feng et al., 2018) • style classificationਸ
ೡ ٸ о ӝৈبо ױযٜ attribute wordsੌ Ѫ • BERT-based transformerܳ Delete Transformer۽ ࢎਊ • [CLS] షী ೠ attention scoreо ࢚ਤੋ షٜਸ attribute words۽ рೞৈ ઁѢ • BERTח ӝࠄਵ۽ (Multi-head, Multi-layer)Ҋ п க, ٘݃ ܲ ೡਸ ыਵ۽ attribute words ઁѢী ೠ attention headܳ ח җ ਃೣ Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer Delete
• attribute words ઁѢী ೠ attention headܳ ח җ •
ޙ ղীࢲ ۽ ѐ షਸ ઁѢೠ ޙਸ ۽ അ • п (h, l)ী ೧ (4)৬ э scoreܳ ݒӣ • (5)৬ э validation datasetী ೧ झয ୨ ઁੌ (h, l)ਸ о ೠ attention head۽ Ѿ Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer Delete γ|x| x′h,l
• ӝઓ ࣻߨҗ زੌೞѱ, source sentence৬ ਬࢎೠ ஶబஎܳ Ҋ ח
target sentenceܳ Ѩ࢝ • ف ޙ ࢎ Ѣܻܳ ח ೣࣻ d 1. TF-IDF weighted 2. Averaged-GloVe over all tokens of a sentence 3. Universal Sentence Encoder (Cer et al., 2018) • 3о metric 1. о retrieval Ѿҗо જওҊ ೣ Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer Retrieve
• GPTܳ ӝ߈ਵ۽ ೞח Generative Style Transformer (GST)ܳ ઁউ •
Blind Generative Style Transformer (B-GST), Guided Generative Style Transformer(G-GST) • B-GST • Deleteػ ޙҗ target styleਸ ੑ۱ • ۱ ޙਸ ࢤࢿೞחؘী যࢲ ਬبо Ҋ ਗ ޙҗ ਬࢎೠ ޙਸ target corpus۽ࠗఠ retrieveೞӝ য۰ ҃ী ਬਊೣ • G-GST • Deleteػ ޙҗ target attribute wordsܳ ੑ۱ • ਗ ޙҗ ਬࢎೠ ޙਸ retrieveೠ ҃ ݽ؛ীѱ target attributes ࠁܳ ઁҕ೧ח Ѻ • ۱ ޙী ೠ Fine-grained control оמ Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer Generate
• झಕ࣍ షٜਸ ୶о۽ ਊೞৈ ޙਸ ੑ۱ • B-GST :
<ATTR> <CONT_START> Contents <OUTPUT_START> • G-GST : <ATTR_START> Attribute Words <CONT_START> Contents <OUTPUT_START> Transforming Delete,Retrieve,Generate Approach for Controlled Text Style Transfer Generate
Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Experiments
• ؘఠࣇ • Yelp, Amazon ܻ࠭ positive, negative ؘఠࣇ • ࣌ romantic, humorous ؘఠࣇ • Political ؘఠࣇ - ಕझ࠘ ҕച , ؆Ӗ • Gender ؘఠࣇ - Yelp ध ܻ࠭ ࢿ߹ • ಣоח ۄ٘ ࣗयਸ ਊೞৈ ߬झۄੋҗ ઁউ ݽ؛ ਤܳ ࠺Ү • ղਊ ߸҃ਯ • ࣘࢿ ߸҃ਯ • ޙ োझ۞
Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Experimental
Results • ӝઓ Delete&Retrieve ݽ؛җ B-GST ݽ؛ যו ଃ ؊ ೠܳ ۄ٘ ࣗयਵ۽ ಣо • D&R: Delete & Retrieve, BT:Back-Translation • ੋ ಣо Ѿҗب ֤ޙী әغয݅ ৈӝࢲח ࢤۚ
Delete,Retrieve,Generate: A Simple Approach to Sentiment and Style Transfer Experimental
Results
хࢎפ✌ ୶о ޙ ژח ҾӘೠ ݶ ઁٚ ইې োۅ۽
োۅ ࣁਃ! (ݠन۞ ূפয, ೝಯ)
[email protected]