---
title: 'HeteroIM: Diffusion-based Recommendation Model'
url: https://www.emergentmind.com/topics/heteroim
type: topic
---

# HeteroIM: Diffusion-based Recommendation Model

HeteroIM is a model for user recommendation that recasts invitation recommendation as a heterogeneous influence-maximization problem on a social graph with distinct inviter and invitee roles. Introduced in “Heterogeneous Influence Maximization in User Recommendation,” it addresses a gap between conventional recommendation methods, which primarily model interaction willingness, and classical influence-maximization methods, which prioritize spread but ignore whether recommendations are likely to be acted upon. In the Tencent gaming scenario used to motivate the model, invitees can themselves become inviters and continue propagation, so maximizing only click- or acceptance-oriented utility is misaligned with the downstream objective of spread coverage. HeteroIM is designed to improve interaction willingness while maximizing spread coverage through reverse reachable (RR) sets, heterogeneous diffusion probabilities, incremental selection, and reranking [2508.13517].

## 1. Problem setting and conceptual motivation

HeteroIM is formulated for invitation-based activities on Tencent’s online gaming platforms. Before each event, the platform selects an inviter set \(V_i\) and an invitee set \(V_e\). For each inviter \(u \in V_i\), the system recommends a small list of invitees. When invitee \(v\) receives an invitation from \(u\), \(v\) decides whether to accept; a valid recommendation occurs if \(v\) accepts [2508.13517].

The model is motivated by two deficiencies in existing approaches. Traditional recommendation models, including CTR-type methods, mainly learn interaction willingness, that is, who is likely to accept, but they do not leverage the invitees’ potential to further propagate information. Conversely, influence-maximization methods focus on selecting influential nodes to maximize spread, but they ignore personalized willingness, including the probability that an invitation is sent and accepted. HeteroIM is therefore situated in what the paper formalizes as recommendation with influence maximization, or RIM, where the recommendation task is coupled to downstream propagation rather than limited to immediate interaction [2508.13517].

This positioning is central to the method’s interpretation. HeteroIM is not a generic recommender reranker and not a direct transplant of standard IM into recommendation. Its defining premise is that inviter–invitee recommendation should jointly optimize heterogeneous willingness and spread capability. A plausible implication is that the model is especially relevant in social systems where first-order acceptance and second-order diffusion are both operationally consequential.

## 2. Graph formulation, heterogeneous diffusion, and RR sets

The problem is defined on a directed, weighted, attributed graph \(G = (V, E, P, U)\). Here, \(V\) is the user set, \(E\) is the social edge set, \(P \in \mathbb{R}^{N \times N}\) is the invitation probability matrix with \(P_{uv}\) denoting the probability that inviter \(u\) sends an invitation to \(v\), and \(U \in \mathbb{R}^{N}\) stores acceptance probabilities, with \(U_j\) the probability that user \(j\) accepts an invitation from any inviter [2508.13517].

The diffusion model is explicitly heterogeneous and two-stage. First, inviter \(u\) invites \(v\) with probability \(P_{uv}\). Second, invitee \(v\) accepts with probability \(U_v\). The paper defines the heterogeneous spread probability as

$$
S_{uv} = P_{uv} U_{v}.
$$

This parameter couples inviter-side willingness and invitee-side willingness into a single propagation probability. Under the Independent Cascade model instantiated with these heterogeneous edge probabilities, live-edge sampling independently activates each directed edge \((u \to v)\) with probability \(S_{uv}\), producing a live-edge graph [2508.13517].

RR sets provide the model’s core approximation machinery. The paper defines a random RR set \(R_{G,M}\) as a set of nodes generated by randomly selecting \(v \in V\) as source node and reversely sampling the set of nodes that can spread to \(v\) in terms of diffusion model \(M\). Operationally, for a target node \(t\), the RR set consists of all nodes that can reach \(t\) via directed paths in the live-edge graph, equivalently the nodes reachable from \(t\) by reverse BFS [2508.13517].

The canonical RR-set estimator for a seed set \(S\) is written as

$$
\hat{\sigma}(S) = \frac{n}{\theta}\sum_{i=1}^{\theta} \mathbf{1}[R_i \cap S \neq \emptyset],
$$

where \(n = |V|\) and \(\{R_i\}_{i=1}^{\theta}\) are \(\theta\) RR sets. HeteroIM does not introduce a new closed-form estimator; instead, it reuses RR sets to quantify both influence coverage and inviter–invitee alignment [2508.13517].

## 3. Selection objective, shared RR sets, and reranking

HeteroIM uses RR sets in two distinct ways. The first is a coverage score for candidate invitees:

$$
c(u) = |\{ R \in R_{G,M} : u \in R \}|.
$$

This score counts how many RR sets contain user \(u\), and thereby identifies high-spread candidates. The second is the shared RR-set count between inviter \(u\) and invitee \(v\):

$$
p(u,v) = |\{ R \in R_{G,M} : u \in R \land v \in R \}|.
$$

The paper terms the subset of RR sets containing both nodes the shared RR sets, or SRR, of the pair. HeteroIM uses \(c(u)\) to select influential invitees and \(p(u,v)\) to rerank inviter–invitee pairs according to interaction alignment, with the interpretation that user pairs sharing more RR sets exhibit higher interaction probability [2508.13517].

The algorithm operates in three stages for an inviter set \(A\). First, RR sets \(R_{G,M}\) are generated under the IC model using heterogeneous probabilities \(S_{uv} = P_{uv} U_v\). The paper emphasizes uniform sampling, in which each node is used as a source uniformly for a fixed number of RR-set generations, to reduce source-node bias. Second, over the candidate pool \(N\), defined as first-order neighbors of inviters \(A\), the algorithm computes \(c(x)\) for each candidate \(x \in N\), selects the most influential candidate \(x^\*\), appends it to per-inviter lists \(L[u]\) when \(x^\*\) is a neighbor of inviter \(u\), and then removes all RR sets containing \(x^\*\) to mitigate overlap. This process continues until no candidates remain or recommendation lists reach capacity \(k\). Third, for each inviter \(u\), the method computes \(p(u,v)\) for recommended \(v\) and reranks \(L[u]\) primarily by \(p(u,v)\), then by \(c(v)\) [2508.13517].

This architecture separates global spread control from personalized pair ranking. The RR-set removal step addresses redundancy in spread coverage, while SRR-based reranking reintroduces inviter-specific heterogeneity after the global greedy phase. This suggests that HeteroIM is best understood as a hybrid of RIS-style coverage maximization and pairwise recommendation reranking, rather than as a monolithic propagation estimator.

## 4. Relationship to HeteroIR and HeteroInf

HeteroIM is presented alongside HeteroIR, and the distinction between them is substantive. HeteroIR is described as a model-agnostic recommendation framework that integrates spread profits with interaction willingness. It first estimates spread influence through HeteroInf and then scores inviter–invitee pairs with

$$
IH(u) = \sum_{v \in N^w_u} P_{uv} U_{v}
$$

and

$$
B_{uv} = P_{uv} U_{v} + P_{uv} U_{v} IH(v).
$$

In this formulation, \(N^w_u\) denotes the top-\(w\) out-neighbors of \(u\) ranked by \(S_{uv} = P_{uv} U_v\), and \(B_{uv}\) combines first-order and second-order influence [2508.13517].

HeteroIM differs in two ways. First, it uses RR sets rather than only pairwise profit scoring, which enables overlap control during incremental selection. Second, it reranks by SRR counts \(p(u,v)\), which ties the recommendation to the inviter’s reachable region. The paper states this contrast directly: HeteroIR focuses on profit scoring per pair without RR-set overlap correction, whereas HeteroIM uses RR sets to control overlap and then reranks by SRR to align with willingness [2508.13517].

A common misconception would be to treat HeteroIM as merely a more expensive implementation of HeteroIR. The paper does not support that view. The two models instantiate different operational trade-offs: HeteroIR emphasizes spread-aware scoring, whereas HeteroIM adapts IM machinery itself to the recommendation setting.

## 5. Computational properties, guarantees, and implementation

Under IC with heterogeneous probabilities, generating \(\theta\) RR sets typically costs \(O(\theta \cdot m)\) expected time, where \(m = |E|\), and memory is proportional to \(\sum_{i=1}^{\theta} |R_i|\). Coverage computation over all candidates can be done with inverted indices from RR sets to nodes in \(O(\sum_{i=1}^{\theta} |R_i|)\), and greedy removal of RR sets containing selected candidates has the same aggregate order if RR sets are removed or flagged once. Computing \(p(u,v)\) requires counting RR sets containing both \(u\) and \(v\), which can be implemented as intersection counting in time proportional to \(\min(\deg_R(u), \deg_R(v))\), where \(\deg_R(x)\) is the number of RR sets containing \(x\) [2508.13517].

The overall time complexity is therefore stated as

$$
O(\theta \cdot m + \sum_{i=1}^{\theta} |R_i| + \text{cost of intersections for SRR}),
$$

with constants dependent on candidate pool size and \(k\). The method also admits parallelization across RR sets for sampling and coverage counting, and across inviters for SRR computation. The paper notes that compressed RR-set representations, streaming removal by flagging, and node-to-RR-set inverted indices help on large graphs [2508.13517].

The theoretical status of HeteroIM is qualified. The method adopts RR-set machinery and parameter settings from RR-OPIM+ and related RIS/IMM literature, with experimental settings \(\epsilon = 0.1\) and \(\delta = 1/n\), but the paper does not state a new formal approximation bound for HeteroIM. It explicitly notes that exact analytical guarantees for the heterogeneous reranking step are not provided [2508.13517]. This is a significant limitation in formal terms: the greedy coverage component inherits the scalability and near-optimal coverage properties of RR-set selection, but the end-to-end heterogeneous reranking stage is justified empirically rather than by a new proof.

## 6. Empirical results, deployment, and limitations

The experimental study uses three Tencent game datasets, TXG-A/B/C, and Twitter. The TXG datasets have hundreds of millions of nodes and edges; for example, TXG-B has \(n=131.6\)M, \(m=211.4\)M, and \(s=43.2\)M, while Twitter has \(n=0.46\)M, \(m=14.9\)M, and \(s=0.15\)M. On TXG, two EulerNet models predict \(P_{uv}\) and \(U_v\), with TXG-A split by \(8{:}1{:}1\) and validation on TXG-B/C. On Twitter, the setup uses DeepWalk 64-dim embeddings and EulerNet to fit \(S_{uv}\) [2508.13517].

The evaluation uses two task families. For spread, the metric is NSpread@K, defined as a normalized measure comparing actual secondary spread to ideal spread coverage ISpread@K, where ISpread@K is the deduplicated union from best \(K\) neighbors per inviter and \(K \in \{1,2,3\}\). For recommendation, the metrics are Recall@K and NDCG@K on valid interactions, defined as invite plus accept for TXG and mentions for Twitter. Baselines include IM methods such as IMM, OPIM-C, and RR-OPIM+, recommendation methods such as PPR, AutoInt, FinalNet, and EulerNet, and influence-estimation baselines such as Degree, Coreness, Windex, Monte Carlo, LR-influence, TOPSIS, and DeepInf [2508.13517].

The paper reports that HeteroIM consistently achieves the best spread and strong recommendation metrics, and that HeteroIR also improves over CTR baselines by modeling second-order influence. Many improvements are statistically significant with \(p\text{-value} < 0.05\). In the HeteroIM ablation, reranking by SRR greatly improves performance, and using heterogeneous spread probabilities and uniform sampling further boosts results. HeteroInf achieves the highest Hit@K across TXG-B/C, and when plugged into recommendation scoring, HeteroInf-based \(IH(v)\) yields the best NSpread@K and NDCG@K against Monte Carlo and LR baselines [2508.13517].

The deployment evidence is unusually large-scale. HeteroIR and HeteroIM were deployed in two large-scale in-game propagation events, X1 and X2, on Tencent’s FPS game, with treatment groups of 15.6M and 16.4M users, respectively. The deployment pipeline predicts \(P_{uv}\) and \(U_v\) via EulerNet, aggregates HeteroInf with \(w=4\), generates RR sets under IC with heterogeneous \(S_{uv} = P_{uv} U_v\) using uniform sampling, and constructs recommendations via HeteroIM. In X2, HeteroIM achieved relative improvements up to 10% in Secondary Invite Rate, 9.64% in Secondary Invite Times, and 14.83% in Reach Retain Rate compared with the baseline intimacy model. The abstract also reports online A/B test improvements of 10% for HeteroIM and 8.5% for HeteroIR [2508.13517].

The paper also identifies several limitations. The diffusion model assumes independent invitation and acceptance with multiplicative probability \(S_{uv} = P_{uv} U_v\), whereas real-world behavior may exhibit dependencies such as network effects and temporal correlations. HeteroIM reduces overlap via RR-set removal but does not provide a formal approximation bound under heterogeneous reranking. HeteroInf uses a fixed \(w\) as interaction capacity, and the authors indicate future work on personalized interaction capacity modeling and more efficient end-to-end algorithms for invitation and acceptance probabilities [2508.13517].

In that sense, HeteroIM marks a specific synthesis within social recommendation research: it adapts influence maximization to inviter–invitee recommendation by making heterogeneous willingness part of the propagation model itself, then uses RR-set coverage and SRR-based reranking to connect diffusion efficiency to personalized interaction structure. Its principal significance lies less in a new diffusion theorem than in an engineering reformulation of recommendation as spread-aware, heterogeneous propagation.

Source: https://www.emergentmind.com/topics/heteroim