Quiz 2

Information Diffusion — Cascade Models, Influence Maximization

672 words
3 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# Information Diffusion — Cascade Models, Influence Maximization ## 🎯 Learning Objectives - Explain the Independent Cascade and Linear Threshold models - Model information spread using SIR/SIS epidemic models - Understand influence maximization as a submodular optimization problem - Apply greedy algorithm for seed...

Information Diffusion — Cascade Models, Influence Maximization

🎯 Learning Objectives

  • Explain the Independent Cascade and Linear Threshold models
  • Model information spread using SIR/SIS epidemic models
  • Understand influence maximization as a submodular optimization problem
  • Apply greedy algorithm for seed selection

1. Cascade Models

1.1 Intuition

Information spreads through social networks like a virus — one person tells their friends, who tell their friends, and so on. Cascade models simulate this process probabilistically.

1.2 Independent Cascade (IC) Model

(Diagram) Algorithm:
  1. Start with set of active (infected) seeds at time 0
  2. At each time step t, every node that became active at t-1 has one chance to activate each inactive neighbor with probability p(u,v)
  3. Process continues until no new activations Properties:
  • Activation attempts are independent across edges
  • Each edge has its own probability
  • Once a node activates, it stays active

1.3 Linear Threshold (LT) Model

Each node has a threshold θ_v (random, typically uniform [0,1]). A node activates when the total influence from active neighbors exceeds its threshold:
active neighbors uwv,uθv\sum_{\text{active neighbors } u} w_{v,u} \geq \theta_v
Where wv,uw_{v,u} are influence weights summing to 1 for each node.

2. Influence Maximization

2.1 Problem

Given a social network and a budget k, find the k most influential seeds that maximize the expected number of activated nodes.

2.2 Greedy Algorithm

python
def greedy_influence_maximization(G, k):
    S = set()
    for i in range(k):
        best_node = None
        best_gain = 0
        for v in V \ S:
            gain = expected_influence(S ∪ {v}) - expected_influence(S)
            if gain > best_gain:
                best_gain = gain
                best_node = v
        S.add(best_node)
    return S
Key property: The influence function is monotone and submodular → greedy gives (1-1/e) ≈ 63% approximation.

3. Epidemic Models

3.1 SIR Model

CompartmentMeaning
SSusceptible (can be infected)
IInfectious (can spread)
RRecovered/Removed (immune)
Dynamics:
  • S → I: rate β (infection rate)
  • I → R: rate γ (recovery rate) Basic reproduction number: R0=βγR_0 = \frac{\beta}{\gamma}
  • R0>1R_0 > 1: epidemic grows
  • R0<1R_0 < 1: epidemic dies out

3.2 SIS Model

CompartmentMeaning
SSusceptible
IInfectious
Dynamics:
  • S → I: rate β
  • I → S: rate γ (no immunity — can be reinfected)

4. 📝 Practice Questions

Q1: In the IC model, what is the expected number of activations if a seed has one neighbor and p=0.5?
Answer: Expected = 1 (seed itself) + 0.5 (neighbor activation) = 1.5. The neighbor activates with probability 0.5. Q2: Why is the influence function in greedy seed selection submodular?
Answer: Submodularity means diminishing returns: adding a node to a larger set gives less marginal gain than adding it to a smaller set. The influence function is submodular because each new seed may activate nodes that are already activated by existing seeds — the overlap reduces marginal gain. Q3: Compare the IC model with the LT model.
Answer: IC is probabilistic (each neighbor has independent chance to activate). LT is threshold-based (cumulative influence must exceed threshold). IC spreads like a branching process; LT captures peer pressure effects where multiple friends collectively influence. Q4: What does R₀ > 1 mean in the SIR model?
Answer: R₀ > 1 means each infected person infects more than one other person on average — the epidemic grows exponentially. R₀ < 1 means each infection causes less than one secondary infection — the epidemic dies out. Q5: What approximation guarantee does the greedy algorithm provide for influence maximization?
Answer: Due to submodularity and monotonicity, the greedy algorithm achieves at least (1-1/e) ≈ 63% of the optimal influence spread. This is the best polynomial-time approximation unless P = NP.

5. 🔗 Cross-References

Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.