Bayesian inference of network structure from information cascades
Caitlin Gray, Lewis Mitchell, Matthew Roughan

TL;DR
This paper introduces a Bayesian probabilistic framework for inferring network structures from contagion data, providing uncertainty estimates to improve understanding and accuracy, especially with limited data.
Contribution
It presents a novel Bayesian method that estimates network structures and their uncertainties from contagion observations, addressing a key challenge in network inference.
Findings
The method accurately estimates network structures from contagion data.
Quantifying uncertainty improves inference accuracy with small datasets.
The approach is demonstrated using the independent cascade model.
Abstract
Contagion processes are strongly linked to the network structures on which they propagate, and learning these structures is essential for understanding and intervention on complex network processes such as epidemics and (mis)information propagation. However, using contagion data to infer network structure is a challenging inverse problem. In particular, it is imperative to have appropriate measures of uncertainty in network structure estimates, however these are largely ignored in most machine-learning approaches. We present a probabilistic framework that uses samples from the distribution of networks that are compatible with the dynamics observed to produce network and uncertainty estimates. We demonstrate the method using the well known independent cascade model to sample from the distribution of networks P(G) conditioned on the observation of a set of infections C. We evaluate the…
| Network Type | Fraction | AUC |
|---|---|---|
| Erdős-Rényi | 0.9 | 0.72 |
| Forest Fire | 0.9 | 0.97 |
| Core-Periphery | 0.9 | 0.76 |
| Hierarchical | 0.9 | 0.97 |
| Network Type | N | Undirected edges | Number of cascades | AUC |
|---|---|---|---|---|
| Department 1 | 309 | 1938 | 219 | 0.89 |
| Department 2 | 169 | 1045 | 143 | 0.93 |
| Department 3 | 89 | 973 | 34 | 0.74 |
| Department 4 | 142 | 833 | 129 | 0.95 |
| Entire Network | 986 | 16064 | 234 | 0.84 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Bayesian inference of network structure from information cascades
Caitlin Gray
School of Mathematical Sciences, University of Adelaide
ARC Centre of Excellence for Mathematical & Statistical Frontiers
,
Lewis Mitchell
School of Mathematical Sciences, University of Adelaide
ARC Centre of Excellence for Mathematical & Statistical Frontiers
and
Matthew Roughan
School of Mathematical Sciences, University of Adelaide
ARC Centre of Excellence for Mathematical & Statistical Frontiers
Abstract.
Contagion processes are strongly linked to the network structures on which they propagate, and learning these structures is essential for understanding and intervention on complex network processes such as epidemics and (mis)information propagation. However, using contagion data to infer network structure is a challenging inverse problem. In particular, it is imperative to have appropriate measures of uncertainty in network structure estimates, however these are largely ignored in most machine-learning approaches. We present a probabilistic framework that uses samples from the distribution of networks that are compatible with the dynamics observed to produce network and uncertainty estimates. We demonstrate the method using the well known independent cascade model to sample from the distribution of networks conditioned on the observation of a set of infections . We evaluate the accuracy of the method by using the marginal probabilities of each edge in the distribution, and show the benefits of quantifying uncertainty to improve estimates and understanding, particularly with small amounts of data.
1. Introduction
Contagion phenomena, whether information flow, cascading power grid failures or disease epidemics, are inherently linked to the network structure on which they propagate. Often, we observe dynamics without knowledge of the underlying network structure; either because it is unobservable or because the dynamics are easier or cheaper to record than the underlying network. For example, it may be difficult to observe social structure as connections, like friendships, may are invisible or ill-defined. However, dynamics on these networks often are observable; for example, people posting the same ‘meme’, buying the same product or sharing the same link. This spatio-temporal information is inherently linked to the underlying network structure and can be used to reconstruct and predict paths of information flow. Reconstruction of the network from these observations can help to understand how network structure interacts with dynamics and to predict or control the information flow.
Here, we address the problem of inferring network structure from observations of information diffusion, accounting for the inherent uncertainties that arise in inference and data observations. To achieve this we utilise Bayesian methods that quantify uncertainty to better understand and utilise network predictions.
There are many sources of uncertainty in social networks. These networks are often dynamic and difficult to observe, and there has been significant effort to improve network estimates from noisy and missing data (Farine-15, ; Koskinen-13, ; Kossinets-06, ; Newman-18, ; Butts-03, ). The use of an indirect observation, such as dynamics on the network, increase the uncertainty in the network estimates. When we can only achieve an estimate of the network through the lens of the cascade processes it is important to consider the uncertainty in the cascade dynamics, *e.g., *missing data, incorrect time recordings, as well as heterogeneity in observability.
Probabilistic techniques are ideal to solve problems and generate insights in this context as they explicitly include such uncertainties. In this paper, we develop a probabilistic approach to the network inference problem of learning the underlying network structure from information cascades.
We begin with the well-known independent cascade model of information propagation (Kempe-03, ) and develop a Bayesian inference method based on Markov Chain Monte Carlo (MCMC) to infer links between individuals. We seek a distribution of graphs that can facilitate the observed cascades to not only find good estimates of the underlying graph, but also use the knowledge of the underlying distribution to facilitate informed decision making and promote further understanding of the uncertainties in these processes.
The method samples from : the distribution of networks conditioned on the observation of a set of infections . Point estimates and associated uncertainty about the existence of edges can then be obtained. By quantifying the uncertainty, estimates can be obtained with small amounts of data, and known information about edges can be easily incorporated.
We demonstrate the method using the independent cascade model; however, it can easily be extended to any cascade model where the likelihood of a cascade can be evaluated for a given network. We show that Bayesian techniques can produce estimates when simulating only limited data where other methods, such as NETINF (Gomez-12, ) can not produce a result. The method outperforms the baseline for synthetic and real world networks.
The main contributions of this paper are the development of a probabilistic technique to sample from the distribution of underlying graphs in order to recover network structure and to provide uncertainty quantification that can be used to inform decisions and understand the interaction between spreading process and network structures.
2. Background and related work
The network inference problem is an active area of research that aims to infer the links or transmission probabilities using both model and model-free inference. Only recently have the uncertainties in these types of estimates begun to be quantified.
There is a significant body of work on inferring information about the underlying network structure from observations of information diffusion. These methods are largely based in a maximum likelihood estimation (MLE) or expectation maximisation (EM) frameworks with a variety of optimisation strategies employed to find a good estimate of the network structure.
A seminal work on network inference is the well known NETINF algorithm that uses submodular optimisation to infer the underlying graph structure. Numerous extensions incorporate prior information about the underlying graph structure such as sparsity, motif frequency, community structure, etc (He-17, ; Ramezani-17, ; MADNI-18, ). Many of these are ad-hoc extensions to include prior information. Additionally, algorithms have been developed to infer the strength of connections in a network (NETRATE, ; Braunstein-19, ), understanding the heterogeneous influence of edges on different topics (He-17, ; KernelCascade, ; Wang-14, ) and derive bounds on the reliability of the methods (Netrapalli-12, ).
We require a general probabilistic framework for inference that incorporates uncertainty. Bayesian methods can provide this framework to infer distributions and quantify uncertainty, as well as include prior information about the network structure and cascade process.
Bayesian inference of networks from observation of network dynamics emerged in the the stochastic epidemic literature to recover parameters of underlying network models, *e.g., *the underlying parameter of a Bernoullli random graph, in addition to the epidemiological model parameters (Britton-02, ; Dutta-18, ). More recently, the benefits of Bayesian techniques to quantify uncertainty in networks, often due to collection methods, have been identified (Newman-18, ; Peixoto-18a, ). This extends naturally to the use of these methods in the estimation of the network structure and its properties from the observation of dynamics on the network.
Embar et al. propose a Bayesian framework for estimating properties of the network, *e.g., *edge strengths as well as cascade properties, *e.g., *propagation trees (Embar-14, ). Other Bayesian approaches of network inference aim to infer the underlying network when the exact infection time is unknown in both standard and online algorithms (Linderman-14, ; Shaghaghian-16, ; Shaghaghian-17, ). Additionally, some approaches based on MLE use Bayesian techniques at intermediate steps to improve results (vine-16, ). Only recently have Bayesian techniques have been introduced to quantify the uncertainty of network structure inference from observation of dynamics (Crawford-15, ; DYFERENCE, ; Peixoto-19, ; Vajdi-18, ). Ghalebi et al. highlight the need for general probabilistic frameworks for inference problems and propose the algorithm DYFERENCE that samples edge and node probabilities in an online algorithm for dynamic network inference (DYFERENCE, ). Peixoto (Peixoto-19, ) recently proposed the most closely related work in an algorithm designed to jointly reconstruct network structure and community labels assuming a stochastic block model structure and highlights the benefits of recovering the full posterior distribution of networks.
It is worth noting that Bayesian methods are extensively used in sampling exponential random graph models (ERGMs) and fitting coefficients of motifs to observed networks (Friel-11, ; Butts-18, ; Lusher-12, ). Fitting ERGMs can be extended to the network inference problem by observing information cascades instead of observing an existing network to infer ERGM coefficients.
3. Graph MCMC for the network inference problem
The network inference problem aims to learn the structure of an underlying network from the observation of transmissions over the network. A set of these transmissions is a cascade and could be an information cascade, where individuals are transmitting information, or an infection cascade where individuals are contracting disease from their contact networks. On a given underlying graph with node set and edge set , a cascade is a series of time ordered events where a node becomes “activated”, by one of its neighbours , where . We observe a sequence, of activated nodes and their time of activation . However, we do not observe the parent of the transmission; that is, we can not observe who infected node , only the time they were infected.
This leads to the following problem. Given a set of cascades , where is the infection times of the nodes in cascade , what is the underlying graph on which the process was observed?
Here we are interested in the distribution over all graphs that could have produced the observed cascades . That is, we are interested in recovering . Directly recovering this distribution is infeasible for graphs with more than a handful of nodes as the dimension of the distribution increases exponentially. Instead, we draw samples from this distribution using Bayesian methods and use these to recover the most probable network structures and a measure of their probability.
3.1. Transmission Model
We use the independent cascade (IC) model of information diffusion on the edges of , analogous to the SI model in epidemiology. The IC model (Kempe-03, ) assumes that every node independently infects its neighbour with some probability of success. Originally proposed as a discrete time model, we use the continuous time extension (Gomez-12, ). Each node attempts infection of inactive neighbour after some time , so .
We define to be the probability density of the time node will be activated by node given the activation time and the cascade sequence. We assume here that this depends only on the times of activations of the two nodes. However, this can be altered to include other characteristics like the degree of nodes, the importance of friendship , properties of the node or the content of the message being spread. There is evidence of both exponential and power-law distributed waiting times for contagion spread (Malmgren-08, ; Barabasi-05, ; Mathews-18, ) and either can be incorporated in the proposed method. We demonstrate the method using the exponential distribution for the time between activations:
[TABLE]
for some parameter . For simplicity we use for synthetic datasets.
The model assumes that only one node actually activates node despite the possibility of multiple active neighbours. Therefore, the resulting cascades are a tree. We choose the continuous time independent cascade model to demonstrate the MCMC method as it is simple, well studied and captures much of the dynamics of information flow. However, the method described below can be extended to other diffusion models, such as epidemiological models, discrete time IC models or Hawkes process models (Hawkes-71, ), where the likelihood can be evaluated.
3.2. Likelihood
We require the likelihood of the set of cascades given some underlying graph . We use a similar derivation as in (Gomez-12, ). First consider that cascades propagate via a tree so each node will have a single parent. Each possible tree is a disjoint outcome for the cascade on the graph, so,
[TABLE]
where is the set of all possible trees and is the probability cascade travels through tree on graph .
Consider the likelihood that the cascade in graph propagated in the tree . At each edge the cascade propagated with probability and stopped with probability , giving:
[TABLE]
where is the number of edges over which the cascade propagated, , and is the number of edges in the graph that the cascade did not pass through. Mathematically, , where is the out-degree of node .
Now consider the cascade over all possible trees on the graph . We substitute (3) into (2), to give
[TABLE]
where is the set of all possible connected trees on the subgraph of induced by the nodes in . Note that in general we sum over all possible trees, but if the tree is inconsistent with the observed data then is zero, and hence we can sum over the trees in the set .
Each tree in contains the nodes activated in , so and are independent of , and so
[TABLE]
For a set of independent cascades occurring on we have
[TABLE]
Equation (4) would naively require the sum over all possible spanning trees, which can be super-exponential in the size of . However, as suggested in (Gomez-12, ), Kirchoff’s matrix tree theorem, extended to directed trees by Tutte (Tutte-48, ) allows this calculation in polynomial time in by exploiting the properties of the Laplacian matrix of the network. We provide the theorem below.
Definition 0 (Laplacian of directed multigraphs).
If is a directed graph, we define the Laplacian as an matrix with entries:
[TABLE]
Theorem 2 (Tutte (Tutte-48, )).
If graph has Laplacian as defined in Definition (1), then the sum over the weighted trees of graph with root at node is
[TABLE]
where is each directed spanning tree in and is created by removing the -th (root node) row and column from .
In our formulation we set to . As the trees are directed acyclic graphs (DAGs), the determinant is upper triangular and so the adjacency matrix is the product of the diagonals (Anton-10, ). This simplifies calculation time and storage from to as we only work with the diagonal elements.
3.3. Bayesian Inference
Given a cascade set of cascades - a set of lists of activation times of labelled nodes in we infer a distribution of graphs conditioned on the occurrence of these cascades. Mathematically, given the cascade set we sample from the distribution .
From (4), we have the cascade probability from a graph . From Bayes’ rule we can get the distribution of interest:
[TABLE]
We use the basic Metropolis-Hastings MCMC algorithm to sample from the posterior. At each step we propose a new graph from the old graph using the proposal distribution . The algorithm accepts the move step with the ratio between the cascade on the new graph to the old graph with probability:
[TABLE]
For a single cascade , we use Theorem 2 and (4) to get
[TABLE]
Suppose the proposal changes one link from to . The number of nodes in the spanning trees remains constant, so . Assuming , if node is in the cascade increases when adding a link, and decreases when removing.
[TABLE]
This term penalises the addition of edges in the cascade. This not only promotes the desired sparse networks but also reduces the probability of edges that didn’t propagate the cascade as edges are less likely.
A common proposal used when implementing MCMC on networks is to change a random node pair (i.e. creating a new edge or removing old edges) (Friel-11, ; Gray-19, ). However, in sparse graphs non-edges are proposed much more often than edges, and the sampler wastes time proposing new edges that are likely to be rejected. In order to improve mixing, the “tie no-tie” (TNT) sampler is often used (Friel-11, ; Hunter-08, ). The TNT sampler selects with equal probability the set of edges or set of non-edges, and then swaps a random node-pair in that set. This improves convergence and aids mixing by proposing edge removals at a higher frequency, particularly when we begin our inference from a graph denser than our desired ensemble. Additionally, trying to remove edges often will explore different transmission pathways that rely on different links in the network. Other proposals, for example edge flips and switches (Greenhill-18, ) can also be used.
For the subsequent analysis we will assume is known and show that the network recovery is not sensitive to this choice. Alternatively we could include in the inference by assuming a prior and determining the posterior estimate through a Gibbs’ sampling step. Unfortunately, the sparsity of the inferred network has dependence on both and , and untangling these two parameters independently is difficult under this model. These parameters could be estimated separately using other data, perhaps by sub-sampling a small section of the network or observing similar cascades in a known area of the network. Nonetheless, we show that, for inference, results are not greatly affected by the chosen parameters.
We place an Erdős-Rényi prior with parameter with independent edges on , so is easily calculated. This prior serves as a regularisation term to promote sparse solutions.
Overall the algorithm has two parts: generating the initial graph with associated probability and the iterative MCMC. We generate the initial graph by connecting each time ordered pair in . The complexity of the initial graph generation is where is the number of edges in the initial graph. The dominant part of the algorithm is the MCMC updates of graphs at each time step. The method is , where is the number of iterations required for ‘convergence’. Analysis of the graph density, average degree and clustering of graph samples along the MCMC chains with the TNT sampler suggest convergence scales like .
4. Experimental evaluation
We test our algorithm on both synthetic to evaluate the effect the amount of data and the underlying network type has on performance, and extend this to inference of real networks. Next we describe the experimental setup.
It is known through work on disease and information transmissions that the structure of the underlying graph affects the cascades observed, even when using the same cascade model (Gray-18, ; Watts-02, ). Therefore, we use a variety of undirected random graph models to represent the underlying graph . We begin with the canonical Erdős-Rényi (ER) networks and then extend to more realistic networks with power law distributions using the Forest Fire model (ForestFire, ), core-periphery and hierarchical structures (Clauset-08, ) using Kronecker networks (Kronecker, ).
Cascades are simulated using the IC model with exponential waiting time (). Intuitively, as the amount of data increases, *i.e., *we observe more transmissions or cascades, the inference problem becomes easier. We quantify the amount of data observed as the fraction, , of the edges that are activated in the cascades, *i.e., *if all edges are activated at least once . This metric is inherently linked to the number of cascades observed, but ensures we do over count cascades that do not provide new information. In most simulations we choose , to align with other works, including NETINF, and to ensure cascades are not too small, resulting in many cascades that have zero or one transmission, and not unrealistically large. For the purpose of this paper we assume that we have good estimates of and , and show that even a poor estimate does not significantly impact results. We select random seed nodes uniformly over the graph to ensure we have good coverage of the network even when the amount of cascade data is small.
The proposed method provides samples from the distribution of , and so a key advantage of this method is the ability use these to quantify uncertainty and answer questions about the underlying distribution. Other methods provide a point estimate, , of the underlying graph. Despite the limitations of a simple point estimate such as this, obtaining an estimate from our posterior is useful, at least for comparison. Due to the high dimensional posterior, we cannot guarantee that the maximum a posteriori probability (MAP) estimate of the graph in our posterior is similar to the true maximum. Of course, if we were specifically interested in this point estimate, then other methods using cleverly designed optimisation algorithms would be appropriate. Nonetheless, we would like to be able to get some estimate of the graph and visualise the results in order to gain some understanding about the underlying graphs, and compare to other methods. Therefore, to evaluate the solution quality we recover the marginal probabilities of the network edges, . This can both provide important uncertainty quantification, and be used as a measure to determine how well this approximates the true network.
In general edges with high marginal probability are more likely to have been observed in the true graph . We present these in a weighted adjacency matrix (Figure 1) and the most probable edges are used to create an estimate of the graph. 111If there is prior knowledge of the underlying network, such as the degree distribution, we could find the most probable edge set satisfying these constraints.
The probabilistic nature of the inference provides the opportunity to use skill scores and probabilistic scoring techniques to compare the recovered distribution to the true network. This is qualitatively different to most other approaches taken previously for this problem, which treat every problem as a ‘hard’ classification of edge existence. Hence, in order to compare with other techniques we use the Receiver Operating Characteristic (ROC) curves that report the true positive rate and false positive rate of the method as the probability threshold varies. For example, Figure 1 shows the ROC curve for the posterior marginal probabilities for an undirected 20 node network. We use two summaries of the ROC curves; the area under the curve (AUC) and the ‘false positive alarm’ to demonstrate the recovery of the true edges in larger scenarios.
The AUC provides an aggregate measure of classification performance across all thresholds, and is measured as the integral of the empirical ROC curve between [math] and . The false positive alarm measures the proportion of true edges correctly recovered before there are too many incorrect edges. In many situations false positives are costly, either financially, *e.g., *cost of investigating a false claim, or ethically, - *e.g., *incorrect convictions. Understanding the uncertainty in the estimate of the network, or probability of the edge, allows better decision making and application specific requirements on certainty. In this case we determine the true positive rate when 1% of the edges recovered are false positives.
4.1. Synthetic Data Results
We begin by simulating cascades on synthetic networks generated from a variety of network models to investigate the impact of the amount of data and network type on performance.
4.1.1. Dependence on number of cascades
It is intuitive that inferring the network becomes an easier problem when we have observed more data; however, in many scenarios data is limited. Here we investigate the performance of the MCMC inference methods with varying amounts of data.
We begin with Erdős-Rényi graphs with and with average degree . The ROC curves from the edge probabilities extracted from the posterior samples are displayed in Figure 2. NETINF requires the number of edges in the resulting graph as an input. To create a comparative ROC curve, we report the true and false positive rates (TPR and FPR) for increasing and determine ROC summaries from this.
Figure 2 shows the ROC summaries for the MCMC algorithm and NETINF for varying amounts of observed data. We observe that the MCMC algorithm performs well with relatively small amounts of data. This is beneficial in many cases where data may be scarce. When data is limited, the greedy algorithm used in NETINF does not return the requested number of edges and so performs poorly. Understandably, most algorithms perform poorly under the false positive alarm for small amounts of data; however, when all edges are observed in at least one cascade () the MCMC produces a good false alarm rate of over 40%.
In practice, the underlying network is not known, and metrics like the false alarm rate cannot be observed. Therefore, it is difficult to choose how many edges are reliable in the recovered network. Using the MCMC method, unlike most other methods, we have quantified the uncertainty of each edge to inform such decisions when the underlying network is unknown.
4.1.2. Types of networks
We test the performance of our inference scheme on different types of networks that display a variety of properties observed in real world networks. In this work we use an uninformative Erdős-Rényi prior that assumes links have an independent probability to control the sparsity of the solution. We show that despite this the algorithm can infer networks of varying types as the data informs the structure of the underlying graph. We assume some prior knowledge of the edge density to choose , but we show that the exact value has little effect on the network recovery. In some cases we may have some prior knowledge of the underlying structure, perhaps the degree distribution, density or frequency of some motif, which can be incorporated in an informative prior to improve inference.
There are considerable differences in the recoverability of networks of different types. This is largely due to the nature of the cascades observed. It is well known that the underlying structure impacts the nature of the cascades simulated using various cascade models (Kempe-03, ; Gray-18, ). Even for constant the underlying structure of the network has a dramatic impact on the size distribution of cascades we observe. We simulate cascades until we observe a constant fraction of edges activated in each case. The average size and number of cascades required to achieve this changes between networks. For Erdős-Rényi and core-periphery networks it is more likely that we observe fewer larger cascades covering many edges; compared to the Forest Fire and hierarchical networks in which large cascades are unlikely and so we observe many small cascades. Smaller cascades provide more precise information about edges as there are less possible paths the cascade could take, and so we see improved inference on networks that facilitate a smaller cascades sizes.
4.2. Sensitivity Analysis
There are two parameters used in the inference, the likelihood parameter and the prior probability . In the above analysis these parameters are assumed known, but in real implementations these will be estimates, and respectively. Therefore, it is useful to understand how sensitive our inference is on the estimates of these parameters.
Recall that penalises the inclusion of links that cascades did not propagate through, while sets the prior probability of each edge and is used to promote sparse networks. These two parameters are inherently linked to the number of edges in graphs of the posterior distribution. However, in practice, these parameters do not significantly impact inference of the relative edge frequencies, and so do not impact the scale invariant AUC significantly. Figure 3 shows the AUC as we vary the input and independently. Other ROC summaries demonstrate a similar trend. There is a higher sensitivity to as the denser graphs recovered at high values allow multiple transmission pathways, many of which are not observed in the true underlying network. In general, the parameters alter density of the networks in the underlying distribution, but they do not significantly impact the estimated marginal probabilities of the edges.
4.3. Experiments on real networks
Next, we evaluate the proposed algorithm on a real world network of email communications (SNAP, ) at a European Research Institute. Email networks commonly observe cascades, for example spam emails, joke emails or event invitations. We use the real underlying networks and simulate cascades, with , until 90% of links are activated at least once, to be consistent with the previous experiment. This is significantly less information than used in some other works (MADNI-18, ). We see that recovery in terms of AUC value can vary dramatically over the four departments. This is largely due to the different structures in each department that impact the properties of the cascades. Department 3 has one giant component with a high density (), while the other departments are clustered with lower density (). Recovering denser networks is a harder inference problem as there are many more possible transmission pathways. These results are significantly better than the NETINF results of for all departments using the same data.
5. Discussion
Beyond improved performance, particularly when data is limited, there are many benefits and possible extensions to a Bayesian approach to this problem. We will discuss some of these below.
What effect does the prior knowledge give us?
A major benefit of Bayesian inference is the ability to incorporate prior knowledge of all or part of the underlying distribution. If some of the edges or edge dependencies in the underlying graph are known, perhaps from prior experiments or partial observations, this can be incorporated to provide a better estimate of the other edges. This allows the above method to be used in missing link inference, when much of the network is known. Alternatively, knowing something about the degrees of each node can be used to sample graphs with the given degree sequences or expected degree distributions.
Noise & missingness
There is the potential for inaccuracies in the measurement of the cascade data. In the above analysis we assume that there is no missing data; that is, all activations are observed and recorded correctly.
There are three main sources of noise:
- •
Measurement errors: *e.g., *missing or noisy meauresments - nodes that are activated are not recorded or recorded incorrectly.
- •
Unobservable components: *e.g., *outside influence: nodes are activated by information from an external source or node not in our network.
- •
Model errors: *e.g., *incubation time does not follow the assumed exponential distribution.
The Bayesian framework used here provides a natural way to deal with uncertainty and we can incorporate known missingness in the model. For instance, it is reasonable to assume noise in time measures, e.g., with . We can infer or make assumptions regarding the parameter , but we must take care if the errors switched the order of activation.
To incorporate unobservable nodes, many other works include a ‘source’ node in the network that is connected to all nodes with some small probability that provides external influence. This parameter could be constant over the network or depend on the node. Higher values increase the likelihood of external influence so reduce false negatives but increase false positives. With some prior knowledge we can also estimate .
We have modelled the probability a node is activated from its neighbour as a simple exponential decay. However, this can be extended to include other distributions as well as characteristics of the nodes and cascades. For example, node degree as high degree nodes are potentially less likely to be influenced by a low degree node or some node similarity measure (are they ‘politically’ or ‘socially’ similar or produce similar textual content). Inferring some of these characteristics of nodes, such as their clustering, from information diffusion has recently been addressed in (Peixoto-19, ) and remains an area of future work. The dependence of social influence and information flow on the content of the information could also be investigated and incorporated. There is also evidence for other distributions of waiting times, such as power-law with or without an exponential cutoff (Gomez-12, ; Mathews-18, ). These can easily be incorporated above.
Inferring parameters that are dependent on the link itself
There have been a number of works (Embar-14, ; NETRATE, ; Peixoto-19, ) inferring the link strength between individuals as a measure of social influence or social trust using EM algorithms based on communication patterns. More recently, Bayesian methods have been applied in this space. Embar et al. (Embar-14, ) use a Bayesian framework to analytically and empirically infer link strengths in diffusion processes. The method here could be straightforwardly extended to include an inference of link strengths ; however it is likely that much more data is required to infer strengths and strength distributions rather than simple adjacencies.
False positives and negatives
The method reports marginal edge probabilities based on the cascades observed. Highly probable edges that do not exist in , or conversely edges of low probability that do, can still be informative. Non-edges with high probabilities are indicators that these edges provide alternate pathways through the network or may have been incorrectly measured in the ground truth. Edges of low probability may be due to inactivity of the nodes or the presence of a highly probable edge that promotes the use of an alternate pathway. The presence or absence of edges in the posterior distribution tell us about the social influence pathways present in the network. Even the incorrect classifications the algorithm makes can be informative when coupled with uncertainty quantification.
Time varying networks and data
This algorithm assumes the underlying graph is static and all cascades have been observed. It is widely understood that networks are time varying in many cases and often cascades are observed in an online fashion. Online Bayesian inference methods like sequential Monte Carlo present an extension of this algorithm that can handle streaming data. This stream could come in two forms: observing a cascade as it progresses over a network or observing a stream of full cascades when each concludes, or even both. Additionally, online methods are capable of inferring dynamic network structures. As information is collected from these changing networks online algorithms will update posterior estimates of the changing network.
Future work
MCMC is known for slow convergence in high dimensional posteriors and can be memory intensive. We have shown that despite this accurate and useful results can be obtained. Other Bayesian inference methods are designed to combat these shortcomings. Sequential Monte Carlo, combined with importance sampling would not only allow online inference as discussed but also provide scope for more advanced proposals to improve acceptance rates. Additionally, using an augmented model to allow deviations from the distribution of interest will improve mixing time and can be used in conjunction with importance sampling to return to the correct distribution. Other cascade models allow for the likelihood to be parallelised over the nodes, rather than considering the graph as a whole. The approach can be easily extended to these models and MCMC chains run in parallel on each node will improve complexity. These extensions provide exciting areas of future research.
6. Conclusion
We have presented an algorithm to infer the posterior distribution of networks that facilitate observed cascades. Despite the high dimensional posterior basic MCMC methods can extract useful information and infer network structure based on samples from the distribution. We also show that uncertainty quantification in networks, specifically when inferring networks from observed dynamics, has many benefits in not only the potential to improve informed decision making but also the ability to understand the complex interaction of network structures and the dynamics we observe.
7. Acknowledgements
The authors acknowledge the Data to Decisions CRC (D2D CRC), the Cooperative Research Centres Programme and the ARC Center of Excellence for Mathematical and Statistical Frontiers (ACEMS). This research is supported by an Australian Government Research Training Program (RTP) Scholarship.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) Anton, H., and Rorres, C. Elementary linear algebra: applications version . John Wiley & Sons, 2010.
- 2(2) Barabasi, A.-L. The origin of bursts and heavy tails in human dynamics. Nature 435 , 7039 (2005), 207.
- 3(3) Braunstein, A., Ingrosso, A., and Muntoni, A. P. Network reconstruction from infection cascades. Journal of the Royal Society Interface 16 , 151 (2019), 20180844.
- 4(4) Britton, T., and O’Neil, P. Bayesian inference for stochastic epidemics in populations with random social structure. Scandinavian Journal of Statistics 29 (12 2002), 375 – 390.
- 5(5) Butts, C. T. Network inference, error, and informant (in)accuracy: a Bayesian approach. social networks 25 , 2 (2003), 103–140.
- 6(6) Butts, C. T. A perfect sampling method for exponential family random graph models. The Journal of Mathematical Sociology 42 , 1 (2018), 17–36.
- 7(7) Caimo, A., and Friel, N. Bayesian inference for exponential random graph models. Social Networks 33 , 1 (2011), 41 – 55.
- 8(8) Chen, L., Crawford, F. W., and Karbasi, A. Submodular variational inference for network reconstruction. ar Xiv preprint ar Xiv:1603.08616 (2016).
