Abstract
Dynamic recommendation systems often struggle with temporal generalization, where patterns learned from historical data fail to align with shifting user interests. TarDGR (Task-Aware Retrieval Augmentation for Dynamic Recommendation) addresses this by introducing an automated mechanism to retrieve historical subgraphs that are semantically relevant to specific recommendation tasks. By moving beyond simple structural similarity, TarDGR effectively bridges the gap between historical knowledge and evolving user-item interactions.
Introduction: The Challenge of Temporal Generalization
Dynamic recommendation systems typically employ Graph Neural Networks (GNNs) to model evolving user interests. However, these models frequently encounter temporal generalization issues: the data distribution during pre-training often differs significantly from the distribution during fine-tuning or inference.
While Retrieval-Augmented Generation (RAG) has been proposed to mitigate this by incorporating external context, existing methods primarily rely on structural or feature similarity. This often leads to a "semantic mismatch," where structurally similar historical subgraphs contain information that is irrelevant or even harmful to the current recommendation task. TarDGR solves this by identifying which historical data is truly beneficial for the current task without requiring manual labeling.
Methodology: The TarDGR Framework
The TarDGR framework consists of three integrated stages designed to automate the identification and utilization of task-relevant knowledge.
1. Task-Aware Evaluation Mechanism
To avoid manual labeling, the authors developed an automated "labeling" system. It evaluates candidate historical subgraphs by fusing them with a query subgraph. If the fusion improves the similarity between the query and known positive samples in the embedding space, the subgraph is labeled "beneficial." Conversely, if it decreases similarity, it is labeled "harmful." This process generates a task-specific dataset ($D_{aware}$) autonomously.
2. Graph Transformer-based Task-Aware Model ($R_\theta$)
This model predicts the relevance of candidate subgraphs. It employs a dual-encoder architecture:
- Subgraph Semantic Encoder: Utilizes a pre-trained dynamic GNN to capture node representations.
- Subgraph Structure Encoder: Uses a Transformer architecture to model the connectivity patterns within the subgraph.
3. Bi-Level Supervised Correlation Loss (BiSCL)
The model is trained using a dual loss function. Magnitude Fitting ensures the predicted relevance score aligns with the calculated benefit, while Ordinal Contrast ensures the model correctly ranks more beneficial subgraphs above less beneficial ones.
Experimental Evaluation
TarDGR was evaluated on three large-scale datasets: Taobao (daily snapshots), Koubei (weekly snapshots), and Amazon (weekly snapshots). To simulate real-world temporal shifts, the early portions of the datasets were used for pre-training, while the latter portions were reserved for fine-tuning and evaluation.
Key Results
TarDGR consistently outperformed state-of-the-art baselines, including LightGCN and RAGRAPH.
- Amazon: Achieved a 16.6% improvement in nDCG and a 14.5% improvement in Recall compared to PRODIGY.
- Koubei: Outperformed RAGRAPH by approximately 6.5% in Recall.
- Adaptability: The model showed the most significant gains during the early stages of fine-tuning, indicating high efficiency in adapting to new temporal distributions.
Insights and Future Directions
A critical insight from this work is the existence of "task-harmful" subgraphs. Standard RAG methods often fail because they treat all similar subgraphs as equally useful. TarDGR's ability to filter out noise through task-aware retrieval is its primary strength. Ablation studies further revealed that semantic information is more critical than structural information for these tasks.
Future work may involve reducing the computational overhead of the multi-stage retrieval process and extending the task-aware objective to other graph-based domains like social network link prediction or knowledge graph completion.
Summary updated