Top Banner
Joshua Patterson, Data Science MD Meetup May Meeting @datametrician DATA SCIENCE ON GPU
48

Data Science on GPU

Jan 21, 2018

Download

Software

DataScienceMD
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data Science on GPU

Joshua Patterson, Data Science MD Meetup May Meeting

@datametrician

DATA SCIENCE ON GPU

Page 2: Data Science on GPU

AGENDA

• Hadoop/Spark

• GPU Applications

• Integrated GPU Acceleration

• Cyber Security

Page 3: Data Science on GPU

DATA DELUGE TO INSIGHT HUNGRY

• INCREASING DATA VARIETY

Search Marketing

Behavioral Targeting

Dynamic Funnels

User Generated Content

Mobile Web

SMS/MMS

Sentiment

HD Video

Speech To Text

Product/Service Logs

Social Network

Business Data Feeds

User Click Stream

Sensors Infotainment Systems

Wearable Devices

CyberSecurity Logs

ConnectedVehicles

Machine Data

IoT Data

Dynamic Pricing

Payment Record

Purchase Detail

Purchase Record

Support Contacts

Segmentation

Offer Details

Web Logs

Offer History

A/B Testing

BUSINESS PROCESS

PETA

BYTE

STE

RABY

TES

GIG

ABYT

ESEX

ABYT

ESZE

TTAB

YTES

Streaming Video

Natural Language Processing

WEB

DIGITAL

AI

Page 4: Data Science on GPU

SPARK THE CATALYSTThe Glue that Binds Big Data

• Spark has almost become synonymous with Hadoop and Big Data• It’s the interface/API for big data app to app communication• The processing layer for big data and leading ML framework• Five main components RDD API, SQL, Streaming, MLlib, and GraphX

Page 5: Data Science on GPU

THE RISE OF BIG DATAWhat is driving adoption?

The usage of Hadoop/Big Data tools grew to 39%, up from 29% in 2015 (and 17% in 2014), driven by Apache Spark, MLlib (Spark Machine Learning Library) and H2O.

R remains the leading tool, with 49% share (up from 46.9% in 2015), but Python usage grew faster and it almost caught up to R with 45.8% share (up from 30.3%).

New (in this poll) tools that received at least 1% share votes in 2016 were: Anaconda, 16%

This year, 18% of voters used Deep Learning tools, doubling the 9% in 2015.

Top tools Deep Learning Tools:• Tensorflow, 6.8%• Theano ecosystem (including Pylearn2), 5.1%• Caffe, 2.3%• MATLAB Deep Learning Toolbox, 2.0%• Deeplearning4j, 1.7%

The increased choice of tools is reflected in wider usage. The average number of tools used was 6.0, vs 4.8 in 2015.http://www.kdnuggets.com/2016/06/r-python-top-analytics-data-mining-data-science-software.html

Big Data and Business Analytics Revenues Forecast to Reach $150.8 Billion This Year- IDC

Page 6: Data Science on GPU

Application/Visualization

ARCHITECTING A PLATFORMInitial Plan

Data Ingest

StorageBatch

Processing

Stream Processing

Serving Layer

Notebook

Page 7: Data Science on GPU

ENTERPRISE DEPLOYMENTIn Reality

Data Ingest

StorageBatch

Processing

Stream Processing

Serving Layer

Application/Visualization

Notebook

Page 8: Data Science on GPU

SPARK IS NOT ENOUGHUsers Want More Efficiency

SCALE AT SPEED SAME FUNCTIONALITY

Page 9: Data Science on GPU

9

PEAK DOUBLE PRECISION GFLOPS

0

1000

2000

3000

4000

5000

6000

7000

8000

2008 2009 2010 2011 2012 2013 2014 2015 2016 2017

NVIDIA GPU x86 CPU

M1060M2050

M2090K20

K40K80

Pascal

Volta

Page 10: Data Science on GPU

10

SCALE OUTLots of Nodes Interconnected with

Vast Network Overhead

STRONG SCALEFew Lightning-Fast Nodes with

Performance of Hundreds of Weak Nodes

!

Network

Fabric

Server

Racks

Page 11: Data Science on GPU

11

DGX-1250 Servers In-a-Box

170 TFLOPS

8x Tesla P100 16GB

NVLink Hybrid Cube Mesh

2x Xeon

8 TB RAID 0

Quad IB 100Gbps

Dual 10GbE

3U — 3200W

Page 12: Data Science on GPU

12

Tesla Revolutionizes Machine Learning

GOOGLE BRAIN APPLICATION – DEEP LEARNING

BEFORE TESLA AFTER TESLA

Cost $5,000K $200K

Servers 1,000 Servers 16 Tesla Servers

Energy 600 KW 4 KW

Performance 1x 6x

Page 13: Data Science on GPU

13

MAPD

MapDCore

MapDImmerse

Page 14: Data Science on GPU

14

MAPD ARCHITECTURE

LLVM Backend Rendering Streaming

LLVM creates one custom function that runs at speeds approaching hand-written functions. LLVM enables generic targeting of different architectures + run simultaneously on CPU/GPU.

Speed eliminates need to pre-index or aggregate data. Compute resides on GPUs freeing CPUs to parse + ingest. Finally, newest data can be combined with billions of rows of “near historical” data.

Data goes from compute (CUDA) to graphics (OpenGL) pipeline without copy and comes back as compressed PNG (~100 KB) rather than raw data (> 1GB).

Page 15: Data Science on GPU

15

MAPD OPEN SOURCE

Visualization Libraries

JavaScript libraries that allow users to build custom web-based visualization apps powered by a MapD Core database based on DC.js.

LLVM

MapD Core SQL queries are compiled with a just-in-time (JIT) LLVM based compiler, and run as NVIDIA GPU machine code.

Page 16: Data Science on GPU

16

MAPD ENTERPRISE

Distributed Scale-out High Availability

MapD Core has native distributed scale-out capabilities. MapD Core users can query and visualize larger datasets with much smaller cluster sizes than traditional solutions.

MapD Core has high availability functionality that provides durability and redundancy. Ingest and queries are load balanced across servers for additional throughput.

Page 17: Data Science on GPU

17

BLAZINGDB

ARCHITECTURE PRODUCT VIEW

Page 18: Data Science on GPU

18

CONTINUUM ANACONDA PYTHON

Anaconda Numba is a compiler for Python array and numerical functions that does native code generation for GPU hardware.

How GPU Acceleration WorksApplication Code

Compute-Intensive Functions

Rest of SequentialCPU Code

GPU 5% of code

+

CPU

Page 19: Data Science on GPU

19

CONTINUUM ANACONDA PYTHON

Rewrote @scikit_learn PolynomialFeatures in @ContinuumIO Numba. Got a 40x speedup (would be bigger with more data!) 12 lines of code

Deep learning researcher & educator. Founder: fast.ai; Faculty: USF & Singularity University; // Previously - CEO: Enlitic; President: Kaggle; CEO Fastmail

Jeremy Howard

Page 20: Data Science on GPU

Machine Learning AnywhereH2O.AI

Page 21: Data Science on GPU

21

GPU ANALYTICS DEMO

Page 22: Data Science on GPU

22

Page 23: Data Science on GPU

23

GRAPHISTRYScale and Accelerate the Visual Analytics Tier

Optimized Networking

GPU Analysis and MLGPU Rendering

(No JavaScript!)

Page 24: Data Science on GPU

Open-source GPU-accelerated graph analytics library

Multi-GPU optimized algorithms

Reduced cost and increased performance

Performance constantly improving

GUNROCK

Page 25: Data Science on GPU

25

GPU OPEN ANALYTICS INITIATIVEgithub.com/gpuopenanalytics

GPU Data Frame (GDF)

Ingest/Parse

Exploratory Analysis

Feature Engineering

ML/DL Algorithms

Grid Search

Scoring

ModelExport

Page 26: Data Science on GPU

26

GPU DATA FRAMEData Movement Kills Performance

Volume of data

Num

ber o

f dat

a ha

ndof

fs

Handoff

Page 27: Data Science on GPU

27

DATA SCIENCE IS ITERATIVEToo Many Permutations

No Handoffs Full Interoperability

H2O.ai

Continuum Gunrock

Graphistry

BlazingDB MapD

GPU Data

Frame

Page 28: Data Science on GPU

28

DATA SCIENCE IS ITERATIVEGOAI Solution

https://github.com/gpuopenanalytics/demo-docker

Page 29: Data Science on GPU

29

RULES DON’T SCALE

Right now, financial services reports it takes an average of 98 days to detect an Advance Threat but retailers say it can be about seven months.

Once the security community moves beyond the mantras “encrypt everything” and “secure the perimeter,” it can begin developing intelligent prioritization and response plans to various kinds of breaches – with a strong focus on integrity.

The challenge lies in efficiently scaling these technologies for practical deployment, and making them reliable for large networks. This is where the security community should focus its efforts.

http://www.wired.com/2015/12/the-cia-secret-to-cybersecurity-that-no-one-seems-to-get/

Current methods are too slow

Page 30: Data Science on GPU

30

ATTACKS ARE MORE SOPHISTICATEDHow Hackers Hijacked a Bank’s Entire Online Operation

https://www.wired.com/2017/04/hackers-hijacked-banks-entire-online-operation/

Page 31: Data Science on GPU

31

DISCOVERING UNKNOWN THREATSCurrent methods aren’t fast enough

The SIEM & Advanced Analytics layer is where Cyber Security Analytics primarily focuses (all CPU based):• Apache Spot• Apache Metron• ELKThe final stage is Deep Learning:• Fortune 500 companies have outgrown

traditional SIEM and need to move to AI quickly to identify threats

• New technologies are emerging in anomaly detection and network analysis, but they still rely on CPU-based architectures. End to end GPU acceleration will allow them to migrate to an accelerate platform.

• A need to bring it all together, but hyper scale is expensive.

Page 32: Data Science on GPU

32

MOVING TO BIG DATA IS A STARTSpark outperforms traditional SIEM

vs

Big Data Solution10 node cluster - ~$60k in hardware

Production SIEM of Fortune 500 Enterprise Data450+ columns~250 million events per day

SIEM

Spark vs SIEM Benchmarks from Accenture Labs - Strata NY, Bsides LV

Page 33: Data Science on GPU

33

MOVING TO BIG DATA IS A STARTSpark outperforms traditional SIEM

Typical Scenario Time Period SIEM Big Data Speed Up

1 Show all network communication from one host (IP) to multiple hosts (IPs)

1 Day 3h 20m 13s 1m 44s 114 Times Faster

1 Week Not Feasible* 4m 05s

2 Retrieve failed logon attempts in Active Directory

1 Day 18m 26s 1m 37s 10 Times Faster

1 Week 2h 13m 45s 3m 10s 41 Times Faster

3 Search for Malware (exe) in Symantec logs 1 Day 3h 24m 36s 1m 37s 125 Times Faster

1 Week Not Feasible* 3m 22s

4 View all proxy logs for a for specific domain 1 Day 4h 30m 13s 2m 54s 92 Times Faster

1 Week Not Feasible* 1m 09s**

Spark vs SIEM Benchmarks from Accenture Labs - Strata NY, Bsides LV

Page 34: Data Science on GPU

34

GPU DATABASES ARE EVEN FASTER1.1 Billion Taxi Ride Benchmarks

21 30

1560

80 99

1250

150 269

2250

372

696

2970

0

500

1000

1500

2000

2500

3000

3500

4000

4500

5000

MapD DGX-1 MapD 4 x P100 Redshift 6-node Spark 11-node

Query 1 Query 2 Query 3 Query 4

Tim

e in

Mill

isec

onds

Source: MapD Benchmarks on DGX from internal NVIDIA testing following guidelines of Mark Litwintschik’s blogs: Redshift, 6-node ds2.8xlarge cluster & Spark 2.1, 11 x m3.xlarge cluster w/ HDFS @marklit82

10190 8134 19624 85942

Page 35: Data Science on GPU

35

VISUALIZATION WITH GPULess hardware, more performance, more scale

Page 36: Data Science on GPU

36

VISUALIZATION WITH GPULess hardware, more performance, more scale

1/10th the hardware1-2 orders of

magnitude more performance

Page 37: Data Science on GPU

37

VISUALIZATION WITH GPULess hardware, more performance, more scale

1/10th the hardware1-2 orders of

magnitude more performance

Real time visualization of 100K+ nodes 1M+ Edges50-100x faster clustering than other solutions

Page 38: Data Science on GPU

38

LISTS DO NOT VISUALLY SCALE

Text search is a greatstarting point!

Does not scaleDo not see the 30K+ events nor the IPs, users, nor how

they relate…

Page 39: Data Science on GPU

39

BAR CHARTS HIDE RELATIONSHIPS

Good for summaries!

But not: individual items

But not: behaviors, relationships, patterns, outliers, …

?

Page 40: Data Science on GPU

40

GRAPHS: A KEY MISSING

VIEW

Unified ModelShows entities, events, and relationships

Multipurpose: connect, see, interact

VisualInspect individual items

See behavior, patterns, and outliersScale to enterprise workloads

Page 41: Data Science on GPU

41

DIFFERENT GRAPHS, DIFFERENT QUESTIONS

UniEx: Network mapping

“Is it safe to reboot this?”

ip ip

HyperEx: Incident response“Did this escalate?”

MultiEx: SSH trails

“Is a user crossing zones?”

ipuser

userip

ip

userevent

event

user

ip

Page 42: Data Science on GPU

42

DIFFERENT GRAPHS, DIFFERENT QUESTIONS

Fraud: Tracking Embezzlers

Hunting: Daily Anomalies

SecOps: Shadow IT Use

Ops/NOC: Outage Root Cause

Threat Intel: Botnet Analysis

IR: Killchain Analysis

Page 43: Data Science on GPU

43

DISCOVERING UNKNOWN THREATSCurrent methods are too slow

The SIEM & Advanced Analytics layer is where Cyber Security Analytics primarily focuses (all CPU based):• Apache Spot• Apache Metron• ELKThe final stage is Deep Learning:• Fortune 500 companies have outgrown

traditional SIEM and need to move to AI quickly to identify threats

• New technologies are emerging in anomaly detection and network analysis, but they still rely on CPU-based architectures. End to end GPU acceleration will allow them to migrate to an accelerate platform.

• A need to bring it all together, but hyper scale is expensive.

Page 44: Data Science on GPU

44

DISCOVERING UNKNOWN THREATSBringing the data pipeline together with GPU

GAMMA Architecture

The SIEM & Advanced Analytics layer is where Cyber Security Analytics primarily focuses (all CPU based):• Apache Spot• Apache Metron• ELKThe final stage is Deep Learning:• Fortune 500 companies have outgrown

traditional SIEM and need to move to AI quickly to identify threats

• New technologies are emerging in anomaly detection and network analysis, but they still rely on CPU-based architectures. End to end GPU acceleration will allow them to migrate to an accelerate platform.

• A need to bring it all together, but hyper scale is expensive.

We’re building a platform for GPU-Accelerated Machine Learning and Machine Data Analytics, GAMMA for short.

Not just for cybersecurity, but for other machine data, log, and event problems in general. This architecture will allow speed, scale, and efficiency required for cybersecurity, IOT, and more.

The ultimate goal is GPU acceleration at every level, from streaming to deep learning, in an integrated hardware and software solution.

Page 45: Data Science on GPU

45

BUILDING INTELLIGENT DEFENSEGAMMA, an AI platform for Machine Data

Analysis SUPERVISED ML

UNSUPERVISED MLTIME SERIES

GRAPH ANALYTICS DEEP LEARNING

cuSTINGER

Analytics Progression

All steps will be GPU acceleratedAny and All Cyber Telemetry

Page 46: Data Science on GPU

46

Batch Processing

GPU Based Technologies

Data Ingest

Storage

Stream Processing

Serving Layer

Application/Visualization

Notebook

Analytics

GraphVisualization

Graph Traditional

GAMMA ARCHITECTURELess Hardware More Performance with Scale Same Code

Page 47: Data Science on GPU

47

CALL TO ACTIONOPEN IS BETTER!

Let’s Collaborate!

Page 48: Data Science on GPU

Joshua Patterson @datametrician

QUESTIONS?