neural text matching toolkit
play

Neural Text Matching Toolkit Yixing Fan fanyixing@ict.ac.cn - PowerPoint PPT Presentation

Neural Text Matching Toolkit Yixing Fan fanyixing@ict.ac.cn University of Chinese Academy of Sciences CAS Key Lab of Network Data Science and Technology, Institute of Computing Technology, CAS 20190215 Text matching How many people live in


  1. Neural Text Matching Toolkit Yixing Fan fanyixing@ict.ac.cn University of Chinese Academy of Sciences CAS Key Lab of Network Data Science and Technology, Institute of Computing Technology, CAS 20190215

  2. Text matching How many people live in Melbourne Matching Score/Probability What’s the population of Melbourne

  3. Text matching Match(T1,T2) = F( 𝜚 (T1), 𝜚 (T2)) Composition Function Interaction Function Task Text 1 Text 2 Information retrieval query document Question answering question answer Automatic conversation dialog response Paraphrase Identification string A string B Text matching is a core task in natural language processing.

  4. Text matching A number of deep matching models have been proposed! Information Retrieval Paraphrase Identification Question Answer DSSM [Huang et al. 2013] DeepMatch [Lu et al. 2013] ü ü Match-LSTM [Wang et al. 2016] ü CDSSM [Ye et al. 2014] ARCI [Hu et al. 2014] ü ü BiDAF [Seo et al. 2016] ü DRMM [Guo et al. 2016] ARCII [Hu et al. 2014] ü ü AoA Reader [Cui et al. 2016] ü Duet [Mitra et al. 2017] CNTN [Qiu et al. 2015] ü ü DrQA [Chen et al. 2017] ü K-NRM [Xiong et al. 2017] MatchPyramid [Pang et al. 2016] ü ü R-Net [Wang et al. 2017] ü PACRR [Hui et al. 2017] MV-LSTM [Wan et al. 2016a] ü ü SAN [Liu et al. 2017] ü DeepRank [Pang et al. 2017] Match-SRNN [Wan et al. 2016b] ü ü QANet [Yu et al. 2018] ü Conv-KNRM [Dai et al. 2018] MIX [Chen et al. 2018] ü ü BERT [Jacob et al. 2018] ü HiNT [Fan et al. 2018] … ü ü … ü … ü

  5. Text matching DSSM CDSSM Fully connected DRMM Fully connected K-NRM Fully connected interaction Duet Product-attention Conv-KNRM Self-attention Self-attention PACRR convolution convolution DeepRank embedding embedding HiNT Text left Text right NEW Model …

  6. Text matching DSSM CDSSM Fully connected DRMM Fully connected K-NRM Fully connected interaction Duet Product-attention Conv-KNRM Self-attention Self-attention PACRR convolution convolution DeepRank embedding embedding HiNT Text left Text right NEW Model …

  7. MatchZoo MatchZoo is a toolkit aims to facilitate the designing , comparing , optimizing , and deploying of deep text matching models.

  8. Opening Source Toolkit & global cooperating Ø Organizers: Yixing Fan; Jiafeng Guo; Yanyan Lan; Xueqi Cheng

  9. MatchZoo Raw Data PreProcessor Model Train & Test Training and Evaluation Model Construction Data Preparation 1. Objective functions: 1. Representation- regression 1. Data cleaning focused model classification 2. Batch modes: 2. Interaction-focused ranking 3. Data generator model 2. Metrics: MAP , NDCG … Extended Keras Library Basic Keras Ops: Extended Ops: 1. 2DGRU 1. Conv 2. Term Gating 2. LSTM 3. …… 3. ……

  10. MatchZoo 1.0 2.0 § Unified data processing API § Simplified model configuration § Easy to add new models § Automatic parameter tuning § Automatic model selection

  11. MatchZoo Ø data preprocess: ü Tokenization Unit ü Lower case Unit ü Punctual Removal Unit ü Stemming Unit ü HistogramUnit ü Digit Removal Unit ü Stop Word Removal Unit ü Word Hash Unit ü Frequency Filter Unit ü Vocabulary Unit Fruitful preprocessing unit to standardize data

  12. MatchZoo Ø Model Implementation: 128 Sentence 2 V t Matching Score 300 d = 300 ARC-II … W t,4 1D convolution … max max max d = 500 g 1 g 2 g 3 Max-pooling Sentence 1 W t,3 W … Term Gating … … … 300 300 300 Network 2D convolution … … … d = 500 … … … W t,2 … … 30K 30K 30K 30K 30K Matching dim = 50K degree <s> W 1 W 2 <s> W 2 W t,1 Sentence 2 … … dim = 100M CDSSM q d DRMM t: “racing to me” Match-SRNN Sentence 1 DSSM Sentence 2 Sentence 1 MatchPyramid … Max-pooling Sentence 1 Matching 2D convolution degree Sentence 2 Sentence 1 … … Sentence 2 Matching degree ARC-I Layer-0 Matching Matrix Layer-1 2D-ConvolutionLayer-1 2D-Pooling MV-LSTM DUET, KNRM, aNMM, Conv-KNRM …… A number of deep matching models have been implemented in the toolkit

  13. MatchZoo Ø Model Construction V t d = 300 W t,4 d = 500 1. Data Process W t,3 d = 500 W t,2 dim = 50K W t,1 dim = 100M 2. Model Configuration t: “racing to me” DSSM 3. Train & Test

  14. MatchZoo Ø Add New Model

  15. MatchZoo Tuning machine learning hyperparameters is a tedious yet crucial task, as the performance of an algorithm can be highly dependent on the choice of hyperparameters .

  16. MatchZoo Expert Knowledge Automatic Learning Expert Knowledge Preprocess Model Leaderboard Model Application Raw Data Feature Selection Evaluation of Models Training

  17. MatchZoo Automatic Learning Preprocess Model Leaderboard Model Application Raw Data Feature Selection Evaluation of Models Training From matchzoo.auto import prepare, tuner

  18. MatchZoo Models Initialization Task Definition Automatic machine learning Data Preparing Parameter Tuning Result Recording

  19. MatchZoo https://github.com/NTMC-Community/MatchZoo

  20. MatchZoo A big welcome to join us to develop the text matching toolkit!

  21. Thank You & Question Name : Yixing Fan Email : fanyixing@ict.ac.cn

  22. Reference 1. [Huang et al. 2013.] Learning Deep Structured Semantic Models for Web Search using Clickthrough Data. CIKM 2013 2. [Ye et al. 2014] A Latent Semantic Model with Convolutional-Pooling Structure for Information Retrieval. CIKM 2014 3. [Guo et al. 2016] A deep relevance matching model for ad-hoc retrieval. CIKM 2016 4. [Mitra et al. 2017] Learning to Match Using Local and Distributed Representations of Text for Web Search. WWW 2017. 5. [Xiong et al. 2017] End-to-End Neural Ad-hoc Ranking with Kernel Pooling. SIGIR 2017. 6. [Hui et al. 2017] A Position-Aware Deep Model for Relevance Matching in Information Retrieval. Conference’17 7. [Pang et al. 2017] DeepRank: A New Deep Architecture for Relevance Ranking in Information Retrieval. CIKM 2017. 8. [Dai et al. 2018] Convolutional Neural Networks for Soft � -Matching N-Grams in Ad-hoc Search. WSDM 2018. 9. [Fan et al. 2018] Modeling Diverse Relevance Patterns in Ad-hoc Retrieval. SIGIR 2018. 10. [Seo et al. 2016] Bidirectional Attention Flow for Machine Comprehension 11. [Cui et al. 2016] Attention-over-Attention Neural Networks for Reading Comprehension. 12. [Chen et al. 2016] Reading Wikipedia to Answer Open-Domain Questions. 13. [Wang et al. 2017] R-NET: MACHINE READING COMPREHENSION WITH SELF-MATCHING NETWORKS. 14. [Liu et al. 2017] Stochastic Answer Networks for Machine Reading Comprehension 15. [Yu et al. 2018] QANET: COMBINING LOCAL CONVOLUTION WITH GLOBAL SELF-ATTENTION FOR READING COMPREHENSION 16. [Jacob et al. 2018] BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding 17. [Lu et al. 2013] A Deep Architecture for Matching Short Texts. NIPS 2013. 18. [Hu et al. 2014] convolutional-neural-network-architectures-for-matching-natural-language-sentences. NIPS 2014. 19. [Qiu et al. 2015] Convolutional Neural Tensor Network Architecture for Community-Based Question Answering. IJCAI 2015 20. [Pang et al. 2016] Text Matching as Image Recognition. AAAI 2016. 21. [Wan et al. 2016a] Deep Architecture for Semantic Matching with Multiple Positional Sentence Representations. AAAI 2016. 22. [Wan et al. 2016b] Match-SRNN- Modeling the Recursive Matching Structure with Spatial RNN. IJCAI 2016 23. [Chen et al. 2018] MIX: Multi-Channel Information Crossing for Text Matching, KDD 2018

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