TrustGNN: Graph Neural Network-Based Trust Evaluation via Learnable Propagative and Composable Nature

Cuiying Huo, Dongxiao He, Chundong Liang, Di Jin, Tie Qiu, Lingfei Wu

Abstract

Evaluating trust in social networks is a critical yet challenging task due to the asymmetric, propagative, and composable nature of trust relationships. This paper introduces TrustGNN, a novel Graph Neural Network (GNN) framework that explicitly models these properties. By representing trust relations as rotations in a complex plane—inspired by knowledge graph embeddings—and utilizing dual-role embeddings for trustors and trustees, TrustGNN effectively captures complex trust dynamics. Experimental results on the Advogato and PGP datasets demonstrate that TrustGNN achieves state-of-the-art performance in trust prediction and classification.

Introduction

Trust evaluation is fundamental to cybersecurity, social media filtering, and recommendation systems. Unlike standard social links, trust is a complex social construct characterized by three main properties:

  1. Asymmetry: Trust is directed; Alice trusting Bob does not imply Bob trusts Alice.
  2. Propagation: Trust can be inferred through chains (e.g., Alice trusts Bob, Bob trusts Charlie).
  3. Composition: Multiple trust chains between two users provide cumulative evidence that must be aggregated.

Existing GNNs often fail to capture the specific logic of trust chains, treating them as generic social links. TrustGNN addresses these limitations by incorporating the structural properties of trust directly into the neural architecture.

Methodology

TrustGNN employs a four-stage pipeline to model trust dynamics:

  1. Attribute Transformation: Raw node and edge features are projected into a common latent space.
  2. Trust Chain Based Propagation: Trust relations are modeled as rotations in a complex plane, adapting the RotatE method from knowledge graph embeddings. This allows for efficient mathematical composition of trust paths of any length.
  3. Dual-Role Embeddings: To account for asymmetry, each node is assigned two distinct embeddings: one as a trustor (giver of trust) and one as a trustee (receiver of trust).
  4. Trust Chain Based Aggregation: A learnable attention mechanism aggregates information from multiple paths. This allows the model to prioritize more reliable chains (e.g., those involving "Master" level users) over less certain ones.
Overview of the TrustGNN architecture, showing the transformation, propagation, aggregation, and prediction layers.

The final Predictor Layer uses a Multi-Layer Perceptron (MLP) to classify the relationship into specific trust categories based on the aggregated embeddings.

Experimental Setup

The model was evaluated on two benchmark trust-based social network datasets:

  • Advogato: An open-source developer community with four trust levels: Observer, Apprentice, Journeyer, and Master.
  • PGP (Pretty-Good-Privacy): A public-key certification network also featuring four distinct trust levels.

These datasets are ideal for testing asymmetric and multi-relational trust due to their directed edges and categorical relationship types.

Key Results and Insights

TrustGNN achieved state-of-the-art (SOTA) results across both datasets:

  • Accuracy: On Advogato, it achieved a 74.4% F1-score, a 1.4% improvement over the previous SOTA. On PGP, it reached an F1-score of 87.2%.
  • Efficiency: TrustGNN remained scalable on the larger PGP dataset, where some deep learning baselines failed due to resource constraints.
  • Interpretability: The attention mechanism successfully learned to weight "Master" level relationships more heavily, mirroring human intuition regarding expertise.
F1-Score performance of TrustGNN and its variants on the PGP dataset across different training ratios.

Analysis revealed that a chain length of $K=2$ is typically optimal; longer chains ($K \ge 3$) often introduce noise that degrades performance. Furthermore, the model's use of the complex plane allows for efficient path composition while ignoring intermediate node attributes that do not significantly contribute to the final trust signal.

Conclusion

TrustGNN provides a robust framework for trust evaluation by mathematically formalizing trust propagation and composition. While the current model operates on static network snapshots, future work will explore temporal encodings to capture the dynamic nature of trust and self-supervised learning to address data sparsity.

Summary updated

BibTeX
@article{huo2022trustgnn,
  author = {Cuiying Huo and Dongxiao He and Chundong Liang and Di Jin and Tie Qiu and Lingfei Wu},
  title = {{TrustGNN: Graph Neural Network-Based Trust Evaluation via Learnable Propagative and Composable Nature}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
}
Figure