SlideShare a Scribd company logo
EX2: Exploration and Exemplar Models
for Deep Reinforcement Learning
2018/2/9 NN論文を肴に酒を飲む会 #5
自己紹介
l 名前
ü 合田 周平(ごうだ しゅうへい)
l 所属
ü データ分析コンサルタント
l 出身
ü 北海道大学(学部~修士)
1
 
効率的な探索戦略
l 効率的に報酬値が得られるであろう「方向」へ探索していきたい。
ü 例えば、ε-greedyでは、確率εでランダムに探索する。
Ø ランダムに環境内を探索していき、報酬を得た時に初めて方策(また
は価値関数)が更新される。そしてその価値を利用できるようになる。
Ø 報酬までの道のりが遠いほど、ランダムに行動して報酬にたどり着
く確率は小さくなる。いつまで経っても探索を行う羽目に。
ü 解決策として、好奇心に従うことにする。
Ø 好奇心=「珍しいもの、未知なものを体験したい」
Ø エージェントが見慣れない状態に到達した場合、正の追加報酬を与
えて、その状態へエージェントを誘導させる。
2
 
先行研究
1. 状態到達回数をカウント
ü 訪れた数の少ない状態ほど、新規性が大きい。(Strehl & Littman, 2009)
2. 状態の生成モデル
ü 今の状態から次の状態を予測する。予測値と実測値の距離が大きいほど、
より多くの追加報酬を与える。(Stadie et al, 2015)
3
 
追加報酬
問題点
1. 状態到達回数をカウント
ü 訪れた数の少ない状態ほど、新規性が大きい。(Strehl & Littman, 2009)
⇒ 状態空間が高次元であるほど、カウンターテーブルの保持が困難に。
2. 状態の生成モデル
ü 今の状態から次の状態を予測する。予測値と実測値の距離が大きいほど、
より多くの追加報酬を与える。(Stadie et al, 2015)
⇒ 状態空間が高次元であるほど、生成モデルの学習が困難に。
4
 
本手法の特徴
1. 状態到達回数をカウント
ü 訪れた数の少ない状態ほど、新規性が大きい。(Strehl & Littman, 2009)
⇒ 状態空間が高次元であるほど、カウンターテーブルの保持が困難に。  
⇒ 状態到達数N(s)をカウントするのではなく、密度p(s)を推定する。
2. 状態の生成モデル
ü 今の状態から次の状態を予測する。予測値と実測値の距離が大きいほど、
より多くの追加報酬を与える。(Stadie et al, 2015)
⇒ 状態空間が高次元であるほど、生成モデルの学習が困難に。      
⇒ 密度p(s)を識別モデルD(s)の出力値から求める。
5
 
totalN
N
p
)(
)(
s
s 
識別モデルを用意
l 密度推定を行うために、状態の識別器を作成する。
ü 到達した状態 (正例)を、過去に到達した状態集合     (負例)
と区別するよう識別モデル    を訓練させる。
ü 観測した状態が過去の状態集合と異なる場合、識別確率が1に近づく=新規性が高い
ü 最適な識別モデルを得るために下記の価値関数が最大になるよう訓練
ü 以下のような最適な識別モデルが得られる。
6
 
*s },...,,{ 21 nS sss
)(sD
))])(1[log()]([log()(max ~~ *
ss ss s
DEDEDV SP
D
 
)()(
)(
)(
*
*
ss
s
s
s
s
SP
D




識別モデルから密度推定へ
l 離散状態空間の場合
l 連続状態空間の場合
  任意のノイズ q を各分布に畳み込むことで、識別確率が1に収束するのを回避
7
 
)()(
)(
)(
*
*
ss
s
s
s
s
SP
D




*)(1
1
*)(
s
s
SP
D


*)(
*)(1
*)(
s
s
s
D
D
PS


)()(
)(
)(
*
*
ss
s
s
s
s
SP
D




1*)( sD
*)(* ss
))(())((
))((
*)(
*
*
ss
s
s
s
s
qPq
q
D
S 




*))(( sqPS  の形で密度推定値を復元
EX2アルゴリズム
1. 経験を収集
2. 識別モデルを訓練
3. 追加報酬を与えて方策を改善
(1 - 3を繰り返す)
8
 
例えば )(log))(( ss SPDf 
潜在空間上での平滑化
l 状態を潜在空間へ写像した後に平滑化を行う。
ü 画像のような高次元の状態は、実際には低次元の多様体に沿って存在しているため、 
オリジナルの状態に対してノイズを追加すると、この多様体上から離れる場合がある。
ü 状態を潜在空間に写像した後、潜在空間上でノイズを追加させる。
Ø 例えばAtariドメインでは、潜在空間での平滑化は「画面上のプレイヤー/移動物体の平滑化」
に対応。(直接画像にガウシアンフィルタをかけてもそうならない)
ü 潜在空間上での識別器
9
 
)1|()0|(
)1|(
)()|1(



yzqyzq
yzq
zDzyp




ssssss
sss
sss
ss
dzqPdzq
dzq
S )|()()|()(
)|()(
*
*


s=s*の時y=1
s!=s*の時y=0
)]([)( zDED qs
密度推定値を復元する場合は、
識別モデルをニューラルネットワークで表現
l ニューラルネットワークを使う利点
ü 標本別に識別器を訓練するのではなく、単一の識別モデルを訓練する。
Ø イテレーション毎に識別器を訓練し直す必要がない。
Ø 新しい状態に到達した時の密度推定時にも、学習した状態の特徴量表現を
ある程度適用可能。
10
 
同一のネットワーク
Encoderの
出力値に対してノイズを追加
Shared Layerの
出力値に対してノイズを追加
))])'(1[log()]([logmaxarg ~'~ ss ss DEDED SB PP
D
B 
B={s_1,...s_K} : positive exemplars
実験結果(1)
11
 
実験結果(2)
12
 
(左) Exemplar Modelで推定した密度
(右) 到達回数の離散分布(実際の密度)
EX2アルゴリズムの紹介ページ
https://sites.google.com/view/ex2exploration/
まとめ
l カウントベース探索を近似した手法
l 生成モデルのような高コストなモデルを訓練させる必要がない。
l ノイズを追加させることで、連続状態空間でも適用可能
l 3D探索ゲームのような高次元状態空間/疎な報酬設計の場合でも、高い性能を発揮
13
 

More Related Content

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

EX2:exploration with exemplar models for deep reinforcement learning