Abstract
This paper presents a novel approach to representation learning in recommender systems by integrating generative self-supervised learning with graph transformer architecture. We highlight the importance of high-quality data augmentation with relevant self-supervised pretext tasks for improving performance. Towards this end, we propose a new approach that automates the self-supervision augmentation process through a rationale-aware generative SSL that distills informative user-item interaction patterns. The proposed recommender with Graph TransFormer (GFormer) offers parameterized collaborative rationale discovery for selective augmentation while preserving global-aware user-item relationships. In GFormer, we allow the rationale-aware SSL to inspire graph collaborative filtering with task-adaptive invariant rationalization in graph transformer. The experimental results reveal that our GFormer has the capability to consistently improve the performance over baselines on different datasets. Several in-depth experiments further investigate the invariant rationale-aware augmentation from various aspects. The source code for this work is publicly available at: https://github.com/HKUDS/GFormer.
Introduction
Modern recommender systems primarily rely on learning high-quality representations from user-item interaction graphs. However, these systems frequently encounter the challenge of label scarcity, where the observed interactions represent only a fraction of potential user preferences. To mitigate this, Self-Supervised Learning (SSL)—specifically Graph Contrastive Learning (GCL)—has become a popular paradigm.
Despite their success, standard GCL methods rely on heuristic-based data augmentation, such as randomly dropping nodes or edges to create alternative "views" of the graph. This approach suffers from three primary flaws: the potential loss of crucial information for long-tail items, the accidental preservation of noise (such as popularity bias or accidental clicks), and the requirement for tedious manual hyperparameter tuning. This paper introduces GFormer, a framework that moves beyond random augmentation by utilizing a rationale-aware generative SSL approach.
Methodology
GFormer integrates a Graph Transformer architecture with a generative SSL task to automate the discovery of informative interaction patterns, which we term "collaborative rationales."
1. Global Topology Information Injection
Standard Graph Neural Networks (GNNs) often struggle to capture long-range dependencies due to their local message-passing nature. GFormer addresses this by using "anchor nodes" to inject global topology information. By calculating the distance between every user or item and these anchors, the model creates positional encodings that provide a "bird's-eye view" of the graph structure, capturing high-order dependencies essential for accurate recommendation.
2. Collaborative Rationale Discovery
Rather than treating the interaction graph as a static entity, GFormer employs a Graph Transformer to assign probabilities to every edge. The model is trained to distinguish between "rationales"—edges that truly represent underlying user preference—and "complements," which may represent noise or redundant data. This process allows the model to focus on the most invariant and meaningful patterns in the data.
3. Rationale-Aware Masked Autoencoding (MAE)
In a departure from traditional contrastive learning, GFormer utilizes a generative Masked Autoencoding task. Instead of random masking, the framework specifically masks the identified rationale edges and tasks the model with reconstructing them. This forces the model to learn the underlying logic of collaborative filtering rather than simply memorizing the graph structure.
4. Complement Independence Regularization
To further refine the representation, GFormer implements a contrastive loss that pushes the representations of "rationales" and "complements" apart. This regularization ensures that the model effectively denoises the data by preventing the embedding space from being influenced by redundant or noisy patterns.
Experimental Evaluation
The performance of GFormer was evaluated on three real-world benchmarks: Yelp (business venues), Ifashion (fashion outfits), and LastFM (music interactions).
Key Results
- State-of-the-Art Accuracy: GFormer consistently outperformed top-tier baselines, including SGL, HCCF, and NCL. For instance, on the Yelp dataset, GFormer achieved a Recall@20 of 0.0878, a significant improvement over SGL’s 0.0815.
- Efficiency and Convergence: The model demonstrates superior convergence, reaching optimal performance in fewer than 30 epochs. This efficiency is attributed to the high-quality supervision signals generated by the rationale-aware masking process.
- Robustness to Noise: In stress tests where 50% artificial noise (random edges) was added to the graph, GFormer’s performance remained remarkably stable compared to LightGCN or SGL, proving its ability to filter out "misclick" behaviors.
- Interpretability: Case studies revealed that the model successfully assigned high correlation scores to items that aligned with actual user satisfaction in reviews, confirming that the discovered "rationales" have real-world significance.
Conclusion and Future Work
GFormer represents a significant step forward in graph-based recommendation by replacing heuristic augmentations with task-adaptive, rationale-aware generative learning. By treating rationales as invariants, the model achieves better generalization and robustness.
While the model introduces some computational overhead due to the Graph Transformer and anchor-node calculations, the gains in accuracy and convergence speed are substantial. Future research will explore extending this rationale-aware framework to more complex scenarios, such as social-aware recommendations and the integration of external knowledge graphs to further enrich the discovery of user intent.
Summary updated