hugectr gpu
play

HUGECTR GPU 15 Nov 2019 AGENDA Click-Through Rate - PowerPoint PPT Presentation

HUGECTR GPU 15 Nov 2019 AGENDA Click-Through Rate Prediction Challenges in CTR Training HugeCTR Introduction 2 CLICK-THROUGH RATE PREDICTION 3 WHAT IS CTR Wikipedia: Click -through rate ( CTR


  1. HUGECTR – GPU 加速的推荐系统训 练 15 Nov 2019 王泽寰

  2. AGENDA Click-Through Rate Prediction Challenges in CTR Training HugeCTR Introduction 2

  3. CLICK-THROUGH RATE PREDICTION 3

  4. WHAT IS CTR Wikipedia: “Click -through rate ( CTR ) is the ratio of users who click on a specific link to the number of total users who view a page, email, or advertisement.” Relatives: Data Mining, Learning to Rank, NLP, CV 4

  5. APPLICATIONS Search Advertising Recommend based on input query && advs && user information 5

  6. APPLICATIONS Recommended Ads Recommend based on advs && user information 6

  7. APPLICATIONS Content Recommendation : UGC 7

  8. APPLICATIONS Content Recommendation : PGC 8

  9. SEARCH ADVERTISING DISTRIBUTION SYSTEM Ad bank Feature Ad List Search Sys extraction Show Ranking Model Show Log Training Feature Click Log Preprocessing Click Label Matching extraction https://www.cnblogs.com/futurehau/p/6181008.html 9

  10. SEARCH ADVERTISING DISTRIBUTION SYSTEM Ad bank Feature Ad List Search Sys extraction Show Ranking Model Show Log Training Feature Click Log Preprocessing Click Label Matching extraction 10

  11. TWO STAGES RANKING Stage 2: Stage 1: Query Result Query+Top k Ranking Matching/Recall Collaborative Filtering: • • CTR user/item based RDTM • • Topic Model: LSA / LDA .. • PCR Content Model • 11

  12. CTR INFERENCE WORKFLOW Personas Embedding Feature to Model query Pull Features Get Values key Inference Item Features 12

  13. CTR TRAINING WORKFLOW Parameter Server Based Embedding + Model DataStream Feature Extraction Pull Parameters Parameter Model Training Server Worker Update Parameter 13

  14. MODEL Without DNN: Logistic Regression / Factor Machine With DNN: Embedding+MLP / Wide Deep Learning / DeepFM / DCN / DIN / DIEN 14

  15. CHALLENGES IN CTR TRAINING 15

  16. EMBEDDING + MLP Loss FC + bias Standard Network Activation Large Embedding table: E_MEM = GBs to FC + bias TBs Activation Small FC layers: FC + bias FC_MEM = #Layers * 100s * 100s (Suppose 5*500*500*4B = 5MB Embedding Input 16

  17. CTR SOLUTION CPU 100 Nodes, connected with Ethernet (1.25-1.8GB/s) Each forward/backward exchange whole the dense model ~10MB per node: 5.6ms* Compute time = ~2ms (BS=2000) Overall time = compute + data exchange = 7.6ms * Suppose 1.8GB/s Ethernet and CPU with 6TFlops per node 17

  18. CTR SOLUTION CPU 100 Nodes, connected with Ethernet (1.25-1.8GB/s) Each forward/backward exchange whole the dense model ~10MB per node: 5.6ms Compute time = ~2ms (BS=2000) Overall time = compute + data exchange = 7.6ms Bottle Neck is Network 18

  19. CTR SOLUTION Single GPU Node Single Node Within GPU server: model exchange is >83x faster (0.067ms) Compute Time: 6ms (batchsize=2x10^5) Total Time = 6ms (1.26x 100 CPU Nodes) 19

  20. CTR SOLUTION Single GPU Node Single Node Within GPU server: model exchange is >83x faster (0.067ms) Compute Time: 6ms (batchsize=2x10^5) Total Time = 6ms (1.26x 100 CPU Nodes) Bottle Neck is Compute 20

  21. CTR SOLUTION Multi GPU Nodes Multi Node Within GPU server: model exchange is 27.8x faster than CPU Compute Time: 6ms/#Node (batchsize=2x10^5/#Node) Total Time = 6ms/#Node + 0.2ms (linear scale if Nodes < 10) 21

  22. CHALLENGES FOR GPU SOLUTION Streaming Training: Dynamic Hashtable Insertion Very big hashtable (GBs~TBs) Large data I/O for data reading Very shallow networks (3~20 layers) Not a typical DNN training can be handled by current frameworks like pytorch TensorFlow 22

  23. CHALLENGES FOR GPU SOLUTION Challenges: HugeCTR: Streaming Training: Dynamic Flexible GPU Hashtable Hashtable Insertion Multi-Node training Very big hashtable (GBs~TBs) Efficient Three Stage Pipeline Large data I/O for data reading Very shallow networks (3~20 layers) 23

  24. HUGECTR INTRODUCTION 24

  25. WHAT IS HUGECTR HugeCTR is a high efficiency GPU framework designed for Click-Through-Rate (CTR) estimating training. Key Features in 2.0: • GPU Hashtable and dynamic insertion Multi-node training and enabling very large embedding • Mixed precision training • 25

  26. HOW HUGECTR HELP 1. Prototype: Showing performance and possibility on GPUs. (v1.0) 2. Reference Design: Developers and NV can work together to modify HugeCTR according to the specific requirements (v2.0 current stage) 3. Framework: Developers can train their model easily on HugeCTR (v3.0) 26

  27. NETWORK SUPPORTED Embedding + MLP Multi slot embedding: Sum / Mean Layers: Concat / Fully Connected / Relu / BatchNorm / elu Optimizer: Adam/ Momentum SGD/ Nesterov Loss: CrossEngtropy/ BinaryCrossEntropy * Supporting multiple labels and each label will have a unique weight 27

  28. NETWORK SUPPORTED Sparse Model Supported reduce ‘+’: sum / mean Empty Hashtable initialization concat Dynamic insertion {0} if no value in + + + this feature 5, 48, 90, 21 6,24,52 28

  29. PERFORMANCE Good Scalability NCCL 2.0 Three stages pipeline: reading from file • • host to device data transaction (inter / intra nodes) GPU training • *MLP Layers: 12 / MLP Output: 1024 / Embedding Vector: 64 / Table Number: 1 29

  30. PERFORMANCE TensorFlow 44x Speedup to CPU TF and same loss curve Embedding Vector: 64/ Layers: 4 / MLP Output: 200 / Table Number: 1 30

  31. PERFORMANCE Pytorch DLRM Embedding Vector: 64 / Layers: 4 / MLP Output: 512 / Table number: 64 31

  32. SYSTEM Session GPU3 GPU0 GPU1 GPU2 Dense Model Dense Model Dense Model Dense Model Network Network Network Network Data Parallel Model Sparse Model Embedding Parallel CSR DataReader Model View 32 Class View

  33. HOW TO USE A Simplified Framework For Ranking or Retrieval Weight initialization: generate a file with initialized weight according to the name in config file $ huge_ctr – -init config.json Training: $ huge_ctr – -train config.json All the network, solver and dataset is configured under config.json 33

  34. HOW TO USE Config.json Configuration file is in json format, and has four parts: Solver Optimizer Data Network 34

  35. 35

  36. HOW TO USE Dataset Dataset contains two kinds of files: 1. File list: includes the number of files and file name list with text format. A file name could be either of a relative address or absolute address. The file names are separated with ‘ \ n’ 2. Data files: includes a bunch of files with binary format. 36

  37. HOW TO USE Data File Training Set Format (RAW data with header): Slot2_nnz Slot1_nnz … Int label1 Int label2 Int label3 … Int slot1_nnz I64 key I64 key Int slot2_nnz I64 key I64 key I64 key Int label1 Int label1 sample1 Header: 37

  38. ROADMAP 1.0 3.0 2.0 • September 2019 • TensorFlow Inference • HashTable • Early 2019 Embedding • optimized slot • RAW buffer reduction • Multi-node Embedder • Dense input • Mixed Precision • Embedder+MLP Training • Inference support • More Layers • Input data check • WDL/DeepFM/DC N 38

  39. RESOURCES 源码: https://github.com/NVIDIA/HugeCTR 公众号文章: https://mp.weixin.qq.com/s/Oieuhvt2vzFEfKklTHiuOg 39

  40. KEY CONTRIBUTORS Yong Wang Ryan Jeng Joey Wang Fan Yu Algorithm Competitive Project Hashtable Advisor Study Management David Wu Gems Guo Xiaoying Jia Minseok Embedding TensorFlow Mixed Lee 40 Precision Multi-Node

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