TL;DR
This paper introduces the Relational Graph Perceiver (RGP), a novel graph transformer architecture that effectively integrates both the structural relationships and temporal dynamics of complex relational data. RGP achieves state-of-the-art performance across diverse benchmarks and enables efficient multi-task learning, making it a scalable solution for real-world relational deep learning challenges.
What Problem Does This Paper Address?
Many real-world domains, like healthcare, finance, and e-commerce, are characterized by relational data that evolves over time. This data involves complex interactions between various entities (e.g., patients and doctors, users and products) and exhibits both long-range structural dependencies and temporal dynamics. Existing graph-based deep learning models often struggle with this complexity. They tend to prioritize structural information, treating temporal aspects as mere constraints rather than active signals for learning. Furthermore, most models are designed for single-task prediction, requiring separate training for each task. This limits their applicability and scalability for the diverse predictive needs in relational data analysis.
Methods
The authors propose the Relational Graph Perceiver (RGP), a graph transformer architecture built upon three key components:
- Temporal Subgraph Sampler: This novel component goes beyond traditional structural neighborhood sampling. It actively retrieves nodes that are temporally proximate to a target event, even if they are structurally distant. This allows the model to capture context from events that co-occur in time but are not directly linked in the graph, such as market shifts affecting multiple unrelated customer accounts.
- Relational Graph Perceiver (RGP) Encoder: This core component uses a Perceiver-style architecture with a cross-attention-based latent bottleneck. It efficiently compresses the rich structural and temporal context from the sampled subgraph into a fixed-size set of latent tokens. This approach avoids the quadratic computational cost of full self-attention in transformers, enabling scalability. The encoder uses parallel cross-attention branches for structural and temporal contexts, fusing them into a unified latent representation.
- Flexible Multi-Task Decoder: RGP features a decoder that supports joint training across multiple tasks with potentially disjoint label spaces. It uses task-conditioned queries and a similarity-based objective over text-encoded labels, eliminating the need for task-specific output heads. This significantly improves parameter efficiency and scalability for multi-task learning.
Datasets
The authors evaluate RGP on three diverse benchmarks:
- RelBench [11]: A benchmark for relational deep learning with seven datasets derived from structured domains like e-commerce and social networks, focusing on binary node classification tasks.
- CTU [12]: A curated repository of heterogeneous graph datasets from insurance, law, and retail, used to test RGP on multi-class classification tasks.
- SALT [13]: A real-world dataset from an Enterprise Resource Planning (ERP) system, featuring ranking-based entity classification tasks.
Key Insights and Ideas
- Temporal proximity is a powerful signal: The temporal subgraph sampler demonstrates that considering events close in time, regardless of direct structural links, significantly enhances predictive performance, especially in scenarios with cold-start entities.
- Latent bottleneck for scalability: The Perceiver-style cross-attention bottleneck is crucial for making graph transformers computationally feasible for large relational graphs, offering a favorable trade-off between expressivity and efficiency.
- Unified multi-task learning: The flexible decoder allows for training a single model across diverse tasks without task-specific heads, paving the way for more efficient and scalable foundation models in relational domains.
- Addressing limitations of existing methods: RGP effectively tackles the limitations of traditional GNNs (oversquashing, limited long-range reasoning) and standard Graph Transformers (computational cost, lack of temporal integration).
Key Results
- State-of-the-art performance: RGP achieves state-of-the-art results on the RelBench benchmark, outperforming the previous best method, RelGT, on 10 out of 12 tasks.
- Significant gains: RGP shows notable improvements, for example, a 3.39% gain on the
driver-top3task and a 5.22% gain on thedriver-dnftask in RelBench. - Competitive on diverse tasks: RGP also performs strongly on CTU (outperforming DBFormer by up to 8.19% on the
dallasdataset) and SALT (outperforming baselines on three out of four tasks). - Efficiency: The cross-attention bottleneck makes RGP 2-6x more compute-efficient than full self-attention models.
- Effective multi-task learning: RGP maintains comparable or improved performance under multi-task training compared to single-task training across most datasets.
Limitations and Future Work
- Task imbalance in multi-task learning: The paper notes that severe task imbalance in datasets like
rel-f1can lead to degraded performance in the multi-task setting due to potential underfitting of smaller tasks. This suggests that careful dataset balancing or task weighting strategies might be needed for optimal multi-task performance. - Hyperparameter tuning: While RGP uses a controlled hyperparameter setup, the number of latent tokens and Perceiver layers are still tunable, indicating that some level of tuning is required for optimal performance on new datasets.
- Future work: The authors position RGP as a strong candidate for large-scale foundation models in relational domains, implying future work could involve scaling RGP to even larger datasets and exploring its application in more complex, real-world scenarios. The flexibility of the decoder also opens doors for further research into novel multi-task learning strategies.
Summary updated