CSCI5570 Large Scale Data Processing Systems

Slides:



Advertisements
Similar presentations
Piccolo: Building fast distributed programs with partitioned tables Russell Power Jinyang Li New York University.
Advertisements

Make Sense of Big Data Researched by JIANG Wen-rui Led by Pro. ZOU
Oracle Labs Graph Analytics Research Hassan Chafi Sr. Research Manager Oracle Labs Graph-TA 2/21/2014.
Differentiated Graph Computation and Partitioning on Skewed Graphs
Distributed Graph Analytics Imranul Hoque CS525 Spring 2013.
Distributed Graph Processing Abhishek Verma CS425.
GraphChi: Big Data – small machine
Matei Zaharia Large-Scale Matrix Operations Using a Data Flow Engine.
Yucheng Low Aapo Kyrola Danny Bickson A Framework for Machine Learning and Data Mining in the Cloud Joseph Gonzalez Carlos Guestrin Joe Hellerstein.
Piccolo – Paper Discussion Big Data Reading Group 9/20/2010.
GraphLab A New Parallel Framework for Machine Learning Carnegie Mellon Based on Slides by Joseph Gonzalez Mosharaf Chowdhury.
Design Patterns for Efficient Graph Algorithms in MapReduce Jimmy Lin and Michael Schatz University of Maryland Tuesday, June 29, 2010 This work is licensed.
Paper by: Grzegorz Malewicz, Matthew Austern, Aart Bik, James Dehnert, Ilan Horn, Naty Leiser, Grzegorz Czajkowski (Google, Inc.) Pregel: A System for.
A Lightweight Infrastructure for Graph Analytics Donald Nguyen Andrew Lenharth and Keshav Pingali The University of Texas at Austin.
Joseph Gonzalez Postdoc, UC Berkeley AMPLab A System for Distributed Graph-Parallel Machine Learning Yucheng Low Aapo Kyrola.
Joseph Gonzalez Yucheng Low Aapo Kyrola Danny Bickson Joe Hellerstein Alex Smola Distributed Graph-Parallel Computation on Natural Graphs Haijie Gu The.
BiGraph BiGraph: Bipartite-oriented Distributed Graph Partitioning for Big Learning Jiaxin Shi Rong Chen, Jiaxin Shi, Binyu Zang, Haibing Guan Institute.
GraphLab A New Framework for Parallel Machine Learning
Pregel: A System for Large-Scale Graph Processing
By: Jeffrey Dean & Sanjay Ghemawat Presented by: Warunika Ranaweera Supervised by: Dr. Nalin Ranasinghe.
Carnegie Mellon University GraphLab Tutorial Yucheng Low.
Ex-MATE: Data-Intensive Computing with Large Reduction Objects and Its Application to Graph Mining Wei Jiang and Gagan Agrawal.
Pregel: A System for Large-Scale Graph Processing Presented by Dylan Davis Authors: Grzegorz Malewicz, Matthew H. Austern, Aart J.C. Bik, James C. Dehnert,
X-Stream: Edge-Centric Graph Processing using Streaming Partitions
GRAPH PROCESSING Hi, I am Mayank and the second presenter for today is Shadi. We will be talking about Graph Processing.
Distributed shared memory. What we’ve learnt so far  MapReduce/Dryad as a distributed programming model  Data-flow (computation as vertex, data flow.
Ahsanul Haque *, Swarup Chandra *, Latifur Khan * and Michael Baron + * Department of Computer Science, University of Texas at Dallas + Department of Mathematical.
CSE 486/586 CSE 486/586 Distributed Systems Graph Processing Steve Ko Computer Sciences and Engineering University at Buffalo.
Carnegie Mellon Yucheng Low Aapo Kyrola Danny Bickson A Framework for Machine Learning and Data Mining in the Cloud Joseph Gonzalez Carlos Guestrin Joe.
Pregel: A System for Large-Scale Graph Processing Grzegorz Malewicz, Matthew H. Austern, Aart J. C. Bik, James C. Dehnert, Ilan Horn, Naty Leiser, and.
MATRIX MULTIPLY WITH DRYAD B649 Course Project Introduction.
PREDIcT: Towards Predicting the Runtime of Iterative Analytics Adrian Popescu 1, Andrey Balmin 2, Vuk Ercegovac 3, Anastasia Ailamaki
Joseph Gonzalez Yucheng Low Danny Bickson Distributed Graph-Parallel Computation on Natural Graphs Haijie Gu Joint work with: Carlos Guestrin.
Carnegie Mellon Yucheng Low Aapo Kyrola Danny Bickson A Framework for Machine Learning and Data Mining in the Cloud Joseph Gonzalez Carlos Guestrin Joe.
GraphX: Graph Analytics on Spark
Practical Message-passing Framework for Large-scale Combinatorial Optimization Inho Cho, Soya Park, Sejun Park, Dongsu Han, and Jinwoo Shin KAIST 2015.
Data Structures and Algorithms in Parallel Computing
Graph-Based Parallel Computing
Factorbird: a Parameter Server Approach to Distributed Matrix Factorization Sebastian Schelter, Venu Satuluri, Reza Zadeh Distributed Machine Learning.
PowerGraph: Distributed Graph- Parallel Computation on Natural Graphs Joseph E. Gonzalez, Yucheng Low, Haijie Gu, and Danny Bickson, Carnegie Mellon University;
A Distributed Framework for Machine Learning and Data Mining in the Cloud BY YUCHENG LOW, JOSEPH GONZALEZ, AAPO KYROLA, DANNY BICKSON, CARLOS GUESTRIN.
Department of Computer Science, Johns Hopkins University Pregel: BSP and Message Passing for Graph Computations EN Randal Burns 14 November 2013.
Chenning Xie+, Rong Chen+, Haibing Guan*, Binyu Zang+ and Haibo Chen+
Parallel and Distributed Systems for Probabilistic Reasoning
A Peta-Scale Graph Mining System
Distributed Programming in “Big Data” Systems Pramod Bhatotia wp
Pagerank and Betweenness centrality on Big Taxi Trajectory Graph
Big Learning with Graphs
PREGEL Data Management in the Cloud
Distributed Graph-Parallel Computation on Natural Graphs
Introduction to MapReduce and Hadoop
CSCI5570 Large Scale Data Processing Systems
CSCI5570 Large Scale Data Processing Systems
Kijung Shin1 Mohammad Hammoud1
Introduction to Spark.
Data Structures and Algorithms in Parallel Computing
Mayank Bhatt, Jayasi Mehar
COS 518: Advanced Computer Systems Lecture 12 Mike Freedman
Distributed Systems CS
Replication-based Fault-tolerance for Large-scale Graph Processing
Scalable Parallel Interoperable Data Analytics Library
Apache Spark Lecture by: Faria Kalim (lead TA) CS425, UIUC
Degree-aware Hybrid Graph Traversal on FPGA-HMC Platform
Pregelix: Think Like a Vertex, Scale Like Spandex
HPML Conference, Lyon, Sept 2018
Da Yan, James Cheng, Yi Lu, Wilfred Ng Presented By: Nafisa Anzum
Apache Spark Lecture by: Faria Kalim (lead TA) CS425 Fall 2018 UIUC
Saeed Rahmani, Dr. Mohammd Hadi Sadroddini Shiraz University
Markov Networks.
Gurbinder Gill Roshan Dathathri Loc Hoang Keshav Pingali
Presentation transcript:

CSCI5570 Large Scale Data Processing Systems Graph Processing Systems James Cheng CSE, CUHK Slide Ack.: modified based on the slides from Joseph Gonzalez

PowerGraph: Distributed Graph-Parallel Computation on Natural Graphs Joseph E. Gonzalez, Yucheng Low, Haijie Gu, Danny Bickson, Carlos Guestrin OSDI 2012

Graphs are ubiquitous..

People Facts Products Interests Ideas Social Media Science Advertising Web Graphs encode relationships between: Big: billions of vertices and edges and rich metadata People Facts Products Interests Ideas

Graphs are Essential to Data-Mining and Machine Learning Identify influential people and information Find communities Target ads and products Model complex data dependencies

Natural Graphs Graphs derived from natural phenomena

Problem: Existing distributed graph computation systems perform poorly on Natural Graphs.

PageRank on Twitter Follower Graph Natural Graph with 40M Users, 1.4 Billion Links Order of magnitude by exploiting properties of Natural Graphs PowerGraph Hadoop results from [Kang et al. '11] Twister (in-memory MapReduce) [Ekanayake et al. ‘10]

Properties of Natural Graphs Power-Law Degree Distribution

Power-Law Degree Distribution More than 108 vertices have one neighbor. High-Degree Vertices Top 1% of vertices are adjacent to 50% of the edges! Number of Vertices AltaVista WebGraph 1.4B Vertices, 6.6B Edges Degree

Power-Law Degree Distribution “Star Like” Motif President Obama Followers

Power-Law Graphs are Difficult to Partition CPU 1 CPU 2 Power-Law graphs do not have low-cost balanced cuts [Leskovec et al. 08, Lang 04] Traditional graph-partitioning algorithms perform poorly on Power-Law Graphs. [Abou-Rjeili et al. 06]

Properties of Natural Graphs High-degree Vertices Power-Law Degree Distribution Low Quality Partition

PowerGraph Program Run on This For This Split High-Degree vertices Machine 1 Machine 2 Split High-Degree vertices New Abstraction  Equivalence on Split Vertices

How do we program graph computation? “Think like a Vertex.” -Malewicz et al. [SIGMOD’10]

The Graph-Parallel Abstraction A user-defined Vertex-Program runs on each vertex Graph constrains interaction along edges Using messages (e.g. Pregel [PODC’09, SIGMOD’10]) Through shared state (e.g., GraphLab [UAI’10, VLDB’12]) Parallelism: run multiple vertex programs simultaneously

Example What’s the popularity of this user? Depends on the popularity their followers Depends on popularity of her followers What’s the popularity of this user? Popular?

Weighted sum of neighbors’ ranks PageRank Algorithm Rank of user i Weighted sum of neighbors’ ranks Update ranks in parallel Iterate until convergence

The Pregel Abstraction Vertex-Programs interact by sending messages. Pregel_PageRank(i, messages) : // Receive all the messages total = 0 foreach( msg in messages) : total = total + msg // Update the rank of this vertex R[i] = 0.15 + total // Send new messages to neighbors foreach(j in out_neighbors[i]) : Send msg(R[i] * wij) to vertex j i Malewicz et al. [PODC’09, SIGMOD’10]

The GraphLab Abstraction Vertex-Programs directly read the neighbors state GraphLab_PageRank(i) // Compute sum over neighbors total = 0 foreach( j in in_neighbors(i)): total = total + R[j] * wji // Update the PageRank R[i] = 0.15 + total // Trigger neighbors to run again if R[i] not converged then foreach( j in out_neighbors(i)): signal vertex-program on j i Low et al. [UAI’10, VLDB’12]

Challenges of High-Degree Vertices Sends many messages (Pregel) Touches a large fraction of graph (GraphLab) Edge meta-data too large for single machine Sequentially process edges Asynchronous Execution requires heavy locking (GraphLab) Synchronous Execution prone to stragglers (Pregel)

Communication Overhead for High-Degree Vertices Fan-In vs. Fan-Out

Pregel Message Combiners on Fan-In Machine 1 Machine 2 A + Sum B D C User defined commutative associative (+) message operation:

Pregel Struggles with Fan-Out Machine 1 Machine 2 A B D C Broadcast sends many copies of the same message to the same machine!

Fan-In and Fan-Out Performance PageRank on synthetic Power-Law Graphs Piccolo was used to simulate Pregel with combiners High Fan-Out Graphs High Fan-In Graphs More high-degree vertices

GraphLab Ghosting Machine 1 Machine 2 D D B Ghost C C Changes to master are synced to ghosts

GraphLab Ghosting Machine 1 Machine 2 D D B C C Ghost Changes to neighbors of high degree vertices creates substantial network traffic

Fan-In and Fan-Out Performance PageRank on synthetic Power-Law Graphs GraphLab is undirected Pregel Fan-Out GraphLab Fan-In/Out Pregel Fan-In More high-degree vertices

Graph Partitioning Graph parallel abstractions rely on partitioning: Minimize communication Balance computation and storage Machine 1 Machine 2 Y Data transmitted across network O(# cut edges)

Random Partitioning Both GraphLab and Pregel resort to random (hashed) partitioning on natural graphs 10 Machines  90% of edges cut 100 Machines  99% of edges cut! Machine 1 Machine 2

GraphLab and Pregel are not well suited for natural graphs In Summary GraphLab and Pregel are not well suited for natural graphs Challenges of high-degree vertices Low quality partitioning

PowerGraph GAS Decomposition: distribute vertex-programs Move computation to data Parallelize high-degree vertices Vertex Partitioning: Effectively distribute large power-law graphs

A Common Pattern for Vertex-Programs GraphLab_PageRank(i) // Compute sum over neighbors total = 0 foreach( j in in_neighbors(i)): total = total + R[j] * wji // Update the PageRank R[i] = 0.15 + total // Trigger neighbors to run again if R[i] not converged then foreach( j in out_neighbors(i)) signal vertex-program on j Gather Information About Neighborhood Update Vertex Signal Neighbors & Modify Edge Data

GAS Decomposition Gather (Reduce) Apply Scatter Σ Σ1 + Σ2  Σ3 Accumulate information about neighborhood Apply the accumulated value to center vertex Update adjacent edges and vertices. User Defined: User Defined: Apply( , Σ)  Y’ Y User Defined: Scatter( )  Y’ Gather( )  Σ Y Σ1 + Σ2  Σ3 Σ Y’ Y’ Y Update Edge Data & Activate Neighbors + … +  Y Parallel Sum Y Y +

PageRank in PowerGraph PowerGraph_PageRank(i) Gather( j  i ) : return wji * R[j] sum(a, b) : return a + b; Apply(i, Σ) : R[i] = 0.15 + Σ Scatter( i  j ) : if R[i] changed then trigger j to be recomputed

Distributed Execution of a PowerGraph Vertex-Program Machine 1 Machine 2 Master Gather Y’ Y’ Y’ Y’ Y Σ Σ1 Σ2 + + + Y Mirror Apply Y Y Machine 3 Machine 4 Σ3 Σ4 Scatter Mirror Mirror

Minimizing Communication in PowerGraph Y Communication is linear in the number of machines each vertex spans Y Y A vertex-cut minimizes machines each vertex spans Percolation theory suggests that power law graphs have good vertex cuts. [Albert et al. 2000]

New Approach to Partitioning Rather than cut edges: we cut vertices: CPU 1 CPU 2 Y Must synchronize many edges New Theorem: For any edge-cut we can directly construct a vertex-cut which requires strictly less communication and storage. CPU 1 CPU 2 Y Must synchronize a single vertex

Constructing Vertex-Cuts Evenly assign edges to machines Minimize machines spanned by each vertex Assign each edge as it is loaded Touch each edge only once Propose three distributed approaches: Random Edge Placement Coordinated Greedy Edge Placement Oblivious Greedy Edge Placement

Random Edge-Placement Randomly assign edges to machines Machine 1 Machine 2 Machine 3 Y Z Y Balanced Vertex-Cut Y Y Y Spans 3 Machines Y Y Y Y Z Y Z Z Spans 2 Machines Not cut!

Analysis Random Edge-Placement Expected number of machines spanned by a vertex: Twitter Follower Graph 41 Million Vertices 1.4 Billion Edges Accurately Estimate Memory and Comm. Overhead

Random Vertex-Cuts vs. Edge-Cuts Expected improvement from vertex-cuts: Order of Magnitude Improvement

Greedy Vertex-Cuts Place edges on machines which already have the vertices in that edge. Machine1 Machine 2 A B B C E B D A

Greedy Vertex-Cuts De-randomization  greedily minimizes the expected number of machines spanned Coordinated Edge Placement Requires coordination to place each edge Slower: higher quality cuts Oblivious Edge Placement Approx. greedy objective without coordination Faster: lower quality cuts

Partitioning Performance Twitter Graph: 41M vertices, 1.4B edges Cost Construction Time Random Oblivious Better Oblivious Coordinated Coordinated Random Oblivious balances cost and partitioning time.

Greedy Vertex-Cuts Improve Performance Greedy partitioning improves computation performance.

Other Features (See Paper) Supports three execution modes: Synchronous: Bulk-Synchronous GAS Phases Asynchronous: Interleave GAS Phases Asynchronous + Serializable: Neighboring vertices do not run simultaneously Delta Caching Accelerate gather phase by caching partial sums for each vertex

System Evaluation

PowerGraph (GraphLab2) System System Design PowerGraph (GraphLab2) System EC2 HPC Nodes MPI/TCP-IP PThreads HDFS Implemented as C++ API Uses HDFS for Graph Input and Output Fault-tolerance is achieved by check-pointing Snapshot time < 5 seconds for twitter network

Implemented Many Algorithms Collaborative Filtering Graph Analytics Alternating Least Squares PageRank Stochastic Gradient Descent Triangle Counting Shortest Path SVD Graph Coloring Non-negative MF K-core Decomposition Statistical Inference Computer Vision Loopy Belief Propagation Image stitching Max-Product Linear Programs Language Modeling LDA Gibbs Sampling

Comparison with GraphLab & Pregel PageRank on Synthetic Power-Law Graphs: Communication Runtime Pregel (Piccolo) Pregel (Piccolo) GraphLab GraphLab PowerGraph PowerGraph All use random cuts High-degree vertices High-degree vertices PowerGraph is robust to high-degree vertices.

PageRank on the Twitter Follower Graph Natural Graph with 40M Users, 1.4 Billion Links Communication Runtime Total Network (GB) Seconds Reduces Communication Runs Faster 32 Nodes x 8 Cores (EC2 HPC cc1.4x)

PowerGraph is Scalable Yahoo Altavista Web Graph (2002): One of the largest publicly available web graphs 1.4 Billion Webpages, 6.6 Billion Links 7 Seconds per Iter. 1B links processed per second 30 lines of user code 1024 Cores (2048 HT) 64 HPC Nodes

Specifically engineered for this task Topic Modeling English language Wikipedia 2.6M Documents, 8.3M Words, 500M Tokens Computationally intensive algorithm 100 Yahoo! Machines Specifically engineered for this task 64 cc2.8xlarge EC2 Nodes 200 lines of code & 4 human hours

Triangle Counting on The Twitter Graph Identify individuals with strong communities. Counted: 34.8 Billion Triangles 1536 Machines 423 Minutes Hadoop [WWW’11] 64 Machines 1.5 Minutes PowerGraph 282 x Faster S. Suri and S. Vassilvitskii, “Counting triangles and the curse of the last reducer,” presented at the WWW '11: Proceedings of the 20th international conference on World wide web, 2011. Why? Wrong Abstraction  Broadcast O(degree2) messages per Vertex S. Suri and S. Vassilvitskii, “Counting triangles and the curse of the last reducer,” WWW’11

Summary Problem: Computation on Natural Graphs is challenging High-degree vertices Low-quality edge-cuts Solution: PowerGraph System GAS Decomposition: split vertex programs Vertex-partitioning: distribute natural graphs PowerGraph theoretically and experimentally outperforms existing graph-parallel systems.

Machine Learning and Data-Mining Toolkits Graph Analytics Graphical Models Computer Vision Clustering Topic Modeling Collaborative Filtering PowerGraph (GraphLab2) System

Future Work Time evolving graphs Out-of-core storage (GraphChi) Support structural changes during computation Out-of-core storage (GraphChi) Support graphs that don’t fit in memory Improved Fault-Tolerance Leverage vertex replication to reduce snapshots Asynchronous recovery