Abstract
Temporal interaction networks are formed in many fields, such as e-commerce, online education, and social network services. Temporal interaction network embedding can effectively mine the information in these networks, which is of great significance for recommendation and behavioral analysis. Usually, the occurrence of an interaction affects not only the nodes directly involved but also their neighbors. However, existing methods often only use historical interaction relations to mine neighbor nodes, ignoring other relation types. In this paper, we propose a multi-relation aware temporal interaction network embedding method (MRATE). Based on historical interactions, MRATE mines historical interaction relations, common interaction relations, and interaction sequence similarity relations. The hierarchical multi-relation aware aggregation method in MRATE employs graph attention networks (GATs) to aggregate impacts within the same relation type and then combines them across multiple types through a self-attention mechanism. Experiments on three public datasets demonstrate the effectiveness of MRATE over state-of-the-art baselines.
Introduction
Temporal interaction networks (TINs) are ubiquitous in digital environments, capturing the dynamic flow of interactions between users and items. To provide accurate recommendations, we must "embed" these entities into a mathematical space that reflects their evolving states.
A major challenge is that most existing methods are "myopic," focusing primarily on direct historical interactions. For example, if User A buys Item B, they are linked. However, this ignores latent signals: two users might share a common interest in niche items without ever interacting directly, or their behavioral sequences might follow nearly identical patterns. MRATE addresses these gaps by mining multi-relational signals—historical, common, and sequence-based—to create more holistic node representations.
Methodology
MRATE introduces a comprehensive framework for building and aggregating node information through three main stages: local relation graph construction, hierarchical aggregation, and recurrent embedding updates.
Local Relation Graph Construction
For every interaction, MRATE constructs a local graph using three distinct relation types:
- Historical Interaction: Direct past interactions between the user and item.
- Common Interaction: Connections between nodes that have interacted with the same third-party node within a specific time window (e.g., two users who bought the same book).
- Interaction Sequence Similarity: Behavioral patterns are treated as "documents" using Doc2Vec, and nodes with high cosine similarity in their sequences are connected.
Hierarchical Multi-Relation Aware Aggregation
This core component processes the multi-relational graph through a two-step attention mechanism to distinguish between the importance of individual neighbors and the relevance of different relationship types.
- Intra-relation Aggregation: Graph Attention Networks (GATs) aggregate information from neighbors within each specific relation type, learning which specific neighbors are most influential.
- Inter-relation Aggregation: A self-attention mechanism combines the outputs from the different relation types, effectively learning which type of relationship is most important for a given context.
Embedding Update and Scalability
Two specialized Recurrent Neural Networks (RNNs)—one for users and one for items—update the node embeddings by integrating the previous embedding, the new neighbor-aggregated embedding, and the time interval since the last interaction. To handle large-scale data, the authors developed the t-n-Batch algorithm, which allows for parallel processing while strictly maintaining temporal dependencies.
Experimental Evaluation
The model was evaluated on three public datasets: Reddit (posts), LastFM (music), and Wikipedia (edits). MRATE consistently outperformed state-of-the-art baselines like JODIE and DGNN:
- Reddit: Achieved an MRR (Mean Reciprocal Rank) of 0.723, significantly higher than JODIE (0.542) and DGNN (0.614).
- Wikipedia: Reached a Recall@10 of 0.792, outperforming the next best model (DGNN at 0.732).
Ablation studies revealed a clear hierarchy in relation importance: Common Interaction > Historical Interaction > Sequence Similarity. This suggests that collaborative-filtering-style signals (common interactions) are vital even in purely temporal models.
Conclusion
MRATE demonstrates that looking beyond direct history to include indirect and behavioral relations significantly improves temporal interaction network embedding. By using a hierarchical attention mechanism, the model effectively captures the most relevant signals for predicting future interactions. Future work may involve exploring higher-order neighbors and mining additional implicit relations from metadata to further enrich the embeddings.
Summary updated