SIGformer: Sign-aware Graph Transformer for Recommendation
Sirui Chen, Jiawei Chen, Sheng Zhou, Bohao Wang, Shen Han, Chanfei Su, Yuqing Yuan, Can Wang
TL;DR
This work addresses the underutilization of negative feedback in graph-based recommendations by proposing SIGformer, a transformer-based model that operates on a signed graph to jointly exploit positive and negative signals. It introduces two novel sign-aware positional encodings—Sign-aware Spectral Encoding (SSE) and Sign-aware Path Encoding (SPE)—to integrate spectral structure and path patterns, enabling the transformer to fully leverage the signed graph. The model comprises an embedding module, a sign-aware transformer module, and a prediction module, with a random-walk sampling strategy and a BPR-style loss to train with both positive and negative feedback. Empirical results on five real-world datasets show SIGformer outperforms state-of-the-art baselines, with ablations confirming the usefulness of negative feedback and the proposed encodings, highlighting the practical impact for improving personalized recommendations in sign-rich data settings.
Abstract
In recommender systems, most graph-based methods focus on positive user feedback, while overlooking the valuable negative feedback. Integrating both positive and negative feedback to form a signed graph can lead to a more comprehensive understanding of user preferences. However, the existing efforts to incorporate both types of feedback are sparse and face two main limitations: 1) They process positive and negative feedback separately, which fails to holistically leverage the collaborative information within the signed graph; 2) They rely on MLPs or GNNs for information extraction from negative feedback, which may not be effective. To overcome these limitations, we introduce SIGformer, a new method that employs the transformer architecture to sign-aware graph-based recommendation. SIGformer incorporates two innovative positional encodings that capture the spectral properties and path patterns of the signed graph, enabling the full exploitation of the entire graph. Our extensive experiments across five real-world datasets demonstrate the superiority of SIGformer over state-of-the-art methods. The code is available at https://github.com/StupidThree/SIGformer.
