arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:1906.06057v2 [cs.SI] 29 Jan 2020

Learning Mixtures of Graphs from Epidemic Cascades

Jessica Hoffmann Affiliation: The University of Texas at Austin Email: hoffmann@cs.utexas.edu    Soumya Basu Affiliation: The University of Texas at Austin Email: basusoumya@utexas.edu    Surbhi Goel Affiliation: The University of Texas at Austin Email: surbhi@cs.utexas.edu    Constantine Caramanis Affiliation: The University of Texas at Austin Email: constantine@utexas.edu
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, i.e.,i.e., 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 directeddirected 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 (e.g.,e.g., 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 anyany 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 NN. It also matches the bound exactly in terms of the dependency in the separation parameter 1Δ\frac{1}{\Delta} 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 weightedweighted graphs G1=(V,E1)G_{1}=(V,E_{1}) and G2=(V,E2)G_{2}=(V,E_{2}) on the same set of vertices VV. Unless specified otherwise, the graphs considered are undirectedundirected: pij=pjip_{ij}=p_{ji} and qij=qjiq_{ij}=q_{ji}. Note that pijp_{ij} (qijq_{ij}) is 0 if there is no edge between ii and jj in G1G_{1} (G2G_{2}).

We say that the mixture is Δ\Delta-separated if:

min(i,j)E1E2|pijqij|Δ>0.\min\limits_{(i,j)E_{1}\cap E_{2}}|p_{ij}-q_{ij}|\geq\Delta>0.

We denote the minimum edge weight by pmin:=min(i,j)E1min(k,l)E2min(pij,qkl)>0.{p_{min}:=\min\limits_{(i,j)\in E_{1}}\min\limits_{(k,l)\in E_{2}}\min(p_{ij},q_{kl})>0}.

2.2 Dynamics of the Spreading Process

We observe MM 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 b{1,2}b\in\{1,2\} with parameter α\alpha (Pr[b=1]=α\Pr[b=1]=\alpha) decides the component of the mixture, i.e., the epidemic spreads on graph GbG_{b}. We say that the mixture is balanced if α=0.5\alpha=0.5, and we call α\alpha and 1α1-\alpha the priors of the mixture. Unless specified otherwise, the results presented are for balanced mixtures.

Epidemic Spreading:

Once the component of the mixture GbG_{b} is fixed, the epidemic spreads in discrete time on graph GbG_{b} according to a regular one-step Susceptible \rightarrow Infected \rightarrow Removed (SIR) process [35, 23]. At t=0t=0, the epidemic starts on a uniqueunique source, chosen uniformly at random among the nodes of VV. The source is in the Infected state, while all the other nodes are in the Susceptible state. Let ItI_{t} (resp RtR_{t}) be the set of nodes in the Infected (resp. Removed) state at time tt. At each time step tt\in\mathbb{N}, 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., Rt+1=RtItR_{t+1}=R_{t}\cup I_{t}) 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 ii is in the Infected state at time tt, and jj is in the Susceptible state at the same time (i.ei.e iIt,jSti\in I_{t},j\in S_{t}), then ii infects jj with probability pijp_{ij} if b=1b=1, and qijq_{ij} if b=2b=2. 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 t=0t=0 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 bb 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 ϵ<min(Δ,pmin)\epsilon<\min(\Delta,p_{min}). Specifically, we want to provide p^ij\hat{p}_{ij} and q^ij\hat{q}_{ij} for all vertex pairs i,jVi,j\in V such that maxi,jV2max(|pijp^ij|,|qijq^ij|)<ϵ\max_{i,j\in V^{2}}\max(|p_{ij}-\hat{p}_{ij}|,|q_{ij}-\hat{q}_{ij}|)<\epsilon.

2.5 When is this problem solvable?

ji
(a) One edge
jik
(b) Two edges
AB
(c) Disconnected components
Figure 1: Unsolvable structures

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 ii and jj, with only one directed edge from ii to jj (see Figure 1(a)). To see this, consider a balanced mixture, for which edge (i,j)(i,j) has weight β\beta in G1G_{1}, and weight 1β1-\beta in G2G_{2}, then ii will infect jj half of the time, independently of the value of β\beta. This shows that we cannot recover the original weights, and the mixture problem is not solvable. If we add another edge, and ii is now connected to a new node kk (see Figure 1(b)), the problem is still not solvable (see Supplementary Material).

Surprisingly, if ii has a third neighbor ll (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 AA and BB for which cascades never overlap is a general unsolvable setting (see Figure 1(c)). We write Ai=AEi,Bi=BEiA_{i}=A\cap E_{i},B_{i}=B\cap E_{i}. Let E1=A1B2E^{\prime}_{1}=A_{1}\cup B_{2}, E2=A2B1E^{\prime}_{2}=A_{2}\cup B_{1}. We notice a mixture spreading on edges E1E_{1} and E2E_{2} yields the same cascade distribution as a mixture on E1E^{\prime}_{1} and E2E^{\prime}_{2}. Therefore, the solution is not unique.

jikl
(a) Star
jkl
(b) Triangle
lkji
(c) Line
Figure 2: Solvable local structure

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 G=(V,E1E2)G=(V,E_{1}\cup E_{2}) is connected and has at least three edges: |E1E2|3|E_{1}\cup E_{2}|\geq 3.

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 G=(V,E1E2)G=(V,E_{1}\cup E_{2}) are well-separated, that is, Δ>0\Delta>0.

Claim 2.

Suppose Condition 2 is violated. Then there exists (many) graphs for which we need at least exponential (in the number of nodes NN) 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 G1=(V,E1)G_{1}=(V,E_{1}) and G2=(V,E2)G_{2}=(V,E_{2}), and recovers the edge weights corresponding to each graph up to precision ϵ\epsilon with probability at least 1δ1-\delta, in time O(N2)O(N^{2}) and sample complexity O(Nϵ2Δ4log(Nδ))O\left(\frac{N}{\epsilon^{2}\cdot\Delta^{4}}\log(\tfrac{N}{\delta})\right), where N=|V|N=|V|.

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 Δ\Delta-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 1Δ\frac{1}{\Delta} comes from the assumption on the degree 22 2 This immediately implies a better dependency in 1Δ\frac{1}{\Delta} 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 G1=(V,E1)G_{1}=(V,E_{1}) and G2=(V,E2)G_{2}=(V,E_{2}), and recovers the edge weights of each graph up to precision ϵ\epsilon with probability at least 1δ1-\delta, in time O(N2)O(N^{2}) and sample complexity O(Nϵ2Δ2log(Nδ))O\left(\frac{N}{\epsilon^{2}\cdot\Delta^{2}}\log(\tfrac{N}{\delta})\right), where N=|V|N=|V|.

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 1Δ\frac{1}{\Delta}. 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 Δ\Delta-separated graphs on NN nodes up to precision ϵ<Δ\epsilon<\Delta, we need:

  1. 1.

    Ω(NΔ2)\Omega\left(\frac{N}{\Delta^{2}}\right) samples for undirected graphs, which proves our algorithm is optimal in NN up to log factors in this setting.

  2. 2.

    Ω(Nlog(N)+Nloglog(N)Δ2)\Omega\left(N\log(N)+\frac{N\log\log(N)}{\Delta^{2}}\right) samples for directed graphs of minimum out-degree three, which proves our algorithm has optimal dependency in NN and in 1Δ2\frac{1}{\Delta^{2}} 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.

Algorithm 1 Learn the weights of undirected edges

Input Vertex set VV
   Output Edge weights for the two epidemics graphs


1: ELearnEdges(V)E\leftarrow\textsc{LearnEdges}(V) \triangleright Learn the edges
2: S,WLearn2Nodes(V,E)S,W\leftarrow\textsc{Learn2Nodes}(V,E) \triangleright Initialize
3: while SVS\neq V do
4:   Select uS,vV\Su\in S,v\in V\backslash S such that (u,v)E(u,v)\in E
5:   if deg(v) \geq 3 then \triangleright Use star primitive
6:    WWLearnStar(v,E,W)W\leftarrow W\cup\textsc{LearnStar}(v,E,W)   
7:   if deg(v) = 2 then \triangleright Use line primitive
8:    Set wSw\in S such that (u,w)E(u,w)\in E
9:    Set tVt\in V such that (v,t)E(v,t)\in E and tut\neq u
10:    if tSt\not\in S then
11:       WWLearnLine(t,v,u,w,S,W)W\leftarrow W\cup\textsc{LearnLine}(t,v,u,w,S,W)      
12:   SS{v}S\leftarrow S\cup\{v\}
13: Return WW

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 (u,v)(u,v) exists in E1E2E_{1}\cup E_{2}, we use a simple estimator (Section 4.2.1). This also provides us with the degree of each node with respect to E1E2E_{1}\cup E_{2}.

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 uu 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 uu 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 VV are learned. In Theorem , we show that under Conditions 1, it is possible to iteratively learn all the nodes in VV.

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 𝒪(|E|)\mathcal{O}(|E|) 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 E1E2E_{1}\cup E_{2}

We recall that I0I_{0} is the random variable indicating the set containing the unique source of the epidemic for a cascade. If an epidemic cascade starts from node uu, then for any node aa that is infected in time step 11 there is an edge (u,a)E1E2(u,a)\in E_{1}\cup E_{2}. This provides us with the average weight of the edge (u,a)(u,a) as XuaX_{ua},

Claim 3.

If uu and aa are two distinct nodes of VV such that (u,a)E1E2(u,a)\in E_{1}\cup E_{2}, then:

Xua:=Pr(ua|uI0)=pua+qua2pmin2.X_{ua}:=\Pr(u\rightarrow a~|~u\in I_{0})=\frac{p_{ua}+q_{ua}}{2}\geq\frac{p_{min}}{2}.

Furthermore, there exists an edge between uu and aa in E1E2E_{1}\cup E_{2}, if and only if Xuapmin2>0X_{ua}\geq\frac{p_{min}}{2}>0.

The above claim can be leveraged to design algorithm LearnEdges, which takes as inputs all the XuaX_{ua} for all pairs (u,a)(u,a), and returns all the edges of E1E2E_{1}\cup E_{2} (See Supplemental Materials).

Conditioning on Source Node: We notice that the expression of XuaX_{ua} is a function of weights of edges (u,a)(u,a). Here, the conditioning on the event that uI0u\in I_{0} plays an important role. Indeed, if the source had been any other node than uu, then the probability that aa was not removed when uu is infected would have depended on the (unknown) weights of the paths connecting the source and node aa. We could not have obtained a simplified form as above.

4.2.2 Star vertex

aauubbcc
Figure 3: A star vertex uu, with edges (u,a),(u,b)(u,a),(u,b)
and (u,c)(u,c) in E1E2E_{1}\cup E_{2}.

A star vertex is a vertex uVu\in V of degree at least three in E1E2E_{1}\cup E_{2} (Figure 3). We consider
Yua,ubY_{ua,ub}: the probability the star vertex uu infects neighbors aa and bb, conditioned on uu being the source vertex.

Claim 4.

For uu and aa, bb and cc as in Figure 3:

Yua,ub=Pr(ua,ub|uI0)=puapub+quaqub2.Y_{ua,ub}=\Pr(u\rightarrow a,u\rightarrow b~|~u\in I_{0})=\frac{p_{ua}p_{ub}+q_{ua}q_{ub}}{2}.

Again, we emphasize that the conditioning places a crucial role in the product form of Yua,ubY_{ua,ub}, similar to XuaX_{ua}. Further, we make a key observation that for ij{a,b,c}i\neq j\in\{a,b,c\},

Yui,ujXuiXuj\displaystyle Y_{ui,uj}-X_{ui}X_{uj} =(puiqui)(pujquj)4.\displaystyle=\frac{(p_{ui}-q_{ui})(p_{uj}-q_{uj})}{4}. (1)

This directly leads to the closed form expressions for the weights of the edges adjacent to the star vertex uu.

Lemma 1.

Suppose Conditions 1 and 2 are true and α=1/2\alpha=1/2. Let sua{1,1}s_{ua}\in\{-1,1\}. The weight of any edge (u,a)(u,a) connected to a star vertex uu, with distinct neighbors aa, bb and cc in E1E2E_{1}\cup E_{2}, is given by:

pua\displaystyle p_{ua} =Xua+sua(Yua,ubXuaXub)(Yua,ucXuaXuc)Yub,ucXubXuc,\displaystyle=X_{ua}+s_{ua}\sqrt{\frac{(Y_{ua,ub}-X_{ua}X_{ub})(Y_{ua,uc}-X_{ua}X_{uc})}{Y_{ub,uc}-X_{ub}X_{uc}}},
qua\displaystyle q_{ua} =Xuasua(Yua,ubXuaXub)(Yua,ucXuaXuc)Yub,ucXubXuc.\displaystyle=X_{ua}-s_{ua}\sqrt{\frac{(Y_{ua,ub}-X_{ua}X_{ub})(Y_{ua,uc}-X_{ua}X_{uc})}{Y_{ub,uc}-X_{ub}X_{uc}}}.

Furthermore, any two sign suis_{ui} ans sujs_{uj}, for iji\neq j and i,j{a,b,c}i,j\in\{a,b,c\}, satisfy suisuj=𝗌𝗀𝗇(Yui,ujXuiXuj).s_{ui}s_{uj}=\mathsf{sgn}(Y_{ui,uj}-X_{ui}X_{uj}).

Resolving Sign Ambiguity: We note that even though the puip_{ui} and quiq_{ui} has associated signs suis_{ui} for all i{a,b,c}i\in\{a,b,c\}, there is no ambiguity as fixing one sign, say suas_{ua} fixes the sign for all. Using the fact that sui=𝗌𝗀𝗇(puiqui)s_{ui}=\mathsf{sgn}(p_{ui}-q_{ui}) for all i{a,b,c}i\in\{a,b,c\} we obtain the lemma.

LearnStar:

The algorithm LearnStar, takes as input a star vertex uu, the set of edges of E1E2E_{1}\cup E_{2} (which can be recovered using LearnEdges), and all the XuiX_{ui} and Yui,ujY_{ui,uj} for all (i,j)(i,j) distinct neighbors of uu, and returns all the weights of the edges connected to uu in both mixtures using the above closed form expressions (See Supplemental Materials).

4.2.3 Line vertex

aauubbcc
Figure 4: A line vertex uu, with edges (u,a),(u,b)(u,a),(u,b) and (b,c)(b,c) in E1E2E_{1}\cup E_{2}.

We now consider a node uu that has degree exactly two in E1E2E_{1}\cup E_{2} and forms a line structure. Specifically, let u,a,bu,a,b and cc be four distinct nodes of V, such that (a,u),(u,b)(a,u),(u,b) and (b,c)(b,c) belong in E1E2E_{1}\cup E_{2}. We call such a node uu 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 uu as a source and, for i{a,b}i\in\{a,b\}, nodes ii and cc infected in the first timestep, i.e., Pr(ui,uc|uI0)=0Pr(u\to i,u\to c|u\in I_{0})=0.

We circumvent the problem by considering:
1) Yub,bcY_{ub,bc}: the probability of the event when (in Figure 4) uu infects only bb, and in turn bb infects cc, conditioned on uu being the source.
2) Zua,ub,bcZ_{ua,ub,bc}: the probability of the event when (in Figure 4) uu infects both aa and bb, and in turn bb infects cc, conditioned on uu being the source.

Claim 5.

For a line vertex uu and nodes aa, bb and cc as in Figure 4:

Yua,ub|=Pr(ua,ub|uI0)=puapub+quaqub2,\displaystyle\bullet Y^{|}_{ua,ub}=Pr(u\rightarrow a,u\rightarrow b~|~u\in I_{0})=\tfrac{p_{ua}p_{ub}+q_{ua}q_{ub}}{2},
Yub,bc|=Pr(ub,bc|uI0)=pubpbc+qubqbc2,\displaystyle\bullet Y^{|}_{ub,bc}=\Pr(u\rightarrow b,b\rightarrow c~|~u\in I_{0})=\tfrac{p_{ub}p_{bc}+q_{ub}q_{bc}}{2},
Zua,ub,bc|=Pr(ua,ub,bc|uI0)\displaystyle\bullet Z^{|}_{ua,ub,bc}=\Pr(u\rightarrow a,u\rightarrow b,b\rightarrow c~|~u\in I_{0})
=puapubpbc+quaqubqbc2.\displaystyle=\tfrac{p_{ua}p_{ub}p_{bc}+q_{ua}q_{ub}q_{bc}}{2}.

The result for Yua,ub|Y^{|}_{ua,ub} is similar to Claim 4 and uses the conditioning of uu being source crucially. However, the proof for Yub,bc|Y^{|}_{ub,bc} and Zub,bc,bc|Z^{|}_{ub,bc,bc} is different. Additional to uu being the source, the proof also rely on the fact that uu is of degree 2, implying puc=quc=0p_{uc}=q_{uc}=0.

We note that there is no Ybc,ua|Y^{|}_{bc,ua} present as cc can not be infected if bb is not. So we cannot directly replicate the star vertex. Let us define R|:=XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|XubR^{|}:=X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}. We notice the following interesting equality that acts as a surrogate for (Yua,bc|XuaXbc)(Y^{|}_{ua,bc}-X_{ua}X_{bc}).

R|\displaystyle R^{|} =14(puaqua)(pbcqbc).\displaystyle=\frac{1}{4}(p_{ua}-q_{ua})(p_{bc}-q_{bc}). (2)

Similar to Lemma 1 we now obtain the closed form expressions for the weights associated with the line vertex uu. For unifying notations we define Ybc,ua|:=(R|+XbcXua)Y^{|}_{bc,ua}:=(R^{|}+X_{bc}X_{ua}) (it has no probabilistic interpretation).

Lemma 2.

Suppose Conditions 1 and 2 holds and α=1/2\alpha=1/2, then for sua,subs_{ua},s_{ub} and sbcs_{bc} in {1,1}\{-1,1\} the weights of the edges for a line structure are then given by:

(e1,e2,e3){(ua,ub,bc),(ub,bc,ua),(bc,ua,ub)},\displaystyle\forall(e1,e2,e3)\in\{(ua,ub,bc),(ub,bc,ua),(bc,ua,ub)\},
pe1\displaystyle p_{e1} =Xe1+se1(Ye1,e2|Xe1Xe2)(Ye3,e1|Xe3Xe1)Ye2,e3|Xe2Xe3,\displaystyle=X_{e1}+s_{e1}\sqrt{\frac{(Y^{|}_{e1,e2}-X_{e1}X_{e2})(Y^{|}_{e3,e1}-X_{e3}X_{e1})}{Y^{|}_{e2,e3}-X_{e2}X_{e3}}},
qe1\displaystyle q_{e1} =Xe1se1(Ye1,e2|Xe1Xe2)(Ye3,e1|Xe3Xe1)Ye2,e3|Xe2Xe3.\displaystyle=X_{e1}-s_{e1}\sqrt{\frac{(Y^{|}_{e1,e2}-X_{e1}X_{e2})(Y^{|}_{e3,e1}-X_{e3}X_{e1})}{Y^{|}_{e2,e3}-X_{e2}X_{e3}}}.

Furthermore, for all e1,e2{ua,ub,uc}e1,e2\in\{ua,ub,uc\} and e1e2e1\neq e2, se1se2=𝗌𝗀𝗇(Ye1,e2Xe1Xe2)s_{e1}s_{e2}=\mathsf{sgn}(Y_{e1,e2}-X_{e1}X_{e2}).

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 uu, the set of the edges of E1E2E_{1}\cup E_{2}, and the limit of the estimators XuaX_{ua}, XubX_{ub}, XbcX_{bc}, Yua,ub|Y^{|}_{ua,ub}, Yub,bc|Y^{|}_{ub,bc}, Zua,ub,bc|Z^{|}_{ua,ub,bc} for aa, bb and cc as in Figure 4, and returns the weights of the edges (u,a),(u,b)(u,a),(u,b) and (b,c)(b,c) 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 SS has been learned and recorded in WW:

uS,vV,(u,v)E(u,v)W.\forall u\in S,~\forall v\in V,~(u,v)\in E\implies(u,v)\in W.
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, WW contains all edges adjacent to the two vertices in SS . Hence the base case is true. Let us assume that after kk iterations of the loop, the induction hypothesis holds.

We consider three cases in the (k+1)(k+1)-th iteration:
\bullet 𝐝𝐞𝐠(𝐯)𝟑\mathbf{deg(v)\geq 3}: We recover all edges adjacent to the star vertex vv by using LearnStar (correct due to Lemma 1). Sign consistency is ensured using edge (u,v)W(u,v)\in W since uSu\in S.
\bullet 𝐝𝐞𝐠(𝐯)=𝟐\mathbf{deg(v)=2}: There exists wSw\in S such that (u,w)E(u,w)\in E since |S|2|S|\geq 2 and is connected. Since deg(v)=2deg(v)=2, there exists tut\neq u such that (t,v)E(t,v)\in E. Now if tSt\in S then (t,v)W(t,v)\in W and we are done. If tSt\not\in S then vv is a line vertex for tvuwt-v-u-w. By using LearnLine we recover all edges on the line (correct due to Lemma 2). Sign consistency is ensured through edge (v,u)(v,u).
\bullet 𝐝𝐞𝐠(𝐯)=𝟏\mathbf{deg(v)=1}: Since uSu\in S, we have (u,v)W(u,v)\in W, so we are done.

Thus by induction, after every iteration of the for loop, the invariant is maintained. ∎

Theorem 4.

Suppose Condition 1 and 2 are true, Algorithm 1 learns the edge weights of the two balanced mixtures in the setting of infinite samples.

Proof.

Since at every iteration, the size of SS increases by 1, after at most |V||V| iterations, we have S=VS=V. Using Lemma 3 we also have W=E1E2W=E_{1}\cup E_{2}. ∎

4.4 Finite Sample Complexity

In this section, we investigate the error in estimating the quantities XuiX_{ui}, Yui,ujY_{ui,uj} for i,j{a,b,c}i,j\in\{a,b,c\} in case of a star vertex, and Xe1X_{e1}, Ye1,e2|Y^{|}_{e1,e2} and Zua,ub,bcZ_{ua,ub,bc} for e1,e2{ua,ub,bc}e1,e2\in\{ua,ub,bc\} 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 1\mathcal{E}_{1} and 2\mathcal{E}_{2}, we estimate the probability Pr(1|2)=m=1M𝟙12m=1M𝟙2\Pr(\mathcal{E}_{1}|\mathcal{E}_{2})=\frac{\sum_{m=1}^{M}\mathbb{1}_{\mathcal{E}_{1}\cap\mathcal{E}_{2}}}{\sum_{m=1}^{M}\mathbb{1}_{\mathcal{E}_{2}}}. As a concrete example, we have the estimator for XuaX_{ua} as X^ua:=m=1M𝟙ua,uI0mm=1M𝟙uI0m\hat{X}_{ua}:=\frac{\sum_{m=1}^{M}\mathbb{1}_{u\rightarrow a,u\in I_{0}^{m}}}{\sum_{m=1}^{M}\mathbb{1}_{u\in I_{0}^{m}}}. Here I0mI_{0}^{m} denotes the source of the mm-th cascade and uau\rightarrow a denotes that uu infects aa. 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.

Theorem 5.

Suppose Condition 1 and 2 hold. With M=𝒪(1pmin6Δ4Nϵ2log(Nδ)){M=\mathcal{O}\left(\tfrac{1}{p_{min}^{6}\Delta^{4}}\frac{N}{\epsilon^{2}}\log\left(\frac{N}{\delta}\right)\right)} samples, Algorithm 1 learns the edge weights of a balanced mixture on two graphs within precision ϵ\epsilon with probability at least 1δ1-\delta.

5 Extensions

5.1 Extension to Directed Graphs

aauubbcc
(a) A star vertex uu for a directed graph.
aauubb
(b) First structure to ensure sign consistency.
aauubb
(c) Second structure to ensure sign consistency.
Figure 5: Structures for directed graphs of minimum out-degree three.

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, i.e.i.e. with parameter α=0.5\alpha=0.5, we focus here on unbalanced mixtures (α0.5\alpha\neq 0.5 known) and on mixtures of unknown priors (α\alpha 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 ij{a,b,c}i\neq j\in\{a,b,c\}:

Yui,ujXuiXuj=α(1α)(puiqui)(pujquj).Y_{ui,uj}-X_{ui}X_{uj}=\alpha(1-\alpha)(p_{ui}-q_{ui})(p_{uj}-q_{uj}).

However, equation 2 does not extend easily. Therefore, we get an increased dependency in !Δ\frac{!}{\Delta} 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 G1=(V,E1)G_{1}=(V,E_{1}) and G2=(V,E2)G_{2}=(V,E_{2}), with |V|=N|V|=N, and recovers the edge weights corresponding to each graph up to precision ϵ\epsilon in time O(N2)O(N^{2}) and sample complexity:

  • O(NlogNϵ2poly(1Δ)poly(1min(α,1α)))O\left(\frac{N\log N}{\epsilon^{2}}\mathrm{poly}(\tfrac{1}{\Delta})\mathrm{poly}(\tfrac{1}{\min(\alpha,1-\alpha)})\right) in general.

  • O(NlogNϵ2Δ2poly(1min(α,1α)))O\left(\frac{N\log N}{\epsilon^{2}\Delta^{2}}\mathrm{poly}(\tfrac{1}{\min(\alpha,1-\alpha)})\right) 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 α\alpha from this node, and using the results from above to learn the rest of the graph once α\alpha 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 G=(V,E1E2)G=(V,E_{1}\cup E_{2}) be the union of the graphs from both mixtures. In this subsection, we prove it is impossible to learn the weights of E1E_{1} and E2E_{2} if GG has less than three edges:

One edge:

For a graph on two nodes, we have already seen that the cascade distribution are identical if p12=β=1q12p_{12}=\beta=1-q_{12}, for any value of β\beta, 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:

  • p12=βp_{12}=\beta

  • q12=1βq_{12}=1-\beta

  • p13=12β2+1412βp_{13}=\frac{\frac{1}{2}-\frac{\beta}{2}+\frac{1}{4}}{\frac{1}{2}-\beta}

  • q13=14β212βq_{13}=\frac{\frac{1}{4}-\frac{\beta}{2}}{\frac{1}{2}-\beta}

The cascade distribution is identical for any value of β<12\beta<\frac{1}{2}. By simple calculations, we can show the following,

  • Fraction of cascades with only node 1 infected: 112\frac{1}{12}.

  • Fraction of cascades with only node 2 infected: 16\frac{1}{6}.

  • Fraction of cascades with only node 3 infected: 16\frac{1}{6}.

  • Fraction of cascades where 3 infected 1, but 1 did not infect 2: 112\frac{1}{12}.

  • Fraction of cascades where 3 infected 1, 1 infected 2: 112\frac{1}{12}.

  • Fraction of cascades where 1 infected 3, but 1 did not infect 2: 112\frac{1}{12}.

  • Fraction of cascades where 1 infected 2, but 1 did not infect 3: 112\frac{1}{12}.

  • Fraction of cascades where 1 infected 3 and 2: 112\frac{1}{12}.

  • Fraction of cascades where 2 infected 1, but 1 did not infect 3: 112\frac{1}{12}.

  • Fraction of cascades where 2 infected 1, then 1 infected 3: 112\frac{1}{12}.

Since the distribution of cascades is the same for any value of β<12\beta<\frac{1}{2}, the problem is not solvable.

A.2 We need Δ\Delta-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 GG composed of two subgraphs AA and BB, connected by a path PP of length dd. Suppose the path has the same weight in both mixtures, and for the edges ePe\in P, maxePpe<1\max_{e\in P}p_{e}<1. Similar to the disconnected graph, we write Ai=AEiA_{i}=A\cap E_{i}, and Bi=BEiB_{i}=B\cap E_{i}. To learn the graph completely we need to differentiate between the mixture on E1E_{1} and E2E_{2}, and the mixture on E1=A1PB2E^{\prime}_{1}=A_{1}\cup P\cup B_{2} and E2=A2PB1E^{\prime}_{2}=A_{2}\cup P\cup B_{1}.

The path PP 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 AA and one edge in BB. Since PP is of length dd, this happens with probability at most eΩ(d)e^{-\Omega(d)}. To see such a cascade, we need at least eΩ(d)e^{\Omega(d)} cascades in expectation. Therefore, setting d=cNd=cN, for some constant c>0c>0, we prove that exponential number of samples are necessary for any algorithm to recover the graph if the Δ\Delta-separated Condition is violated.

A.3 Dealing with mixtures which are not Δ\Delta-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 G1G_{1} and G2G_{2} follow Conditions 1 and 2 if we remove all non-distinct edges, and in particular remain connected.

Suppose there exists an edge (i,j)(i,j) in the graph, such that pij=qij>0p_{ij}=q_{ij}>0. Then in particular, there exists another edge connecting ii to the rest of the graph G1G_{1} through node kk, such that pikqikp_{ik}\neq q_{ik}. Then:

Lemma 4.

Suppose G1G_{1} and G2G_{2} follow assumption 2 after removing all non-distinct edges. We can detect and learn the weights of non-distinct edges the following way:

If Xij>0X_{ij}>0, and kV,Xik>0Yik,ijXikXij=0\forall k\in V,~X_{ik}>0\implies Y_{ik,ij}-X_{ik}X_{ij}=0, then pij=qij=Xijp_{ij}=q_{ij}=X_{ij}.

Proof.

Since G1G_{1} is connected on three nodes or more even when removing edge (i,j)(i,j), we know there exists a node ll such either ll is connected to either ii or kk. Therefore, either Yik,ilXikXil>0Y_{ik,il}-X_{ik}X_{il}>0 or Yki,klXkiXkl>0Y_{ki,kl}-X_{ki}X_{kl}>0. In both these cases, we deduce pikqikp_{ik}\neq q_{ik}. This in turns allow us to detect that pij=qijp_{ij}=q_{ij}. Once this edge is detected, it is very easy to deduce its weight, since pij=Xij=qijp_{ij}=X_{ij}=q_{ij} by definition. ∎

Appendix B Proofs for unbalanced mixtures

B.1 Estimators - proofs

Lemma 5.

Under Conditions 1 and 2, in the setting of infinite samples, the weights of the edges for a line structure are then given by:

pua\displaystyle p_{ua} =Xua+sua(Yua,ub|XuaXub)R|Yub,bc|XuaXbc,qua=Xuasua(Yua,ub|XuaXub)R|Yub,bc|XuaXbc,\displaystyle=X_{ua}+s_{ua}\sqrt{\frac{(Y^{|}_{ua,ub}-X_{ua}X_{ub})R^{|}}{Y^{|}_{ub,bc}-X_{ua}X_{bc}}},~q_{ua}=X_{ua}-s_{ua}\sqrt{\frac{(Y^{|}_{ua,ub}-X_{ua}X_{ub})R^{|}}{Y^{|}_{ub,bc}-X_{ua}X_{bc}}},
pbc\displaystyle p_{bc} =Xuc+sbc(Yub,bc|XuaXbc)R|Yua,ub|XucXua,qbc=Xucsbc(Yub,bc|XuaXbc)R|Yua,ub|XucXua\displaystyle=X_{uc}+s_{bc}\sqrt{\frac{(Y^{|}_{ub,bc}-X_{ua}X_{bc})R^{|}}{Y^{|}_{ua,ub}-X_{uc}X_{ua}}},~q_{bc}=X_{uc}-s_{bc}\sqrt{\frac{(Y^{|}_{ub,bc}-X_{ua}X_{bc})R^{|}}{Y^{|}_{ua,ub}-X_{uc}X_{ua}}}
pub\displaystyle p_{ub} =Xub+sub(Yuc,ua|XucXua)(Yub,bc|XuaXbc)R|,\displaystyle=X_{ub}+s_{ub}\sqrt{\frac{(Y^{|}_{uc,ua}-X_{uc}X_{ua})(Y^{|}_{ub,bc}-X_{ua}X_{bc})}{R^{|}}},
qua\displaystyle q_{ua} =Xuasua(Yua,ub|XucXua)(Yub,bc|XuaXbc)R|,\displaystyle=X_{ua}-s_{ua}\sqrt{\frac{(Y^{|}_{ua,ub}-X_{uc}X_{ua})(Y^{|}_{ub,bc}-X_{ua}X_{bc})}{R^{|}}},

where R|=XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|XubR^{|}=X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}, and for sua{1,1}s_{ua}\in\{-1,1\}.

Proof.

In this case, there is no edge between uu and cc, which implies that puc=quc=0p_{uc}=q_{uc}=0. 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 Zua,ub,bc|Z^{|}_{ua,ub,bc}. Let R|=XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|XubR^{|}=X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}. We notice a remarkable simplification:

R|\displaystyle R^{|} =XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|Xub\displaystyle=X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}
=pua+qua2pbc+qbc2+puapubpbc+quaqubqbc2pua+qua2puapbc+quaqbc2pbc+qbc2puapua+quaqua2pub+qub2\displaystyle=\frac{p_{ua}+q_{ua}}{2}\cdot\frac{p_{bc}+q_{bc}}{2}+\frac{\frac{p_{ua}p_{ub}p_{bc}+q_{ua}q_{ub}q_{bc}}{2}-\frac{p_{ua}+q_{ua}}{2}\cdot\frac{p_{ua}p_{bc}+q_{ua}q_{bc}}{2}-\frac{p_{bc}+q_{bc}}{2}\cdot\frac{p_{ua}p_{ua}+q_{ua}q_{ua}}{2}}{\frac{p_{ub}+q_{ub}}{2}}
=14(puapbc+puaqbc+quapbc+quaqbc)+2pub+qub[puapubpbc+quaqubqbc2\displaystyle=\frac{1}{4}(p_{ua}p_{bc}+p_{ua}q_{bc}+q_{ua}p_{bc}+q_{ua}q_{bc})+\frac{2}{p_{ub}+q_{ub}}\left[\frac{p_{ua}p_{ub}p_{bc}+q_{ua}q_{ub}q_{bc}}{2}\right.
14(puapubpbc+quapubpbc+puaqubqbc+quaqubqbc)\displaystyle\quad\left.-\frac{1}{4}(p_{ua}p_{ub}p_{bc}+q_{ua}p_{ub}p_{bc}+p_{ua}q_{ub}q_{bc}+q_{ua}q_{ub}q_{bc})\right.
14(puapubpbc+puapubqbc+quaqubpbc+quaqubqbc)]\displaystyle\quad\left.-\frac{1}{4}(p_{ua}p_{ub}p_{bc}+p_{ua}p_{ub}q_{bc}+q_{ua}q_{ub}p_{bc}+q_{ua}q_{ub}q_{bc})\right]
=14(puapbc+puaqbc+quapbc+quaqbc)12(pub+qub)[quapubpbc+puaqubqbc+puapubqbc+quaqubqbc]\displaystyle=\frac{1}{4}(p_{ua}p_{bc}+p_{ua}q_{bc}+q_{ua}p_{bc}+q_{ua}q_{bc})-\frac{1}{2(p_{ub}+q_{ub})}\left[q_{ua}p_{ub}p_{bc}+p_{ua}q_{ub}q_{bc}+p_{ua}p_{ub}q_{bc}+q_{ua}q_{ub}q_{bc}\right]
=14(puapbc+quapbc+quaqbc+puaqbc)12(pub+qub)[(pub+qub)(quapbc+puaqbc)]\displaystyle=\frac{1}{4}(p_{ua}p_{bc}+q_{ua}p_{bc}+q_{ua}q_{bc}+p_{ua}q_{bc})-\frac{1}{2(p_{ub}+q_{ub})}\left[(p_{ub}+q_{ub})(q_{ua}p_{bc}+p_{ua}q_{bc})\right]
=14(puapbc+quaqbcpuaqbcquapbc)\displaystyle=\frac{1}{4}(p_{ua}p_{bc}+q_{ua}q_{bc}-p_{ua}q_{bc}-q_{ua}p_{bc})
=14(puaqua)(pbcqbc)\displaystyle=\frac{1}{4}(p_{ua}-q_{ua})(p_{bc}-q_{bc})

We can then use the same proof techniques as in Lemma 1, and finally obtain:

|puaqua|\displaystyle|p_{ua}-q_{ua}| =(Yua,ub|XuaXua)(XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|Xub)Yub,bc|XuaXbc.\displaystyle=\sqrt{\frac{(Y^{|}_{ua,ub}-X_{ua}X_{ua})\left(X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}\right)}{Y^{|}_{ub,bc}-X_{ua}X_{bc}}}.

This gives us the required result. ∎

B.2 Resolving Sign Ambiguity across Base Estimators

The following lemma handles the sign ambiguity (suas_{ua}) introduced above.

Lemma 6.

Suppose Condition 1 and 2 are true, in the setting of infinite samples, for edges (u,a),(u,b)(u,a),(u,b) with aba\neq b for any vertex uu with degree 2\geq 2, the sign pattern sua,subs_{ua},s_{ub} satisfy the following relation.

suasub=𝗌𝗀𝗇(Yua,ubXuaXub).s_{ua}s_{ub}=\mathsf{sgn}(Y_{ua,ub}-X_{ua}X_{ub}).
Proof.

From previous analysis, we have 𝗌𝗀𝗇(puaqua)=sua\mathsf{sgn}(p_{ua}-q_{ua})=s_{ua}. Therefore:

𝗌𝗀𝗇(Yua,ubXuaXub)\displaystyle\mathsf{sgn}(Y_{ua,ub}-X_{ua}X_{ub}) =𝗌𝗀𝗇((puaqua)(pubqub)4)\displaystyle=\mathsf{sgn}\left(\frac{(p_{ua}-q_{ua})(p_{ub}-q_{ub})}{4}\right)
=suasub.\displaystyle=s_{ua}s_{ub}.

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 𝗌𝗀𝗇(XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|Xub)\mathsf{sgn}\left(X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}\right).

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 XuvX_{uv}.

Algorithm 2 LearnEdges

Input Vertex set VV
   Output Edges of the graph


1: Set EE\leftarrow\emptyset
2: for u<vVu<v\in V do
3:   Compute X^uv\hat{X}_{uv}
4:   if X^uvϵ\hat{X}_{uv}\geq\epsilon then
5:    EE{(u,v)}E\leftarrow E\cup\{(u,v)\}   
6: Return EE
Claim 6.

LearnEdges(V)\textsc{LearnEdges}(V) outputs EE such that E=E1E2E=E_{1}\cup E_{2}.

Proof.

For each pair of nodes u,vVu,v\in V, if (u,v)E1E2(u,v)\in E_{1}\cup E_{2} then Xuv0X_{uv}\neq 0 since Xuv=0X_{uv}=0 if and only if puv=quv=0p_{uv}=q_{uv}=0, which is equivalent to the edge (u,v)(u,v) 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.

Algorithm 3 LearnStar

Input Star vertex uVu\in V, edge set EE, weights WW
   Output Weights of edges adjacent to uu


1: Use star primitive with star vertex uu and learn all adjacent edges weights WW^{*}.
2: if W=W=\emptyset then
3:   Fix sign of any edge and ensure sign consistency.
4: else
5:   Set vVv\in V such that (u,v)W(u,v)\in W.
6:   Use suvs_{uv} to remove sign ambiguity
7: Return WW^{*}.
Lemma 7.

If deg(u)3deg(u)\geq 3, LearnStar(u,S,W)\textsc{LearnStar}(u,S,W) recovers pua,quap_{ua},q_{ua} for all aa such that (u,a)E(u,a)\in E.

Proof.

The proof follows from using Lemma 1 on star vertex uu (degree of u3u\geq 3) and using Lemma 6 to resolve sign ambiguity through fixing an edge or suvs_{uv} ((u,v)W(u,v)\in W hence know sign). ∎

LearnLine

This procedure returns the weights of the edges of a line abcda-b-c-d rooted at vertex bb of degree 2 using the line primitive discussed before.

Algorithm 4 LearnLine

Input Line abcda-b-c-d with deg(b)=2deg(b)=2, edge set EE, weights WW
   Output Weights of edges (a,b),(b,c),(c,d)(a,b),(b,c),(c,d)


1: Use line primitive on abcda-b-c-d rooted at bb and learn all edges weights W|W^{|}.
2: if W=W=\emptyset then
3:   Fix sign of any edge and ensure sign consistency.
4: else
5:   Find edge e{(a,b),(b,c),(c,d)}e\in\{(a,b),(b,c),(c,d)\} such that eWe\in W.
6:   Use ses_{e} to remove sign ambiguity.
7: Return W|W^{|}.
Lemma 8.

If deg(b)=2deg(b)=2, LearnLine(a,b,c,d,S,W)\textsc{LearnLine}(a,b,c,d,S,W) recovers pab,qab,pbc,qbc,pcd,qcdp_{ab},q_{ab},p_{bc},q_{bc},p{cd},q_{cd}.

Proof.

The proof follows from using Lemma 2 on line abcda-b-c-d rooted at vertex bb (degree of b=2b=2) and using Lemma 6 to resolve sign ambiguity by fixing an edge or using ses_{e}. ∎

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.

Algorithm 5 Learn2Nodes

Input Vertex set VV, Edge Set EE
   Output Set of 2 vertices VV, Weight of all edges adjacent to the vertices WW


1: W=W=\emptyset
2: Set u=argmaxaVdeg(a)u=\argmax_{a\in V}deg(a)
3: Set v=argminaV,(u,a)Edeg(a)v=\argmin_{a\in V,(u,a)\in E}deg(a)
4: if deg(u)3deg(u)\geq 3 then
5:   WLearnStar(u,E,W)W\leftarrow\textsc{LearnStar}(u,E,W)
6:   if deg(v)=3deg(v)=3 then
7:    WWLearnStar(v,E,W)W\leftarrow W\cup\textsc{LearnStar}(v,E,W)
8:   else if deg(v)=2deg(v)=2 then
9:    Let tVt\in V be such that (t,v)E(t,v)\in E and tut\neq u
10:    Let wVw\in V be such that (w,u)E(w,u)\in E and wv,tw\neq v,t
11:    if v=tv=t then
12:       WWLearnLine(t,v,u,w,W)W\leftarrow W\cup\textsc{LearnLine}(t,v,u,w,W)      
13: else
14:   ww be such that (w,u)E(w,u)\in E and wvw\neq v
15:   if deg(v)=2deg(v)=2 then
16:    Let tVt\in V be such that (t,v)E(t,v)\in E and tut\neq u
17:    WLearnLine(w,u,v,t,W)W\leftarrow\textsc{LearnLine}(w,u,v,t,W)
18:   else
19:    Let tVt\in V be such that (t,w)E(t,w)\in E and twt\neq w
20:    WLearnLine(v,u,w,t,W)W\leftarrow\textsc{LearnLine}(v,u,w,t,W)   
21: Return (u,v),W(u,v),W
Lemma 9.

Under Conditions 1 and 2, Learn2Nodes(V)\textsc{Learn2Nodes}(V) outputs two connected nodes (u,v)(u,v) and weights of all edges adjacent to u,vu,v.

Proof.

We will break the proof down into cases based on the degree of chosen vertices u,vu,v as follows,

  • deg(u)3deg(u)\geq 3: By Lemma 7, we can recover all the edges of uu and fix a sign.

    • deg(v)3deg(v)\geq 3: By Lemma 7, we can recover all the edges of vv and ensure sign consistency by using the edge (u,v)(u,v).

    • deg(v)=2deg(v)=2: Since deg(v)=2deg(v)=2, there exists a vertex tut\neq u such that (t,u)E(t,u)\in E. Since deg(u)3deg(u)\geq 3, there must exist wt,uw\neq t,u such that (u,w)E(u,w)\in E. Now we have line primitive tvuwt-v-u-w with deg(v)=2deg(v)=2 and Lemma 8 guarantees recovery of the edge weights.

    • deg(v)=1deg(v)=1, then we already know all the edges adjacent to vv.

  • deg(u)=2,deg(v)=2deg(u)=2,deg(v)=2: 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 wvw\neq v such that (w,u)E(w,u)\in E and tu,wt\neq u,w such that (v,t)E(v,t)\in E. This gives a path wuvtw-u-v-t with deg(u)=2deg(u)=2 and Lemma 8 guarantees recovery of all edges.

  • deg(u)=2,deg(v)=1deg(u)=2,deg(v)=1: As in the previous case, the underlying graph is a line. Therefore there exist path vuwtv-u-w-t 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 MM cascades, let MuM_{u} be the number of times node uu is the source.

Claim 7.

With MM samples, every node is the source of the infection at least M2N\frac{M}{2N} times with probability at least 1e3M26N1-e^{-\frac{3M}{26N}}.

Proof.

Among MM cascade, the expectation of MuM_{u} is MN\frac{M}{N}, since the source is chosen uniformly at random among the NN vertices of VV. Since MuM_{u} can be seen as the sum of Bernoulli variable of parameter 1N\frac{1}{N}, we can use Bernstein’s inequality to bound it below:

Pr(Mu<M2N)\displaystyle\Pr(M_{u}<\frac{M}{2N}) =Pr(MNMu>M2N)\displaystyle=\Pr\left(\frac{M}{N}-M_{u}>\frac{M}{2N}\right)
e(M2N)22M1N(11N)+13M2N\displaystyle\leq e^{-\frac{\left(\frac{M}{2N}\right)^{2}}{2M\frac{1}{N}(1-\frac{1}{N})+\frac{1}{3}\frac{M}{2N}}}
e3M26N.\displaystyle\leq e^{-\frac{3M}{26N}}.
Claim 8.

Let uu either be a star vertex, with neighbors a,ba,b and cc, or be part of a line structure rooted in uu, with neighbors a,ba,b, and cc neighbor of bb. Suppose MuM2NM_{u}\geq\frac{M}{2N}. Then with M=Nϵ2log(12N2δ)M=\frac{N}{\epsilon^{2}}\log\left(\frac{12N^{2}}{\delta}\right) samples, with probability at least 1δ6N21-\frac{\delta}{6N^{2}}, we can guarantee any of the following:

  1. 1.

    ra,b,c,|X^urXur|ϵ1\forall r\in{a,b,c},~\left|\hat{X}_{ur}-X_{ur}\right|\leq\epsilon_{1}.

  2. 2.

    rs{a,b,c},|Y^ur,usY^ur,us|ϵ1\forall r\neq s\in\{a,b,c\},~|\hat{Y}^{*}_{ur,us}-\hat{Y}^{*}_{ur,us}|\leq\epsilon_{1}.

  3. 3.

    |Y^ua,ub|Y^ua,ub||ϵ1|\hat{Y}^{|}_{ua,ub}-\hat{Y}^{|}_{ua,ub}|\leq\epsilon_{1} and |Y^ua,ab|Y^ua,ab||ϵ1|\hat{Y}^{|}_{ua,ab}-\hat{Y}^{|}_{ua,ab}|\leq\epsilon_{1}.

  4. 4.

    |Z^ua,ub,bc|Zua,ub,bc||ϵ1|\hat{Z}^{|}_{ua,ub,bc}-Z^{|}_{ua,ub,bc}|\leq\epsilon_{1}.

Proof.

By Hoeffding’s inequality:

Pr(|X^urXur|>ϵ1)\displaystyle\Pr(|\hat{X}_{ur}-X_{ur}|>\epsilon_{1}) =Pr(|m=1Mu𝟙{ur|uI0}MuXur|>Muϵ1)\displaystyle=\Pr\left(\left|\sum_{m=1}^{M_{u}}\mathbb{1}_{\{u\rightarrow r~|~u\in I_{0}\}}-M_{u}\cdot X_{ur}\right|>M_{u}\cdot\epsilon_{1}\right)
Pr(|m=1M2N𝟙{ur|uI0}M2NXur|>M2Nϵ1)\displaystyle\leq\Pr\left(\left|\sum_{m=1}^{\frac{M}{2N}}\mathbb{1}_{\{u\rightarrow r~|~u\in I_{0}\}}-\frac{M}{2N}\cdot X_{ur}\right|>\frac{M}{2N}\cdot\epsilon_{1}\right)
2e2M2Nϵ12.\displaystyle\leq\displaystyle 2e^{-2\frac{M}{2N}\epsilon_{1}^{2}}.

Therefore, the quantity above is smaller than δ6N2\frac{\delta}{6N^{2}} for MNϵ12log(12N2δ)M\geq\frac{N}{\epsilon_{1}^{2}}\log\left(\frac{12N^{2}}{\delta}\right). The proof is almost identical for the other quantities involved.

Claim 9.

If we can estimate Xua,Yua,ub,Yua,ab|X_{ua},Y^{*}_{ua,ub},Y^{|}_{ua,ab} and Zua,ub,bc|Z^{|}_{ua,ub,bc} within ϵ1\epsilon_{1}, we can estimate puap_{ua} within precision ϵ=41pmin3Δ2ϵ1\epsilon=\frac{41}{p_{min}^{3}\Delta^{2}}\cdot\epsilon_{1}.

Proof.

If uu is of degree three or more, we use a star primitive to estimate it. Let a,ba,b and cc be three of its neigbors:

p^ua\displaystyle\hat{p}_{ua} =X^ua+sua(Y^ua,ubX^uaX^ub)(Y^ua,ucX^uaX^uc)Y^ub,ucX^ubX^uc\displaystyle=\hat{X}_{ua}+s_{ua}\sqrt{\frac{(\hat{Y}_{ua,ub}-\hat{X}_{ua}\hat{X}_{ub})(\hat{Y}_{ua,uc}-\hat{X}_{ua}\hat{X}_{uc})}{\hat{Y}_{ub,uc}-\hat{X}_{ub}\hat{X}_{uc}}}
Xua+ϵ1\displaystyle\leq X_{ua}+\epsilon_{1}
+sua((Yua,ubXuaXub+sua(1+Xua+Xub)ϵ1)(Yua,ucXuaXuc+sua[1+Xua+Xuc)ϵ1)OPENYub,bcXubXucsua(1+Xub+Xuc)ϵ1)]12\displaystyle\quad+s_{ua}\left(\frac{(Y_{ua,ub}-X_{ua}X_{ub}+s_{ua}\left(1+X_{ua}+X_{ub}\right)\epsilon_{1})(Y_{ua,uc}-X_{ua}X_{uc}+s_{ua}\left[1+X_{ua}+X_{uc}\right)\epsilon_{1})}{Y_{ub,bc}-X_{ub}X_{uc}-s_{ua}\left(1+X_{ub}+X_{uc}\right)\epsilon_{1})}\right]^{\frac{1}{2}}
Xua+ϵ1+sua(Yua,ubXuaXub)(Yua,ucXuaXuc)Yub,ucXubXuc((1+sua3ϵ1Δ24)21sua3ϵ1Δ24)12\displaystyle\leq X_{ua}+\epsilon_{1}+s_{ua}\sqrt{\frac{(Y_{ua,ub}-X_{ua}X_{ub})(Y_{ua,uc}-X_{ua}X_{uc})}{Y_{ub,uc}-X_{ub}X_{uc}}}\left(\frac{(1+s_{ua}\frac{3\epsilon_{1}}{\frac{\Delta^{2}}{4}})^{2}}{1-s_{ua}\frac{3\epsilon_{1}}{\frac{\Delta^{2}}{4}}}\right)^{\frac{1}{2}}
pua+ϵ1+pua(12Δ2+6Δ2)ϵ1+o(ϵ1)\displaystyle\leq p_{ua}+\epsilon_{1}+p_{ua}\left(\frac{12}{\Delta^{2}}+\frac{6}{\Delta^{2}}\right)\cdot\epsilon_{1}+o(\epsilon_{1})
pua+19Δ2ϵ1+o(ϵ1).\displaystyle\leq p_{ua}+\frac{19}{\Delta^{2}}\cdot\epsilon_{1}+o(\epsilon_{1}).

Where we have used Yur,usXurXusΔ24Y_{ur,us}-X_{ur}X_{us}\geq\frac{\Delta^{2}}{4}, sua2=1s_{ua}^{2}=1, pua1p_{ua}\leq 1, 11Δ21\leq\frac{1}{\Delta^{2}}. We then conclude by symmetry.

If uu is of degree two, we use a line primitive to estimate it:

p^ua\displaystyle\hat{p}_{ua} =X^ua+sua(Y^ua,ub|X^uaX^ub)(X^uaX^bc+Z^ua,ub,bc|X^uaY^ub,bc|X^bcY^ua,ub|X^ub)Y^ub,bc|X^uaX^bc\displaystyle=\hat{X}_{ua}+s_{ua}\sqrt{\frac{(\hat{Y}^{|}_{ua,ub}-\hat{X}_{ua}\hat{X}_{ub})\left(\hat{X}_{ua}\hat{X}_{bc}+\frac{\hat{Z}^{|}_{ua,ub,bc}-\hat{X}_{ua}\hat{Y}^{|}_{ub,bc}-\hat{X}_{bc}\hat{Y}^{|}_{ua,ub}}{\hat{X}_{ub}}\right)}{\hat{Y}^{|}_{ub,bc}-\hat{X}_{ua}\hat{X}_{bc}}}
Xua+ϵ1+sua(Yua,ub|XuaXub+3suaϵ1)(XuaXbc+2ϵ1+Zua,ub,bc|XuaYub,bc|XbcYua,ub|+5suaϵ1Xubsuaϵ1)Yub,bc|XuaXbc3suaϵ1.\displaystyle\leq X_{ua}+\epsilon_{1}+s_{ua}\sqrt{\frac{(Y^{|}_{ua,ub}-X_{ua}X_{ub}+3s_{ua}\epsilon_{1})\left(X_{ua}X_{bc}+2\epsilon_{1}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}+5s_{ua}\epsilon_{1}}{X_{ub}-s_{ua}\epsilon_{1}}\right)}{Y^{|}_{ub,bc}-X_{ua}X_{bc}-3s_{ua}\epsilon_{1}}}.

As shown in the proof of Lemma 2, we have:

Zua,ub,bc|XuaYub,bc|XbcYua,ub|\displaystyle Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub} =12(pub+qub)(quapbc+puaqbc)\displaystyle=\frac{1}{2}(p_{ub}+q_{ub})(q_{ua}p_{bc}+p_{ua}q_{bc})
pmin32\displaystyle\geq\frac{p^{3}_{min}}{2}
(XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|Xub)\displaystyle\left(X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}\right) =14(puaqua)(pbcqbc)\displaystyle=\frac{1}{4}(p_{ua}-q_{ua})(p_{bc}-q_{bc})
Δ24.\displaystyle\geq\frac{\Delta^{2}}{4}.

Therefore:

Zua,ub,bc|XuaYub,bc|XbcYua,ub|+5suaϵ1Xubsuaϵ1\displaystyle\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}+5s_{ua}\epsilon_{1}}{X_{ub}-s_{ua}\epsilon_{1}} Zua,ub,bc|XuaYub,bc|XbcYua,ub|Xub[1+sua5ϵ1pmin321suaϵ1pmin2]\displaystyle\leq\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}\left[\frac{1+s_{ua}\frac{5\epsilon_{1}}{\frac{p^{3}_{min}}{2}}}{1-s_{ua}\frac{\epsilon_{1}}{\frac{p_{min}}{2}}}\right]
Zua,ub,bc|XuaYub,bc|XbcYua,ub|Xub+sua(12pmin3)ϵ1+o(ϵ1).\displaystyle\leq\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}+s_{ua}\left(\frac{12}{p^{3}_{min}}\right)\epsilon_{1}+o(\epsilon_{1}).

We also have:

XuaXbc+2ϵ1+Zua,ub,bc|XuaYub,bc|XbcYua,ub|+5suaϵ1Xubsuaϵ1\displaystyle X_{ua}X_{bc}+2\epsilon_{1}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}+5s_{ua}\epsilon_{1}}{X_{ub}-s_{ua}\epsilon_{1}} (XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|Xub)\displaystyle\leq\left(X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}\right)
(1+sua14pmin3Δ24ϵ1)+o(ϵ1).\displaystyle\quad\cdot\left(1+s_{ua}\frac{\frac{14}{p_{min}^{3}}}{\frac{\Delta^{2}}{4}}\epsilon_{1}\right)+o(\epsilon_{1}).

Combining all the above inequalitites:

p^ua\displaystyle\hat{p}_{ua} Xua+ϵ1+sua(Yua,ub|XuaXub)(XuaXbc+Zua,ub,bc|XuaYub,bc|XbcYua,ub|Xub)Yub,bc|XuaXbc\displaystyle\leq X_{ua}+\epsilon_{1}+s_{ua}\sqrt{\frac{(Y^{|}_{ua,ub}-X_{ua}X_{ub})\left(X_{ua}X_{bc}+\frac{Z^{|}_{ua,ub,bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}}{X_{ub}}\right)}{Y^{|}_{ub,bc}-X_{ua}X_{bc}}}
[(1+3ϵ1Δ24)(1+sua14pmin3Δ24ϵ1)1sua3ϵ1Δ24]12\displaystyle\quad\cdot\left[\frac{\left(1+\frac{3\epsilon_{1}}{\frac{\Delta^{2}}{4}}\right)\left(1+s_{ua}\frac{\frac{14}{p_{min}^{3}}}{\frac{\Delta^{2}}{4}}\epsilon_{1}\right)}{1-s_{ua}\frac{3\epsilon_{1}}{\frac{\Delta^{2}}{4}}}\right]^{\frac{1}{2}}
pua+ϵ1+puasua2(6Δ2+28pmin3Δ2+6Δ2)ϵ1+o(ϵ1)\displaystyle\leq p_{ua}+\epsilon_{1}+p_{ua}s_{ua}^{2}\left(\frac{6}{\Delta^{2}}+\frac{28}{p_{min}^{3}\Delta^{2}}+\frac{6}{\Delta^{2}}\right)\cdot\epsilon_{1}+o(\epsilon_{1})
pua+41pmin3Δ2ϵ1+o(ϵ1).\displaystyle\leq p_{ua}+\frac{41}{p_{min}^{3}\Delta^{2}}\cdot\epsilon_{1}+o(\epsilon_{1}).

We can conclude by symmetry.

Since 41pmin3Δ2ϵ119Δ2ϵ1\frac{41}{p_{min}^{3}\Delta^{2}}\cdot\epsilon_{1}\geq\frac{19}{\Delta^{2}}\cdot\epsilon_{1}, we conclude that we can know puap_{ua} within precision ϵ=41pmin3Δ2ϵ1\epsilon=\frac{41}{p_{min}^{3}\Delta^{2}}\cdot\epsilon_{1} regardless of the degree of uu.

Theorem 7.

Under Conditions 1 and 2,, with probability 1δ1-\delta, with M=N412pmin6Δ4ϵ2log(12N2δ)=𝒪(Nϵ2log(Nδ))M=N\cdot\frac{41^{2}}{p_{min}^{6}\Delta^{4}\cdot\epsilon^{2}}\log\left(\frac{12N^{2}}{\delta}\right)=\mathcal{O}\left(\frac{N}{\epsilon^{2}}\log\left(\frac{N}{\delta}\right)\right) samples, we can learn all the edges of the mixture of the graphs within precision ϵ\epsilon.

Proof.

We pick ϵ=41pmin3Δ2ϵ1\epsilon=\frac{41}{p_{min}^{3}\Delta^{2}}\cdot\epsilon_{1}. We use Claim 7 to bound the quantity Pr(Mu<M2N)\Pr(M_{u}<\frac{M}{2N}), and Claim 8 and 9 to bound Pr(|p^uapua|>41pmin3Δ2ϵ1|MuM2N)\Pr(|\hat{p}_{ua}-p_{ua}|>\frac{41}{p_{min}^{3}\Delta^{2}}\cdot\epsilon_{1}|M_{u}\geq\frac{M}{2N}). For (u,a)(u,a) edge of the graph:

Pr(|p^uapua|>ϵ)\displaystyle\Pr(|\hat{p}_{ua}-p_{ua}|>\epsilon) Pr(|p^uapua|>ϵ|Mu<M2n)Pr(Mu<M2N)\displaystyle\leq\Pr(|\hat{p}_{ua}-p_{ua}|>\epsilon|M_{u}<\frac{M}{2n})\cdot\Pr(M_{u}<\frac{M}{2N})
+Pr(|p^uapua|>ϵ|MuM2n)Pr(MuM2N)\displaystyle\quad+\Pr(|\hat{p}_{ua}-p_{ua}|>\epsilon|M_{u}\geq\frac{M}{2n})\cdot\Pr(M_{u}\geq\frac{M}{2N})
12e2M2N+Pr(|p^uapua|>ϵ|MuM2N)1\displaystyle\leq 1\cdot\displaystyle 2e^{-2\frac{M}{2N}}+\Pr(|\hat{p}_{ua}-p_{ua}|>\epsilon|M_{u}\geq\frac{M}{2N})\cdot 1
δ12N2+Pr(|p^uapua|>41pmin3Δ2ϵ1|MuM2N)\displaystyle\leq\frac{\delta}{12N^{2}}+\Pr(|\hat{p}_{ua}-p_{ua}|>\frac{41}{p_{min}^{3}\Delta^{2}}\cdot\epsilon_{1}|M_{u}\geq\frac{M}{2N})
δ12N2+δ12N2\displaystyle\leq\frac{\delta}{12N^{2}}+\frac{\delta}{12N^{2}}
δ6N2.\displaystyle\leq\frac{\delta}{6N^{2}}.

We conclude by union bound on the six estimators involved for all the pairs of nodes in the graph, for a total of at most 6N26N^{2} estimators.

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 E1E2E_{1}\cup E_{2}. 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 VV are 11, 2 and 3.

Definition 2.

We reuse the quantities defined for star vertices:

  • For ii, jj distinct in {1,2,3},X^ij=1Mm=1M𝟙ij,iI0m1Mm=1M𝟙iI0mMXij=pij+qij2.\{1,2,3\},~\hat{X}_{ij}=\frac{\frac{1}{M}\sum_{m=1}^{M}\mathbb{1}_{i\rightarrow j,i\in I_{0}^{m}}}{\frac{1}{M}\sum_{m=1}^{M}\mathbb{1}_{i\in I_{0}^{m}}}\to_{M\to\infty}X_{ij}=\frac{p_{ij}+q_{ij}}{2}.

  • For ii, jj, kk distinct in {1,2,3},Yij,ik=1Mm=1M𝟙ij,ik,iI0m1Mm=1M𝟙uI0mMYij,ik=pijpik+qijqik2.\{1,2,3\},~Y_{ij,ik}=\frac{\frac{1}{M}\sum_{m=1}^{M}\mathbb{1}_{i\rightarrow j,i\rightarrow k,i\in I_{0}^{m}}}{\frac{1}{M}\sum_{m=1}^{M}\mathbb{1}_{u\in I_{0}^{m}}}\to_{M\to\infty}Y_{ij,ik}=\frac{p_{ij}p_{ik}+q_{ij}q_{ik}}{2}.

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:

|pijqij|2=(Yij,ikXijik)(Yji,jkXjiXjk)Yki,kjXkiXkj.\frac{|p_{ij}-q_{ij}|}{2}=\sqrt{\frac{(Y_{ij,ik}-X_{ij}{ik})(Y_{ji,jk}-X_{ji}X_{jk})}{Y_{ki,kj}-X_{ki}X_{kj}}}.

Resolving the sign ambiguity as previoulsy (Lemma 6), this finally yields:

pij\displaystyle p_{ij} =Xij+sij(Yij,ikXijik)(Yji,jkXjiXjk)Yki,kjXkiXkj,\displaystyle=X_{ij}+s_{ij}\sqrt{\frac{(Y_{ij,ik}-X_{ij}{ik})(Y_{ji,jk}-X_{ji}X_{jk})}{Y_{ki,kj}-X_{ki}X_{kj}}},
qij\displaystyle q_{ij} =Xij+sij(Yij,ikXijik)(Yji,jkXjiXjk)Yki,kjXkiXkj.\displaystyle=X_{ij}+s_{ij}\sqrt{\frac{(Y_{ij,ik}-X_{ij}{ik})(Y_{ji,jk}-X_{ji}X_{jk})}{Y_{ki,kj}-X_{ki}X_{kj}}}.

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 ϵ<Δ\epsilon<\Delta. To do so, we have to be able to learn a mixture on a specific graph, which we present below.

4231567N
Figure 6: Lower-bound directed graph

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 N4N-4 other nodes with 3 directed edges to nodes 1, 2 and 3. All edges have weight pp in E1E_{1}, and p+Δp+\Delta in E2E_{2}.

We define a valid sample for edge (i,j)(i,j) as a cascade during which ii became infected when jj was not infected. Indeed, in this case, an infection could happen along edge (i,j)(i,j), and we can therefore gain information about the weight of this edge. We first state a general claim:

Claim 10.

We need at least Ω(1Δ2)\Omega(\frac{1}{\Delta^{2}}) valid samples for edge (i,j)(i,j) to determine the weights of this edge in the mixture.

Proof.

Using Sanov’s theorem [41], and writing the Kullback–Leibler divergence between pp and qq as 𝒟(p||q)\mathcal{D}(p||q), we know we need at least Ω(𝒟(p||p+Δ))\Omega(\mathcal{D}(p||p+\Delta)) valid samples to determine whether the valid samples came from a random flip of probability pp, or a random flip of probability p+Δp+\Delta, which is an easier task than computing both weights of the mixture.

Then, using standard Kullback–Leibler divergence bounds [12], we obtain 𝒟(p||p+Δ)1Δ2\mathcal{D}(p||p+\Delta)\geq\frac{1}{\Delta^{2}}, 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 Ω(Nlog(N)+Nloglog(N)Δ2)\Omega\left(N\log(N)+\frac{N\log\log(N)}{\Delta^{2}}\right) 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 N4N-4 nodes to node 1. However, if ii is not part of the clique, any valid sample for such an edge (i, 1) has to have ii as its source. Having enough valid samples for each of these edges is therefore equivalent to collecting Ω(1Δ2)\Omega(\frac{1}{\Delta^{2}}) copies of N4N-4 distinct coupons in the standard Coupon collector problem. Using results from [36, 15], we need Ω((Klog(K)+(d1)Kloglog(K))CLOSE\Omega(\left(K\log(K)+(d-1)\cdot K\cdot\log\log(K)\right) samples to obtain dd copies of each coupon when there are KK distinct coupons in total, which is here Ω((N4)log(N4)+(1Δ21)(N4)loglog(N4))\Omega\left((N-4)\log(N-4)+(\frac{1}{\Delta^{2}}-1)\cdot(N-4)\cdot\log\log(N-4)\right) cascades. Using standard approximation, we get the desired result.

Combining the results:

Theorem 8.

We need at least Ω(Nlog(N)+Nloglog(N)Δ2)\Omega\left(N\log(N)+\frac{N\log\log(N)}{\Delta^{2}}\right) 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 NN nodes, where for all 1iN11\leq i\leq N-1, node ii is connected to node i+1i+1. Like in the previous example, the weights are all pp in G1G_{1}, and all p+Δp+\Delta in G2G_{2}.

Reusing Claim 10, we now prove:

Claim 12.

We need at least Ω(NΔ2)\Omega\left(\frac{N}{\Delta^{2}}\right) cascades to obtain enough valid samples for edge (1,2).

Proof.

To provide a valid sample, either:

  • Node 11 is the source, which happens with probability 𝒫1=1N\mathcal{P}_{1}=\frac{1}{N}.

  • Node 2 was infected, which happens with probability 𝒫2i=2N1Npmaxi21N11pmax\mathcal{P}_{2}\leq\displaystyle\sum_{i=2}^{N}\frac{1}{N}p_{max}^{i-2}\leq\frac{1}{N}\frac{1}{1-p_{max}}.

Therefore, the probability of getting a valid sample is smaller than 𝒫1+𝒫21N21pmax\mathcal{P}_{1}+\mathcal{P}_{2}\leq\frac{1}{N}\cdot\frac{2}{1-p_{max}}. Hence, we need at least Ω(1pmax2N1Δ2)=Ω(NΔ2)\Omega(\frac{1-p_{max}}{2}\cdot N\cdot\frac{1}{\Delta^{2}})=\Omega\left(\frac{N}{\Delta^{2}}\right) cascades to obtain enough valid samples.

Since we need to learn at least edge (1,2)(1,2) to learn all the edges of this graph:

Theorem 9.

We need at least Ω(NΔ2)\Omega\left(\frac{N}{\Delta^{2}}\right) cascades to learn any mixture of undirected graphs.

Appendix D Directed graphs

D.1 Structures

aauubbcc
(a) A star vertex uu for a directed graph.
aauubb
(b) First structure to ensure sign consistency.
aauubb
(c) Second structure to ensure sign consistency.
Figure 7: Structures for directed graphs of minimum out-degree three.
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 uu in both graphs, which we call 𝒩1u\mathcal{N}_{1}^{u} and 𝒩2u\mathcal{N}_{2}^{u}, as well as the neighbordhoods of node aa, which we call 𝒩1a\mathcal{N}_{1}^{a} and 𝒩2a\mathcal{N}_{2}^{a}, it is impossible to recover from the star structure alone if 𝒩1u\mathcal{N}_{1}^{u} and 𝒩1a\mathcal{N}_{1}^{a} are in the same mixture, or if it is 𝒩1u\mathcal{N}_{1}^{u} and 𝒩2a\mathcal{N}_{2}^{a} 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 aa, as well as all the weighted edges stemming from uu, and suppose there is no edge between aa and bb. The probability that aa infected uu, which in turn infected bb is:

(aub|aI0)=paupub+qauqub2.\mathbb{P}(a\rightarrow u\rightarrow b|a\in I_{0})=\frac{p_{au}p_{ub}+q_{au}q_{ub}}{2}.

This gives us a way to decide whether 𝒩1u\mathcal{N}_{1}^{u} and 𝒩1a\mathcal{N}_{1}^{a} are in the same mixture, or if it is 𝒩1u\mathcal{N}_{1}^{u} and 𝒩2a\mathcal{N}_{2}^{a} instead. Indeed, if we know pau𝒩1a,qau𝒩2ap_{au}\in\mathcal{N}_{1}^{a},q_{au}\in\mathcal{N}_{2}^{a}, and we also know wub𝒩1u,wub𝒩2uw_{ub}\in\mathcal{N}_{1}^{u},w^{\prime}_{ub}\in\mathcal{N}_{2}^{u}, and we have an estimator Y^au,ub\hat{Y}_{au,ub} for (aub|aI0)\mathbb{P}(a\rightarrow u\rightarrow b|a\in I_{0}), then we can check whether Y^au,ubpauwub+qauwub2\hat{Y}_{au,ub}\approx\frac{p_{au}w_{ub}+q_{au}w^{\prime}_{ub}}{2}, in which case 𝒩1u\mathcal{N}_{1}^{u} belongs with 𝒩1a\mathcal{N}_{1}^{a}, or whether Y^au,ubpauwub+qauwub2\hat{Y}_{au,ub}\approx\frac{p_{au}w^{\prime}_{ub}+q_{au}w_{ub}}{2}, in which case 𝒩2u\mathcal{N}_{2}^{u} belongs in the with 𝒩1a\mathcal{N}_{1}^{a}. We call this procedure CheckPath.

Similarly, if there is an edge between aa and bb, then:

(aub|aI0)=pau(1pab)pub+qau(1qab)qub2.\mathbb{P}(a\rightarrow u\rightarrow b|a\in I_{0})=\frac{p_{au}(1-p_{ab})p_{ub}+q_{au}(1-q_{ab})q_{ub}}{2}.

This also allows us to ensure mixture consistency. We call this procedure CheckTriangle.

Here is the final algorithm:

Algorithm 6 Learn the weights of directed edges

Input Vertex set VV
   Output Edge weights for the two epidemics graphs


1: ELearnEdges(V)E\leftarrow\textsc{LearnEdges}(V)
2: Select any first node vv
3: WLearnStar(v,E,W)W\leftarrow\textsc{LearnStar}(v,E,W)
4: S={v}S=\{v\}
5: while SVS\neq V do
6:   Select aS,vV\Sa\in S,v\in V\backslash S such that (a,u)E(a,u)\in E \triangleright vv has out-degree at least 3
7:   𝒩1,𝒩2LearnStar(u,E,W)\mathcal{N}_{1},\mathcal{N}_{2}\leftarrow\textsc{LearnStar}(u,E,W)
8:   Select bab\neq a neighbor of uu \triangleright bb exists because u os of degree at least 3.
9:   if (a,b)E(a,b)\notin E then \triangleright Use first structure.
10:    if CheckPath(v,u,b,W,𝒩1,𝒩2)(v,u,b,W,\mathcal{N}_{1},\mathcal{N}_{2}) then
11:      W={W1𝒩1,W2𝒩2}W=\{W_{1}\cup\mathcal{N}_{1},W_{2}\cup\mathcal{N}_{2}\}
12:    else
13:      W={W1𝒩2,W2𝒩1}W=\{W_{1}\cup\mathcal{N}_{2},W_{2}\cup\mathcal{N}_{1}\}    
14:   else\triangleright Use second structure.
15:    if CheckTriangle(v,u,b,W,𝒩1,𝒩2)(v,u,b,W,\mathcal{N}_{1},\mathcal{N}_{2}) then
16:      W={W1𝒩1,W2𝒩2}W=\{W_{1}\cup\mathcal{N}_{1},W_{2}\cup\mathcal{N}_{2}\}
17:    else
18:      W={W1𝒩2,W2𝒩1}W=\{W_{1}\cup\mathcal{N}_{2},W_{2}\cup\mathcal{N}_{1}\}      
19:   SS{u}S\leftarrow S\cup\{u\} return WW

Appendix E Unbalanced/Unknown Mixtures

In this section we provide the primitives required for LearnStar and LearnLine, when the first mixture occurs with probability α\alpha and the second mixture with probability (1α)(1-\alpha).

Notations: In this section, to avoid clutter in notation we use ii, jj and kk to be all distinct unless mentioned otherwise. Also, let σ({a,b,c})={(a,b,c),(b,c,a),(c,a,b)}\sigma(\{a,b,c\})=\{(a,b,c),(b,c,a),(c,a,b)\} denote all the permutations of aa, bb, and cc.

Claim 13.

If aa and bb are two distinct nodes of V1V2V_{1}\cap V_{2} such that (a,b)E1E2(a,b)\in E_{1}\cap E_{2} then under general mixture model Xab=αpab+(1α)qabX_{ab}=\alpha p_{ab}+(1-\alpha)q_{ab}.

Fuither, when the four nodes uu, aa, bb and cc forms a star graph (Fig. 3) with uu in the center under general mixture model

OPEN1)i,j{a,b,c},i,ju,Yui,uj=αpuipuj+(1α)quiquj,\displaystyle 1)~\forall i,j\in\{a,b,c\},i,j\neq u,Y_{ui,uj}=\alpha p_{ui}p_{uj}+(1-\alpha)q_{ui}q_{uj},
OPEN2)Zua,ub,uc=αpuapubpuc+(1α)quaqubquc.\displaystyle 2)~Z_{ua,ub,uc}=\alpha p_{ua}p_{ub}p_{uc}+(1-\alpha)q_{ua}q_{ub}q_{uc}.

Finally, when the four nodes uu, aa, bb and cc forms a line graph (Fig. 4) under general mixture model

OPENOPEN1)Yua,ub|=αpuapub+(1α)quaqub,2)Yub,bc|=αpubpbc+(1α)qubqbc,\displaystyle 1)~Y^{|}_{ua,ub}=\alpha p_{ua}p_{ub}+(1-\alpha)q_{ua}q_{ub},2)~Y^{|}_{ub,bc}=\alpha p_{ub}p_{bc}+(1-\alpha)q_{ub}q_{bc},
OPEN3)Zua,ub,bc|=αpuapubpbc+(1α)quaqubqbc.\displaystyle 3)~Z^{|}_{ua,ub,bc}=\alpha p_{ua}p_{ub}p_{bc}+(1-\alpha)q_{ua}q_{ub}q_{bc}.

The proof of the above claim is omitted as it follows closely the proofs of Claim 3, 4, and 5.

E.1 Star Graph

We now present the following two lemmas which recover the weights puip_{ui},and quiq_{ui} for all i{a,b,c}i\in\{a,b,c\} in the star graph (Fig. 3), and the general mixture parameter α\alpha, respectively.

Lemma 10 (Weights of General Star Graph).

Under Conditions 1 and 2, in the setting of infinite samples, for the starstar structure (u,a,b,c)(u,a,b,c) with uu as the central vertex the weight of any edge (u,a)(u,a) is given by:

pua\displaystyle p_{ua} =Xua+sua1αα(Yua,ubXuaXub)(Yua,ucXuaXuc)Yub,ucXubXuc\displaystyle=X_{ua}+s_{ua}\sqrt{\tfrac{1-\alpha}{\alpha}}\sqrt{\frac{(Y_{ua,ub}-X_{ua}X_{ub})(Y_{ua,uc}-X_{ua}X_{uc})}{Y_{ub,uc}-X_{ub}X_{uc}}}
qua\displaystyle q_{ua} =Xuasuaα1α(Yua,ubXuaXub)(Yua,ucXuaXuc)Yub,ucXubXuc\displaystyle=X_{ua}-s_{ua}\sqrt{\tfrac{\alpha}{1-\alpha}}\sqrt{\frac{(Y_{ua,ub}-X_{ua}X_{ub})(Y_{ua,uc}-X_{ua}X_{uc})}{Y_{ub,uc}-X_{ub}X_{uc}}}

where sua{1,1}s_{ua}\in\{-1,1\} and b,cN1(u)N2(u)b,c\in N_{1}(u)\cap N_{2}(u) such that b,cab,c\neq a, bcb\neq c.

Proof.

We notice that for rj{a,b,c}r\neq j\in\{a,b,c\}

(Yui,ujXuiXuj)\displaystyle\left(Y_{ui,uj}-X_{ui}X_{uj}\right) =(αpuipuj+(1α)quiquj)(αpui+(1α)qui)(αpuj+(1α)quj)\displaystyle=\left(\alpha p_{ui}p_{uj}+(1-\alpha)q_{ui}q_{uj}\right)-\left(\alpha p_{ui}+(1-\alpha)q_{ui}\right)\left(\alpha p_{uj}+(1-\alpha)q_{uj}\right)
=α(1α)(puiqui)(pujquj).\displaystyle=\alpha(1-\alpha)(p_{ui}-q_{ui})(p_{uj}-q_{uj}).

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).

Under Conditions 1 and 2, in the setting of infinite samples, for edges (u,a),(u,b)(u,a),(u,b) for the starstar structure (u,a,b,c)(u,a,b,c) with uu as the central vertex, the sign pattern sua,subs_{ua},s_{ub} satisfy the following relation.

subsua=𝗌𝗀𝗇(Yua,ubXuaXub).s_{ub}s_{ua}=\mathsf{sgn}(Y_{ua,ub}-X_{ua}X_{ub}).
Proof.

The proof of the first statement follows the same logic as the proof of Lemma 6, after noting that 𝗌𝗀𝗇(α(1α))=1\mathsf{sgn}(\alpha(1-\alpha))=1 for α(0,1)\alpha\in(0,1). ∎

E.2 Line Graph

We now present the recovery of parameters in the case of a line graph with knowledge of α\alpha

Lemma 12 (Weights of General Line Graph).

Under Conditions 1 and 2, in the setting of infinite samples, the weights of the edges (u,a)(u,a), and (u,b)(u,b) for a lineline graph aubca-u-b-c can be learned in closed form (as given in the proof), as a function of
(1) the mixture parameter α\alpha,
(2) estimators XuaX_{ua}, XubX_{ub}, XbcX_{bc}, Yua,ub|Y^{|}_{ua,ub}, Yub,bc|Y^{|}_{ub,bc}, and Zua,ub,bc|Z^{|}_{ua,ub,bc},
(3) one variable sub{1,+1}s_{ub}\in\{-1,+1\}.

Proof.

We first note that we have access to the following three relations

OPEN1)\displaystyle 1)\quad (Yua,ub|XuaXub)=α(1α)(puaqua)(pubqub)\displaystyle(Y^{|}_{ua,ub}-X_{ua}X_{ub})=\alpha(1-\alpha)(p_{ua}-q_{ua})(p_{ub}-q_{ub})
OPEN2)\displaystyle 2)\quad (Yub,bc|XubXbc)=α(1α)(pubqub)(pbcqbc)\displaystyle(Y^{|}_{ub,bc}-X_{ub}X_{bc})=\alpha(1-\alpha)(p_{ub}-q_{ub})(p_{bc}-q_{bc})
OPEN3)\displaystyle 3)\quad (Zua,ub,bc|+XuaXubXbcXuaYub,bc|XbcYua,ub|)\displaystyle(Z^{|}_{ua,ub,bc}+X_{ua}X_{ub}X_{bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub})
=α(1α)((1α)pub+αqub)(puaqua)(pbcqbc).\displaystyle=\alpha(1-\alpha)((1-\alpha)p_{ub}+\alpha q_{ub})(p_{ua}-q_{ua})(p_{bc}-q_{bc}).

The first two inequalities follow similar to Lemma 2. We derive the final equality below.

Zua,ub,bc|+XuaXubXbcXuaYub,bc|XbcYua,ub|\displaystyle Z^{|}_{ua,ub,bc}+X_{ua}X_{ub}X_{bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}
=αpuapubpbc+(1α)quaqubqbc\displaystyle=\alpha p_{ua}p_{ub}p_{bc}+(1-\alpha)q_{ua}q_{ub}q_{bc}
(αpua+(1α)qua)((αpubpbc+(1α)qubqbc)(αpbc+(1α)qbc)((αpuapub+(1α)quaqub)CLOSECLOSE\displaystyle-(\alpha p_{ua}+(1-\alpha)q_{ua})((\alpha p_{ub}p_{bc}+(1-\alpha)q_{ub}q_{bc})-(\alpha p_{bc}+(1-\alpha)q_{bc})((\alpha p_{ua}p_{ub}+(1-\alpha)q_{ua}q_{ub})
+(αpua+(1α)qua)(αpub+(1α)qub)(αpbc+(1α)qbc)\displaystyle+(\alpha p_{ua}+(1-\alpha)q_{ua})(\alpha p_{ub}+(1-\alpha)q_{ub})(\alpha p_{bc}+(1-\alpha)q_{bc})
=α(1α)2puapubpbc+α2(1α)quaqubqbc\displaystyle=\alpha(1-\alpha)^{2}p_{ua}p_{ub}p_{bc}+\alpha^{2}(1-\alpha)q_{ua}q_{ub}q_{bc}
α(1α)2puapubqbc+α2(1α)puaqubpbcα(1α)2quapubpbc\displaystyle-\alpha(1-\alpha)^{2}p_{ua}p_{ub}q_{bc}+\alpha^{2}(1-\alpha)p_{ua}q_{ub}p_{bc}-\alpha(1-\alpha)^{2}q_{ua}p_{ub}p_{bc}
α2(1α)quaqubpbc+α(1α)2quapubqbcα2(1α)puaqubqbc\displaystyle-\alpha^{2}(1-\alpha)q_{ua}q_{ub}p_{bc}+\alpha(1-\alpha)^{2}q_{ua}p_{ub}q_{bc}-\alpha^{2}(1-\alpha)p_{ua}q_{ub}q_{bc}
=α(1α)((1α)pub+αqub)(puaqua)(pbcqbc)\displaystyle=\alpha(1-\alpha)((1-\alpha)p_{ub}+\alpha q_{ub})(p_{ua}-q_{ua})(p_{bc}-q_{bc})

Therefore, we obtain the following quadratic equation in pubp_{ub} and qubq_{ub} (unlike the α=1/2\alpha=1/2 case it cannot be easily reduced to a linear equation),

α(1α)(pubqub)2((1α)pub+αqub)=(Yua,ub|XuaXub)(Yub,bc|XubXbc)(Zua,ub,bc|+XuaXubXbcXuaYub,bc|XbcYua,ub|):=Cub|\frac{\alpha(1-\alpha)(p_{ub}-q_{ub})^{2}}{((1-\alpha)p_{ub}+\alpha q_{ub})}=\frac{(Y^{|}_{ua,ub}-X_{ua}X_{ub})(Y^{|}_{ub,bc}-X_{ub}X_{bc})}{(Z^{|}_{ua,ub,bc}+X_{ua}X_{ub}X_{bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub})}:=C_{ub}^{|}

Note that Xub=αpub+(1α)qubX_{ub}=\alpha p_{ub}+(1-\alpha)q_{ub}, thus the above can be reduced to

α(1α)(pubXub)2/(1α)2(pub(12α)+αXub)/(1α)=Cub|\displaystyle\frac{\alpha(1-\alpha)(p_{ub}-X_{ub})^{2}/(1-\alpha)^{2}}{(p_{ub}(1-2\alpha)+\alpha X_{ub})/(1-\alpha)}=C_{ub}^{|}
pub22(Xub+(12α)2αCub|)pub=Cub|XubXub2\displaystyle p_{ub}^{2}-2\left(X_{ub}+\tfrac{(1-2\alpha)}{2\alpha}C_{ub}^{|}\right)p_{ub}=C_{ub}^{|}X_{ub}-X^{2}_{ub}
pub=Xub+(12α)2αCub|+sub((12α)2αCub|)2+1ααCub|Xub\displaystyle p_{ub}=X_{ub}+\tfrac{(1-2\alpha)}{2\alpha}C_{ub}^{|}+s_{ub}\sqrt{\left(\tfrac{(1-2\alpha)}{2\alpha}C_{ub}^{|}\right)^{2}+\tfrac{1-\alpha}{\alpha}C_{ub}^{|}X_{ub}}
qub=Xub(12α)2(1α)Cub|sub((12α)2(1α)Cub|)2+α1αCub|Xub\displaystyle q_{ub}=X_{ub}-\tfrac{(1-2\alpha)}{2(1-\alpha)}C_{ub}^{|}-s_{ub}\sqrt{\left(\tfrac{(1-2\alpha)}{2(1-\alpha)}C_{ub}^{|}\right)^{2}+\tfrac{\alpha}{1-\alpha}C_{ub}^{|}X_{ub}}

We substitute in the above two equations θ\theta and sαs_{\alpha} as defined below

α=12(1sαθ),(1α)=12(1+sαθ),(12α)=sαθ.\alpha=\tfrac{1}{2}(1-s_{\alpha}\sqrt{\theta}),\qquad(1-\alpha)=\tfrac{1}{2}(1+s_{\alpha}\sqrt{\theta}),\qquad(1-2\alpha)=s_{\alpha}\sqrt{\theta}.

From the substitution we obtain,

pub=Xub+sαθ(1+sαθ)Cub|(1θ)(1+sαsub1+(1θ)XubθCub|)\displaystyle p_{ub}=X_{ub}+\tfrac{s_{\alpha}\sqrt{\theta}(1+s_{\alpha}\sqrt{\theta})C^{|}_{ub}}{(1-\theta)}\left(1+s_{\alpha}s_{ub}\sqrt{1+\tfrac{(1-\theta)X_{ub}}{\theta C^{|}_{ub}}}\right)
qub=Xubsαθ(1sαθ)Cub|(1θ)(1+sαsub1+(1θ)XubθCub|)\displaystyle q_{ub}=X_{ub}-\tfrac{s_{\alpha}\sqrt{\theta}(1-s_{\alpha}\sqrt{\theta})C^{|}_{ub}}{(1-\theta)}\left(1+s_{\alpha}s_{ub}\sqrt{1+\tfrac{(1-\theta)X_{ub}}{\theta C^{|}_{ub}}}\right)

Next we use pubp_{ub}, and qubq_{ub} to obtain puap_{ua}, and quaq_{ua}. Specifically, we have

α(1α)(pubqub)(puaqua)=(Yua,ub|XuaXub)\displaystyle\alpha(1-\alpha)(p_{ub}-q_{ub})(p_{ua}-q_{ua})=(Y_{ua,ub}^{|}-X_{ua}X_{ub})
(puaqua)=4(Yua,ub|XuaXub)sαθ(1+sαsub1+(1θ)XubθCub|).\displaystyle(p_{ua}-q_{ua})=\frac{4(Y_{ua,ub}^{|}-X_{ua}X_{ub})}{s_{\alpha}\sqrt{\theta}\left(1+s_{\alpha}s_{ub}\sqrt{1+\tfrac{(1-\theta)X_{ub}}{\theta C^{|}_{ub}}}\right)}.

Finally, we use the above relation to arrive at the required result.

pua=Xua+2(1+sαθ)(Yua,ub|XuaXub)sαθ(1+sαsub1+(1θ)XubθCub|)\displaystyle p_{ua}=X_{ua}+\frac{2(1+s_{\alpha}\sqrt{\theta})(Y_{ua,ub}^{|}-X_{ua}X_{ub})}{s_{\alpha}\sqrt{\theta}\left(1+s_{\alpha}s_{ub}\sqrt{1+\tfrac{(1-\theta)X_{ub}}{\theta C^{|}_{ub}}}\right)}
qua=Xua2(1sαθ)(Yua,ub|XuaXub)sαθ(1+sαsub1+(1θ)XubθCub|)\displaystyle q_{ua}=X_{ua}-\frac{2(1-s_{\alpha}\sqrt{\theta})(Y_{ua,ub}^{|}-X_{ua}X_{ub})}{s_{\alpha}\sqrt{\theta}\left(1+s_{\alpha}s_{ub}\sqrt{1+\tfrac{(1-\theta)X_{ub}}{\theta C^{|}_{ub}}}\right)}

Lemma 13 (Sign Ambiguity Line graph on 55 nodes).

Under Conditions 1 and 2, in the setting of infinite samples, for a line structure aubcda-u-b-c-d the sign patterns subs_{ub} and sbcs_{bc} satisfy the relation, subsbc=𝗌𝗀𝗇(Yub,bc|XubXbc)s_{ub}s_{bc}=\mathsf{sgn}(Y^{|}_{ub,bc}-X_{ub}X_{bc}).

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 Xua,Yua,ub,Yua,ab|X_{ua},Y^{*}_{ua,ub},Y^{|}_{ua,ab} and Zua,ub,bc|Z^{|}_{ua,ub,bc} within ϵ1\epsilon_{1}, we can estimate puap_{ua} and quaq_{ua} within precision ϵ=𝒪(ϵ1/min(pmin,Δ)5min(α,1α)4)\epsilon=\mathcal{O}\left(\epsilon_{1}/\min(p_{min},\Delta)^{5}\min(\alpha,1-\alpha)^{4}\right).

Proof.

The proof proceeds in a very similar manner as Claim9. Following the derivations for p^ua\hat{p}_{ua} and q^ua\hat{q}_{ua} in the proof of Claim9, we can see that for the star primitive all the computation carry over with a scaling of 4α(1α)\tfrac{4}{\alpha(1-\alpha)} as we have Yur,usXurXusΔ2α(1α)Y^{*}_{ur,us}-X_{ur}X_{us}\geq\Delta^{2}\alpha(1-\alpha) instead of Δ2/4\Delta^{2}/4.

The line primitive presents with increased difficulty as the estimator is more complex. We first observe that α(1α)Δ2Cub|max(α,(1α))\alpha(1-\alpha)\Delta^{2}\leq C_{ub}^{|}\leq\max(\alpha,(1-\alpha)). We recall that

(Zua,ub,bc|+XuaXubXbcXuaYub,bc|XbcYua,ub|)\displaystyle(Z^{|}_{ua,ub,bc}+X_{ua}X_{ub}X_{bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub})
=α(1α)((1α)pub+αqub)(puaqua)(pbcqbc)\displaystyle=\alpha(1-\alpha)((1-\alpha)p_{ub}+\alpha q_{ub})(p_{ua}-q_{ua})(p_{bc}-q_{bc})
min(α,1α)2pminmin(pmin,Δ)2/2,\displaystyle\geq\min(\alpha,1-\alpha)^{2}p_{min}\min(p_{min},\Delta)^{2}/2,
(Yua,ub|XuaXub)=α(1α)(puaqua)(pubqub)min(α,1α)min(pmin,Δ)2/2.\displaystyle(Y^{|}_{ua,ub}-X_{ua}X_{ub})=\alpha(1-\alpha)(p_{ua}-q_{ua})(p_{ub}-q_{ub})\geq\min(\alpha,1-\alpha)\min(p_{min},\Delta)^{2}/2.

Let us assume the error in (Zua,ub,bc|+XuaXubXbcXuaYub,bc|XbcYua,ub|)(Z^{|}_{ua,ub,bc}+X_{ua}X_{ub}X_{bc}-X_{ua}Y^{|}_{ub,bc}-X_{bc}Y^{|}_{ua,ub}) is bounded as ϵd\epsilon_{d} and the error in (Yua,ub|XuaXub)(Yub,bc|XubXbc)(Y^{|}_{ua,ub}-X_{ua}X_{ub})(Y^{|}_{ub,bc}-X_{ub}X_{bc}) is bounded as ϵn\epsilon_{n}. We have ϵn4ϵ1\epsilon_{n}\leq 4\epsilon_{1} and ϵd3ϵ1\epsilon_{d}\leq 3\epsilon_{1} as all the estimators are assumed to have error bounded by ϵ1\epsilon_{1}.

Therefore, using |x/yx^/y^|x/y(δx/x+δy/y)+𝒪(δxδy)|x/y-\hat{x}/\hat{y}|\leq x/y(\delta_{x}/x+\delta_{y}/y)+\mathcal{O}(\delta_{x}\delta_{y}),

|C^ub|Cub||ϵc\displaystyle|\hat{C}_{ub}^{|}-C_{ub}^{|}|\leq\epsilon_{c} :=𝒪(ϵnmin(α,1α)2min(pmin,Δ)4+ϵdmin(α,1α)2pminmin(pmin,Δ)2)\displaystyle:=\mathcal{O}\left(\tfrac{\epsilon_{n}}{\min(\alpha,1-\alpha)^{2}\min(p_{min},\Delta)^{4}}+\tfrac{\epsilon_{d}}{\min(\alpha,1-\alpha)^{2}p_{min}\min(p_{min},\Delta)^{2}}\right)
=𝒪(ϵ1/min(α,1α)2min(pmin,Δ)4).\displaystyle=\mathcal{O}(\epsilon_{1}/\min(\alpha,1-\alpha)^{2}\min(p_{min},\Delta)^{4}).

Using the above bound in the expression of puap_{ua} we can obtain,

|p^uapua||X^uaXua|+(12α)2α|C^ua|Cua||+\displaystyle|\hat{p}_{ua}-p_{ua}|\leq|\hat{X}_{ua}-X_{ua}|+\tfrac{(1-2\alpha)}{2\alpha}|\hat{C}^{|}_{ua}-C^{|}_{ua}|+\dots
+|((12α)2αC^ua|)2+(1α)αC^ua|X^ua((12α)2αCua|)2+(1α)αCua|Xua|\displaystyle+\big\lvert\sqrt{\left(\tfrac{(1-2\alpha)}{2\alpha}\hat{C}^{|}_{ua}\right)^{2}+\tfrac{(1-\alpha)}{\alpha}\hat{C}^{|}_{ua}\hat{X}_{ua}}-\sqrt{\left(\tfrac{(1-2\alpha)}{2\alpha}C^{|}_{ua}\right)^{2}+\tfrac{(1-\alpha)}{\alpha}C^{|}_{ua}X_{ua}}\big\rvert
|X^uaXua|+(12α)2α|C^ua|Cua||+\displaystyle\leq|\hat{X}_{ua}-X_{ua}|+\tfrac{(1-2\alpha)}{2\alpha}|\hat{C}^{|}_{ua}-C^{|}_{ua}|+\dots
+((12α)2α)2|C^ua|Cua||(C^ua|+Cua|)+(1α)α|C^ua|X^uaCua|Xua|((12α)2αCua|)2+(1α)αCua|Xua\displaystyle+\frac{\left(\tfrac{(1-2\alpha)}{2\alpha}\right)^{2}|\hat{C}^{|}_{ua}-C^{|}_{ua}|(\hat{C}^{|}_{ua}+C^{|}_{ua})+\tfrac{(1-\alpha)}{\alpha}|\hat{C}^{|}_{ua}\hat{X}_{ua}-C^{|}_{ua}X_{ua}|}{\sqrt{\left(\tfrac{(1-2\alpha)}{2\alpha}C^{|}_{ua}\right)^{2}+\tfrac{(1-\alpha)}{\alpha}C^{|}_{ua}X_{ua}}}
ϵ1+(12α)2αϵc+2(1α)min(pmin,Δ)(2((12α)2α)2ϵc+(1α)α(ϵ1+ϵc))+o(ϵ1)+o(ϵc)\displaystyle\leq\epsilon_{1}+\tfrac{(1-2\alpha)}{2\alpha}\epsilon_{c}+\tfrac{2}{(1-\alpha)\min(p_{min},\Delta)}\left(2\left(\tfrac{(1-2\alpha)}{2\alpha}\right)^{2}\epsilon_{c}+\tfrac{(1-\alpha)}{\alpha}(\epsilon_{1}+\epsilon_{c})\right)+o(\epsilon_{1})+o(\epsilon_{c})
𝒪(ϵ1/min(pmin,Δ)α(1α))+𝒪(ϵc/min(pmin,Δ)α2(1α))+o(ϵ1)+o(ϵc)\displaystyle\leq\mathcal{O}(\epsilon_{1}/\min(p_{min},\Delta)\alpha(1-\alpha))+\mathcal{O}(\epsilon_{c}/\min(p_{min},\Delta)\alpha^{2}(1-\alpha))+o(\epsilon_{1})+o(\epsilon_{c})

Therefore, using the estimate of ϵc\epsilon_{c} we obtain,

|p^uapua|𝒪(ϵ1/min(pmin,Δ)5αmin(α,1α)3).|\hat{p}_{ua}-p_{ua}|\leq\mathcal{O}\left(\epsilon_{1}/\min(p_{min},\Delta)^{5}\alpha\min(\alpha,1-\alpha)^{3}\right).

Switching α\alpha and (1α)(1-\alpha) gives us the same bounds for |q^uaqua||\hat{q}_{ua}-q_{ua}|. ∎

In the above derivation we have used ((12α)2αCua|)2+(1α)αCua|Xua(1α)min(pmin,Δ)/2\sqrt{\left(\tfrac{(1-2\alpha)}{2\alpha}C^{|}_{ua}\right)^{2}+\tfrac{(1-\alpha)}{\alpha}C^{|}_{ua}X_{ua}}\geq(1-\alpha)\min(p_{min},\Delta)/2. We now derive the above inequality.

|((12α)2αCua|)2+(1α)αCua|Xua|=|puaXua(12α)2αCua||\displaystyle\lvert\sqrt{\left(\tfrac{(1-2\alpha)}{2\alpha}C^{|}_{ua}\right)^{2}+\tfrac{(1-\alpha)}{\alpha}C^{|}_{ua}X_{ua}}\rvert=|p_{ua}-X_{ua}-\tfrac{(1-2\alpha)}{2\alpha}C^{|}_{ua}|
=|(1α)(puaqua)(12α)(1α)(puaqua)22((1α)pua+αqua)|\displaystyle=\lvert(1-\alpha)(p_{ua}-q_{ua})-\tfrac{(1-2\alpha)(1-\alpha)(p_{ua}-q_{ua})^{2}}{2((1-\alpha)p_{ua}+\alpha q_{ua})}\rvert
{(1α)min(pmin,Δ),(α1/2puaqua)(α<1/2pua<qua)(1α)min(pmin,Δ)|1(12α)2(1α)|,(α<1/2puaqua)(1α)min(pmin,Δ)|1(2α1)2α|,(α1/2pua<qua),\displaystyle\geq\begin{cases}(1-\alpha)\min(p_{min},\Delta),(\alpha\geq 1/2\wedge p_{ua}\geq q_{ua})\vee(\alpha<1/2\wedge p_{ua}<q_{ua})\\ (1-\alpha)\min(p_{min},\Delta)|1-\tfrac{(1-2\alpha)}{2(1-\alpha)}|,(\alpha<1/2\wedge p_{ua}\geq q_{ua})\\ (1-\alpha)\min(p_{min},\Delta)|1-\tfrac{(2\alpha-1)}{2\alpha}|,(\alpha\geq 1/2\wedge p_{ua}<q_{ua}),\end{cases}

Finally, using union bound on all the estimators involved accross all possible edges, we can obtain the error bound in the following Theorem 10.

Theorem 10.

Suppose Condition 1 and 2 are true, there exists an algorithm that runs on epidemic cascades over a mixture of two undirected, weighted graphs G1=(V,E1)G_{1}=(V,E_{1}) and G2=(V,E2)G_{2}=(V,E_{2}), and recovers the edge weights corresponding to each graph up to precision ϵ\epsilon in time O(N2)O(N^{2}) and sample complexity O(NlogNϵ2Δ4)O\left(\frac{N\log N}{\epsilon^{2}\Delta^{4}}\right) for α=1/2\alpha=1/2 and O(NlogNϵ2Δ10min(α,1α)8)O\left(\frac{N\log N}{\epsilon^{2}\Delta^{10}\min(\alpha,1-\alpha)^{8}}\right) for general α(0,1),α1/2\alpha\in(0,1),\alpha\neq 1/2, where N=|V|N=|V|.