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
Cross-Media Human-Information Interaction
signer
PRO
0
120
CVPR2026論文紹介_VLMにとって良いvision encoderとは何か?Rethinking Model Selection in VLM Through the Lens of Gromov-Wasserstein Distance
kobayashi31
1
170
nlp2026 In-Context Learningに基づく経路案内のための地理的知識の活用方法に関する検討
takashiinui
0
110
[BlackHatAsia2026] Hidden Telemetry: Uncovering TraceLogging ETW Providers You're Not Using (Yet)
asuna_jp
1
580
typst の使い方:言語学を研究する学生のために
gitomochang
0
510
SOTAのさらに先へ:厳しい推論制約下での高性能モデルのPost-Training
analokmaus
0
1.4k
[CV勉強会@関東 CVPR2026] PSDesigner: Automated Graphic Design with a Human-Like Creative Workflow / kantocv 67th CVPR 2026
shunk031
0
140
2026年3月1日(日)福島「除染土」の公共利用をかんがえる
atsukomasano2026
0
670
Harness Engineering and Al Agent
kzinmr
3
1.8k
kintone リサーチ副部/UXリサーチャー 業務紹介
cybozuinsideout
PRO
0
110
東京大学工学部計数工学科、計数工学特別講義の説明資料
kikuzo
0
560
AIで最適化を解けるか?
mickey_kubo
0
140
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Prompt Engineering for Job Search
mfonobong
0
380
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
220
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
Odyssey Design
rkendrick25
PRO
2
730
How GitHub (no longer) Works
holman
316
150k
How STYLIGHT went responsive
nonsquared
100
6.2k
Context Engineering - Making Every Token Count
addyosmani
9
1k
Designing for Performance
lara
611
70k
The Curse of the Amulet
leimatthew05
2
13k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.3k
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]