Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

CD-CGCN: Community Debiasing Framework

Updated 8 July 2026
  • CD-CGCN is a universal framework for mitigating filter bubbles in recommender systems by exploiting community structures via community detection and adversarial debiasing.
  • It integrates a Conditional Discriminator with a community-reweighted GCN and community-enhanced negative sampling to extract community attributes and rebalance recommendations.
  • Experimental evaluations on datasets like Gowalla and Amazon-Book show significant improvements in ranking metrics and reduced intra-community bias compared to standard recommenders.

CD-CGCN is a universal framework for mitigating the filter bubble effect in recommender systems from a community detection perspective. Introduced in "Mitigating Filter Bubble from the Perspective of Community Detection: A Universal Framework" (Tang et al., 15 Aug 2025), it treats the filter bubble as a community-structured exposure bias on the user–item bipartite graph: users and items form communities, and low diversity manifests as repeated recommendation of intra-community items. The framework is model-agnostic and operates as a plug-in atop standard recommenders such as MF, NGCF, LightGCN, and DGCF. Its core design combines a Conditional Discriminator with a Community-reweighted Graph Convolutional Network, adversarial learning based on community labels, Community-enhanced Negative Sampling, a Gradient Reversal Layer, and a user-adaptive inference strategy (Tang et al., 15 Aug 2025).

1. Community-structured formulation of the filter bubble

In CD-CGCN, the filter bubble is explicitly grounded in community structure rather than treated only as a generic lack of diversity. Let users and items be sets U\mathcal{U} and I\mathcal{I} with ∣U∣=m|\mathcal{U}| = m, ∣I∣=n|\mathcal{I}| = n, and interaction matrix R∈Rm×nR \in \mathbb{R}^{m \times n}, where Ru,i=1R_{u,i} = 1 if user uu interacted with item ii, else $0$. The interaction data define a bipartite graph G=(U∪I,R)\mathcal{G} = (\mathcal{U} \cup \mathcal{I}, R), and community labels are obtained by applying Louvain on the training graph only, producing C={Cu1,…,Cum,Ci1,…,Cin}\mathcal{C} = \{C_{u_1}, \ldots, C_{u_m}, C_{i_1}, \ldots, C_{i_n}\} (Tang et al., 15 Aug 2025).

This formulation ties recommendation bias to latent graph structure. On Gowalla, 78% of users’ historical interactions are intra-community; in the top-20 lists from standard recommenders, ≈90%\approx 90\% of recommended items are intra-community. The framework therefore interprets filter bubbles as a systematic overexposure to same-community items. This suggests that community detection is not merely an auxiliary analytic tool but a mechanism for identifying the structural bias inherited by recommendation models (Tang et al., 15 Aug 2025).

The paper further diagnoses the behavior of common recommenders during optimization. Tracking ILFBI@20 during training shows that LightGCN and NGCF hold ILFBI ≈0.9\approx 0.9 from early epochs, while MF and DGCF gradually trend toward similar levels. Grouping users by “ILFBI-init.”, defined as the intra-community proportion in training data, reveals that the ILFBI increment is larger for users whose histories already favor intra-community interactions. The reported interpretation is that base recommenders amplify the bubble via a feedback loop (Tang et al., 15 Aug 2025).

2. Architectural composition

CD-CGCN stands for Conditional Discriminator + Community-reweighted Graph Convolutional Network. It takes embeddings and scores from a base recommender, extracts community attributes, adversarially debiases them with respect to community labels, applies community-aware negative sampling, and fuses base and debiased predictions at inference (Tang et al., 15 Aug 2025).

Component Role Mechanism
CGCN Extract community attributes Community-reweighted propagation
CD Predict community labels Two-layer MLP with global embeddings
CNS Increase intra-community repulsion Negative sampling with probability α\alpha
GRL Stabilize adversarial training Gradient sign reversal with factor β\beta
UIS Personalize inference Score fusion via ηu\eta_u

The Community-reweighted GCN is parameter-free. Let eubasee_u^{base} and eibasee_i^{base} denote base embeddings, and initialize eu(0)=eubasee_u^{(0)} = e_u^{base} and ei(0)=eibasee_i^{(0)} = e_i^{base}. The compatibility of neighbor item ii for user uu is defined as

hui=∣{k∣Ru,k=1,Ck=Ci,k∈I}∣∣{k∣Ru,k=1,k∈I}∣.h_u^i = \frac{|\{k \mid R_{u,k} = 1, C_k = C_i, k \in \mathcal{I}\}|}{|\{k \mid R_{u,k} = 1, k \in \mathcal{I}\}|}.

An analogous definition gives hiuh_i^u for item ii with respect to user uu. The propagation rule for layer k+1k+1 is

eu(k+1)=∑i∈Nu[hui∑i∈Nuhui⋅∑u∈Nihiu]⋅ei(k),e_u^{(k+1)} = \sum_{i \in \mathcal{N}_u} \left[ \frac{h_u^i}{\sqrt{\sum_{i \in \mathcal{N}_u} h_u^i} \cdot \sqrt{\sum_{u \in \mathcal{N}_i} h_i^u}} \right] \cdot e_i^{(k)},

ei(k+1)=∑u∈Ni[hiu∑u∈Nihiu⋅∑i∈Nuhui]⋅eu(k).e_i^{(k+1)} = \sum_{u \in \mathcal{N}_i} \left[ \frac{h_i^u}{\sqrt{\sum_{u \in \mathcal{N}_i} h_i^u} \cdot \sqrt{\sum_{i \in \mathcal{N}_u} h_u^i}} \right] \cdot e_u^{(k)}.

Community embeddings are then aggregated as

eucomm=∑k=0Leu(k),eicomm=∑k=0Lei(k).e_u^{comm} = \sum_{k=0}^{L} e_u^{(k)}, \qquad e_i^{comm} = \sum_{k=0}^{L} e_i^{(k)}.

Because the hh weights amplify intra-community edges, CGCN makes same-community embeddings cluster more strongly, thereby explicitly extracting the community attributes that the adversarial component is designed to counteract (Tang et al., 15 Aug 2025).

The Conditional Discriminator is a two-layer MLP Dcondi\mathcal{D}^{condi} with parameters θd\theta_d. It receives the concatenation of a community embedding and a shared global embedding indicating entity type:

y^u=Dcondi(eucomm ∣∣ euserglob;θd),y^i=Dcondi(eicomm ∣∣ eitemglob;θd).\hat{y}_u = \mathcal{D}^{condi}(e_u^{comm} \, || \, e_{user}^{glob}; \theta_d), \qquad \hat{y}_i = \mathcal{D}^{condi}(e_i^{comm} \, || \, e_{item}^{glob}; \theta_d).

With one-hot community labels yuy_u and yiy_i, it is trained using cross-entropy,

CE(y^,y)=−∑k=1nyklog⁡y^k.CE(\hat{y}, y) = - \sum_{k=1}^{n} y_k \log \hat{y}_k.

The intended effect is to make community labels predictable from extracted attributes while the encoder, through adversarial training, is pushed to reduce community-identifiable signals in its embeddings (Tang et al., 15 Aug 2025).

3. Optimization and adversarial debiasing

The recommendation objective uses BPR over triplets S\mathcal{S}:

Lrec(u,i,j;θb)=−∑(u,i,j)∈Sln⁡σ(s(eub,eib)−s(eub,ejb)),\mathcal{L}_{rec}(u,i,j; \theta_b) = - \sum_{(u,i,j) \in \mathcal{S}} \ln \sigma\big( s(e_u^{b}, e_i^{b}) - s(e_u^{b}, e_j^{b}) \big),

where s(eu,ei)=euTeis(e_u, e_i) = e_u^T e_i and θb\theta_b denotes base-model parameters. The discriminator contributes an adversarial loss

Ladv(u,i,j;θb,θd)=∑(u,i,j)∈S[CE(y^u,yu)+CE(y^i,yi)+CE(y^j,yj)].\mathcal{L}_{adv}(u,i,j; \theta_b, \theta_d) = \sum_{(u,i,j)\in\mathcal{S}} \left[ CE(\hat{y}_u, y_u) + CE(\hat{y}_i, y_i) + CE(\hat{y}_j, y_j) \right].

The combined min–max objective is

L(θb,θd)=Lrec(θb)−βLadv(θb,θd),\mathcal{L}(\theta_b, \theta_d) = \mathcal{L}_{rec}(\theta_b) - \beta \mathcal{L}_{adv}(\theta_b, \theta_d),

with

θb∗=arg⁡min⁡θbL(θb,θˉd),θd∗=arg⁡max⁡θdL(θˉb,θd).\theta_b^* = \arg\min_{\theta_b} \mathcal{L}(\theta_b, \bar{\theta}_d), \qquad \theta_d^* = \arg\max_{\theta_d} \mathcal{L}(\bar{\theta}_b, \theta_d).

Minimizing with respect to θb\theta_b improves recommendation quality while making community labels harder to predict; maximizing with respect to θd\theta_d strengthens community classification. The appendix proves that this alternating min–max procedure is equivalent to joint minimization with a Gradient Reversal Layer defined by Rβ(x)=x\mathcal{R}_\beta(x) = x and gradient dRβ/dx=−βId\mathcal{R}_\beta / dx = -\beta I (Tang et al., 15 Aug 2025).

Under the GRL formulation, the objective becomes

LRβ(θb,θd)=Lrec(θb)+Ladv(Rβ(θb),θd),\mathcal{L}^{\mathcal{R}_\beta}(\theta_b, \theta_d) = \mathcal{L}_{rec}(\theta_b) + \mathcal{L}_{adv}(\mathcal{R}_\beta(\theta_b), \theta_d),

and the training reduces to joint minimization,

θb∗,θd∗=arg⁡min⁡θb,θdLRβ(θb,θd).\theta_b^*, \theta_d^* = \arg\min_{\theta_b,\theta_d} \mathcal{L}^{\mathcal{R}_\beta}(\theta_b,\theta_d).

This design is presented as a stabilization device for end-to-end training (Tang et al., 15 Aug 2025).

Community-enhanced Negative Sampling further shifts the geometry of the learned representation. Given a triplet (u,i,j)(u,i,j) with positive item ii, the negative item jj is sampled from non-interacted items; with probability α\alpha, jj is sampled from uu’s same community, and with probability 1−α1-\alpha, it is sampled uniformly from all non-interacted items. The stated effect is to increase repulsion among intra-community embeddings and raise the chance of recommending inter-community items (Tang et al., 15 Aug 2025).

4. User-adaptive inference and evaluation protocol

CD-CGCN measures filter-bubble severity with two community-level metrics in addition to standard ranking metrics such as Precision@k, Recall@k, and NDCG@k. The Intra-List Filter Bubble Index at cutoff kk is

ILFBI@k=∑u∈U∑i∈Top-k(u)1Ci=Cu∣U∣⋅k,ILFBI@k = \frac{\sum_{u \in \mathcal{U}} \sum_{i \in Top\text{-}k(u)} \mathbf{1}_{C_i = C_u}}{|\mathcal{U}| \cdot k},

which quantifies the proportion of recommended items that share the user’s community. The Community Gini Index is

CGI@k=1−2∑i=1n−1SinSn−1n,CGI@k = 1 - \frac{2\sum_{i=1}^{n-1} S_i}{nS_n} - \frac{1}{n},

where nn is the number of communities, Si=∑j=1icjS_i = \sum_{j=1}^{i} c_j, and [c1,…,cn][c_1,\ldots,c_n] are counts per community in ascending order (Tang et al., 15 Aug 2025).

Inference is tailored to each user’s filter-bubble state. For user uu, let ILFBIuinit.ILFBI_u^{init.} denote the intra-community proportion in uu’s training interactions, and let ILFBIˉinit.\bar{ILFBI}^{init.} denote the average over users. CD-CGCN defines

ηu=ILFBIuinit.2⋅ILFBIˉinit.,\eta_u = \frac{ILFBI_u^{init.}}{2 \cdot \bar{ILFBI}^{init.}},

and fuses scores as

Yu,i=ηu⋅Yu,iCD+(1−ηu)⋅Yu,iBM,Y_{u,i} = \eta_u \cdot Y_{u,i}^{CD} + (1 - \eta_u) \cdot Y_{u,i}^{BM},

where Yu,iCD=s(eubase,eibase)Y_{u,i}^{CD} = s(e_u^{base}, e_i^{base}) and Yu,iBMY_{u,i}^{BM} is the base model’s score. Users with larger ILFBIuinit.ILFBI_u^{init.} therefore receive stronger CD-CGCN influence at inference, promoting inter-community recommendations where the bubble is more severe (Tang et al., 15 Aug 2025).

The reported training loop is: run Louvain on the training graph; sample triplets using CNS; compute base embeddings; perform LL layers of CGCN propagation; obtain discriminator outputs from concatenated embeddings with global embeddings; compute Lrec\mathcal{L}_{rec}, Ladv\mathcal{L}_{adv}, and LRβ\mathcal{L}^{\mathcal{R}_\beta}; then jointly update θb\theta_b and θd\theta_d with Adam. At inference, compute base and CD-CGCN scores for all candidate items, compute ηu\eta_u, fuse scores, rank, and return top-kk items (Tang et al., 15 Aug 2025).

To evaluate inter-community preference modeling more directly, the paper constructs a community-debiased test set. The motivation is that original test sets are heavily biased toward intra-community interactions; the example given is Gowalla’s test set, where 80.9% of items are intra-community. The debiasing procedure limits each user’s test set to at most one item per community. After debiasing, the reported scales are Gowalla: 217,274→41,636217{,}274 \rightarrow 41{,}636, Amazon-Book: 603,378→121,829603{,}378 \rightarrow 121{,}829, and ML-2k: 72,701→5,65572{,}701 \rightarrow 5{,}655 (Tang et al., 15 Aug 2025).

5. Experimental findings

The evaluation uses three real-world datasets with a 70/10/20 train/validation/test split and community detection on training data only: Gowalla with 29,858 users, 40,981 items, 1,027,370 interactions, and 18 communities; Amazon-Book with 52,643 users, 91,599 items, 2,984,108 interactions, and 9 communities; and ML-2k with 2,095 users, 5,254 items, 367,761 interactions, and 6 communities. Base models are MF, NGCF, LightGCN, and DGCF. Optimization uses Adam, embedding size 64, global embedding size 16, L2L_2 regularization 1e−31e^{-3} for base embeddings and 1e−71e^{-7} for CD, and k∈{20,50,100}k \in \{20,50,100\} (Tang et al., 15 Aug 2025).

Across models and datasets, CD-CGCN is reported to improve both ranking quality and filter-bubble metrics. Representative gains include the following (Tang et al., 15 Aug 2025):

Dataset Base Representative reported gains
Gowalla NGCF P@20 +10.9%, R@20 +9.2%, NDCG@20 +10.2%, ILFBI@20 −5.1%, CGI@20 −0.7%
Gowalla DGCF P@20 +11.1%, R@20 +8.9%, NDCG@20 +9.7%, ILFBI@20 −2.7%
Amazon-Book MF P@20 +13.1%, R@20 +14.9%, NDCG@20 +15.5%, ILFBI@20 −11.5%, CGI@20 −3.4%
Amazon-Book NGCF P@20 +14.3%, R@20 +15.5%, NDCG@20 +15.8%, ILFBI@20 −7.7%
Amazon-Book DGCF P@20 +17.4%, R@20 +20.4%, NDCG@20 +20.0%
ML-2k MF P@100 +5.7%, NDCG@100 +8.3%, ILFBI@100 −12.9%

The framework is also reported to achieve better accuracy–bubble trade-offs than MMR, Fairness, and IPS. Training trajectories show that ILFBI@20 remains lower across epochs for CD-CGCN than for baselines, and t-SNE visualizations on Amazon-Book show cross-community blending of embeddings after debiasing, in contrast to sharp same-community clusters before debiasing (Tang et al., 15 Aug 2025).

The debiased test sets produce a stronger effect size: the accuracy improvements of CD-CGCN are significantly larger on debiased test sets than on original ones. The paper interprets this as evidence that the framework better captures inter-community preferences, rather than merely exploiting the original test distribution’s intra-community skew (Tang et al., 15 Aug 2025).

Ablation on LightGCN over Amazon-Book reports that removing CGCN, CD, or CNS degrades both accuracy and bubble metrics, and removing the User-adaptive Inference Strategy reduces accuracy substantially. One example states that CD-CGCN improves P@20 from 0.0172 to 0.0184 and reduces ILFBI@20 from 0.8082 to 0.7398; removing UIS drops P@20 to 0.0168 despite a strong ILFBI reduction. This suggests that the adaptive fusion coefficient ηu\eta_u is central to managing the accuracy–debiasing trade-off (Tang et al., 15 Aug 2025).

6. Complexity, implementation, and scope conditions

The framework is designed to be plug-and-play. It only requires learned embeddings and scores from the base model plus community labels extracted from the interaction graph. Louvain is run once on training data and is described as scaling well to large graphs. CGCN is parameter-free message passing over the interaction graph for LL layers, with per-layer complexity linear in the number of edges, O(∣E∣)O(|E|); symmetric normalization uses precomputed sums. Memory overhead is described as minimal because there are no extra parameters beyond global embeddings and the Conditional Discriminator. The discriminator itself is a small MLP over concatenated embeddings of dimensions $64 + 16$, and GRL introduces negligible overhead (Tang et al., 15 Aug 2025).

The implementation is in PyTorch with Adam optimization and standard ranking metrics. The paper does not announce a public code release, but it states that methodological details are sufficient for reproduction. Practical guidance given in the paper includes initializing global embeddings randomly with small norms, starting with moderate α\alpha such as 0.3–0.5 and β\beta such as 0.1–0.5, using early stopping on both accuracy and ILFBI/CGI, and expecting particularly strong gains with richer base encoders such as NGCF and DGCF, while still obtaining benefits with MF and LightGCN (Tang et al., 15 Aug 2025).

The main limitations are also explicitly stated. The method depends on community detection quality; misassigned labels can weaken debiasing. Current labels are static and computed once on training data, so dynamic communities and temporal drift are not handled. Community labels for very sparse users or items may be unreliable, which creates cold-start issues. Finally, excessive adversarial strength β\beta can hurt accuracy, even though the user-adaptive inference strategy partially mitigates this. Proposed future directions include dynamic or evolving communities, integration of side information or content-based signals, more personalized debiasing strength, and causal formulations (Tang et al., 15 Aug 2025).

The label “CD-CGCN” is potentially ambiguous in the recent literature. In recommender systems, it denotes the framework built from a Conditional Discriminator and a Community-reweighted Graph Convolutional Network (Tang et al., 15 Aug 2025). In contrast, "Self-Supervised Contrastive Graph Clustering Network via Structural Information Fusion" uses the acronym “CGCN,” not “CD-CGCN”; the paper explicitly states that the term “CD-CGCN” does not appear there, and that if encountered elsewhere it likely refers to the same self-supervised contrastive deep graph clustering model, which the paper names simply “CGCN” (Ji et al., 2024). That method addresses unsupervised graph clustering through an AE, a GAE/IGAE, structural information fusion, and contrastive alignment implemented as squared ℓ2\ell_2 losses, rather than recommendation debiasing (Ji et al., 2024).

A further nearby acronym is “CDGCN,” short for Community Detection Graph Convolutional Network, introduced for overlap-aware speaker diarization (Wang et al., 2023). That method builds KNN subgraphs over speech segments, refines local edges with a GCN, applies Leiden for speaker-community partitioning, and adds Graph-OSD for overlap-aware labeling. Its target problem, inputs, losses, and evaluation regime are distinct from those of CD-CGCN in recommendation (Wang et al., 2023).

A common misconception is therefore to treat these names as interchangeable. They are not identical methods. The shared acronyms arise from overlapping uses of “community detection,” “graph convolutional network,” and “contrastive” or “conditional discriminator” terminology, but the underlying tasks differ: recommendation debiasing in (Tang et al., 15 Aug 2025), self-supervised graph clustering in (Ji et al., 2024), and speaker diarization in (Wang et al., 2023). The most precise usage reserves “CD-CGCN” for the recommender-system framework of (Tang et al., 15 Aug 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to CD-CGCN.