Lightweight Label Propagation for Large-Scale Network Data
Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence. Main track. Pages 3421-3427.
https://doi.org/10.24963/ijcai.2018/475
Keywords
- Machine Learning: Semi-Supervised Learning
- Machine Learning Applications: Big data ; Scalability
Abstract
Label propagation spreads the soft labels from few labeled data to a large amount of unlabeled data according to the intrinsic graph structure. Nonetheless, most label propagation solutions work under relatively small-scale data and fail to cope with many real applications, such as social network analysis, where graphs usually have millions of nodes. In this paper, we propose a novel algorithm named \algo to deal with large-scale data. A lightweight iterative process derived from the well-known stochastic gradient descent strategy is used to reduce memory overhead and accelerate the solving process. We also give a theoretical analysis on the necessity of the warm-start technique for label propagation. Experiments show that our algorithm can handle million-scale graphs in few seconds while achieving highly competitive performance with existing algorithms.
- [Bottou, 2010] Léon Bottou. Large-scale machine learning with stochastic gradient descent. In Proceedings of In- ternational Conference on Computational Statistics, pages 177-186. Springer, Paris, France, 2010.
- [Bottou, 2012] Léon Bottou. Stochastic gradient descent tricks. In Neural networks: Tricks of the trade, pages 421- 436. Springer, 2012.
- [Cesa-Bianchi et al., 2009] Nicolo Cesa-Bianchi, Claudio Gentile, and Fabio Vitale. Fast and optimal prediction on a labeled tree. In Annual Conference on Learning Theory, pages 145-156, Montreal, Canada, 2009.
- [Chapelle et al., 2006] Olivier Chapelle, Bernhard Schölkopf, and Alexander Zien. Semi-supervised learning. MIT Press, 2006.
- [Fergus et al., 2009] Rob Fergus, Yair Weiss, and Antonio Torralba. Semi-supervised learning in gigantic image col- lections. In Advances in Neural Information Processing Systems, pages 522-530, Vancouver, Canada, 2009.
- [Fujiwara and Irie, 2014] Yasuhiro Fujiwara and Go Irie. Ef- ficient label propagation. In Proceedings of the 31st In- ternational Conference on Machine Learning, pages 784- 792, Beijing, China, 2014.
- [Gemulla et al., 2011] Rainer Gemulla, Erik Nijkamp, Pe- ter J Haas, and Yannis Sismanis. Large-scale matrix fac- torization with distributed stochastic gradient descent. In Proceedings of the 17th ACM SIGKDD International Con- ference on Knowledge Discovery and Data Mining, pages 69-77, San Diego, CA, 2011.
- [Herbster et al., 2009] Mark Herbster, Massimiliano Pontil, and Sergio R Galeano. Fast prediction on a tree. In Ad- vances in Neural Information Processing Systems, pages 657-664, Vancouver, Canada, 2009.
- [Joachims, 2003] Thorsten Joachims. Transductive learn- ing via spectral graph partitioning. In Proceedings of the 20th International Conference on Machine Learning, pages 290-297, Washington, DC, 2003.
- [LeCun et al., 1998] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning ap- plied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998.
- [Lever et al., 2012] Guy Lever, Tom Diethe, and John Shawe-Taylor. Data dependent kernels in nearly-linear time. In Artificial Intelligence and Statistics, pages 685- 693, La Palma, 2012.
- [Li et al., 2016] Yu-Feng Li, Shao-Bo Wang, and Zhi-Hua Zhou. Graph quality judgement: A large margin expedi- tion. In Proceedings of the 25th International Joint Con- ference on Artificial Intelligence, pages 1725-1731, New York City, NY, 2016. IJCAI
- [Liu et al., 2010] Wei Liu, Jun-Feng He, and Shih-Fu Chang. Large graph construction for scalable semi-supervised learning. In Proceedings of the 27th International Confer- ence on Machine Learning, pages 679-686, Haifa, Israel, 2010.
- [Liu et al., 2012] Wei Liu, Jun Wang, and Shih-Fu Chang. Robust and scalable graph-based semisupervised learning. Proceedings of the IEEE, 100(9):2624-2638, 2012.
- [Robbins and Monro, 1951] Herbert Robbins and Sutton Monro. A stochastic approximation method. The Annals of Mathematical Statistics, 22(3):400-407, 1951.
- [Shalev-Shwartz and Ben-David, 2014] Shai Shalev- Shwartz and Shai Ben-David. Understanding machine learning: From theory to algorithms. Cambridge University Press, 2014.
- [Talwalkar et al., 2013] Ameet Talwalkar, Sanjiv Kumar, Mehryar Mohri, and Henry Rowley. Large-scale svd and manifold learning. Journal of Machine Learning Re- search, 14(1):3129-3152, 2013.
- [Vitale et al., 2011] Fabio Vitale, Nicolo Cesa-Bianchi, Claudio Gentile, and Giovanni Zappella. See the tree through the lines: The shazoo algorithm. In Advances in Neural Information Processing Systems, pages 1584- 1592, Granada, Spain, 2011.
- [Wang and Zhang, 2008] Fei Wang and Changshui Zhang. Label propagation through linear neighborhoods. IEEE Transactions on Knowledge and Data Engineering, 20(1):55-67, 2008.
- [Yang and Leskovec, 2015] Jaewon Yang and Jure Leskovec. Defining and evaluating network commu- nities based on ground-truth. Knowledge and Information Systems, 42(1):181-213, 2015.
- [Yin et al., 2017] Hao Yin, Austin R Benson, Jure Leskovec, and David F Gleich. Local higher-order graph clustering. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 555-564, Halifax, Canada, 2017.
- [Zhang et al., 2009] Kai Zhang, James T Kwok, and Bahram Parvin. Prototype vector machine for large scale semi- supervised learning. In Proceedings of the 26th Annual International Conference on Machine Learning, pages 1233-1240, Montreal, Canada, 2009.
- [Zhang et al., 2016] Yan-Ming Zhang, Xu-Yao Zhang, Xiao- Tong Yuan, and Cheng-Lin Liu. Large-scale graph-based semi-supervised learning via tree laplacian solver. In Pro- ceedings of the 30th AAAI Conference on Artificial Intelli- gence, pages 2344-2350, New Orleans, LA, 2016.
- [Zhou et al., 2004] Denny Zhou, Olivier Bousquet, Thomas N Lal, Jason Weston, and Bernhard Schölkopf. Learning with local and global consistency. In Advances in Neural Information Processing Systems, pages 321-328, Vancouver, Canada, 2004.
- [Zhu et al., 2003] Xiao-Jin Zhu, Zoubin Ghahramani, and John D Lafferty. Semi-supervised learning using gaus- sian fields and harmonic functions. In Proceedings of the 20th International Conference on Machine Learning, pages 912-919, Washington, DC, 2003.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
With the vigorous development of the Internet, many enterprises, such as Twitter, Facebook, YouTube etc., are accumulating massive data in daily operating. Information which can boost revenue are buried under raw data and need to dig out. Among them, the social network is one of worthiest data to mine and classification on a network would provide useful information on the nodes which represent users.
Label propagation algorithms [Zhu et al., 2003; Joachims, 2003; Zhou et al., 2004] work well in the setting with a graph and small amount of annotation, which aim to spread the soft labels from few annotated nodes to the whole graph according to the intrinsic structure. It's such a simple and effective method that it is widely used in practice. The key assumptions behind label propagation [Zhou et al., 2004] are: (1) nearby nodes have the same labels; (2) nodes in the same structure tends to have the same label. One of the challenging issues of label propagation is the scalability. In general, it costs O(kn2 ) time to solve the linear system (k is the number of neighbors and n is the sample size). What's worse is that the graph matrix costs O(n2 ), which is a disaster when applied to large-scale graphs.
∗Yu-Feng Li is the co-first author.
Various algorithms have been proposed to mitigate the scalability problem. Most of them mainly focus on graph approximation to improve the efficiency and can be divided into two sorts: low-rank approximation and sparse approximation.
The low-rank approximation is implemented in several ways. [Wang and Zhang, 2008; Zhang et al., 2009; Liu et al., 2010; Liu et al., 2012; Lever et al., 2012] select a subset of the nodes as the prototypes and use them in the following predicting procedure. Empirically, the number of prototypes m should be proportional to n, and they are usually selected from the clustering centers, which makes the prototypes expensive and inefficient. An alternative approach is based on the fast spectral decomposition of Laplacian matrix [Fergus et al., 2009; Talwalkar et al., 2013]. They try to find a representation of the structure in a low-dimension space formed by the eigenvectors of the Laplacian matrix with smallest eigenvalues and then train a classifier on this representation. The decomposition computation needs careful design to accelerate, and it's still inefficient when the graphs are highly sparse.
Graph sparse approximation mainly utilizes the minimum spanning tree (MST). These approaches first construct a minimum spanning tree on the given graph, and then solve the label propagation with a designed tree Laplacian solver [Herbster et al., 2009; Cesa-Bianchi et al., 2009; Vitale et al., 2011; Zhang et al., 2016]. These approaches seem great in complexity analysis, but they need to solve each connected component respectively, and the constructing process needs meticulous coding work.
In addition, Fujiwara and Irie [2014] propose a scalable algorithm different from those above. They compute the lower and upper bounding label scores and iteratively prune unnecessary score computations for acceleration. However, the selection of coefficient for bounding scores may be tricky. The iteration process either terminates in a single epoch or fails to stop, which may end up with poor performance.
In this paper, we try to ease the burden of large-scale label propagation in a way distinct from the approximation work mentioned above. We solve LP (label propagation) as a semi-supervised learning problem, which is equivalent to minimize a cost function from the graph and derive a lightweight iterative process from the stochastic gradient descent (SGD) algorithm. SGD has been successfully applied to large-scale machine learning problems [Bottou, 2010; Gemulla et al., 2011]. Our proposal is simple, fast and scalable, and we name the algorithm SLP (Stochastic Label Propagation). Experiments show that our algorithm can handle million-scale graphs in few seconds while achieving highly competitive performance with existing algorithms.
| Notation | Meaning |
|---|---|
| n l | Number of instances Number of labeled instances, l ≪n |
| xi ∈ Rd | Feature vector of instance |
| yi ∈ {+1, -1} | Label of instance |
| {(xi, yi)}li=1 {xi}ni=l+1 | Labeled instances Unlabeled instances |
| yl = [y1, y2, ..., yl] f : Rd → [-1, 1] | Label vector for given labeled instances Predictive function |
| fl = (f1, f2, ..., fl) | f's prediction on labeled instances |
| fu = (fl+1, ..., fn) | f's prediction on unlabeled |
| f = [f l, fu] | instances Predictive vector |
| diag(·) 1 | Diagonal matrix with diagonal vector · Vector with all elements set to 1 |
| ei | Vector with the i-th element set to 1 and others are set to 0 |
| I | Identity matrix |
| I(·) | I(·) = 1 if · is true, otherwise I(·) = 0 |
| W ∈ Rn×n Wi | Affinity matrix of instances the i-th row of W |
| D ∈ Rn×n | D ∈ Rn×n is a diagonal matrix with Dii = ∑nj=1 Wij |
| L ∈ Rn×n | Laplacian matrix L = D - W |
| A ◦ B | Hadamard product of matrix A and B: (A ◦ B)ij = AijBij |
The paper is organized as follows. Section 2 introduces the setting of label propagation. Our proposed method is presented in Section 3, followed by the analyses in Section 4. We report the experimental results in Section 5 and then give conclusive remark finally.
2 Preliminaries
To propagate labels, a graph G = (V, E) with affinity matrix W is constructed to reflect the similarity of instances. V is exactly the set of the feature vectors of nodes, and E is a set of edges between node pairs. The weights between any node pair (i, j) are stored in the affinity matrix W. Wij reflects the similarity between xi and xj. The weight matrix can be defined as
where σ is the hyper-parameter [Zhu et al., 2003].
Like other LP methods, we try to learn a real value function f : V → [-1, 1] to make prediction [Zhu et al., 2003]. For ease of operation, the labeled instances are placed from the beginning as the Table 1 indicates. The goal of LP is to find a labeling which is consistent with the initial labeling and the similarity of the data. The former is commonly considered in supervised learning paradigm, which can be measured by
The latter one is called smoothness assumption [Chapelle et al., 2006] and followed by the form
As stated by Chapelle et al. [2006], label propagation can be cast into a common framework which minimizes a quadratic cost function as
The last term is added to prevent some degenerate situations, for instance, when the graph has a connected component with no labeled sample [Chapelle et al., 2006].
Eq.(1) is similar to the regularization framework for the iterative algorithm proposed by [Zhou et al., 2004]. In the extreme case when µ → ∞, ϵ = 0, minimizing Eq.(1) is equivalent to minimize f ⊤Lf under the constraint fl = yl , which is the setting in [Zhu et al., 2003].
The cost function is convex and so minimized when the derivative is set to 0, i.e.,
where S is a diagonal matrix with Sii = I(1 ≤ i ≤ l). We can get the labels by simple matrix inversion. However, computing the inverse takes O(n3 ) time and O(n2 ) memory in general, which makes it infeasible on large-scale datasets.
3 Stochastic Label Propagation
In this section, we describe our simple and efficient algorithm SLP concretely. First, we derivate the updating routine for the common cost function. Then, the general framework is applied to the case in [Zhu et al., 2003].
We start from the cost function in Eq.(1) and give the stochastic iterative solution to the optimization problem,
where
Let
where I[l](i) = I(1 ≤ i ≤ l), i ∈ {1, 2, ..., n} represents the index of the chosen instance. We have E(∇Ci(f)) = 1n ∇C(f). Specifically, according to the definition, we have
which implies that
If we randomly select a node with index i, we have Pr[i] = 1n . The expectation of ∇Ci(f )
Therefore, ∇Ci(f ) is an unbiased estimator of 1n ∇C(f ) where 1n is a constant given a graph. We can now adopt SGD strategy [Robbins and Monro, 1951] to solve fu by following updating
where the gradient
However, the gradient takes O(n) multiplication, which terribly slows down the iteration on a large graph. We observe that most of the elements in the vector of ∇Ci(f) are zeros. In addition, the number of non-zero elements is determined by the degree deg(v) of the node v, and deg(v) is usually much smaller than n. In order to prevent unnecessary multiplication of zeros, we cache the neighbors' indexes for all nodes in the graph first. Then we use them to compute non-zero elements of ∇Ci(f ) and update f . Trivially, the computation cost for each iteration is O(deg(v)).
Although SGD has made great success in large-scale machine learning, two more techniques are required for the effectiveness on large graphs. The first one is the warm start, which is attracting more and more interest in recent years. We manually select labeled instances and propagate their labels to neighbors before the iteration. The second one is to traverse all the shuffled nodes in each epoch as suggested by [Bottou, 2012]. This process ensures that every node is accessed in each epoch and so as to reduce variance of ∇Ci(f ).
The overall description of the framework is presented in Algorithm 1. It takes affinity matrixW, label vector yl, step size η, epoch T and two coefficients of regularization term as input. After the initialization in line 1, it stores neighbors' indexes in I. Then, the warm-start process is taken from line 3 to 7, where every node with an initial label is selected to update its neighbors' labels. Finally, it takes T epochs and performs n steps per epoch to update f from line 8 to 17. As suggested in [Bottou, 2012], the step size η is set to O( 1 √s ) where s is the total steps already taken. We call this framework SLP (Stochastic Label Propagation).
Algorithm 1 solves the regularization framework of label propagation with stochastic gradient and some techniques mentioned above. It gives a solution to large-scale regularization framework of label propagation and is easy to implement and light to run.
In the extreme case with µ → ∞, ϵ = 0, minimize the quadratic cost function Eq.(1) is equivalent to minimize f TLf under the constraint of fl = yl, which is the setting in GRF [Zhu et al., 2003]. More specifically, the problem is
We can derive corresponding algorithm for this problem from Algorithm 1 by removing the operations associated with µ, ϵ in line 14 as well as forcing fl = yl in line 5 and line 12.
Algorithm 1 SLP Framework
Input: W, yl, µ, ϵ, η, T
Output: fu
- 1: Initialize f (1) u to 0, f (1) l to yl
- 2: Find neighborhood indexes for node i and store them in I(i), i = 1, 2, ..., n
- 3: for i = 1, 2, ..., l do
- 4: for ind in I(i) do
- 5: f (1) ind ← f (1) ind - η(f (1) ind - f (1) i )Wi,ind
- 6: end for
- 7: end for
- 8: for t = 1, ...,T do
- 9: r ← random index from [1, n]
- 10: for i = r, r + 1, ..., n, 1, ..., r - 1 do
- 11: for ind in I(i) do
- 12: f (t+1) ind ← f (t) ind - η(f (t) ind - f (t) i )Wi,ind
- 13: end for
- 15: update η
- 16: end for
- 17: end for
4 Analyses
This section contains our analyses of SLP. In the first part, we give a convergent result and analyze the complexity of our algorithm. Then we discuss the necessity of warm start.
4.1 Convergence
Assume we have a dataset with n instances, the constructed graph G = (V,E) has m edges, and the algorithm runs for T epochs. Adopting the proof from Chapter 14.3 of [Shalev-Shwartz and Ben-David, 2014], we have the following convergence result.
Theorem 1. Let B, ρ > 0. Let f ∗ ∈ argmin‖f‖≤B C(f). Assume that SLP run for T epochs with η ≤ √ B2 ρ2 T , also assume that ‖∇Ci(f )‖ ≤ ρ with probability 1. Then,
Therefore, for any ϵ > 0, to achieve E[C(f)] - C(f ∗ ) ≤ ϵ, it suffices to run the algorithm for a number of epochs which satisfies T ≥ B2 ρ2 ϵ2 .
In practice, the algorithm converges with a rather good solution in a few epochs (usually in 6 epochs). The inner two for-loop actually go through all edges in E and have a time complexity in O(|E|), so the proposed algorithm can reach a good solution in O(T |E|) time, which furthermore equivalent to O(Tn) w.r.t sparse graphs. SLP needs to put the affinity matrixW, the corresponding non-zero indexes I and predictive vector f into memory, so the space cost is O(|E|).
4.2 Warm Start
In the following part, we try to explain why the warmstart process is required to perform in large-scale label propagation. We denote the length of the shortest walk between two nodes u and v as dis(u, v). Given the initially labeled nodes, we can divide the V into several subsets ˆ Vl, V1, V2, ..., Vk. ˆ Vl is the set of the initially labeled nodes, and Vi = {u|minv∈Vl dis(u, v) = i}, i = 1, 2, ..., k. The predictive label of a node is regarded as valid if it has received the label information from initially labeled nodes, and otherwise invalid.
Observation 1. Based on the fact that label propagates through one edge per epoch, the predictions of the nodes in Vi will not be valid until the propagation of epoch i is done.
We will show that the performance is affected by the density of graph and initially labeled ratio.
Theorem 2. Let G be a graph with n nodes and the degree of all nodes in G is d. With l initial labeled nodes, after t-epoch propagation, at most min{n, (dt+1-1)l d-1 } nodes will be valid.
Proof. According to Observation 1, after t-epoch propagation, the predictions of the nodes in ˆ Vl, V1, V2, ..., Vt are valid, and we have
The two sides of inequality (2) are equal if and only if ˆ Vl, V1, V2, ..., Vt are mutual disjoint, and the two sides of inequality (3) are equal if and only if the graph G consists of d-ary trees and the roots of these trees are selected as initially labeled nodes.
Also notice that | ˆ Vl ∪ V1 ∪ ... ∪ Vt| ≤ n, we have
and the theorem is proved.
Corollary 1. Let G be a graph with n nodes and the degree of all nodes in G is d. With l initial labeled nodes, the predictions on graph G will all be valid with t epochs, and t ∈ Ω(logd n(d-1) l ).
Proof. According to Theorem 2, after t-epoch propagation, at most min{n, (dt+1-1)l d-1 } nodes will be valid. To make sure the predictions on the graph G are all valid, let (dt+1-1)l d-1 ≥ n, then we have
Theorem 2 and Corollary 1 show that the sparser the graph is, and the fewer the initial labels are, the more invalid predictions will be made in the first few epochs. The warm start process spreads initial labels to neighborhoods before main iteration (line 3 to 7 in Algorithm 1), which helps reduce invalid predictions when the algorithm terminates.
5 Experiments
We carry out three tasks to evaluate SLP. The first task is large-scale network analysis. In the second one, we compare SLP to several state-of-the-art algorithms on a categorization dataset. Finally, we show the influence of the density of graph on the performance of SLP.
5.1 Experimental Setup
The proposed approach is compared with a number of methods, including supervised method 10-NN as a baseline, ARG [Liu et al., 2010], Eigen [Liu et al., 2010] and TbTL [Zhang et al., 2016]. Particularly, the ARG method uses a few anchor points which cover the entire point cloud to build a smaller graph with strong representative power. The final prediction is obtained by a simple linear combination of anchor points. The Eigen method approximates the graph Laplacian matrix by spectral decomposition, and in this way, the problem is solved in a reduced dimensional space. The TbTL method first generates a minimum spanning tree for given graph and then solve the problem with a designed Laplacian solver. The work presented in [Zhu et al., 2003; Zhou et al., 2004] fails to cope with the problem scale of our experiments, therefore, we do not include them in the experiments. For SLP, the implementation of the extreme case mentioned at the end of Section 3 is evaluated in the following three tasks.
The codes of ARG, Eigen, TbTL are all shared by their authors. The parameters for comparison methods are chosen from the recommended ones suggested by the authors. We adopt KD-tree algorithm to construct approximate 10NN graphs when the dataset does not provide a graph. For ARG, anchor points are generated by 500-means clustering and the released LAE version is chosen to run. For Eigen, the number of eigenvectors is set to 160. For TbTL, the tree type is set to the minimum spanning tree, the number of trees is 16 as suggested by the authors and the regularization factor is selected from 0.01, 0.1, 1, 10 by performing 5-fold cross-validation on the training set. We use default hyper-parameters for SLP. The step size η is set to 1 10√t where t is the next step to take and epoch T is set to 6. 0.1%, 0.2%, 0.4%, 0.8%, 1.6%, 3.2% of instances are randomly selected as labeled data. Results are averaged over 20 independent repetitions. The performance is measured in terms of both accuracy and AUC. We run these evaluations on a PC with 3.2GHz AMD Ryzen 1400 CPU and 16GB RAM.
| GRAPH | LABELED | ACC | AUC | TIME(S) | |||
|---|---|---|---|---|---|---|---|
| RATIO | TBTL | SLP | TBTL | SLP | TBTL | SLP | |
| WIKIPEDIA (1,791,489 NODES, 28,511,807 EDGES) | 0.1% 0.2% 0.4% 0.8% | .607 ± .009 .655 ± .669 ± .684 ± .001 .698 ± .712 ± .001 | .643 ± .008 .687 ± .004 .703 ± .002 .717 ± .002 .727 ± .001 .732 ± .001 .950 ± .036 .960 ± .011 | .539 ± .006 .559 ± .004 .581 ± .003 .605 ± .002 .630 ± .001 .656 ± .001 .515 ± .004 .530 ± .004 .549 ± .003 | .591 ± .006 .606 ± .004 .630 ± .005 .652 ± .004 .668 ± .003 .681 ± .003 .619 ± .020 .646 ± .014 .670 ± .011 | 33.1 ± 1.4 37.2 ± 1.7 45.6 ± 3.4 60.2 ± 3.9 90.6 ± 5.8 146.0±7.0 107.2±5.4 113.7±4.4 115.6±4.2 106.1±8.6 | 7.0 ± 0.4 6.4 ± 0.1 6.5 ± 0.2 6.5 ± 0.1 6.5 ± 0.1 6.5 ± 0.1 10.3 |
| .003 .002 | |||||||
| 1.6% | .001 | ||||||
| 3.2% | |||||||
| LIVEJOURNAL (3,997,962 NODES, 34,681,189 | 0.1% | .979 ± .000 | ±0.1 | ||||
| 0.2% | .979 ± .000 | 10.2 ±0.1 | |||||
| 0.4% | .979 ± .000 | .964 ± .004 | 10.4 ±0.1 | ||||
| 0.8% | .980 ± .000 | .966 ± .003 | .575 ± .004 | .696 ± .011 | 10.4 ±0.1 | ||
| 1.6% | .981 ± .000 | .969 ± .002 | .614 ± .003 | .732 ± .005 | 115.1±6.3 | 10.5 ±0.2 | |
| EDGES) | 3.2% | .982 ± .000 | .973 ± .001 | .657 ± .003 | .769 ± .004 | 144.0±8.7 | 10.5 ±0.2 |
| ORKUT | 0.1% | .720 ± .010 | .594 ± .045 | .559 ± .007 | .701 ± .012 | 256.5 ±113.9 | 32.4 ±1.9 |
| (3,072,441 | 0.2% | .773 ± .003 | .623 ± .013 | .528 ± .004 | .712 ± .010 | 222.5 ±94.6 | 30.7 ±0.6 |
| 0.4% | .773 ± .001 | .635 ± .008 | .532 ± .002 | .718 ± .007 | 248.9 ±95.3 | 31.1 ±0.5 | |
| NODES, | 0.8% | .772 ± .001 | .636 ± .007 | .538 ± .002 | .722 ± .003 | 232.9 ±108.6 | 30.9 ±0.6 |
| 117,185,083 | 1.6% | .772 ± .001 | .645 ± .005 | .546 ± .001 | .719 ± .002 | 247.9 ±117.0 | 30.9 ±0.5 |
| EDGES) | 3.2% | .771 ± .001 | .657 ± .004 | .558 ± .001 | .724 ± .002 | 205.7 ±89.4 | 31.3 ±0.4 |
5.2 Tasks on Large-Scale Network Analysis
We collect three large-scale network datasets and perform label propagation on them. These graphs [Yang and Leskovec, 2015; Yin et al., 2017] include graphs from Wikipedia 1 , Livejournal 2 and Orkut 3 . Specifically, Wikipedia is a web graph Wikipedia hyperlinks collected in September 2011 with 1, 791, 489 nodes and 28, 511, 807 edges. LiveJournal is a free on-line blogging community where users declare friendship each other and the graph contains 3, 997, 962 nodes and 34, 681, 189 edges. Orkut is a free on-line social network where users form friendship each other and the graph contains 3, 072, 441 nodes and 117, 185, 083 edges.
We can not access the profiles of nodes in these graphs and the labels of these nodes are generated by the ground-truth communities information provided by [Yang and Leskovec, 2015]. We adopt the one-vs-rest strategy by regarding the most frequent label as positive one. Because Anchor and Eigen methods take features of instances as input and fail to run in these tasks, we can only compare SLP with TbTL. We will evaluate Anchor and Eigen in the next part.
The performance is shown in Table 2. SLP achieves highly competitive performance with TbTL with much shorter time. Although TbTL seems to have higher accuracy, its poor AUC performance indicates that it benefits from the unbalance of the classes. We observe that most of TbTL's predictions are the label with the larger proportion in the training set. The superior of SLP over TbTL owes to the fact that SLP does not modify the given graph and maintain origin edges for label propagation. In addition, SLP is generally at least five times faster than TbTL.
1 http://snap.stanford.edu/data/wiki-topcats.html
2 http://snap.stanford.edu/data/com-LiveJournal.html
3 http://snap.stanford.edu/data/com-Orkut.html
5.3 Tasks on Forest Covertype Categorization
The second task is collected from UCI 4 and the target is to predict forest cover type from cartographic variables only. On this dataset, more state-of-the-art methods can be conducted for comparison. The dataset has 581, 012 instances and we construct a 10NN graph based on the features. Following the procedure in previous part, we transform the task into a binary task by treating the most frequent label as the positive label and the rest as the negative one.
Average accuracy, AUC and running time with standard deviation are shown in Table 3. On Covertype dataset, EIGEN, TbTL, and SLP are all inferior to 10NN and ARG with 0.1% and 0.2% labeled data. ARG may achieve better performance with more anchor points, but it's restricted by the memory cost. SLP performs better with more initial labeled data. Besides, given a graph, SLP spends much shorter time than competitors and achieve the highest AUC at most time.
5.4 Benchmark Tasks with Different Graphs
In order to evaluate how the density of the graph influences the performance of SLP, we further conduct experiments on several benchmark datasets collected from UCI 5 and MINIST 6 [LeCun et al., 1998]. Six binary datasets, i.e., Adults, Ijcnn, Minist3vs8, Minist4vs9, Minist7vs9 and Devanagari are conducted. We construct 4NN, 6NN, 8NN and 10NN graphs for these datasets and compare the predictive accuracy of SLP with different graphs.
Results in Figure 1 show that our proposal can have a better performance on a denser graph. Commonly, 8NN and 10NN graphs give competitive results, while 4NN and 6NN graphs performs worse. This is consistent with Theorem 2. Particularly, the denser the graph is, the more predictions will be valid in the first few epochs.
4 https://archive.ics.uci.edu/ml/datasets/Covertype
5 https://archive.ics.uci.edu/ml/index.php
6 http://yann.lecun.com/exdb/mnist/
| METHOD | 0.1% | 0.2% | 0.4% | 0.8% | 1.6% | 3.2% | |
|---|---|---|---|---|---|---|---|
| ACC | 10NN ARG EIGEN TBTL SLP | .684 ± .007 .688± .008 .513 ± .003 .652 ± .014 .633 ± .011 | .709± .006 .703 ± .005 .530 ± .017 .698 ± .007 .691 ± .006 | .732 ± .004 .717 ± .004 .572 ± .028 .739 ± .005 .742± | .758 ± .003 .728 ± .002 .629 ± .004 .777 ± .003 .787± | .789 ± .002 .737 ± .001 .636 ± .001 .811 ± .002 .824± .002 | .822 ± .001 .741 ± .001 .646 ± .004 .840 ± .001 |
| 10NN | .687 ± .007 .755± .007 .718 ± .023 .653 ± .015 | .711 ± .006 .771± .005 .724 ± .023 .695 ± .008 | .734 ± .004 .796 ± .002 .734 ± .022 | .759 ± .002 .812 ± .002 .734 ± .009 | .822 ± .001 | ||
| .004 | .003 | .857± .001 | |||||
| .790 ± .002 | .823 ± .001 | ||||||
| ARG | .741 ± .007 | .828 ± .001 .752 ± .003 | |||||
| AUC | EIGEN TBTL | .738 ± .005 | .778 ± .003 | .813 ± .002 | .845 ± .001 | ||
| SLP | .801± .004 | .868± | .899± | ||||
| .731 ± .011 | .768 ± .007 | .837± .003 | .002 | .001 | |||
| TIME(S) | 10NN | 457.2 ±35.3 | 615.7 ±70.4 | 913.2 ±12.1 | 1544.0 ±55.5 | 2767.7 ±64.5 | 5270.0 ±745.8 |
| ARG | 786.1 ±0.0 | 786.1 ±0.0 | 786.1 ±0.0 | 786.1 ± 0.0 | 786.1 ± 0.0 | 786.1 ± 0.0 | |
| EIGEN | 8.3 ± 0.3 | 8.2 ± 0.2 | 9.1 ± 1.7 | 8.9 ± 1.5 | 8.2 ± 0.1 | 8.3 ± 0.3 | |
| TBTL | 20.1 ± 1.2 | 25.0 ± 0.8 | 31.1 ± 1.0 | 38.3 ± 1.1 | 46.4 ± 1.4 | 55.2 ± 1.2 | |
| SLP | 1.0 ± 0.0 | 0.9 ± 0.0 | 0.9 ± 0.0 | 0.9 ± 0.0 | 0.9 ± 0.0 | 1.0 ± 0.0 |

There are many interesting future works. For example, our recent work showed that an inappropriate graph construction may deteriorate the performance of label propagation [Li et al., 2016]. In future we will judge the quality of the graph for million-scale network analysis and derive robust label propagation by pruning inappropriate edges of graph.
Acknowledgments
This research was supported by the National Key R&D Program of China (2017YFB1001903), the National Natural Science Foundation of China (61772262) and the Fundamental Research Funds for the Central Universities (020214380044).
6 Conclusion
In this paper, we propose a fast and scalable label propagation method named SLP. Its procedure is derived from stochastic gradient descent and it is simple to implement. The convergence as well as the necessity of warm start is analyzed. Experiments on million-scale graphs demonstrate that our method is nearly one order of magnitude faster than leading approaches and in addition achieves highly competitive or even the best performance. The contribution of this work is that we incorporate the stochastic method to label propagation and provides a different inspiration to handle largescale label propagation tasks with clear practical advantages.
@inproceedings{ijcai2018p475,
title = {Lightweight Label Propagation for Large-Scale Network Data},
author = {Liang, De-Ming and Li, Yu-Feng},
booktitle = {Proceedings of the Twenty-Seventh International Joint Conference on
Artificial Intelligence, {IJCAI-18}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Jérôme Lang},
pages = {3421--3427},
year = {2018},
month = {7},
note = {Main track},
doi = {10.24963/ijcai.2018/475},
url = {https://doi.org/10.24963/ijcai.2018/475},
}
TY - CPAPER TI - Lightweight Label Propagation for Large-Scale Network Data AU - Liang, De-Ming AU - Li, Yu-Feng T2 - Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2018 SP - 3421 EP - 3427 DO - 10.24963/ijcai.2018/475 UR - https://doi.org/10.24963/ijcai.2018/475 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: