Gaia: Graph Neural Network with Temporal Shift aware Attention for Gross Merchandise Value Forecast in E-commerce

Borui Ye, Shuo Yang, Binbin Hu, Zhiqiang Zhang, Youqiang He, Kai Huang, Jun Zhou, Yanming Fang

Introduction

Accurately forecasting Gross Merchandise Value (GMV) is a cornerstone of modern e-commerce operations. For platforms like Alipay, these forecasts drive critical decisions regarding inventory management, marketing resource allocation, and financial planning. However, traditional time-series forecasting models often struggle with two primary phenomena: temporal deficiency and temporal shift.

Temporal deficiency occurs when sellers—particularly new ones—lack the historical data necessary to establish a reliable baseline for individual forecasting. Temporal shift refers to the dynamic nature of sales patterns, which include intra-seller shifts (seasonal cycles) and inter-seller shifts (ripples in the supply chain). For instance, a surge in raw material orders for a supplier often acts as a leading indicator for retail sales months later. This paper introduces Gaia, a novel Graph Neural Network (GNN) framework designed to address these challenges by leveraging the interconnected nature of the e-commerce ecosystem.

Methodology

The Gaia architecture is designed to transform a seller's neighborhood into a predictive asset through three integrated layers:

1. Feature Fusion Layer (FFL)

The FFL serves as the entry point, projecting heterogeneous data sources into a unified embedding space. This includes raw GMV sequences, auxiliary temporal features (such as holiday schedules), and static features (industry category and geographic location).

2. Temporal Embedding Layer (TEL)

To capture the nuances of time-series data without the computational bottlenecks of standard Recurrent Neural Networks (RNNs), Gaia employs multi-scale 1D temporal convolutions. By utilizing varying kernel sizes, the TEL can simultaneously extract short-term fluctuations and long-term seasonal patterns while effectively denoising the input signal.

3. Inter and Intra Temporal shift Aware GCN (ITA-GCN)

The core innovation of Gaia is the ITA-GCN, which introduces a Convolutional Attention Unit (CAU). Standard attention mechanisms typically compare individual data points, which can be sensitive to noise in volatile e-commerce data. In contrast, the CAU uses convolutions to compare the "shape" of local time-series segments. This allows the model to identify when a neighbor's past trend matches a target seller's current trend, effectively "learning" the specific time-lag or lead-time between connected businesses.

Experimental Evaluation

Dataset and Graph Construction

The researchers evaluated Gaia using a massive real-world dataset from Alipay, encompassing approximately 3 million shops and 10 million edges. The graph structure was defined by two primary relationship types:

  • Supply Chain: Direct buyer-seller transactions.
  • Shared Ownership: Businesses linked by common shareholders, which often share marketing strategies and seasonal trends.

Performance Metrics

Gaia was compared against nine baseline methods, ranging from classical statistical models like ARIMA to state-of-the-art spatio-temporal GNNs such as MTGNN. Across three distinct test periods (October, November, and December), Gaia consistently achieved the lowest error rates. In the December dataset, Gaia reached a Mean Absolute Percentage Error (MAPE) of 0.0771, significantly outperforming the strongest baseline, MTGNN, which recorded a MAPE of 0.0871.

Key Insights

Addressing Data Sparsity

One of the most significant findings was Gaia's performance regarding "New Shop Groups" (sellers with fewer than 10 months of data). For these entities, Gaia provided a performance boost of over 200% in Mean Absolute Error (MAE) compared to non-graph models. This demonstrates that the graph structure allows the model to "borrow" historical context from established neighbors to fill in the gaps for newer participants.

Shape-Based Trend Matching

By focusing on the "shape" of trends rather than just absolute values, the CAU enables the model to handle magnitude differences. A large-scale supplier and a small retailer may have vastly different sales volumes, but their directional shifts remain highly correlated. Gaia’s ability to recognize these shifted patterns is vital for capturing supply chain ripples.

Production Impact

Gaia was deployed in a simulated online environment at Alipay, where it demonstrated a 29.1% improvement in MAPE over the previous production model, LogTrans. Furthermore, the model proved highly efficient, capable of generating predictions for 2 million sellers in approximately 10 minutes, with inference time scaling linearly with the number of clients.

Conclusion and Future Work

Gaia represents a significant advancement in e-commerce GMV forecasting by explicitly modeling the temporal shifts inherent in supply chains. While the current model treats the graph as homogeneous, future iterations may explore Heterogeneous GNNs to further refine how different relationship types (e.g., ownership vs. transaction) influence sales. Additionally, incorporating dynamic graph structures could help the model adapt to the rapidly changing relationships between businesses in a global marketplace.

Summary updated

BibTeX
@inproceedings{ye2022gaia,
  author = {Borui Ye and Shuo Yang and Binbin Hu and Zhiqiang Zhang and Youqiang He and Kai Huang and Jun Zhou and Yanming Fang},
  title = {{Gaia: Graph Neural Network with Temporal Shift aware Attention for Gross Merchandise Value Forecast in E-commerce}},
  booktitle = {ICDE},
  year = {2022},
  doi = {10.1109/icde53745.2022.00313},
}
Figure