Towards Temporal Edge Regression: A Case Study on Agriculture Trade Between Nations

Lekang Jiang, Caiqi Zhang, Farimah Poursafaei, Shenyang HuangarXiv 2023

TL;DR

This paper tackles the under-explored problem of temporal edge regression on dynamic graphs, specifically predicting agricultural trade values between nations. They find that surprisingly simple baselines often outperform complex GNNs, highlighting a research gap, and that the Temporal Graph Network (TGN) shows the most promise among the evaluated GNNs.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have excelled at tasks like node classification and link prediction on dynamic graphs. However, predicting continuous values associated with edges over time (temporal edge regression) remains a less explored area, despite its real-world importance, such as forecasting trade volumes. Existing GNN research often focuses on binary outcomes (e.g., link existence), leaving a gap in understanding how well these models can handle continuous value prediction in evolving graph structures. This paper aims to bridge this gap by applying and evaluating both static and dynamic GNNs on the challenging task of predicting food and agriculture trade values between nations.

Methods

The authors propose three straightforward yet strong baselines to benchmark against GNN performance:

  • Mean/Most: Predicts all edges using the average value or the most frequent class from the training data.
  • Persistence Forecast: Predicts an edge's future value based on its last observed value.
  • Historical Average: Predicts an edge's future value based on the average of all its past observed values.

For GNNs, they evaluate:

  • Static GNN: A Graph Convolutional Network (GCN) adapted for temporal data by collapsing time steps into a single static graph.
  • Dynamic GNNs: Three models designed for dynamic graphs:
  • JODIE: Uses coupled RNNs for user-item interaction prediction.
  • DyRep: Employs a temporal attention mechanism for updating node representations.
  • TGN (Temporal Graph Network): A more complex model incorporating memory modules and temporal attention to capture evolving graph dynamics.

They also explore three normalization strategies (Min-Max, Log, and a novel Node Degree Normalization) and three training strategies (positive edges only, all node pairs, and negative sampling) to optimize performance.

Datasets

The primary dataset used is the UN Trade dataset, which contains statistics on food and agriculture imports/exports between 181 nations from 1986 to 2017. This dataset represents a weighted, directed graph with time-varying edge weights. The authors note that this dataset was originally introduced by Poursafaei et al. [20] to address the need for more challenging dynamic graph datasets.

Key Insights and Ideas

  • Baselines are surprisingly strong: Simple methods like Persistence Forecast and Historical Average often outperform complex GNNs, especially for edge regression. This suggests that the inherent stability of trade data makes it predictable with simpler models, and current GNNs might not be effectively capturing the nuances of this specific task.
  • TGN shows promise: Among the dynamic GNNs, TGN consistently performs better, indicating that its temporal attention and memory mechanisms are more suitable for modeling the evolving dynamics of trade relationships.
  • Negative sampling is crucial but tricky: The proportion of negative edges in training significantly impacts test performance. While negative sampling can reduce overall error, it can also hurt the ability to predict positive edges accurately. Finding the right balance is key.
  • Log normalization is preferred: Log normalization appears to be more suitable for this task than Min-Max or Node Degree Normalization, likely by creating a more uniform data distribution that aids GNN training.
  • Static GCN struggles with temporal data: As expected, the static GCN model adapted for temporal data performs poorly compared to dynamic GNNs, underscoring the importance of models designed for evolving graph structures.

Key Results

  • Baselines outperform GNNs: In many scenarios, baselines achieved lower MSE losses than GNNs. For instance, Persistence Forecast was the best baseline in 4 out of 6 cases, and Historical Average achieved the best Overall MSE loss with min-max normalization.
  • TGN leads among GNNs: TGN trained with negative sampling achieved the best Overall MSE loss (2.959) across all GNNs. When trained on positive edges, TGN also achieved the best Positive MSE loss.
  • Trade data stability: The strong performance of Persistence Forecast is attributed to the generally stable nature of agricultural trade values over short periods.
  • Classification vs. Regression: The paper also explores a temporal edge classification task, where GNNs show more competitive results, with TGN outperforming JODIE and DyRep. However, the classification task is noted as being inherently easier than regression.
  • Accuracy improvements: For classification, TGN trained with negative sampling achieved an overall accuracy of 50.37%, a significant improvement over other GNNs.

Limitations and Future Work

  • Hyperparameter Optimization: The authors acknowledge that they used default hyper-parameters and did not perform extensive searches, which could have further optimized GNN performance.
  • Limited Model Exploration: Only a few GNN architectures were evaluated. Future work could explore other advanced temporal GNNs.
  • Dataset Specificity: The study is limited to the UN Trade dataset. Generalizing these findings to other dynamic graph datasets is an open question.
  • Dataset Time Span: The UN Trade dataset covers about 30 years, which might be insufficient for complex models to fully grasp long-term patterns.
  • Negative Sampling Balance: Further research is needed to determine the optimal proportion of negative edges for training to achieve a balanced performance between predicting positive and negative edges.
  • Normalization Exploration: Encouraging researchers to explore other normalization methods beyond the three proposed is suggested.

Summary updated

BibTeX
@misc{jiang2023towards,
  author = {Lekang Jiang and Caiqi Zhang and Farimah Poursafaei and Shenyang Huang},
  title = {{Towards Temporal Edge Regression: A Case Study on Agriculture Trade Between Nations}},
  year = {2023},
  eprint = {2308.07883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.07883},
}
Figure