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.6k
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
機械学習で作った ポケモン対戦bot で 遊ぼう!
fufufukakaka
0
340
正規分布と最適化について
koide3
1
280
【中間報告】国会議員の立法・政策実務を支える環境を巡る現状と課題
polipoli
0
260
Ghost in the 7‑Zip: The Shadow of Residential Proxies Creeping into Your Life
nttcom
0
1.3k
英語教育 “研究” のあり方:学術知とアウトリーチの緊張関係
terasawat
1
1k
Spatial Active Noise Control Based onSound Field Interpolation Incorporating Physical Constraints
skoyamalab
0
120
Harness Engineering and Al Agent
kzinmr
3
1.8k
NII S. Koyama's Lab Research Overview AY2026
skoyamalab
0
380
CyberAgent AI Lab研修 / Social Implementation Anti-Patterns in AI Lab
chck
7
4.7k
Using our influence and power for patient safety
helenbevan
0
370
Visual SLAM未来予測 / Future Prediction in Visual SLAM
koide3
1
420
Model Discovery and Graph Simulation: A Lightweight Gateway to Chaos Engineering
anatolykr
0
210
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
18k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Are puppies a ranking factor?
jonoalderson
1
3.7k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
240
Producing Creativity
orderedlist
PRO
348
40k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
800
Leo the Paperboy
mayatellez
7
1.9k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
880
Why Our Code Smells
bkeepers
PRO
340
58k
Faster Mobile Websites
deanohume
310
32k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
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]