keyword
graph sampling
Graph sampling is the process of selecting a subset of nodes, edges, or induced subgraphs from a larger graph to create a smaller, computationally manageable representation. The primary goal is to preserve essential structural, topological, and statistical properties of the original network, such as connectivity patterns, degree distributions, and neighborhood relationships. Graph sampling methods typically rely on random node or edge selection, random-walk explorations, or neighborhood-based traversal algorithms. This technique is widely utilized in large-scale network analysis, graph data mining, and machine learning architectures, including graph neural networks and deep metric learning, to enable efficient mini-batch training, property estimation, and scalable computation on massive relational datasets.
3 items

Graph Sampling Based Deep Metric Learning for Generalizable Person Re-Identification
Shengcai Liao, Ling Shao
Why you should read this
Proposes an efficient graph-based mini-batch sampling method that builds nearest neighbor class graphs to mine informative hard examples before batch construction, drastically cutting large-scale training time while boosting generalizable person re-identification accuracy.
Recent studies show that, both explicit deep feature matching as well as large-scale and diverse training data can significantly improve the generalization of person re-identification. However, the efficiency of learning deep matchers on large-scale data has not yet been adequately studied. Though learning with classification parameters or class memory is a popular way, it incurs large memory and computational costs. In contrast, pairwise deep metric learning within mini batches would be a better choice. However, the most popular random sampling method, the well-known PK sampler, is not informative and efficient for deep metric learning. Though online hard example mining has improved the learning efficiency to some extent, the mining in mini batches after random sampling is still limited. This inspires us to explore the use of hard example mining earlier, in the data sampling stage. To do so, in this paper, we propose an efficient mini-batch sampling method, called graph sampling (GS), for large-scale deep metric learning. The basic idea is to build a nearest neighbor relationship graph for all classes at the beginning of each epoch. Then, each mini batch is composed of a randomly selected class and its nearest neighboring classes so as to provide informative and challenging examples for learning. Together with an adapted competitive baseline, we improve the state of the art in generalizable person re-identification significantly, by 25.1% in Rank-1 on MSMT17 when trained on RandPerson. Besides, the proposed method also outperforms the competitive baseline, by 6.8% in Rank-1 on CUHK03-NP when trained on MSMT17. Meanwhile, the training time is significantly reduced, from 25.4 hours to 2 hours when trained on RandPerson with 8,000 identities. Code is available at https://github.com/ShengcaiLiao/QAConv.
Added
2026-09-26

Sampling from large graphs
J. Leskovec, C. Faloutsos
Why you should read this
Evaluates ten graph sampling algorithms across real-world networks to determine how effectively techniques like random walks and Forest Fire preserve both static structural properties and temporal evolution patterns down to small sample sizes.
Given a huge real graph, how can we derive a representative sample? There are many known algorithms to compute interesting measures (shortest paths, centrality, betweenness, etc.), but several of them become impractical for large graphs. Thus graph sampling is essential. The natural questions to ask are (a) which sampling method to use, (b) how small can the sample size be, and (c) how to scale up the measurements of the sample (e.g., the diameter), to get estimates for the large graph. The deeper, underlying question is subtle: how do we measure success? We answer the above questions, and test our answers by thorough experiments on several, diverse datasets, spanning thousands nodes and edges. We consider several sampling methods, propose novel methods to check the goodness of sampling, and develop a set of scaling laws that describe relations between the properties of the original and the sample. In addition to the theoretical contributions, the practical conclusions from our work are: Sampling strategies based on edge selection do not perform well; simple uniform random node selection performs surprisingly well. Overall, best performing methods are the ones based on random-walks and “forest fire”; they match very accurately both static as well as evolutionary graph patterns, with sample sizes down to about 15% of the original graph.
Added
2026-09-25

Heterogeneous Graph Transformer
Ziniu Hu, Yuxiao Dong, Kuansan Wang, Yizhou Sun
Why you should read this
Introduces the Heterogeneous Graph Transformer, an architecture using type-dependent attention and relative temporal encoding paired with scalable mini-batch sampling to effectively model billion-scale dynamic heterogeneous graphs.
Recent years have witnessed the emerging success of graph neural networks (GNNs) for modeling structured data. However, most GNNs are designed for homogeneous graphs, in which all nodes and edges belong to the same types, making them infeasible to represent heterogeneous structures. In this paper, we present the Heterogeneous Graph Transformer (HGT) architecture for modeling Web-scale heterogeneous graphs. To model heterogeneity, we design node- and edge-type dependent parameters to characterize the heterogeneous attention over each edge, empowering HGT to maintain dedicated representations for different types of nodes and edges. To handle dynamic heterogeneous graphs, we introduce the relative temporal encoding technique into HGT, which is able to capture the dynamic structural dependency with arbitrary durations. To handle Web-scale graph data, we design the heterogeneous mini-batch graph sampling algorithm---HGSampling---for efficient and scalable training. Extensive experiments on the Open Academic Graph of 179 million nodes and 2 billion edges show that the proposed HGT model consistently outperforms all the state-of-the-art GNN baselines by 9%--21% on various downstream tasks.
Added
2026-09-19
