learning and knowledge transfer with memory networks for
play

Learning and Knowledge Transfer with Memory Networks for Machine - PowerPoint PPT Presentation

Learning and Knowledge Transfer with Memory Networks for Machine Comprehension Mohit Yadav. Lovekesh Vig. Gautam Shro ff TCS Research New-Delhi Presented by Kyo Kim April 24, 2018 Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research


  1. Learning and Knowledge Transfer with Memory Networks for Machine Comprehension Mohit Yadav. Lovekesh Vig. Gautam Shro ff TCS Research New-Delhi Presented by Kyo Kim April 24, 2018 Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 1 / 27

  2. Overview Motivation 1 Background 2 Proposed Method 3 Dataset and Experiment Results 4 Summary 5 Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 2 / 27

  3. Motivation Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 3 / 27

  4. Problem Obtaining high performance in ”machine comprehension” requires abundant human annotated dataset. Measured by question answering performance. In a real-world dataset with small amount of data, wider range of vocabulary can be observed and the grammar structure is often complex. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 4 / 27

  5. High-level Overview of Proposed Method Curriculum based training procedure. 1 Knowledge transfer to increase the performance in 2 dataset with less abundant labeled data. Pre-trained memory network on small dataset. 3 Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 5 / 27

  6. Background Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 6 / 27

  7. End-to-end Memory Networks Vectorize the problem tuple. 1 Retrieve the corresponding memory attention vector. 2 Use the retrieved memory to answer the question. 3 Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 7 / 27

  8. End-to-end Memory Networks Cont. Vectorize the problem tuple Problem tuple: ( q , C , S , s ) q : question C : context text S : set of answer choices s : correct answer ( s 2 S ) Question and context embedding matrix A 2 R p · d Query vector: ~ q = A Φ ( q ) Φ : Bag of words Memory vector: ~ m i = A Φ ( c i ) for i = 1 , · · · , n where n = | C | and c i 2 C Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 8 / 27

  9. End-to-end Memory Networks Cont. Retrieve the corresponding memory attention vector m > Attention distribution: a i = softmax ( ~ q ). i ~ Second memory vector: ~ r i = B Φ ( c i ) where B is another embedding matrix similar to A . r o = P n Aggregated vector: ~ i =1 a i ~ r i q ) > U Φ ( s i )) Prediction vector: ˆ a i = softmax (( ~ r o + ~ U is the embedding matrix for the answers Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 9 / 27

  10. End-to-end Memory Networks Cont. Answer the question Pick s i that corresponds to the highest ˆ a i . Cross-entropy Loss N D L ( P , D ) = 1  X a n · log (ˆ a n ( P , D )) N D n =1 � + (1 � a n ) · log (1 � ˆ a n ( P , D )) Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 10 / 27

  11. Curriculum Learning First proposed by Bengio et al. (2009) Introduce samples with increasing ”di ffi culty”. Better local minima even under non-convex loss. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 11 / 27

  12. Pre-training and Joint-training Pre-training Have a pre-trained model to initially guide the training process in a similar domain. Joint-training Exploit the similarity between two di ff erent domains by training the model is two di ff erent domains simultaneously. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 12 / 27

  13. Proposed Method Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 13 / 27

  14. Curriculum Inspired Training (CIT) Di ffi culty Measurement P word 2 { q [ S [ C } log ( Freq ( word )) SF ( q , S , C , s ) = # { q [ S [ C } Partition the dataset into a fixed number chapter size with increasing di ffi culty. Each chapter consists of S current chapter parition [ i ]. i =1 The model is trained with fixed number of epochs per chapter. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 14 / 27

  15. CIT Cont. Loss Function N D L ( P , D , en ) = 1  X ( a n · log (ˆ a n ( P , D ))) N D n =1 � + (1 � a n ) · log (1 � ˆ a n ( P , D )) · 1 en > = c ( n ) · epc en : Current epoch c ( n ) : Chapter number that the example n is assigned to epc : Epochs per chapter Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 15 / 27

  16. Joint-Training General Joint Loss Function ˆ L ( P , TD , SD ) = 2 � · L ( P , TD ) + 2(1 � � ) · L ( P , SD ) · F ( N TD , N SD ) TD : Target dataset SD : Source dataset N D : Number of examples in the dataset D � : Tunable weight parameter Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 16 / 27

  17. Loss Functions Joint-training � = 1 2 and F ( N TD , N SD ) = 1 ˆ L ( P , TD , SD ) = L ( P , TD ) + L ( P , SD ) Weighted joint-training � 2 (0 , 1) and F ( N TD , N SD ) = N TD N SD . L ( P , TD , SD ) = 2 � · L ( P , TD )+2(1 � � ) · L ( P , SD ) · N TD ˆ N SD Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 17 / 27

  18. Loss Functions Cont. Curriculum joint-training � = 1 2 and F ( N TD , N SD ) = 1 ˆ L ( P , TD , SD ) = L ( P , TD , en ) + L ( P , SD , en ) Weighted Curriculum joint-training � 2 (0 , 1) and F ( N TD , N SD ) = N TD N SD . ˆ L ( P , TD , SD ) = 2 � · L ( P , TD , en ) + 2(1 � � ) L ( P , SD , en ) · N TD N SD Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 18 / 27

  19. Source only � = 0 and c 2 R + ˆ L ( P , TD , SD ) = c · L ( P , SD ) Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 19 / 27

  20. Dataset and Experiment Results Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 20 / 27

  21. Dataset Figure: Dataset used for experiments. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 21 / 27

  22. Experiment Results Figure: The table has two major rows. The upper row are models that only used the target dataset. The lower rows are models that used both the target and source dataset. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 22 / 27

  23. Experiment Results Figure: Categorical performance measurement in CNN-11 K . The table has two major rows. The upper row are models that only used the target dataset. The lower rows are models that used both the target and source dataset. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 23 / 27

  24. Experiment Results Figure: Knowledge transfer performance result. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 24 / 27

  25. Experiment Results Figure: Loss convergence comparison between model trained with CIT and without CIT. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 25 / 27

  26. Summary MemNN is often used in QA. Ordering the samples lead to better local minima. Joint-training is useful in obtaining better performance on small target dataset. Using pre-trained model improves performance. Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 26 / 27

  27. The End Mohit Yadav. Lovekesh Vig. Gautam Shro ff (TCS Research New-Delhi) Presented by Kyo Kim April 24, 2018 27 / 27

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend