distributed graphlab
play

Distributed GraphLab A Framework for Machine Learning and Data - PowerPoint PPT Presentation

Distributed GraphLab A Framework for Machine Learning and Data Mining in the Cloud Y. Low, J. Gonzalez, A. Kyrola, D. Bickson, C. Guestrin, J. Hellerstein By Maciej Biskupiak for R212 Motivation Abstractions of parallel computation are


  1. Distributed GraphLab A Framework for Machine Learning and Data Mining in the Cloud Y. Low, J. Gonzalez, A. Kyrola, D. Bickson, C. Guestrin, J. Hellerstein By Maciej Biskupiak for R212

  2. Motivation Abstractions of parallel computation are necessary. Current Models such as MapReduce, Dryad or Pregel are too limiting or inefficient for our purposes.

  3. GraphLab Abstraction GraphLab is: ● Asynchronous: parameter values are not necessarily updated at the same time ● Dynamic: Parameters are not updated equally often ● Serialisable: All parallel executions have an equivalent serial execution (no data races) It was originally developed for the multicore in memory setting.

  4. GraphLab Abstraction GraphLab consists of three main parts: ● The Data Graph ● Update Function ● Sync Function

  5. Data Graph ● Computation can be V1 D v2<->v3 expressed as an arbitrary V2 V3 graph. D v1<->v4 D v2<->v4 D v4<->v3 ● Data is associated either with vertices or edges D v1<->v5 V4 D v3<->v6 ● The data itself is mutable, but the structure of the graph is not V6 D v5<->v6 V5

  6. Update Function Vertex to be updated Takes a vertex V and it’s Context D v2<->v3 V1 surrounding context S v . V2 V3 D v1<->v4 Returns the new values of it’s D v2<->v4 D v4<->v3 context S v and a list T of D v1<->v5 V4 D v3<->v6 vertices that will eventually be updated. V6 D v5<->v6 V5

  7. Sync Function The sync function provides a way to track global state. Each vertex v can publish a global value S v . The sync function performs an associative sum over all of these values.

  8. Distributed GraphLab In order to bring GraphLab to the distributed setting, we need a solution for the following: ● Distributing the graph data and balancing the computation ● Maintaining consistency across nodes ● Achieving fault tolerance

  9. Distributing Graph Data An Atom We partition the graph into a set of K atoms V2 V1 (where K is much greater than the number V3 of servers). D v1<->v4 Each atom is stored as a separate file and contains information about ‘ghosts’, the V4 D v1<->v5 vertices and edges adjacent to the atoms boundary V6 V5

  10. Maintaining Consistency Data races are possible if the contexts V1 of update functions overlap. D v2<->v3 V2 V3 GraphLab provides two means of D v1<->v4 D v2<->v4 D v4<->v3 dealing with this: ● A chromatic engine based on D v1<->v5 V4 D v3<->v6 graph coloring ● A distributed read/writer lock system V6 D v5<->v6 V5

  11. Levels of consistency Distributed locking supports various levels of consistency. ● Vertex consistency: Obtains a write lock on the vertex and a read lock on data belonging to adjacent vertices ● Vertex and edge consistency: Obtains a write lock on the vertex and it’s adjacent edges and a read lock on it’s adjacent vertices ● Total consistency: Obtains a write lock on a vertex and it’s adjacent edges and vertices Gives greater performance, as some problems do not require total consistency (EG. Pagerank)

  12. Fault Tolerance In the event of a failure the system can recover to a snapshot taken at a previous point. The snapshot mechanism has to be asynchronous in order to avoid suspending execution. GraphLab implements the Chandy-Lamport algorithm to achieve this

  13. Performance ● Achieves 20-60x improvement over Hadoop ● Competitive with tailored MPI implementations ● Error can converge almost two times faster than in non-dynamic computation

  14. Performance Asynchronous vs synchronous performance of pagerank Comparison of scalability on Named Entity Recognition (First) and The Netflix Collaborative Filtering (Second)

  15. Conclusion Powerful abstraction of parallel computation brought to the distributed setting Provides more flexibility than other models, constrained only by inability to modify the graph structure.

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