Tuple Packing: Efficient Batching of Small Graphs in Graph Neural Networks
Not on the map. Why?
Abstract (arXiv)
When processing a batch of graphs in machine learning models such as Graph Neural Networks (GNN), it is common to combine several small graphs into one overall graph to accelerate processing and remove or reduce the overhead of padding. This is for example supported in the PyG library. However, the sizes of small graphs can vary substantially with respect to the number of nodes and edges, and hence the size of the combined graph can still vary considerably, especially for small batch sizes. Therefore, the costs of excessive padding and wasted compute are still incurred when working with static shapes, which are preferred for maximum acceleration. This paper proposes a new hardware agnostic approach -- tuple packing -- for generating batches that cause minimal overhead. The algorithm extends recently introduced sequence packing approaches to work on the 2D tuples of (|nodes|, |edges|). A monotone heuristic is applied to the 2D histogram of tuple values to define a priority for packing histogram bins together with the objective to reach a limit on the number of nodes as well as the number of edges. Experiments verify the effectiveness of the algorithm on multiple datasets.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 4 of its 15 references that are in the map. First posted on arXiv 14 Sep 2022.
Builds on
4 of 15 references.
References · 4
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 329
Built on by
Citing papers per year: 2024: 1.
1 paper.