Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Delete, Retrieve, Generate: Approach for Text S...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
2.1k
SimCLR: A Simple Framework for Contrastive Learning of Visual Representations
scatterlab
0
4.6k
Adversarial Filters of Dataset Biases
scatterlab
0
2.3k
Sparse, Dense, and Attentional Representations for Text Retrieval
scatterlab
0
2.4k
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.4k
Open-Retrieval Conversational Question Answering
scatterlab
0
2.4k
What Can Neural Networks Reason About?
scatterlab
0
2.3k
Other Decks in Research
See All in Research
[最先端NLP勉強会2026] Agentic Rubrics as Contextual Verifiers for SWE Agents
rfujii
1
390
Être éleveur dans un monde en transition : Comprendre les changements pour mieux les accompagner
institutdelelevage
PRO
0
130
最先端NLP 2026 論文紹介: Wait, Wait, Wait... Why Do Reasoning Models Loop? / SNLP Paper Review: Wait, Wait, Wait... Why Do Reasoning Models Loop?
tkng
0
260
医療LLMの現在地〜最新研究から社会実装までを考える〜
kento1109
1
1.8k
就労支援の現場での生成AI活用
enochan
0
130
GLIM とMegaParticles:正規分布近似の限界とタイトカップリング&パーティクルフィルタの進展 / GLIM and MegaParticles : Progress of the distribution representation in SLAM
koide3
0
950
Evaluation génomique des femelles laitières croisées : comprendre la méthode pour accompagner les éleveurs à son utilisation
institutdelelevage
PRO
0
170
TESSERA: Temporal Embeddings of Surface Spectra for Earth Representation and Analysis
satai
3
110
MM-OVSeg: Multimodal Optical–SAR Fusion for Open-Vocabulary Segmentation in Remote Sensing
satai
3
160
適応的スパムフィルタのための軽量な類似メッセージカウンタ / jsai2026-adaptive-spam-filter
monochromegane
0
5.9k
[WebDB2026]セレンディピティ指向推薦システム再考 ―セレンディピティの原義・類型・発生過程に基づく設計指針―
recsyslab
PRO
0
200
Adapter les bergeries aux fortes chaleurs
institutdelelevage
PRO
0
140
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
620
The Cost Of JavaScript in 2023
addyosmani
55
10k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Become a Pro
speakerdeck
PRO
31
6.3k
Google's AI Overviews - The New Search
badams
0
1.6k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
4 Signs Your Business is Dying
shpigford
187
23k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Designing for Performance
lara
612
70k
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]