SlideShare a Scribd company logo
1 of 28
Download to read offline
AskMeAnything:
DynamicMemoryNetworks
forNaturalLanguageProcessing
(2015) A.Kumar et al.
발표: 곽근봉
© NBT All Rights Reserved.
이논문을선정한이유
하나의 모델로
언어를 학습할 수는 없을까?
© NBT All Rights Reserved.
QuestionAnswering(QA)
대부분의자연어처리문제는QA문제로치환가능!
© NBT All Rights Reserved.
이논문을선정한이유
하나의모델로세가지영역에서StateOfTheArt
© NBT All Rights Reserved.
참고 자료
읽다보니 지난번 GloVe 쓰셨던 그 분!
http://www.socher.org/
논문 저자의 강의 (Stanford CS224n)
https://youtu.be/OQQ-W_63UgQ?list=PL3FW7Lu3i5Jsnh1rnUwq_TcylNr7EkRe6
http://web.stanford.edu/class/cs224n/lectures/cs224n-2017-lecture16-DMN-QA.pdf
© NBT All Rights Reserved.
개요
DynamicMemoryNetwork
• QA 문제를 풀 수 있는 DMN 이라는 모델을 제안
• RNN 기반 모델
• Question, Input, Episodic Memory, Answer 모듈로 구성
• End to End 학습
© NBT All Rights Reserved.
모델설명
© NBT All Rights Reserved.
모델설명
모델설명
InputModule
: 총 Fact representations c의 개수
: t 번째 fact representation
Input이 한 문장일 경우 : = word의 개수
Input이 여러 문장일 경우 : = 문장의 개수
모델설명
QuestionModule
( 마지막 hidden state만 사용! )
모델설명
EpisodicMemoryModule
모델설명
EpisodicMemoryModule
Fact c를 돌면서 에피소드 e를 계산한다.
각 step마다 gate를 통과하면서 weight를 받게 된다.
Gate 함수 G는 input c, memory m, question q를 입력으로 받는다.
2 layer feed forward neural net 으로 구성된다
© NBT All Rights Reserved.
모델설명
EpisodicMemoryModule
Gate 연산을 위한 z vector
추후 계산양을 줄이기 위해서 W연산은 제외시킴.
(W 연산을 빼더라도 성능에 큰 영향이 없었다고 한다.)
모델설명
AnswerModule
© NBT All Rights Reserved.
모델설명
ObjectiveFunction
= 0, = 1 로 두고 학습 시작
= 1, = 1 로 두고 학습
초기에는
Gate가 충분히 학습되면
© NBT All Rights Reserved.
결과분석
FacebookbAbITask(QA)
© NBT All Rights Reserved.
FacebookbAbI데이터
1Johntravelledtothe hallway.
2 Maryjourneyedtothe bathroom.
3 Where isJohn? hallway 1
1 This morning Mary moved to the kitchen.
2 This afternoon Mary moved to the cinema.
3 Yesterday Bill went to the bedroom.
4 Yesterday Mary journeyed to the school.
5 Where was Mary before the cinema? kitchen 2 1
Ex) Single-supporting-fact
Ex) Time-reasoning
© NBT All Rights Reserved.
결과분석
SentimentAnalysis(감정분석)
© NBT All Rights Reserved.
결과분석
POSTagging(품사태깅)
© NBT All Rights Reserved.
결과분석
반복횟수에따른성능
© NBT All Rights Reserved.
결과분석
반복횟수에따른성능
© NBT All Rights Reserved.
결과분석
반복횟수에따른성능
© NBT All Rights Reserved.
VisualQuestionAnswering
© NBT All Rights Reserved.
VisualQuestionAnswering
© NBT All Rights Reserved.
VisualQuestionAnswering
© NBT All Rights Reserved.
VisualQuestionAnswering
© NBT All Rights Reserved.
요약
• 대부분의 자연어처리 Task는 QA로 치환할 수 있음
• DMN은 다양한 QA 문제들에 높은 성능을 냄
• Visual QA 에도 응용 가능함
© NBT All Rights Reserved.
감사합니다.

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil 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 2024Albert 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 InsightsKurio // 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 2024Search 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 summarySpeakerHub
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit 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 managementMindGenius
 
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
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
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...
 

Ask me anything: Dynamic memory networks for natural language processing

  • 2. © NBT All Rights Reserved. 이논문을선정한이유 하나의 모델로 언어를 학습할 수는 없을까?
  • 3. © NBT All Rights Reserved. QuestionAnswering(QA) 대부분의자연어처리문제는QA문제로치환가능!
  • 4. © NBT All Rights Reserved. 이논문을선정한이유 하나의모델로세가지영역에서StateOfTheArt
  • 5. © NBT All Rights Reserved. 참고 자료 읽다보니 지난번 GloVe 쓰셨던 그 분! http://www.socher.org/ 논문 저자의 강의 (Stanford CS224n) https://youtu.be/OQQ-W_63UgQ?list=PL3FW7Lu3i5Jsnh1rnUwq_TcylNr7EkRe6 http://web.stanford.edu/class/cs224n/lectures/cs224n-2017-lecture16-DMN-QA.pdf
  • 6. © NBT All Rights Reserved. 개요 DynamicMemoryNetwork • QA 문제를 풀 수 있는 DMN 이라는 모델을 제안 • RNN 기반 모델 • Question, Input, Episodic Memory, Answer 모듈로 구성 • End to End 학습
  • 7. © NBT All Rights Reserved. 모델설명
  • 8. © NBT All Rights Reserved. 모델설명
  • 9. 모델설명 InputModule : 총 Fact representations c의 개수 : t 번째 fact representation Input이 한 문장일 경우 : = word의 개수 Input이 여러 문장일 경우 : = 문장의 개수
  • 12. 모델설명 EpisodicMemoryModule Fact c를 돌면서 에피소드 e를 계산한다. 각 step마다 gate를 통과하면서 weight를 받게 된다. Gate 함수 G는 input c, memory m, question q를 입력으로 받는다. 2 layer feed forward neural net 으로 구성된다
  • 13. © NBT All Rights Reserved. 모델설명 EpisodicMemoryModule Gate 연산을 위한 z vector 추후 계산양을 줄이기 위해서 W연산은 제외시킴. (W 연산을 빼더라도 성능에 큰 영향이 없었다고 한다.)
  • 15. © NBT All Rights Reserved. 모델설명 ObjectiveFunction = 0, = 1 로 두고 학습 시작 = 1, = 1 로 두고 학습 초기에는 Gate가 충분히 학습되면
  • 16. © NBT All Rights Reserved. 결과분석 FacebookbAbITask(QA)
  • 17. © NBT All Rights Reserved. FacebookbAbI데이터 1Johntravelledtothe hallway. 2 Maryjourneyedtothe bathroom. 3 Where isJohn? hallway 1 1 This morning Mary moved to the kitchen. 2 This afternoon Mary moved to the cinema. 3 Yesterday Bill went to the bedroom. 4 Yesterday Mary journeyed to the school. 5 Where was Mary before the cinema? kitchen 2 1 Ex) Single-supporting-fact Ex) Time-reasoning
  • 18. © NBT All Rights Reserved. 결과분석 SentimentAnalysis(감정분석)
  • 19. © NBT All Rights Reserved. 결과분석 POSTagging(품사태깅)
  • 20. © NBT All Rights Reserved. 결과분석 반복횟수에따른성능
  • 21. © NBT All Rights Reserved. 결과분석 반복횟수에따른성능
  • 22. © NBT All Rights Reserved. 결과분석 반복횟수에따른성능
  • 23. © NBT All Rights Reserved. VisualQuestionAnswering
  • 24. © NBT All Rights Reserved. VisualQuestionAnswering
  • 25. © NBT All Rights Reserved. VisualQuestionAnswering
  • 26. © NBT All Rights Reserved. VisualQuestionAnswering
  • 27. © NBT All Rights Reserved. 요약 • 대부분의 자연어처리 Task는 QA로 치환할 수 있음 • DMN은 다양한 QA 문제들에 높은 성능을 냄 • Visual QA 에도 응용 가능함
  • 28. © NBT All Rights Reserved. 감사합니다.