Learning Mixtures of Graphs from Epidemic Cascades
Abstract
We consider the problem of learning the weighted edges of a balanced mixture of two undirected graphs from epidemic cascades. While mixture models are popular modeling tools, algorithmic development with rigorous guarantees has lagged. Graph mixtures are apparently no exception: until now, very little is known about whether this problem is solvable.
To the best of our knowledge, we establish the first necessary and sufficient conditions for this problem to be solvable in polynomial time on edge-separated graphs. When the conditions are met, when the graphs are connected with at least three edges, we give an efficient algorithm for learning the weights of both graphs with optimal sample complexity (up to log factors).
We give complimentary results and provide sample-optimal (up to log factors) algorithms for mixtures of graphs of out-degree at least three, for mixture of undirected graphs of unbalanced and/or unknown priors.
1 Introduction
Epidemic models represent spreading phenomena on an underlying graph [37]. Such phenomena include diseases spreading through a population, security breaches in networks (malware attacks on computer/mobile networks), chains of activations in various biological networks (activation of synapses, variations in the levels of gene expression), circulation of information/influence (rumors, news—real or fake, viral videos, advertisement campaigns) and so on.
Most settings assume the underlying graph is known ( the gene regulatory network), and focus on modeling epidemics [9, 50, 21, 6, 56, 31], detecting them [2, 3, 34, 33, 32, 30, 25], detecting communities [40, 51], finding their source [43, 44, 42, 45, 49, 46, 11], obfuscating the source, [16, 18, 17], or controlling their spread [27, 13, 14, 22, 19, 48, 53, 38].
The inverse problem, learning the graph from times of infection during multiple epidemics, has also been extensively studied. The first theoretical guarantees were established by Netrapalli and Sanghavi [35] for discrete-time models. Abrahao et al. [1] tackled the problem for some continuous-time models, for exponential distributions. Daneshmand et al. [7] solved the problem for a wide class of continuous models which fit real-life diffusions. Pasdeloup et al. [39] characterize a set of graphs for which this problem is solvable using spectral methods. Khim and Loh [26] solved the problem for correlated cascades. Subsequently Trouleau et al. [47] showed how to learn the causal structure of Hawkes processes under synchronization noise. In parallel, Hoffmann and Caramanis [23] showed that it is possible to robustly learn the graph from noisy epidemic cascades, even in the presence of arbitrary noise.
However, this line of research always assumes that the epidemic cascades are all of the same kind, and spread on one unique graph which entirely captures the dynamics of the spread. In reality, our observations of cascades are far more granular: different kinds of epidemics spread on the same nodes but through different mechanisms, i.e., different spreading graphs. Epidemic cascades we observe are often a mixture of different kinds of epidemics. Without knowledge of the label of the epidemic, can we recover the individual spreading graphs? For a concrete example, let us consider the ubiquitous Twitter graph. Individuals usually have multiple interests, and will share tweets differently according to the underlying topics of the tweets. For instance, two users may have aligned views on football and diametrically opposed political views, and hence may retweet each others’ football tweets but not political posts. Interesting settings are those where the epidemic label (in this simple case, football and politics) is not observable. While football and politics may be easy to distinguish via basic NLP, the majority of settings will not enjoy this property (e.g., she retweets football posts relating to certain teams, outcomes or special plays). In fact, the focus on recovering the spreading graph stems precisely from the desire to study very poorly-understood epidemics where we do not understand spreading mechanisms, symptoms, etc. Examples outside the twitter realm (e.g., human epidemics with multiple spreading vectors) abound.
In such cases, applying existing techniques for estimating the spreading graph would recover the union of graphs in the mixture. For Twitter and other social networks, this is essentially already available. More problematic, this union is typically not informative enough to predict the spread of tweets, and may even be misleading.
We address precisely this problem. We consider a mixture of epidemics that spread on two unknown weighted graphs when, for each cascade, the kind of epidemic (and hence the spreading graph) remains hidden. We aim to accurately recover the weights of both the graphs from such cascades.
Mixture models in general have attracted significant focus. Even for the most basic models, e.g., Gaussian mixture models, or mixed regression, rigorous recovery results have proved elusive, and only recently has there been significant progress (e.g., [4, 54, 55, 5, 10, 29, 52, 8, 28]). This work reveals some similarities to prior work. For example, here too, moment-based approaches play a critical role; moreover, here too, there are conditions on separation of the two classes needed for recovery. Interestingly, however, the technical key to our work is much more combinatorial in nature, rather than appealing to more general purpose tools (like tensor decomposition, or EM). As we outline below, the crux of the proof of correctness of our algorithm is a combination of a characterization of forbidden graphs that cannot be learned, and a decomposition-reduction of a general graph to smaller subgraphs that can be learned, and later patched to produce a globally consistent solution.
1.1 Contributions
To the best of our knowledge, this is the first paper to study the inverse problem of learning mixtures of weighted undirected graphs from epidemic cascades. We address the following questions:
Recovery: Under the assumption that the underlying graphs are connected, have at least three edges, and under some separability condition (detailed in the next section), we prove the problem is solvable and give an efficient algorithm to recover the weights of mixture of connected graphs with equal priors on the same set of vertices.
Identifiability: We show the problem is not solvable in polynomial time of one of the condition mentionned above is violated. The problem is unidentifiable when one of the graphs of the mixture has a connected component with less than three edges. Moreover, there exist (many) graphs which violate the separability condition, and for which any algorithm would require at least exponential (in the number of nodes) sample complexity.
Sample Complexity: We prove a lower bound on the sample complexity of the problem, and show that our algorithm always matches the lower bound up to log factors in terms of the number of nodes . It also matches the bound exactly in terms of the dependency in the separation parameter if the graphs have min-degree at least 3.
Extensions: We give similar guarantees for the case of directed graphs of min-degree at least 3, of undirected graphs with unbalanced and/or unknown mixtures priors.
2 Preliminaries
We consider an instance of the independent cascade model [20, 24]. We observe independent epidemics spreading on a mixture of two graphs. In this section, we specify the dynamics of the spreading process, the observation model, and the learning task.
2.1 Mixture Model
We consider two graphs and on the same set of vertices . Unless specified otherwise, the graphs considered are : and . Note that () is 0 if there is no edge between and in ().
We say that the mixture is -separated if:
We denote the minimum edge weight by
2.2 Dynamics of the Spreading Process
We observe independent identically distributed epidemic cascades, which come from the following generative model.
Component Selection:
At the start of a cascade, an i.i.d. Bernoulli random variable with parameter () decides the component of the mixture, i.e., the epidemic spreads on graph . We say that the mixture is balanced if , and we call and the priors of the mixture. Unless specified otherwise, the results presented are for balanced mixtures.
Epidemic Spreading:
Once the component of the mixture is fixed, the epidemic spreads in discrete time on graph according to a regular one-step Susceptible Infected Removed (SIR) process [35, 23]. At , the epidemic starts on a source, chosen uniformly at random among the nodes of . The source is in the Infected state, while all the other nodes are in the Susceptible state. Let (resp ) be the set of nodes in the Infected (resp. Removed) state at time . At each time step , all nodes in the Infected state try to infect their neighbors in the Susceptible state, before transitioning to the Removed state during this same time step (i.e., ) 11 1 Once a node is in the Removed state, the spread of the epidemic proceeds as if this node were no longer on the graph.. If is in the Infected state at time , and is in the Susceptible state at the same time ( ), then infects with probability if , and if . Note that multiple nodes in the Infected state can infect the same node in the Susceptible state. The process ends at the first time step such that all nodes are in the Susceptible or Removed state (i.e., no node is in the Infected state).
One realization of such a process from randomly picking the component of the mixture and the source at to the end of the process is called a cascade.
2.3 Observation Model
For each cascade we do not have the knowledge of the underlying component, that is, we do not observe and we treat this as a missing label. For each cascade, we have access to the complete list of infections: we know which node infected which node at which time (one node can have been infected by multiple nodes). This list constitutes a sample from the underlying mixture model.
2.4 Learning Objective
Our goal is to learn the weights of all the edges of the underlying graphs of the mixture, up to precision . Specifically, we want to provide and for all vertex pairs such that .
2.5 When is this problem solvable?
Prior to presenting our main results, we offer some intuition. We show that it is not always possible to learn the weights of both components of the mixture, even for settings that appear deceitfully easy.
Indeed, it is impossible to learn the graph on two nodes and , with only one directed edge from to (see Figure 1(a)). To see this, consider a balanced mixture, for which edge has weight in , and weight in , then will infect half of the time, independently of the value of . This shows that we cannot recover the original weights, and the mixture problem is not solvable. If we add another edge, and is now connected to a new node (see Figure 1(b)), the problem is still not solvable (see Supplementary Material).
Surprisingly, if has a third neighbor (see Figure 2(a)), it becomes possible to learn the weights of the mixture. Learning this local structure is one of the main building blocks of our algorithm.
One could think that four nodes are needed for this problem to be solvable. However, we can learn the edges of a triangle (see Figure 7(c)). Similarly, the intuition that nodes need to be of degree at least three is misleading. If a line has more than three nodes (see Figure 4), it is solvable. The line on four nodes is the other local structure which forms the foundation of our algorithm.
On the other end, the setting for which there exists (at least) two parts of the graph and for which cascades never overlap is a general unsolvable setting (see Figure 1(c)). We write . Let , . We notice a mixture spreading on edges and yields the same cascade distribution as a mixture on and . Therefore, the solution is not unique.
The three simple shapes in Figure 2 form the core of this paper. Our key insight is in showing that any graph that can be built up using these three building blocks (i.e., each node belongs in at least one of these structures) is solvable. This effective decomposition succeeds in reducing a general problem to a small number of sub-problems, for which we provide a solution.
3 Main Results
In this section we present our main results on the impossibility and recoverability of edge weights for a balanced mixture.
3.1 Balanced Mixture of Undirected Graphs
Impossibility Result Under Infinite Samples
Condition 1.
The graph is connected and has at least three edges: .
Claim 1.
Suppose Condition 1 is violated. Then it is impossible to recover the edge weights corresponding to each graph (even with infinite samples).
Impossibility Result Under Polynomial Samples
Condition 2.
The mixtures in the graph are well-separated, that is, .
Claim 2.
Suppose Condition 2 is violated. Then there exists (many) graphs for which we need at least exponential (in the number of nodes ) samples to recover the edge weights.
Recoverability Result with Finite Samples
Theorem 1.
Suppose Conditions 1 and 2 are true. Then there exists an algorithm that runs on epidemic cascades over a balanced mixture of two undirected, weighted graphs and , and recovers the edge weights corresponding to each graph up to precision with probability at least , in time and sample complexity , where .
Remark on Partial Recovery:
An important element of our results is that if Conditions 1 and 2 are not satisfied for the entire graph we can still recover the biggest subgraph which follows these conditions. In particular, if the graph we obtain by removing all non -separated edges is still connected, we can detect and learn all the edges of the graph (see Supplementary Material for more details). This is important, as it effectively means that we are able to learn the mixtures in the parts of the graph that matter most. On a practical note, this also means that our algorithm is resistant to the presence of bots in the network that retweet everything indifferently.
3.2 Extensions
Extension to Directed Graphs
Interestingly, the techniques used to prove the theorem above can be immediately applied to learn mixtures of directed graphs of out-degree at least three (see Supplementary Material for complete proof). Note that the better dependency in comes from the assumption on the degree 22 2 This immediately implies a better dependency in for learning undirected graphs of minimum degree three.. Since many applications on social networks can ignore nodes of out-degree less than three, as thoses nodes have very little impact on any diffusion phenomena, this result is of independent interest:
Theorem 2.
Suppose Conditions 1 and 2 are true. Then there exists an algorithm that runs on epidemic cascades over a balanced mixture of two directed, weighted graphs of minimum out-degree three and , and recovers the edge weights of each graph up to precision with probability at least , in time and sample complexity , where .
Extension to Unbalanced/Unknown Priors
If the mixture is unbalanced, but the priors are known, we can adapt our algorithm to learn the mixture under the same conditions as above, at the price of a higher dependency in . If the priors are unknown, we can only recover graphs of min-degree at least three.
3.3 Lower Bounds
We provide two lower bounds, one for undirected graphs, one for directed graphs, for mixtures of two graphs.
Theorem 3.
When learning the edge weights of a balanced mixture on two -separated graphs on nodes up to precision , we need:
- 1.
samples for undirected graphs, which proves our algorithm is optimal in up to log factors in this setting.
- 2.
samples for directed graphs of minimum out-degree three, which proves our algorithm has optimal dependency in and in in this setting.
4 Balanced Mixture of Undirected Graphs
In this section, we provide our main algorithm (Algorithm 1) that recovers the edge weights on the graph under the conditions presented in Theorem 1.
Input Vertex set
Output Edge weights for the two epidemics graphs
4.1 Overview of Algorithm 1
First, the algorithm learns the edges of the underlying graph using the procedure LearnEdges. To detect whether an edge exists in , we use a simple estimator (Section 4.2.1). This also provides us with the degree of each node with respect to .
With the knowledge of the structure of the graph, to learn the edge weights adjacent to a node, our algorithm uses two main procedures LearnStar and LearnLine. If a node is of degree at least three (e.g., node in Figure 3), procedure LearnStar recovers all the edge weights (i.e., the weights of the two mixtures for these edges) adjacent to this node independently of the rest of the graph. Otherwise, if a node is of degree two (e.g., node in Figure 4), procedure LearnLine learn all the edge weights adjacent to this node independently. Both procedures use carefully designed estimators that exploit the respective structures. We present the above estimators for balanced mixtures in (Section 4.2). We require Condition 2 for the existence of the proposed estimators.
Our main algorithm maintains a set of learned nodes. A node is a learned node if the weights for all the edges adjacent to it have been learned. The algorithm begins with learning two connected nodes (two nodes having an edge in between) using procedure Learn2Nodes. Next it proceeds iteratively, by learning the weights of the edges connected to one unlearned neighbor of the learned nodes using the two procedures discussed above. The algorithm terminates, when all the nodes in are learned. In Theorem , we show that under Conditions 1, it is possible to iteratively learn all the nodes in .
4.2 Learning Edges, Star and Line Vertices
In this section, we show how we recover the weights for local structures using moment matching methods. Our proof relies on a few crucial ideas. First, we introduce local estimators, which can be computed from observable events in the cascade, and are polynomials of the weights of the mixture. General systems of polynomial equations are hard to solve. However, we found ways of combining these specific estimators to decouple the problem, and obtain systems of six polynomial equations of maximum degree three, with six unknowns. Finally, we show how to elegantly get a closed-form solution for these systems.
4.2.1 Learning the Edges in
We recall that is the random variable indicating the set containing the unique source of the epidemic for a cascade. If an epidemic cascade starts from node , then for any node that is infected in time step there is an edge . This provides us with the average weight of the edge as ,
Claim 3.
If and are two distinct nodes of such that , then:
Furthermore, there exists an edge between and in , if and only if .
The above claim can be leveraged to design algorithm LearnEdges, which takes as inputs all the for all pairs , and returns all the edges of (See Supplemental Materials).
Conditioning on Source Node: We notice that the expression of is a function of weights of edges . Here, the conditioning on the event that plays an important role. Indeed, if the source had been any other node than , then the probability that was not removed when is infected would have depended on the (unknown) weights of the paths connecting the source and node . We could not have obtained a simplified form as above.
4.2.2 Star vertex
and in .
A star vertex is a vertex of degree at least three in (Figure 3). We consider
: the probability the star vertex infects neighbors and , conditioned on being the source vertex.
Claim 4.
For and , and as in Figure 3:
Again, we emphasize that the conditioning places a crucial role in the product form of , similar to . Further, we make a key observation that for ,
| (1) |
This directly leads to the closed form expressions for the weights of the edges adjacent to the star vertex .
Lemma 1.
Resolving Sign Ambiguity: We note that even though the and has associated signs for all , there is no ambiguity as fixing one sign, say fixes the sign for all. Using the fact that for all we obtain the lemma.
LearnStar:
The algorithm LearnStar, takes as input a star vertex , the set of edges of (which can be recovered using LearnEdges), and all the and for all distinct neighbors of , and returns all the weights of the edges connected to in both mixtures using the above closed form expressions (See Supplemental Materials).
4.2.3 Line vertex
We now consider a node that has degree exactly two in and forms a line structure. Specifically, let and be four distinct nodes of V, such that and belong in . We call such a node a line vertex (see Figure 4).
To recover the weights of the edges adjacent to a line vertex, only considering events in the first two timesteps is insufficient. Unlike a star vertex, we have only one second moment for a line vertex. In Figure 4, we can not have as a source and, for , nodes and infected in the first timestep, i.e., .
We circumvent the problem by considering:
1) : the probability of the event when (in Figure 4) infects only , and in turn infects , conditioned on being the source.
2) : the probability of the event when (in Figure 4) infects both and , and in turn infects , conditioned on being the source.
Claim 5.
For a line vertex and nodes , and as in Figure 4:
The result for is similar to Claim 4 and uses the conditioning of being source crucially. However, the proof for and is different. Additional to being the source, the proof also rely on the fact that is of degree 2, implying .
We note that there is no present as can not be infected if is not. So we cannot directly replicate the star vertex. Let us define . We notice the following interesting equality that acts as a surrogate for .
| (2) |
Similar to Lemma 1 we now obtain the closed form expressions for the weights associated with the line vertex . For unifying notations we define (it has no probabilistic interpretation).
Lemma 2.
LearnLine:
Similar to star vertex, we can use the expression in Lemma 2 to design an algorithm LearnLine, which takes as input a line vertex , the set of the edges of , and the limit of the estimators , , , , , for , and as in Figure 4, and returns the weights of the edges and in both mixtures (see Supplementary Materials)
Learn2Nodes
Our main algorithm is initialized by learning weights associated with edges connected to two nodes using subroutine Learn2Nodes. As this algorithm is very similar in spirit to our general algorithm, we leave the details to the Supplementary Materials.
4.3 Correctness of Algorithm 1
To prove the correctness of the main algorithm, we show the following invariant:
Lemma 3.
At any point in the algorithm, the entire neighborhood of any node of has been learned and recorded in :
Proof.
We prove the above by induction on the iteration of the while loop. Due to the correctness of Learn2Nodes (proved in Supplementary material), after calling this function, contains all edges adjacent to the two vertices in . Hence the base case is true. Let us assume that after iterations of the loop, the induction hypothesis holds.
We consider three cases in the -th iteration:
: We recover all edges adjacent to the star vertex by using LearnStar (correct due to Lemma 1). Sign consistency is ensured using edge since .
: There exists such that since and is connected. Since , there exists such that . Now if then and we are done. If then is a line vertex for . By using LearnLine we recover all edges on the line (correct due to Lemma 2). Sign consistency is ensured through edge .
: Since , we have , so we are done.
Thus by induction, after every iteration of the for loop, the invariant is maintained. ∎
Theorem 4.
Proof.
Since at every iteration, the size of increases by 1, after at most iterations, we have . Using Lemma 3 we also have . ∎
4.4 Finite Sample Complexity
In this section, we investigate the error in estimating the quantities , for in case of a star vertex, and , and for for line vertex, using finite number of cascades. We further investigate the effect of the error in these quantities on the accuracy of the recovered weights.
We use a simple count based estimator. Specifically, for events and , we estimate the probability . As a concrete example, we have the estimator for as . Here denotes the source of the -th cascade and denotes that infects . We can argue using the law of large number and Slutsky’s Lemma, that the above approach provides us with balanced estimators.
We first establish high probability error bounds for the base estimators with finite number of cascades, for both the star vertex and the line vertex. Finally, using the above guarantees we provide our main sample complexity result for the balanced mixture problem. See Supplemental material for proofs.
5 Extensions
5.1 Extension to Directed Graphs
We notice that in the case of directed graphs of minimum out-degree three, we can simply use the star structure to learn all the directed edges. This however would not be enough to ensure sign consistency; we therefore need to also use both the structure in Figure 7. The algorithm is then very similar to Algorithm 1, precise details are given in Supplementary Material.
5.2 Extension to Unbalanced/Unknown Priors
While previous results only considered balanced mixtures, with parameter , we focus here on unbalanced mixtures ( known) and on mixtures of unknown priors ( unknown).
We first note that, the main algorithm for recovering the graph does not depend on the prior once the correct LearnStar and LearnLine primitives are provided. Therefore, we focus here on designing correct LearnStar and LearnLine primitives.
Unbalanced Mixtures
We can easily extend our techniques for star vertices in the case of unbalanced mixtures, as we can get similar simplification as in Equation 1. Specifically, we have for all :
However, equation 2 does not extend easily. Therefore, we get an increased dependency in in the general case. The results are summarized in the theorem below, details can be found in Supplementary Material.
Theorem 6.
Suppose Conditions 1 and 2 are true. Then there exists an algorithm that runs on epidemic cascades over an unbalanced mixture of two undirected, weighted graphs and , with , and recovers the edge weights corresponding to each graph up to precision in time and sample complexity:
- •
in general.
- •
for graph of minimum degree three.
Mixtures of Unknown Priors
If the graph has at least one star vertex, we can learn the entire mixture by learning the parameter from this node, and using the results from above to learn the rest of the graph once has been recovered. Details can be found in Supplementary Material.
6 Conclusion
We tackle the problem of learning the edge weights of a mixture of undirected graphs from epidemic cascades. Our algorithm is optimal (up to log factors) in term of sample complexity.
As mentioned before, adding edges and nodes cannot make our algorithm fail, even if those nodes violate Conditions 1 or 2. Indeed, if these Conditions are violated, a simple modification of our algorithm can recover the biggest connected subgraph which satisfies these conditions (simply restart the algorithm on new nodes whose neighborhood has not been learned yet). This implies that if the original graph satisfies Condition 1 and 2, our algorithm is robust to any adversarial attacks which consist of adding nodes or edges.
Due to its local nature, our algorithm can be parallelized easily by computing the necessary LearnStar, and LearnLine sub routine calls in parallel. Some care should be given to ensure sign consistency.
Our algorithm can be used to recover directed subgraphs of minimum out-degree three, which is powerful enough for most applications on social network. However, the techniques shown in this paper are not sufficient to learn general mixtures of directed graphs, or even to identify which class of mixture directed graphs can be learned. This is left fot future work.
References
- [1] Bruno Abrahao, Flavio Chierichetti, Robert Kleinberg, and Alessandro Panconesi. Trace complexity of network inference. Proceedings of the 19th ACM SIGKDD international conference on Knowledge discovery and data mining - KDD ’13, page 491, 2013.
- [2] Ery Arias-castro, Emmanuel J Candès, and Arnaud Durand. Detection of an anomalous cluster in a network. The Annals of Statistics, 39(1):278–304, 2011.
- [3] Ery Arias-Castro and S T Nov. Detecting a Path of Correlations in a Network. pages 1–12.
- [4] Sivaraman Balakrishnan, Martin J Wainwright, Bin Yu, et al. Statistical guarantees for the em algorithm: From population to sample-based analysis. The Annals of Statistics, 45(1):77–120, 2017.
- [5] Yudong Chen, Xinyang Yi, and Constantine Caramanis. Convex and nonconvex formulations for mixed regression with two components: Minimax optimal rates. IEEE Transactions on Information Theory, 64(3):1738–1766, 2017.
- [6] Justin Cheng, Lada A. Adamic, P. Alex Dow, Jon Kleinberg, and Jure Leskovec. Can Cascades be Predicted? In Proceedings of the 23rd international conference on World wide web (WWW’ 14), 2014.
- [7] Hadi Daneshmand, Manuel Gomez-Rodriguez, Le Song, and Bernhard Schoelkopf. Estimating Diffusion Network Structures: Recovery Conditions, Sample Complexity & Soft-thresholding Algorithm. In Proceedings of the 31 st International Conference on Machine Learning, Beijing, China, 2014 - ICML 14, 2014.
- [8] Constantinos Daskalakis, Christos Tzamos, and Manolis Zampetakis. Ten steps of em suffice for mixtures of two gaussians. In 30th Annual Conference on Learning Theory, 2017.
- [9] Michela Del Vicario, Alessandro Bessi, Fabiana Zollo, Fabio Petroni, Antonio Scala, Guido Caldarelli, H. Eugene Stanley, and Walter Quattrociocchi. The spreading of misinformation online. Proceedings of the National Academy of Sciences, page 201517441, 2016.
- [10] Ilias Diakonikolas, Daniel M Kane, and Alistair Stewart. List-decodable robust mean estimation and learning mixtures of spherical gaussians. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, pages 1047–1060. ACM, 2018.
- [11] Ming Dong, Bolong Zheng, Nguyen Quoc Viet Hung, Han Su, and Guohui Li. Multiple rumor source detection with graph convolutional networks. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management, pages 569–578, 2019.
- [12] Sever S Dragomir and V Gluscevic. Some inequalities for the kullback-leibler and x2- distances in information theory and applications. RGMIA research report collection, 3(2):199–210, 2000.
- [13] Kimon Drakopoulos, Asuman Ozdaglar, and John N. Tsitsiklis. An efficient curing policy for epidemics on graphs. arXiv preprint arXiv:1407.2241, (December):1–10, 2014.
- [14] Kimon Drakopoulos, Asuman Ozdaglar, and John N. Tsitsiklis. A lower bound on the performance of dynamic curing policies for epidemics on graphs. (978):3560–3567, 2015.
- [15] Paul Erdős. On a classical problem of probability theory. 1961.
- [16] Giulia Fanti, Peter Kairouz, Sewoong Oh, Kannan Ramchandran, and Pramod Viswanath. Rumor source obfuscation on irregular trees. In Proceedings of the 2016 ACM SIGMETRICS International Conference on Measurement and Modeling of Computer Science (SIGMETRICS’ 16 ), pages 153–164. ACM, 2016.
- [17] Giulia Fanti, Peter Kairouz, Sewoong Oh, Kannan Ramchandran, and Pramod Viswanath. Hiding the Rumor Source. IEEE Transactions on Information Theory, 63(10):6679–6713, 2017.
- [18] Giulia Fanti, Peter Kairouz, Sewoong Oh, and Pramod Viswanath. Spy vs. Spy: Rumor Source Obfuscation. Proceedings of the 2015 ACM SIGMETRICS International Conference on Measurement and Modeling of Computer Systems (SIGMETRICS’ 14), pages 271–284, 2015.
- [19] Mehrdad Farajtabar, Jiachen Yang, Xiaojing Ye, Huan Xu, Rakshit Trivedi, Elias Khalil, Shuang Li, Le Song, and Hongyuan Zha. Fake News Mitigation via Point Process Based Intervention. In Proceedings of the 34th International Conference on Machine Learning (ICML’ 17), 2017.
- [20] Ken Goldberg, Theresa Roeder, Dhruv Gupta, and Chris Perkins. Eigentaste: A Constant Time Collaborative Filtering Algorithm. Information Retrieval, 4(2):133–151, 2001.
- [21] Manuel Gomez-Rodriguez, Jure Leskovec, and Bernhard Schölkopf. Structure and Dynamics of Information Pathways in Online Media. In 6th International Conference on Web Search and Data Mining (WSDM 2013), 2013.
- [22] Jessica Hoffmann and Constantine Caramanis. The Cost of Uncertainty in Curing Epidemics. Proceedings of the ACM on Measurement and Analysis of Computing Systems (SIGMETRICS’ 18), 2(2):11–13, 2018.
- [23] Jessica Hoffmann and Constantine Caramanis. Learning graphs from noisy epidemic cascades. arXiv preprint arXiv:1903.02650, 2019.
- [24] David Kempe, Jon Kleinberg, and Éva Tardos. Maximizing the spread of influence through a social network. In Proceedings of the ninth ACM SIGKDD international conference on Knowledge discovery and data mining - KDD ’03, 2003.
- [25] Justin Khim and Po-Ling Loh. Permutation Tests for Infection Graphs. pages 1–28, 2017.
- [26] Justin Khim and Po-Ling Loh. A theory of maximum likelihood for weighted infection graphs. pages 1–47, 2018.
- [27] Naimisha Kolli and Balakrishnan Narayanaswamy. Influence maximization from cascade information traces in complex networks in the absence of network structure. IEEE Transactions on Computational Social Systems, 6(6):1147–1155, 2019.
- [28] Jeongyeol Kwon and Constantine Caramanis. Em converges for a mixture of many linear regressions. arXiv preprint arXiv:1905.12106, 2019.
- [29] Jeongyeol Kwon, Wei Qian, Constantine Caramanis, Yudong Chen, and Damek Davis. Global convergence of the em algorithm for mixtures of two component linear regression. In 32nd Annual Conference on Learning Theory, pages 2055–2110. PMLR, 2019.
- [30] Jure Leskovec, Andreas Krause, Carlos Guestrin, Christos Faloutsos, Jeanne VanBriesen, and Natalie Glance. Cost-effective Outbreak Detection in Networks. Proceedings of the 13th ACM SIGKDD international conference on Knowledge discovery and data mining (KDD ’07), page 420, 2007.
- [31] Shenghua Liu, Huawei Shen, Houdong Zheng, Xueqi Cheng, and Xiangwen Liao. Ct lis: Learning influences and susceptibilities through temporal behaviors. ACM Transactions on Knowledge Discovery from Data (TKDD), 13(6):1–21, 2019.
- [32] Eli A. Meirom, Chris Milling, Constantine Caramanis, Shie Mannor, Ariel Orda, and Sanjay Shakkottai. Localized epidemic detection in networks with overwhelming noise. pages 1–27, 2014.
- [33] Chris Milling, Constantine Caramanis, Shie Mannor, and Sanjay Shakkottai. Network Forensics : Random Infection vs Spreading Epidemic. In Proceedings of the 12th ACM SIGMETRICS/PERFORMANCE joint international conference on Measurement and Modeling of Computer Systems (SIGMETRICS’ 12), 2012.
- [34] Chris Milling, Constantine Caramanis, Shie Mannor, and Sanjay Shakkottai. Local detection of infections in heterogeneous networks. Proceedings - IEEE INFOCOM, 26:1517–1525, 2015.
- [35] Praneeth Netrapalli and Sujay Sanghavi. Learning the Graph of Epidemic Cascades. In Proceedings of the 12th ACM SIGMETRICS/PERFORMANCE joint international conference on Measurement and Modeling of Computer Systems (SIGMETRICS’ 12), pages 211–222, 2012.
- [36] Donald J Newman. The double dixie cup problem. The American Mathematical Monthly, 67(1):58–61, 1960.
- [37] M. E. J. Newman. Networks: An Introduction, volume 23. 2014.
- [38] Han-Ching Ou, Arunesh Sinha, Sze-Chuan Suen, Andrew Perrault, and Milind Tambe. Who and when to screen: Multi-round active screening for recurrent infectious diseases under uncertainty, 2019.
- [39] Bastien Pasdeloup, Vincent Gripon, Grégoire Mercier, Dominique Pastor, and Michael G Rabbat. Characterization and inference of graph diffusion processes from observations of stationary signals. IEEE transactions on Signal and Information Processing over Networks, 4(3):481–496, 2017.
- [40] Liudmila Prokhorenkova, Alexey Tikhonov, and Nelly Litvak. Learning clusters through information diffusion. In The World Wide Web Conference, pages 3151–3157, 2019.
- [41] Ivan N. Sanov. On the Probability of Large Deviations of Random Variables, 1961.
- [42] Devavrat Shah and Tauhid Zaman. Detecting sources of computer viruses in networks: theory and experiment. In ACM SIGMETRICS Performance Evaluation Review, volume 38, pages 203–214. ACM, 2010.
- [43] Devavrat Shah and Tauhid Zaman. Rumors in a Network : Who ’ s the Culprit ? IEEE Transactions on information theory, 57(8):1–43, 2010.
- [44] Devavrat Shah and Tauhid Zaman. Rumor centrality: a universal source detector. In ACM SIGMETRICS Performance Evaluation Review, volume 40, pages 199–210. ACM, 2012.
- [45] Sam Spencer and R Srikant. On the impossibility of localizing multiple rumor sources in a line graph. ACM SIGMETRICS Performance Evaluation Review, 43(2):66–68, 2015.
- [46] Anirudh Sridhar and H Vincent Poor. Sequential estimation of network cascades. arXiv preprint arXiv:1912.03800, 2019.
- [47] William Trouleau, Jalal Etesami, Matthias Grossglauser, Negar Kiyavash, and Patrick Thiran. Learning hawkes processes under synchronization noise. In International Conference on Machine Learning, pages 6325–6334, 2019.
- [48] Shengling Wang, Shasha Chen, Xiuzhen Cheng, Weifeng Lv, and Jiguo Yu. Analysis of antagonistic dynamics for rumor propagation. In 2019 IEEE 39th International Conference on Distributed Computing Systems (ICDCS), pages 1253–1263. IEEE, 2019.
- [49] Zhaoxu Wang, Wenxiang Dong, Wenyi Zhang, and Chee Wei Tan. Rumor source detection with multiple observations: Fundamental limits and algorithms. In ACM SIGMETRICS Performance Evaluation Review, volume 42, pages 1–13. ACM, 2014.
- [50] Liang Wu and Huan Liu. Tracing Fake-News Footprints: Characterizing Social Media Messages by How They Propagate. In (WSDM 2018) The 11th ACM International Conference on Web Search and Data Mining, 2018.
- [51] Yujia Xie, Haoming Jiang, Feng Liu, Tuo Zhao, and Hongyuan Zha. Meta learning with relational information for short sequences. In Advances in Neural Information Processing Systems, pages 9901–9912, 2019.
- [52] Ji Xu, Daniel J Hsu, and Arian Maleki. Global analysis of expectation maximization for mixtures of two gaussians. In Advances in Neural Information Processing Systems, pages 2676–2684, 2016.
- [53] Wen Yan, Po-Ling Loh, Chunguo Li, Yongming Huang, and Luxi Yang. Conquering the worst case of infections in networks. IEEE Access, 2019.
- [54] Xinyang Yi, Constantine Caramanis, and Sujay Sanghavi. Alternating minimization for mixed linear regression. In International Conference on Machine Learning, pages 613–621, 2014.
- [55] Xinyang Yi, Constantine Caramanis, and Sujay Sanghavi. Solving a mixture of many random linear equations by tensor decomposition and alternating minimization. arXiv preprint arXiv:1608.05749, 2016.
- [56] Qingyuan Zhao, Murat A. Erdogdu, Hera Y. He, Anand Rajaraman, and Jure Leskovec. SEISMIC: A Self-Exciting Point Process Model for Predicting Tweet Popularity. Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD ’15 ), 2015.
Appendix A Necessary Conditions
A.1 We need at least three edges
Let be the union of the graphs from both mixtures. In this subsection, we prove it is impossible to learn the weights of and if has less than three edges:
One edge:
For a graph on two nodes, we have already seen that the cascade distribution are identical if , for any value of , which proves the problem is not solvable.
Two edges:
When we have two nodes and two edges, we can without loss of generality assume that node 1 is connected to node 2 and node 3. Then, if:
- •
- •
- •
- •
The cascade distribution is identical for any value of . By simple calculations, we can show the following,
- •
Fraction of cascades with only node 1 infected: .
- •
Fraction of cascades with only node 2 infected: .
- •
Fraction of cascades with only node 3 infected: .
- •
Fraction of cascades where 3 infected 1, but 1 did not infect 2: .
- •
Fraction of cascades where 3 infected 1, 1 infected 2: .
- •
Fraction of cascades where 1 infected 3, but 1 did not infect 2: .
- •
Fraction of cascades where 1 infected 2, but 1 did not infect 3: .
- •
Fraction of cascades where 1 infected 3 and 2: .
- •
Fraction of cascades where 2 infected 1, but 1 did not infect 3: .
- •
Fraction of cascades where 2 infected 1, then 1 infected 3: .
Since the distribution of cascades is the same for any value of , the problem is not solvable.
A.2 We need -separation
Separability is necessary for the existence of sample efficient algorithms. Specifically, we show that there exist (many) graphs where separability is violated, and for which the sample complexity is exponential in the size of the graph.
Indeed, consider a graph composed of two subgraphs and , connected by a path of length . Suppose the path has the same weight in both mixtures, and for the edges , . Similar to the disconnected graph, we write , and . To learn the graph completely we need to differentiate between the mixture on and , and the mixture on and .
The path is not informative in the above differentiation as both the mixture in the path have same weights. Therefore, we need at least one cascade covering at least one edge in and one edge in . Since is of length , this happens with probability at most . To see such a cascade, we need at least cascades in expectation. Therefore, setting , for some constant , we prove that exponential number of samples are necessary for any algorithm to recover the graph if the -separated Condition is violated.
A.3 Dealing with mixtures which are not -separated
In this section, we show how to detect and deduce the weights of edges which have the same weight across both component of the mixture. We assume both and follow Conditions 1 and 2 if we remove all non-distinct edges, and in particular remain connected.
Suppose there exists an edge in the graph, such that . Then in particular, there exists another edge connecting to the rest of the graph through node , such that . Then:
Lemma 4.
Suppose and follow assumption 2 after removing all non-distinct edges. We can detect and learn the weights of non-distinct edges the following way:
If , and , then .
Proof.
Since is connected on three nodes or more even when removing edge , we know there exists a node such either is connected to either or . Therefore, either or . In both these cases, we deduce . This in turns allow us to detect that . Once this edge is detected, it is very easy to deduce its weight, since by definition. ∎
Appendix B Proofs for unbalanced mixtures
B.1 Estimators - proofs
Lemma 5.
Proof.
In this case, there is no edge between and , which implies that . Hence, we cannot use a variation of the equation above for finding the edges of a star structure without dividing by zero. Therefore, we need to use . Let . We notice a remarkable simplification:
We can then use the same proof techniques as in Lemma 1, and finally obtain:
This gives us the required result. ∎
B.2 Resolving Sign Ambiguity across Base Estimators
The following lemma handles the sign ambiguity () introduced above.
Lemma 6.
Proof.
From previous analysis, we have . Therefore:
∎
Thus fixing sign of one edge gives us the signs of all the other edges adjacent to a star vertex. A similar relationship can be established among the edges of a line vertex, using .
B.3 Main algorithm - proofs
Here we will present in detail the sub-routines required by our algorithm and the essential lemmas needed for our main proof.
LearnEdges
This procedure detects the edges in the underlying graph using the estimate .
Input Vertex set
Output Edges of the graph
Claim 6.
outputs such that .
Proof.
For each pair of nodes , if then since if and only if , which is equivalent to the edge not belonging in the mixture. ∎
LearnStar
This procedure returns the weights of the outgoing edges of a star vertex using the star primitive discussed before.
Input Star vertex , edge set , weights
Output Weights of edges adjacent to
Lemma 7.
If , recovers for all such that .
LearnLine
This procedure returns the weights of the edges of a line rooted at vertex of degree 2 using the line primitive discussed before.
Input Line with , edge set , weights
Output Weights of edges
Lemma 8.
If , recovers .
Learn2Nodes
This procedure chooses a pair of connected vertices in our graph and outputs the weights of all outgoing edges of each of the two vertices. We initialize our algorithm using this procedure.
Input Vertex set , Edge Set
Output Set of 2 vertices , Weight of all edges adjacent to the vertices
Lemma 9.
Proof.
We will break the proof down into cases based on the degree of chosen vertices as follows,
- •
: By Lemma 7, we can recover all the edges of and fix a sign.
- –
: By Lemma 7, we can recover all the edges of and ensure sign consistency by using the edge .
- –
: Since , there exists a vertex such that . Since , there must exist such that . Now we have line primitive with and Lemma 8 guarantees recovery of the edge weights.
- –
, then we already know all the edges adjacent to .
- –
- •
: Since the max degree of the graph is 2 and it is connected then it can either be a line or a cycle. There are at least 4 nodes in the graph, thus there exist such that and such that . This gives a path with and Lemma 8 guarantees recovery of all edges.
- •
: As in the previous case, the underlying graph is a line. Therefore there exist path and we can similarly apply Lemma 8 to guarantee recovery of all edges.
∎
B.4 Finite sample complexity - proofs
In this section, we provide explicit proof for the sample complexity of our algorithm. To do so, we bound below the number of cascades starting on each node through Bernstein inequality, and use this number to obtain concentration of all the estimators.
Definition 1.
Among cascades, let be the number of times node is the source.
Claim 7.
With samples, every node is the source of the infection at least times with probability at least .
Proof.
Among cascade, the expectation of is , since the source is chosen uniformly at random among the vertices of . Since can be seen as the sum of Bernoulli variable of parameter , we can use Bernstein’s inequality to bound it below:
Claim 8.
Let either be a star vertex, with neighbors and , or be part of a line structure rooted in , with neighbors , and neighbor of . Suppose . Then with samples, with probability at least , we can guarantee any of the following:
- 1.
.
- 2.
.
- 3.
and .
- 4.
.
Proof.
By Hoeffding’s inequality:
Therefore, the quantity above is smaller than for . The proof is almost identical for the other quantities involved.
Claim 9.
If we can estimate and within , we can estimate within precision .
Proof.
If is of degree three or more, we use a star primitive to estimate it. Let and be three of its neigbors:
Where we have used , , , . We then conclude by symmetry.
If is of degree two, we use a line primitive to estimate it:
As shown in the proof of Lemma 2, we have:
Therefore:
We also have:
Combining all the above inequalitites:
We can conclude by symmetry.
Since , we conclude that we can know within precision regardless of the degree of .
Theorem 7.
B.5 Complete graph on three nodes
In this section, we prove it is possible to recover the weights of a mixture on three nodes, as long as there are at least three edges in . Since no node is of degree 3, no node is a star vertex, and since there are less than four nodes, no node is a line vertex, and we can not use the techniques developped above for connected graphs on four vertices or more. However, we can still use very similar proofs techniques. Suppose the vertices of are , 2 and 3.
Definition 2.
We reuse the quantities defined for star vertices:
- •
For , distinct in
- •
For , , distinct in
Even though neither 1, 2 or 3 is a star vertex, we can write the same kind of system of equations as a star vertex would satisfy. In particular:
Resolving the sign ambiguity as previoulsy (Lemma 6), this finally yields:
Appendix C Lower Bounds
C.1 Directed lower bound
We consider the task of learning all the edges of any mixture of graphs up to precision . To do so, we have to be able to learn a mixture on a specific graph, which we present below.
The example we focus on is the directed graph of min-degree 3, comprised of a clique on 4 nodes, which we call nodes 1 to 4, and other nodes with 3 directed edges to nodes 1, 2 and 3. All edges have weight in , and in .
We define a valid sample for edge as a cascade during which became infected when was not infected. Indeed, in this case, an infection could happen along edge , and we can therefore gain information about the weight of this edge. We first state a general claim:
Claim 10.
We need at least valid samples for edge to determine the weights of this edge in the mixture.
Proof.
Using Sanov’s theorem [41], and writing the Kullback–Leibler divergence between and as , we know we need at least valid samples to determine whether the valid samples came from a random flip of probability , or a random flip of probability , which is an easier task than computing both weights of the mixture.
Then, using standard Kullback–Leibler divergence bounds [12], we obtain , which gives us the desired result.
We now combine this with Coupon collector’s result to obtain our lower bound.
Claim 11.
We need at least cascades to obtain enough valid samples for all the edges in the graph.
Proof.
We notice that if we want to learn all edges in the graph, it implies that we have to learn all the edges from the nodes to node 1. However, if is not part of the clique, any valid sample for such an edge (i, 1) has to have as its source. Having enough valid samples for each of these edges is therefore equivalent to collecting copies of distinct coupons in the standard Coupon collector problem. Using results from [36, 15], we need samples to obtain copies of each coupon when there are distinct coupons in total, which is here cascades. Using standard approximation, we get the desired result.
Combining the results:
Theorem 8.
We need at least cascades to learn any mixture of directed graphs of minimum out-degree 3.
C.2 Undirected lower bound
We reuse a lot of the techniques in the previous subsection. This time, we consider a simple line graph on nodes, where for all , node is connected to node . Like in the previous example, the weights are all in , and all in .
Reusing Claim 10, we now prove:
Claim 12.
We need at least cascades to obtain enough valid samples for edge (1,2).
Proof.
To provide a valid sample, either:
- •
Node is the source, which happens with probability .
- •
Node 2 was infected, which happens with probability .
Therefore, the probability of getting a valid sample is smaller than . Hence, we need at least cascades to obtain enough valid samples.
Since we need to learn at least edge to learn all the edges of this graph:
Theorem 9.
We need at least cascades to learn any mixture of undirected graphs.
Appendix D Directed graphs
D.1 Structures
Star vertex
For directed graph of out-degree at least 3, every vertex is a star vertex. This implies we can reuse the star vertex equations to learn the weights of the whole neighborhood of each node. However, if we learn the neighborhoods of node in both graphs, which we call and , as well as the neighbordhoods of node , which we call and , it is impossible to recover from the star structure alone if and are in the same mixture, or if it is and instead. We therefore use the two other structures in Figure 7 to ensure mixture consistency.
Mixture consistency
Suppose we have learned the weights of all the edges stemming from , as well as all the weighted edges stemming from , and suppose there is no edge between and . The probability that infected , which in turn infected is:
This gives us a way to decide whether and are in the same mixture, or if it is and instead. Indeed, if we know , and we also know , and we have an estimator for , then we can check whether , in which case belongs with , or whether , in which case belongs in the with . We call this procedure CheckPath.
Similarly, if there is an edge between and , then:
This also allows us to ensure mixture consistency. We call this procedure CheckTriangle.
Here is the final algorithm:
Input Vertex set
Output Edge weights for the two epidemics graphs
Appendix E Unbalanced/Unknown Mixtures
In this section we provide the primitives required for LearnStar and LearnLine, when the first mixture occurs with probability and the second mixture with probability .
Notations: In this section, to avoid clutter in notation we use , and to be all distinct unless mentioned otherwise. Also, let denote all the permutations of , , and .
Claim 13.
If and are two distinct nodes of such that then under general mixture model .
Fuither, when the four nodes , , and forms a star graph (Fig. 3) with in the center under general mixture model
Finally, when the four nodes , , and forms a line graph (Fig. 4) under general mixture model
E.1 Star Graph
We now present the following two lemmas which recover the weights ,and for all in the star graph (Fig. 3), and the general mixture parameter , respectively.
Lemma 10 (Weights of General Star Graph).
Proof.
We notice that for
The rest of the proof follows the same steps as given in the proof of Lemma 1 with the above modification. ∎
Lemma 11 (Sign Ambiguity Star Graph).
Proof.
The proof of the first statement follows the same logic as the proof of Lemma 6, after noting that for . ∎
E.2 Line Graph
We now present the recovery of parameters in the case of a line graph with knowledge of
Lemma 12 (Weights of General Line Graph).
Proof.
We first note that we have access to the following three relations
The first two inequalities follow similar to Lemma 2. We derive the final equality below.
Therefore, we obtain the following quadratic equation in and (unlike the case it cannot be easily reduced to a linear equation),
Note that , thus the above can be reduced to
We substitute in the above two equations and as defined below
From the substitution we obtain,
Next we use , and to obtain , and . Specifically, we have
Finally, we use the above relation to arrive at the required result.
∎
Lemma 13 (Sign Ambiguity Line graph on nodes).
Proof.
The proof is almost identical to the other sign ambiguity proofs. ∎
E.3 Finite Sample Complexity
We start by observing that the Claim 7 still holds in the general case.
Claim 14.
If we can estimate and within , we can estimate and within precision .
Proof.
The proof proceeds in a very similar manner as Claim9. Following the derivations for and in the proof of Claim9, we can see that for the star primitive all the computation carry over with a scaling of as we have instead of .
The line primitive presents with increased difficulty as the estimator is more complex. We first observe that . We recall that
Let us assume the error in is bounded as and the error in is bounded as . We have and as all the estimators are assumed to have error bounded by .
Therefore, using ,
Using the above bound in the expression of we can obtain,
Therefore, using the estimate of we obtain,
Switching and gives us the same bounds for . ∎
In the above derivation we have used . We now derive the above inequality.
Finally, using union bound on all the estimators involved accross all possible edges, we can obtain the error bound in the following Theorem 10.