Probabilistic Threshold and Cascade Models of Network Influence #
This module formalizes the general threshold and probabilistic cascade models of social contagion on finite directed graphs from [Kle07], Section 24.3 (pp. 618–622), due to [KKT03] and [KKT05]:
- General Threshold Model (
GeneralThresholdModel G, pp. 619–620): each vertexvcarries a monotone[0, 1]-valued threshold functionthresholdFn v : Finset V → ℝ(g_v(∅) = 0) depending only on its active in-neighborsinNeighbors G v, draws an independent uniform thresholdθ v ∈ [0, 1], and activates onceθ v ≤ g_v(A). - Linear Threshold Model (
LinearThresholdModel G, p. 619): specialization with nonnegative incoming edge weightsweight u vsumming to at most1at each vertex (toGeneralThresholdModel). - Order-Independent Cascade Model (
CascadeModel G, pp. 620–621): active vertices attempt to activate inactive out-neighbors sequentially with incremental success probabilityprob v u X, whose sequential survival probability is invariant under reordering of attempts, together with the diminishing-returns predicate (HasDiminishingReturns) and the Independent Cascade Model (IndependentCascadeModel G, p. 621). - Equivalence of General Threshold and Cascade Models ([KKT05];
[Kle07], Section 24.3, pp. 620–621): explicit forward and backward translations
GeneralThresholdModel.toCascadeModelandCascadeModel.toGeneralThresholdModelproduce identical distributions over final active sets (CascadeModel.activeSetProb_eq_toGeneralThresholdModel,GeneralThresholdModel.activeSetProb_toCascadeModel) and identical expected influence under every valid edge-attempt schedule. - Time-layered DAG reduction ([KKT03]; [Kle07], Section 24.3,
pp. 621–622):
Tsteps of a synchronous nonprogressive threshold process onGcoincide slice by slice with the progressive threshold process on the layered digraphtimeLayeredDigraph G ToverV × Fin (T + 1)(mem_thresholdFinal_toTimeLayered_iff).
Main definitions #
Cslib.GameTheory.Network.inNeighbors: finite set of incoming neighbors{u | G.Adj u v}.Cslib.GameTheory.Network.GeneralThresholdModel: monotone local threshold model onDigraph V, withthresholdStep,thresholdFinal,thresholdMeasure,activeSetProb, andinfluence.Cslib.GameTheory.Network.LinearThresholdModel: weighted linear threshold model and embeddingLinearThresholdModel.toGeneralThresholdModel.Cslib.GameTheory.Network.CascadeModel: order-independent incremental cascade model, survival productsurvivalProb,HasDiminishingReturns,ValidNextEdge,activeSetProb, andinfluence.Cslib.GameTheory.Network.IndependentCascadeModel: edge-independent cascade model and embeddingIndependentCascadeModel.toCascadeModel.Cslib.GameTheory.Network.GeneralThresholdModel.toCascadeModel,Cslib.GameTheory.Network.CascadeModel.toGeneralThresholdModel: bidirectional model translations.Cslib.GameTheory.Network.timeLayeredDigraph,Cslib.GameTheory.Network.GeneralThresholdModel.toTimeLayered,Cslib.GameTheory.Network.GeneralThresholdModel.nonprogActive:T-step time-layered DAG reduction.
Main results #
Cslib.GameTheory.Network.GeneralThresholdModel.thresholdFinal_subset_of_lt:thresholdFinalis the least post-fixed point containing the initial seed set.Cslib.GameTheory.Network.GeneralThresholdModel.toGeneralThresholdModel_toCascadeModel: translating a general threshold model to a cascade model and back recovers the original model.Cslib.GameTheory.Network.CascadeModel.activeSetProb_eq_toGeneralThresholdModel,Cslib.GameTheory.Network.GeneralThresholdModel.activeSetProb_toCascadeModel: operational cascade dynamics under any valid schedule and uniform random thresholds induce the exact same final active-set distribution and expected influence.Cslib.GameTheory.Network.GeneralThresholdModel.mem_thresholdFinal_toTimeLayered_iff: exact slice correspondence betweenT-step nonprogressive dynamics onGand progressive dynamics ontimeLayeredDigraph G T.
References #
Directed in-neighborhoods #
Incoming neighbors {u | G.Adj u v} of vertex v in G : Digraph V, matching the neighbor
convention of [Kle07], Section 24.3, p. 619, Footnote 1.
General and Linear Threshold Models #
General Threshold Model on a finite directed graph G : Digraph V
([Kle07], Section 24.3, pp. 619–620): each vertex v has a monotone [0, 1]-valued
threshold function thresholdFn v (g_v(∅) = 0) determined by its active incoming neighbors
inNeighbors G v.
Local threshold function
g_v(X)for cumulative influence of active setXonv.Empty active set exerts zero influence (
g_v(∅) = 0, [Kle07], Section 24.4, p. 623).Local threshold values are at most
1.- monotone (v : V) : Monotone (self.thresholdFn v)
Adding active vertices never decreases
g_v(X). - inNeighbors_congr (v : V) (X : Finset V) : self.thresholdFn v (X ∩ inNeighbors G v) = self.thresholdFn v X
g_v(X)depends only on active incoming neighborsX ∩ inNeighbors G v.
Linear Threshold Model on G : Digraph V ([Kle07], Section 24.3, p. 619): each
directed edge (u, v) carries weight weight u v ≥ 0 with incoming sum at most 1 at every
vertex v.
Embed a LinearThresholdModel as a GeneralThresholdModel via additive neighbor sums
g_v(X) = ∑ u ∈ X ∩ N(v), weight u v ([Kle07], Section 24.3, pp. 619–620).
Uniform [0, 1] product measure #
Uniform probability measure on [0, 1] ⊆ ℝ.
Instances For
Product uniform probability measure on [0, 1]^V governing node thresholds
([Kle07], Section 24.3, pp. 619–620).
Instances For
Under thresholdMeasure V, almost every threshold draw satisfies θ v ∈ (0, 1) at every
vertex v : V.
Progressive Threshold Dynamics and Outcome Distribution #
One synchronous progressive activation step under threshold realization θ : V → ℝ
([Kle07], Section 24.3, p. 620): active vertices stay active, and every vertex v with
θ v ≤ g_v(A) becomes active.
Final active set after |V| progressive steps from seed set S under thresholds θ
([Kle07], Section 24.4, p. 623).
Every vertex remaining inactive at thresholdFinal θ S has threshold strictly above
g_v(thresholdFinal θ S).
Least post-fixed point property of thresholdFinal: if S ⊆ B and every vertex outside B
has threshold strictly above g_v(B), then thresholdFinal θ S ⊆ B.
Piecemeal growth identity ([MR07b]): running from S first and then adding T
under the same thresholds θ produces the exact same final set as starting from S ∪ T.
Factorization of the event M.thresholdFinal θ S = K into coordinates inside K and
independent survival inequalities g_v(K) < θ v on Kᶜ.
Probability (thresholdMeasure V).real {θ | M.thresholdFinal θ S = A} that the progressive
threshold process starting from S terminates at exact active set A.
Expected number of active nodes f(S) = E_θ[|thresholdFinal θ S|] at the end of the process
([Kle07], Section 24.4, p. 623).
If every inactive vertex outside S has zero threshold value g_v(S) = 0, no additional
vertices activate almost surely and M.influence S = S.card.
If every inactive vertex outside S already has saturated threshold g_v(S) = 1, the entire
vertex set activates in one step almost surely and M.influence S = Fintype.card V.
Order-Independent and Independent Cascade Models #
Sequential survival probability ∏_{i=1}^k (1 - p_v(u_i, X_{i-1})) when neighbors in us
attempt to activate v in list order after failed set X ([Kle07], Section 24.3,
p. 621).
Order-Independent Cascade Model on G : Digraph V ([KKT05];
[Kle07], Section 24.3, pp. 620–621): active in-neighbors u attempt to activate inactive
v with incremental success probability prob v u X, where sequential survival is invariant under
permuting attempt order (swap_survival).
Incremental probability
p_v(u, X)thatuactivatesvgiven failed setX.Incremental probabilities are nonnegative.
Incremental probabilities are at most
1.Non-neighbors exert zero activation probability.
Failed-history dependence looks only at incoming neighbors
X ∩ inNeighbors G v.- swap_survival (v u₁ u₂ : V) (X : Finset V) : u₁ ≠ u₂ → u₁ ∉ X → u₂ ∉ X → (1 - self.prob v u₁ X) * (1 - self.prob v u₂ (insert u₁ X)) = (1 - self.prob v u₂ X) * (1 - self.prob v u₁ (insert u₂ X))
Order-independence of two-step survival probabilities for distinct untried vertices.
Independent Cascade Model on G : Digraph V ([KKT03];
[Kle07], Section 24.3, p. 621): activation attempts across (u, v) succeed independently
with parameter edgeProb u v ∈ [0, 1].
- edgeProb : V → V → ℝ
Edge activation probability
p_{uv}. Edge probabilities are nonnegative.
Edge probabilities are at most
1.Edge probabilities vanish outside
G.
Embed an IndependentCascadeModel into CascadeModel via history-independent probabilities
p_v(u, X) = edgeProb u v ([Kle07], Section 24.3, p. 621).
Diminishing-returns condition on incremental cascade probabilities
([Kle07], Section 24.3, p. 621): X ⊆ Y → p_v(u, Y) ≤ p_v(u, X) for untried u ∉ Y.
seqSurvival C.prob v us X is invariant under permuting any duplicate-free list us disjoint
from X, confirming multi-step order-independence ([Kle07], Section 24.3, pp. 620–621).
Order-independent survival probability ∏_{i=1}^k (1 - p_v(u_i, X_{i-1})) that vertex v
is not activated when all vertices in X attempt to activate it ([Kle07], Section 24.3,
p. 621).
Translate an order-independent CascadeModel to its equivalent GeneralThresholdModel via
g_v(X) = 1 - survivalProb C v X ([KKT05]; [Kle07], Section 24.3,
p. 621).
Forward Translation GeneralThresholdModel → CascadeModel and Equivalence #
Translate a GeneralThresholdModel to an order-independent CascadeModel via
p_v(u, X) = (g_v(insert u X) - g_v(X)) / (1 - g_v(X)) ([KKT05];
[Kle07], Section 24.3, p. 621). When g_v(X) = 1, Lean's 0 / 0 = 0 sets p_v(u, X) = 0
and preserves (1 - g_v(X)) * (1 - p_v(u, X)) = 1 - g_v(insert u X) unconditionally.
Translating a GeneralThresholdModel to CascadeModel and back is the identity
([KKT05]; [Kle07], Section 24.3, p. 621).
Operational Cascade Dynamics and Equivalence of Final Active-Set Distributions #
Set of remaining untried active-to-inactive directed edges (u, v) at cascade state
(active, tried).
Default edge-attempt selector choosing an untried active-to-inactive edge from
untriedEdges G active tried when nonempty and returning none otherwise.
An edge selector nextEdge is valid if it picks an untried active-to-inactive edge whenever
one exists and returns none when none exists.
Probability that the Cascade Model starting from seed set S (with empty initial tried
histories) under selector nextEdge terminates at active set A.
Expected number of final active nodes in the Cascade Model starting from S
([Kle07], Section 24.4, p. 623).
Structural recursion characterizing C.activeSetProb nextEdge S A: any state invariant
F active tried matching the terminal survival product when all active-to-inactive edges have been
tried and satisfying the one-step survival-weighted recurrence along each untried edge (u, v)
agrees with C.activeSetProb nextEdge S A at (S, fun _ => ∅).
Equivalence of Order-Independent Cascade and General Threshold Models
([KKT05]; [Kle07], Section 24.3, pp. 620–621): under any valid
edge-attempt schedule nextEdge, the Cascade Model C produces the exact same probability
distribution over final active sets as C.toGeneralThresholdModel.
Schedule-invariance of the Order-Independent Cascade Model: any two valid edge-attempt schedules induce identical final active-set distributions.
Expected influence of C equals the expected influence of C.toGeneralThresholdModel.
Forward Equivalence (GeneralThresholdModel → CascadeModel) ([KKT05];
[Kle07], Section 24.3, pp. 620–621): translating M : GeneralThresholdModel G to
M.toCascadeModel preserves the final active-set distribution under every valid schedule.
Time-Layered DAG Reduction for Nonprogressive Processes #
Lift a GeneralThresholdModel on G to a progressive GeneralThresholdModel on
timeLayeredDigraph G T ([Kle07], Section 24.3, p. 622): vertices at layer 0 have zero
threshold function, and (v, t + 1) evaluates M.thresholdFn v on {u | (u, t) ∈ X}.
Nonprogressive active set at step t : Fin (T + 1).
Time-Layered DAG Reduction ([KKT03]; [Kle07], Section 24.3,
p. 622): whenever layer-0 thresholds are positive (0 < θ (v, 0), which holds almost everywhere
under thresholdMeasure), vertex (v, t) is activated in the progressive process on
timeLayeredDigraph G T starting from seedLayer0 T S if and only if v is active at step t
of the nonprogressive process on G.
Expected number of active vertices at step t of the T-step synchronous nonprogressive
threshold process starting from S.
Expected step-t nonprogressive influence on G equals the expected layer-t progressive
slice cardinality on timeLayeredDigraph G T.