Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Graph Neural Networks for Social Recommendation

GraphRec models both social and user-item graphs to recommend items

  • Problem Social recommenders must merge a social graph with a user-item graph whose edges carry opinions. Earlier GNN recommenders ignored the social graph.
  • Method GraphRec builds a user factor from item-side and social-side aggregation, using attention to weight items and friends by strength. It then predicts ratings with an MLP.
  • Results On Ciao with 60% training data, GraphRec reached MAE 0.7540 and RMSE 1.0093, the lowest of nine methods compared.

Why social recommendation needs a graph view

Social recommendation involves two linked graphs: a social graph of relations between users, and a user-item graph of interactions, in which every user takes part in both. Graph neural networks suit this setting because they update each node by aggregating information from its local neighbourhood, so node features and graph topology are used together.

The first difficulty is that the two graphs describe the same users from different angles, so a model has to merge them into one user representation rather than treat them separately. The second is that a user-item edge carries an opinion as well as the fact of an interaction, and a model that keeps only the interaction loses that signal.

The third is that social ties differ in strength, and giving every friend the same weight can reduce recommendation quality.

Earlier social recommenders such as SoRec and TrustMF tie users together through shared latent factors in matrix factorization. Neural approaches to social recommendation were rare until recently, and the GNN-based recommenders that appeared, such as GCMC and PinSage, worked on the user-item graph without the social graph.

Building the user representation from two graphs

Item aggregation forms an item-space factor h^I_i for user u_i from the items in C(i), each represented by an opinion-aware vector x_ia. Each x_ia is an MLP output over the concatenation of the item embedding q_a and the opinion embedding e_r for the rating r that u_i gave to v_a. The aggregation has the form \\( h^I_i = \\sigma(W \\cdot \\mathrm{Aggregate}_{items}(\\{x_{ia}\\}) + b) \\), with sigma a ReLU activation and W and b a weight matrix and bias.

A plain mean over the x_ia gives every interaction the same weight, which the authors describe as a linear approximation of a localized spectral convolution. The authors replace the uniform weight with an attention weight alpha_ia for each (v_a, u_i) pair. A two-layer attention network takes x_ia and the user embedding p_i as input, and its scores are normalized with a softmax over C(i).

Social aggregation forms the social-space factor h^S_i from the item-space factors h^I_o of the neighbours o in N(i), so the social graph shapes a user's representation through the item-side information of friends. Attention over neighbours uses the same two-layer form, with h^I_o and p_i as input, giving scores beta*_io and weights beta_io = exp(beta*_io) / sum over o in N(i) of exp(beta*_io).

The authors read beta_io as the strength of the tie between u_i and u_o, which lets strong friends count more than weak ones.

The two factors are concatenated as c1 = [h^I_i concatenated with h^S_i] and passed through further hidden layers, ending with h_i = sigma(W_l c_{l-1} + b_l). The result is the final user latent factor h_i, which carries information from both the interaction graph and the social graph.

Item modeling and the rating predictor

For item v_j, user aggregation draws on the users in B(j) who rated it. Each rater contributes an opinion-aware vector f_jt = g_u([p_t concatenated with e_r]), which is an MLP over the user embedding and the opinion embedding. The same item can be rated differently by different users, and the authors use this variation to capture how the item is perceived.

The item factor z_j is a weighted sum of the f_jt followed by a nonlinearity, z_j = sigma(W sum over t in B(j) of mu_jt f_jt + b). Each weight mu_jt comes from a two-layer attention network that takes f_jt and the item embedding q_j, and is normalized with a softmax over B(j).

For rating prediction, h_i and z_j are concatenated and fed into an MLP, and the predicted rating is r'_ij = w^T g_{l-1}. The rating prediction is the only output of the model, and the same network is applied to any user-item pair at prediction time.

Training and evaluation setup

The model minimizes the squared error over the observed ratings, Loss = 1/(2|O|) times the sum over observed (i, j) of (r'_ij minus r_ij) squared, where |O| is the number of observed ratings. RMSprop is used instead of plain SGD, and each step uses one randomly chosen training instance. The user embeddings, item embeddings and opinion embeddings are randomly initialized and learned jointly during training, rather than using one-hot vectors.

Dropout is applied during training to reduce overfitting, and it is turned off at test time so the full network makes predictions. The opinion embedding matrix has one vector per rating level, so a 5-star scale gives five vectors for the scores 1 to 5.

The experiments use Ciao and Epinions, drawn from two consumer review sites whose users rate items and add friends. Ciao has 7,317 users and 283,319 ratings, and Epinions has 18,088 users and 764,352 ratings, with ratings on a scale from 1 to 5.

Each dataset is split with x% for training, and (1 minus x%) divided by 2 each for validation and testing, with x set to 80% or 60%. Training stops early when the validation RMSE has not improved for 5 successive epochs.

MAE and RMSE measure predictive accuracy, and smaller values mean better accuracy. Nine methods are compared: PMF, SoRec, SoReg, SocialMF, TrustMF, NeuMF, DeepSoR and GCMC+SN, together with GraphRec. NeuMF was originally built for ranking, and the authors changed its loss to squared loss for rating prediction. GCMC+SN uses node2vec embeddings of the social connections as user side information, because the raw social matrix is sparse and high-dimensional.

Accuracy against the baselines

In all four settings, Ciao and Epinions at 60% and at 80% training data, GraphRec has the lowest MAE and the lowest RMSE among the nine methods in Table 3.

On Ciao with 60% training data, GraphRec reached MAE 0.7540 and RMSE 1.0093. The closest baseline on RMSE was GCMC+SN at 1.0221, and on MAE it was TrustMF at 0.7681. On Ciao with 80% training data, GraphRec reached MAE 0.7387 and RMSE 0.9794, against 0.7526 MAE and 0.9931 RMSE for GCMC+SN, the closest baseline on RMSE.

On Epinions with 80% training data, GraphRec reached MAE 0.8168 and RMSE 1.0631, against 0.8383 MAE for DeepSoR and 1.0711 RMSE for GCMC+SN. On Epinions with 60% training data, GraphRec reached MAE 0.8441 and RMSE 1.0878, against 0.8520 MAE for DeepSoR and 1.1004 RMSE for GCMC+SN.

Among the baselines, the social matrix factorization methods beat PMF, which uses only ratings, and the neural methods DeepSoR and GCMC+SN beat those matrix factorization methods in most settings. The authors attribute GraphRec's advantage over DeepSoR and GCMC+SN to its components for combining ratings and social information, and to the way it models both interactions and opinions in the user-item graph.

These comparisons cover only the two datasets, Ciao and Epinions, and only the 60% and 80% training splits.

What removing each component changes

GraphRec-SN drops the social-space user latent factor, so the user factor comes from item aggregation alone. GraphRec-Opinion removes the opinion embedding from the opinion-aware representations used in item and user modeling.

GraphRec-SN performs worse than the full GraphRec, which the authors take as evidence that the social-space factor helps learn user latent factors.

Removing the opinions degrades rating prediction clearly. On average, the relative reduction in RMSE is 3.50% on Ciao and 2.64% on Epinions, and in MAE it is 5.84% and 5.02%. The authors read this as showing that opinions on interactions carry information that improves both user and item latent factors.

The attention study compares GraphRec with GraphRec-alpha, GraphRec-beta, GraphRec-alpha and beta together, and GraphRec-mu. Each one swaps the attention in one aggregation step for a mean-based aggregator. GraphRec-alpha and GraphRec-mu, which remove the item attention and the user attention, perform worse than GraphRec. Removing the social attention in GraphRec-beta lowers performance significantly, which the authors take as support for treating social friends unequally.

The attention results appear as plotted curves in Figure 4, and the text does not give their numerical values, so the size of each drop is not stated in numbers here.

Sensitivity to the embedding size

The embedding size was tested over 8, 16, 32, 64, 128 and 256 on Ciao and Epinions. Performance first improves as the embedding size grows, and the gain from 8 to 64 is significant according to the authors. At embedding size 256, GraphRec's performance degrades relative to size 64.

The authors note that a large embedding carries more representational power but raises the model's complexity, so the size must balance accuracy against cost.

Limitations

Only the social graph is brought into the model. Rich attributes of users and items are not used, although the authors note such attributes are common in real systems. Ratings and social information are both treated as static, and the authors plan dynamic graph neural networks as future work.

Evaluation covers two datasets, Ciao and Epinions, with 60% and 80% training splits and a 5-epoch early stopping rule. The baselines' hyperparameters follow their original papers and were then tuned, and the GCMC+SN baseline uses node2vec embeddings rather than the raw social matrix.

Paper info

Authors
Fan, Wenqi, Ma, Yao, Li, Qing, He, Yuan, Zhao, Eric, Tang, Jiliang, Yin, Dawei
Venue
arXiv · Preprint
First published
2019-2-19
Added
2026-11-12
Updated
2019-11-23
Version
v2
arXiv
1902.07243
Category
cs.IR · cs.LG · cs.SI
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Fan, Wenqi, Ma, Yao, Li, Qing, He, Yuan, Zhao, Eric, Tang, Jiliang, Yin, Dawei (2019). Graph Neural Networks for Social Recommendation. arXiv:1902.07243v2. https://arxiv.org/abs/1902.07243v2

BibTeX
@misc{wenqi2019graph,
  title = {{Graph Neural Networks for Social Recommendation}},
  author = {Fan, Wenqi and Ma, Yao and Li, Qing and He, Yuan and Zhao, Eric and Tang, Jiliang and Yin, Dawei},
  year = {2019},
  eprint = {1902.07243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.07243v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up