[Paper Review] Marius: Learning Massive Graph Embeddings on a Single Machine
Marius proposes a single-machine framework for training massive graph embeddings by optimizing data movement through partition caching and buffer-aware data ordering (BETA), achieving up to 10x faster training than state-of-the-art systems while scaling to graphs with over a billion edges and 550 GB of parameters using only 16 GB GPU and 64 GB CPU memory.
We propose a new framework for computing the embeddings of large-scale graphs on a single machine. A graph embedding is a fixed length vector representation for each node (and/or edge-type) in a graph and has emerged as the de-facto approach to apply modern machine learning on graphs. We identify that current systems for learning the embeddings of large-scale graphs are bottlenecked by data movement, which results in poor resource utilization and inefficient training. These limitations require state-of-the-art systems to distribute training across multiple machines. We propose Marius, a system for efficient training of graph embeddings that leverages partition caching and buffer-aware data orderings to minimize disk access and interleaves data movement with computation to maximize utilization. We compare Marius against two state-of-the-art industrial systems on a diverse array of benchmarks. We demonstrate that Marius achieves the same level of accuracy but is up to one order of magnitude faster. We also show that Marius can scale training to datasets an order of magnitude beyond a single machine's GPU and CPU memory capacity, enabling training of configurations with more than a billion edges and 550 GB of total parameters on a single machine with 16 GB of GPU memory and 64 GB of CPU memory. Marius is open-sourced at www.marius-project.org.
Motivation & Objective
- Address the bottleneck of data movement in large-scale graph embedding training on a single machine.
- Overcome poor GPU utilization caused by irregular memory access patterns in out-of-GPU-memory training.
- Enable training of graph embeddings beyond the memory capacity of a single GPU and CPU by optimizing I/O and computation overlap.
- Design a system that maintains high accuracy while significantly improving training throughput compared to existing industrial systems.
- Develop a novel data ordering scheme (BETA) and pipelined architecture to minimize disk I/O and maximize hardware utilization.
Proposed method
- Introduce a pipelined training architecture that interleaves data movement, transfer, and computation to hide I/O latency.
- Implement partition caching to reduce redundant disk reads by reusing frequently accessed node embedding partitions.
- Propose the BETA ordering—a buffer-aware data ordering scheme that minimizes I/O by grouping edges with nearby node partitions.
- Use asynchronous training with bounded staleness for node embeddings and synchronous training for edge embeddings to support heterogeneous edge types.
- Leverage mini-batch stochastic gradient descent (SGD) with efficient dot-product operations to reduce computational overhead.
- Optimize system configuration via buffer sizing, partition count, and staleness bounds to balance throughput and embedding quality.
Experimental results
Research questions
- RQ1Can graph embedding training be scaled to billion-edge graphs on a single machine without distributed systems?
- RQ2How can data movement overhead be minimized to achieve high GPU utilization in out-of-GPU-memory training?
- RQ3What data ordering strategy reduces I/O cost while maintaining training efficiency for large-scale graph embeddings?
- RQ4To what extent can system-level optimizations like partition caching and pipelining improve training throughput without sacrificing model accuracy?
- RQ5How do hyperparameters such as batch size, buffer size, and staleness bound affect training performance and embedding quality?
Key findings
- Marius achieves up to 70% average GPU utilization, compared to 10% for DGL-KE and under 30% for PBG, significantly improving hardware utilization.
- On the Freebase86m dataset, Marius is up to 10x faster than DGL-KE and PBG while maintaining the same model accuracy.
- Marius scales to graphs with over a billion edges and up to 550 GB of total model parameters using only 16 GB GPU and 64 GB CPU memory.
- The BETA ordering reduces I/O cost by minimizing disk access for node embeddings, especially effective in high-partition-count scenarios.
- Large batch sizes (around 10,000) improve throughput with no accuracy loss on large graphs, but benefits diminish beyond a threshold.
- Increasing buffer capacity quadratically reduces the number of disk swaps, making buffer sizing critical for performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.