Trust-Driven Diffusion Models for Online Social Networks

Yanwei Xu, Guojun Han, Qian Gao, Praveen Kumar Donta, Bin CuiTsinghua 2025

Abstract

Generative models have achieved significant success in image and audio tasks and have recently been adapted to handle textual data by learning discrete data distributions. However, their application to trust relationship generation remains largely unexplored. This paper addresses this gap by investigating how online social networks structures influence the prediction of trust relationships through structural analysis. We propose DiffTrust++, a novel self-conditioned diffusion model tailored for generating trust relationships in social environments. First, we learn and encode structural equivalence in online social networks and user representations. Second, recognizing that online social networks often follow power-law distributions, we incorporate diffusion degrees to model varying densities under different noise distributions. Finally, asymmetric trust relationships among social entities are generated and evaluated based on their structural features. To evaluate the effectiveness of DiffTrust++, we conducted experiments using real-world datasets and compared our model with benchmark approaches. The experimental results clearly show that our model excels in generating trust relationships, outperforming the alternatives.

Introduction

Predicting trust in Online Social Networks (OSNs) is a complex challenge due to several factors. First, social networks are often sparse and follow power-law distributions, making it difficult for standard models to propagate trust information effectively. Second, trust is fundamentally asymmetric; the level of trust User A has for User B rarely matches the level User B has for User A. Finally, traditional models often overlook "structural equivalence," where users occupy similar social roles despite being far apart in the network topology.

Figure 1: The challenge of predicting trust between distant nodes in a social network.

Existing methods typically rely on local neighborhoods and struggle to capture the global topology or the generative nature of how trust links form. To address these gaps, we introduce DiffTrust++, a novel generative framework that applies self-conditioned diffusion models to predict trust relationships by accounting for structural roles and inherent asymmetry.

Methodology: The DiffTrust++ Framework

DiffTrust++ shifts trust prediction from a simple classification task to a generative diffusion process. The model must account for fundamental trust properties such as asymmetry and aggregation to be effective.

Figure 5: Fundamental properties of trust: (a) Asymmetric property and (b) Aggregative property.

The proposed multi-stage pipeline includes:

  • Structural Grouping (FastDTW): The model uses Fast Dynamic Time Warping on random walk sequences to calculate structural similarity. Users are partitioned into "dense" and "sparse" groups based on their network positions, capturing structural equivalence.
  • Self-Conditioned Diffusion: This is the core innovation. The model adds Gaussian noise to user embeddings (forward process) and then learns to reverse this noise (backward process). Crucially, the denoising is "self-conditioned" on the structural group, allowing the model to adapt to different network densities.
  • Feature Fusion (GCN + GAT): To capture both global and local information, the model employs Graph Convolutional Networks (GCN) for global topology and Graph Attention Networks (GAT) for multi-hop neighborhood features.
  • Asymmetric Prediction: Finally, an MLP takes an ordered pair of these fused features to predict a specific trust score, ensuring that the predicted trust from $A \to B$ can differ from $B \to A$.

Experimental Evaluation

We evaluated DiffTrust++ on three real-world datasets: Bitcoin-Alpha, Bitcoin-OTC, and Ciao. These platforms provide a mix of weighted trust scores (ranging from -10 to +10) and binary trust/distrust relationships.

Key Results

DiffTrust++ consistently outperformed state-of-the-art baselines like Guardian, GATrust, and SNEA across all datasets. The primary metric used was Mean Absolute Error (MAE).

  • Accuracy: On the Bitcoin-Alpha dataset, DiffTrust++ achieved an MAE of 0.1677, significantly outperforming Guardian (0.4477) and GATrust (0.2859).
  • Stability: Sensitivity analysis showed the model remains robust even when 80% of training edges are removed, proving its effectiveness in highly sparse environments.
  • Ablation Success: Removing the diffusion module or the structural similarity component led to significant performance drops, confirming that both generative and structural aspects are vital.

Conclusion

DiffTrust++ represents a significant advancement in trust prediction by leveraging generative diffusion models and structural analysis. By accounting for structural roles and the asymmetric nature of trust, it provides a robust solution for sparse social networks. Future work will explore incorporating temporal dynamics to model how trust evolves over time and extending the framework to the Social Internet of Things (SIoT).

Summary updated

BibTeX
@inproceedings{xu2025trust,
  author = {Yanwei Xu and Guojun Han and Qian Gao and Praveen Kumar Donta and Bin Cui},
  title = {{Trust-Driven Diffusion Models for Online Social Networks}},
  booktitle = {Tsinghua},
  year = {2025},
  doi = {10.26599/tst.2025.9010170},
}
Figure