TrustGTN: A Social Network Trust Evaluation Method Based on Heterogeneous Graph Neural Network
Abstract
1. Introduction
2. Related Work
2.1. Traditional Trust Modeling Methods
2.2. Machine Learning Methods
2.3. Graph Neural Network Methods
- By assigning learnable weights to each edge type, the model enables a soft selection mechanism for meta-path adjacency matrices based on edge importance. This approach eliminates the necessity of manually pre-defining meta-paths, allowing for the dynamic discovery of meta-paths of arbitrary length and enhancing overall model performance.
- Edge weights are initialized based on node degree information extracted from the initial adjacency matrix. During the construction of meta-path adjacency matrices, edge weights are further refined through node feature-based recalibration. By integrating the recalibrated weights with the initial edge weights, a more expressive and adaptive meta-path adjacency matrix is reconstructed.
- To enhance message aggregation, techniques from knowledge graph embedding are incorporated, with a particular emphasis on the RotatE method. This enables the effective integration of edge feature information into the representation learning process, capturing relational dependencies more comprehensively.
3. Problem Definition and Analysis
3.1. Heterogeneous Trust Graph
3.2. Meta-Path
3.3. Graph Convolutional Network (GCN)
3.4. Theoretical Basis for Trust Evaluation as an Edge Classification Problem
- (1)
- Task Alignment: The fundamental unit of trust expression is “user A’s trust in user B,” a semantic unit that corresponds to a directed edge in the graph rather than an individual node. Edge classification directly treats edges as the prediction unit, ensuring that the task objective is highly consistent with the very definition of trust.
- (2)
- Explicit Modeling of Relational Heterogeneity: In heterogeneous trust networks, edges convey not only trust values but also multiple relationship types (e.g., the four trust levels in the Advogato dataset). The edge classification framework enables the model to directly discriminate edge types, rather than inferring them indirectly through node representations, thereby making fuller use of edge-level information.
- (3)
- Natural Expression of Asymmetry: Trust is inherently asymmetric—A’s trust in B does not imply B’s trust in A. Edge classification naturally supports the modeling of directed edges, whereas node classification methods often require compensatory mechanisms such as dual-channel embeddings, which increase modeling complexity.
4. Methodology
5. Experiments and Analysis
5.1. Dataset
5.2. Baselines
- (1)
- MATRI [15]: MATRI is a trust inference model that integrates multi-faceted characteristics and transitivity. It transforms the trust problem into a recommendation problem, using collaborative filtering to represent the multi-faceted latent characteristics between trustors and trustees. It introduces three trust biases as prior knowledge: global bias, trustor bias, and trustee bias, and the model automatically learns the weight relationships between these biases and latent factors. It updates the latent factor matrix (trustors and trustees) through matrix factorization.
- (2)
- OpinionWalk [28]: OpinionWalk models trust using Dirichlet distributions and uses matrices to represent direct trust relationships between users. It searches the network in a BFS manner and iteratively calculates user trustworthiness. To achieve iterative calculations, the authors use an opinion matrix to represent the network and a personal opinion vector to store the trustworthiness of all users. This addresses the issue that many trust evaluation calculations are either inaccurate or very slow.
- (3)
- NeuralWalk [16]: NeuralWalk uses a neural network architecture called WalkNet to capture trust propagation and fusion in trust social networks. It iteratively uses the trained WalkNet to perform single-hop trust inference on unknown trust relationships and then traverses the entire trust evaluation network in a breadth-first manner to achieve multi-hop trust evaluation.
- (4)
- Guardian [24]: Guardian proposes an end-to-end learning framework based on Graph Convolutional Networks (GCN) to efficiently and accurately evaluate trust relationships in social networks. It models the social network as a graph, where nodes represent users and edges represent trust relationships between users. The core of the framework is the trust convolutional layer, which uses local convolution to capture the propagation and composability of social trust. Considering the asymmetry of trust, each trust convolutional layer consists of popularity trust propagation and participation trust propagation, comprehensively considering trust degree and being-trusted degree.
- (5)
- TrustGNN [25]: TrustGNN is also a graph neural network-based method that further captures the propagation and composability between trust graphs. It views trust propagation as a chain and uses attention mechanisms to distinguish the importance of different chains. It also uses a dual-channel fusion algorithm to learn node representations from both trustor to trustee and trustee to trustor directions, obtaining a more comprehensive node embedding, and then uses the learned node embeddings for trust prediction.
5.3. Evaluation Metrics
5.4. Parameter Settings and Equipment
5.5. Visualization and Parameter Analysis
5.6. Ablation Study
6. Conclusions
7. Future Work
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Xie, X. Potential Friend Recommendation in Online Social Network. In Proceedings of the 2010 IEEE/ACM International Conference on Green Computing and Communications & International Conference on Cyber, Physical and Social Computing, Hangzhou, China, 18–20 December 2010; pp. 831–835. [Google Scholar]
- Yang, J.; Wan, J.; Wang, Y.; Mao, Y. Social Network-Based News Recommendation with Knowledge Graph. In Proceedings of the 2020 IEEE International Conference on Information Technology, Big Data and Artificial Intelligence (ICIBA), Chongqing, China, 15–17 May 2020; pp. 1255–1260. [Google Scholar]
- Cheng, J.; Wang, Y.; Li, M.; Ylä-Jääski, A.; Yu, K.; Ma, J. A New Trust Mechanism Based on Gravitation Model of Reputation Value in Social Network. In Proceedings of the 2010 3rd IEEE International Conference on Broadband Network and Multimedia Technology (IC-BNMT), Beijing, China, 26–28 October 2010; pp. 1035–1039. [Google Scholar]
- Kumar, A.S.; Singh, S. Detection of User Cluster with Suspicious Activity in Online Social Networking Sites. In Proceedings of the 2013 2nd International Conference on Advanced Computing, Networking and Security, Mangalore, India, 15–17 December 2013; pp. 220–225. [Google Scholar]
- Yang, Z.; Liu, X.-M.; Yang, L.; Wang, J.-X.; Ma, L.-R. A Trust Evaluation Mechanism Based on Certified Trust and Fuzzy-Derived Reputation. In Proceedings of the 2012 4th International Conference on Multimedia Information Networking and Security, Nanjing, China, 2–4 November 2012; pp. 934–938. [Google Scholar]
- Tian, L.-Q.; Lin, C.; Ni, Y. Evaluation of User Behavior Trust in Cloud Computing. In Proceedings of the 2010 International Conference on Computer Application and System Modeling (ICCASM 2010), Taiyuan, China, 22–24 October 2010; pp. V7-567–V7-572. [Google Scholar]
- Nahid, T.H.; Jui, F.A.; Shill, P.C. Protein Secondary Structure Prediction Using Graph Neural Network. In Proceedings of the 2021 5th International Conference on Electrical Information and Communication Technology (EICT), Khulna, Bangladesh, 17–19 December 2021; pp. 1–6. [Google Scholar]
- Ioannidis, V.N.; Marques, A.G.; Giannakis, G.B. Graph Neural Networks for Predicting Protein Functions. In Proceedings of the 2019 IEEE 8th International Workshop on Computational Advances in Multi-Sensor Adaptive Processing (CAMSAP), Le Gosier, Guadeloupe, 15–18 December 2019; pp. 221–225. [Google Scholar]
- Awasthi, A.K.; Garov, A.K.; Sharma, M.; Sinha, M. GNN Model Based on Node Classification Forecasting in Social Network. In Proceedings of the 2023 International Conference on Artificial Intelligence and Smart Communication (AISC), Greater Noida, India, 27–29 January 2023; pp. 1039–1043. [Google Scholar]
- Yao, W.; Guo, K.; Hou, Y.; Li, X. Hierarchical Structure-Feature Aware Graph Neural Network for Node Classification. IEEE Access 2022, 10, 36846–36855. [Google Scholar] [CrossRef]
- Liu, Y.; Yang, S.; Xu, Y.; Miao, C.; Wu, M.; Zhang, J. Contextualized Graph Attention Network for Recommendation with Item Knowledge Graph. IEEE Trans. Knowl. Data Eng. 2023, 35, 181–195. [Google Scholar] [CrossRef]
- Abdel Wahab, O.; Bentahar, J.; Otrok, H.; Mourad, A. A Survey on Trust and Reputation Models for Web Services: Single, Composite, and Communities. Decis. Support Syst. 2015, 74, 121–134. [Google Scholar] [CrossRef]
- Ahmed, U.; Raza, I.; Hussain, S.A. Trust Evaluation in Cross-Cloud Federation: Survey and Requirement Analysis. ACM Comput. Surv. 2020, 52, 19. [Google Scholar] [CrossRef]
- Jøsang, A.; Ismail, R.; Boyd, C. A Survey of Trust and Reputation Systems for Online Service Provision. Decis. Support Syst. 2007, 43, 618–644. [Google Scholar] [CrossRef]
- Yao, Y.; Tong, H.; Yan, X.; Xu, F.; Lu, J. MATRI: A Multi-Aspect and Transitive Trust Inference Model. In Proceedings of the 22nd International Conference on World Wide Web (WWW ‘13), Rio de Janeiro, Brazil, 13–17 May 2013; pp. 1467–1476. [Google Scholar]
- Liu, G.; Li, C.; Yang, Q. NeuralWalk: Trust Assessment in Online Social Networks with Neural Networks. In Proceedings of the IEEE INFOCOM 2019, Paris, France, 29 April–2 May 2019; pp. 1999–2007. [Google Scholar]
- Kipf, T.N.; Welling, M. Semi-Supervised Classification with Graph Convolutional Networks. arXiv 2016, arXiv:1609.02907. [Google Scholar]
- Veličković, P.; Cucurull, G.; Casanova, A.; Romero, A.; Liò, P.; Bengio, Y. Graph Attention Networks. arXiv 2017, arXiv:1710.10903. [Google Scholar]
- Hamilton, W.L.; Ying, R.; Leskovec, J. Inductive Representation Learning on Large Graphs. In Proceedings of the Advances in Neural Information Processing Systems 30 (NeurIPS 2017), Long Beach, CA, USA, 4–9 December 2017; pp. 1024–1034. [Google Scholar]
- Zhang, C.; Song, D.; Huang, C.; Swami, A.; Chawla, N.V. Heterogeneous Graph Neural Network. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (KDD ‘19), Anchorage, AK, USA, 4–8 August 2019; pp. 793–803. [Google Scholar]
- Schlichtkrull, M.; Kipf, T.N.; Bloem, P.; van den Berg, R.; Titov, I.; Welling, M. Modeling Relational Data with Graph Convolutional Networks. In Proceedings of the Extended Semantic Web Conference (ESWC 2018), Heraklion, Greece, 3–7 June 2018; pp. 593–607. [Google Scholar]
- Fu, X.; Zhang, J.; Meng, Z.; King, I. MAGNN: Metapath Aggregated Graph Neural Network for Heterogeneous Graph Embedding. In Proceedings of the Web Conference 2020 (WWW ‘20), Taipei, Taiwan, 20–24 April 2020; pp. 2331–2341. [Google Scholar]
- Wang, X.; Ji, H.; Shi, C.; Wang, B.; Ye, Y.; Cui, P.; Yu, P.S. Heterogeneous Graph Attention Network. In Proceedings of the World Wide Web Conference (WWW ‘19), San Francisco, CA, USA, 13–17 May 2019; pp. 2022–2032. [Google Scholar]
- Lin, W.; Gao, Z.; Li, B. Guardian: Evaluating Trust in Online Social Networks with Graph Convolutional Networks. In Proceedings of the IEEE INFOCOM 2020, Toronto, ON, Canada, 6–9 July 2020; pp. 914–923. [Google Scholar]
- Huo, C.; He, D.; Liang, C.; Jin, D.; Qiu, T.; Wu, L. TrustGNN: Graph Neural Network-Based Trust Evaluation via Learnable Propagative and Composable Nature. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 14205–14217. [Google Scholar] [CrossRef] [PubMed]
- Yun, S.; Jeong, M.; Kim, R.; Kang, J.; Kim, H.J. Graph Transformer Networks: Learning Meta-Path Graphs to Improve GNNs. Neural Netw. 2022, 153, 104–119. [Google Scholar] [CrossRef] [PubMed]
- Sun, Z.; Deng, Z.; Nie, J.; Tang, J. RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space. arXiv 2019, arXiv:1902.10197. [Google Scholar] [CrossRef]
- Liu, G.; Chen, Q.; Yang, Q.; Zhu, B.; Wang, H.; Wang, W. OpinionWalk: An Efficient Solution to Massive Trust Assessment in Online Social Networks. In Proceedings of the IEEE INFOCOM 2017, Atlanta, GA, USA, 1–4 May 2017; pp. 1–9. [Google Scholar]
- Abboud, R.; Ceylan, S.L.; Grohe, M.; Lukasiewicz, T. The Surprising Power of Graph Neural Networks with Random Node Initialization. In Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI 2021), Virtual, 21–26 August 2021; pp. 2112–2120. [Google Scholar]










| Notations | Explanations |
|---|---|
| , | The node/edge type |
| The weight of the edge from node i to node j | |
| The identity matrix | |
| A | The original adjacency matrix of the graph |
| The adjacency matrix of the graph with self-loop | |
| The adjacency matrix output by a k-th TrustGT layer | |
| The inverse of the degree matrix | |
| The weight of the edge from node i to node j | |
| The adjacency matrix under the meta-path | |
| The reconstructed meta-path adjacency matrix | |
| The 1 × 1 convolution parameter | |
| The edge weight/filter | |
| , | The parameters of neural networks |
| The hyperparameters of neural networks | |
| , | The original node features/intermediate node features/output features from GCN |
| The final node embedding vector of node and node | |
| The known trust classification value | |
| The predicted trust levels |
| Abbreviation | Description |
|---|---|
| 1-WL | 1-dimensional Weisfeiler–Lehman Graph Isomorphism Test |
| F1-score | A balanced measure of precision and recall |
| GAT | Graph Attention Networks |
| GCN | Graph Convolutional Network |
| GNNs | Graph Neural Networks |
| GraphSAGE | A model for homogeneous graphs |
| Guardian | A comparative experimental model based on GNN |
| HAN | Heterogeneous Graph Attention Networks |
| HGNNs | Heterogeneous Graph Neural Networks |
| MAE | Mean Absolute Error |
| MAGNN | A model for heterogeneous graphs |
| MATRI | A comparative experimental model based on machine learning |
| MLP | Multi-Layer Perceptron |
| NeuralWalk | A comparative experimental model based on machine learning |
| RGCN | Relational Graph Convolutional Networks |
| RNI | Random Node Initialization |
| RotatE | An innovative technique for feature fusion |
| TrustGNN | A comparative experimental model based on HAN |
| TrustGT | The key module for implementing soft selection |
| TrustGTN | Our proposed model |
| Methods | Advogato | |
|---|---|---|
| F1-Score | MAE | |
| TrustGTN | 75.0% | 0.079 |
| TrustGNN | 74.4% | 0.081 |
| Guardian | 73.0% | 0.087 |
| NeuralWalk | 74.0% | 0.082 |
| OpinionWalk | 63.3% | 0.232 |
| Matri | 65.0% | 0.141 |
| Methods | Training Set (%) | F1-Score | MAE |
|---|---|---|---|
| TrustGTN | 80% | 75.0%0.1% | 0.0790.001 |
| 60% | 73.0%0.1% | 0.0870.001 | |
| 40% | 70.8%0.1% | 0.0940.001 | |
| TrustGNN | 80% | 0.1% | 0.001 |
| 60% | 0.1% | 0.001 | |
| 40% | 0.1% | 0.001 | |
| Guardian | 80% | 0.1% | 0.001 |
| 60% | 0.1% | 0.001 | |
| 40% | 0.1% | 0.001 |
| Node | Edge | F1-Score | MAE |
|---|---|---|---|
| Random | Random | 75.0% | 0.079 |
| Random | One-hot | 73.5% | 0.084 |
| Node2vec | Random | 66.0% | 0.108 |
| Node2vec | One-hot | 65.8% | 0.109 |
| Node_Dim | 64 | 128 | 256 | 512 | 1024 | |
|---|---|---|---|---|---|---|
| Edge_Dim | ||||||
| 64 | 69.4% | 71.6% | 73.6% | 74.4% | 74.6% | |
| 128 | 70.4% | 72.6% | 74.1% | 74.8% | 74.7% | |
| 256 | 71.3% | 73.2% | 74.5% | 74.9% | 74.6% | |
| 512 | 71.8% | 73.4% | 74.6% | 75.0% | 74.6% | |
| 1024 | 71.9% | 73.6% | 74.7% | 74.9% | 74.6% | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Liu, X.; Yang, Z.; Chen, J.; Li, G. TrustGTN: A Social Network Trust Evaluation Method Based on Heterogeneous Graph Neural Network. Computers 2026, 15, 176. https://doi.org/10.3390/computers15030176
Liu X, Yang Z, Chen J, Li G. TrustGTN: A Social Network Trust Evaluation Method Based on Heterogeneous Graph Neural Network. Computers. 2026; 15(3):176. https://doi.org/10.3390/computers15030176
Chicago/Turabian StyleLiu, Xiao, Zai Yang, Jining Chen, and Gaoxiang Li. 2026. "TrustGTN: A Social Network Trust Evaluation Method Based on Heterogeneous Graph Neural Network" Computers 15, no. 3: 176. https://doi.org/10.3390/computers15030176
APA StyleLiu, X., Yang, Z., Chen, J., & Li, G. (2026). TrustGTN: A Social Network Trust Evaluation Method Based on Heterogeneous Graph Neural Network. Computers, 15(3), 176. https://doi.org/10.3390/computers15030176
