Inductive Graph Transformer for Delivery Time Estimation

Xin Zhou, Jinglong Wang, Yong Liu, Xingyu Wu, Zhiqi Shen, Cyril Leung · DOI

Introduction

Accurate Estimated Time of Arrival (ETA) is a cornerstone of modern e-commerce logistics. While navigation systems excel at predicting travel time based on traffic, e-commerce delivery involves a more complex set of variables, including retailer efficiency and regional logistics patterns. This paper introduces the Inductive Graph Transformer (IGT), a framework designed to provide robust delivery time estimates by leveraging both structural graph information and semantic attribute interactions.

The Inductive Inference Challenge

Traditional logistics models often struggle with two primary issues:

  1. The Cold Start Problem: Platforms frequently encounter new retailers or delivery addresses that were not present during the training phase. Standard models often fail to generalize to these "unseen" nodes.
  2. High-Order Interactions: Delivery speed is influenced by non-linear relationships between various factors, such as how a specific retailer's performance fluctuates when shipping to a particular destination at a specific time of day.

Proposed Methodology

The IGT framework addresses these challenges through a decoupled architecture consisting of two primary modules: the Temporal and Heterogeneous GCN (THEGCN) and the ETAformer.

The overall architecture of the Inductive Graph Transformer (IGT), featuring the THEGCN for embedding extraction and the ETAformer for final prediction.

THEGCN: Scalable Structural Learning

To handle the massive scale of industrial datasets, the authors developed THEGCN. This module represents orders as a heterogeneous graph where nodes correspond to retailers, origins, destinations, and payment times. To ensure scalability and prevent overfitting, the GCN is simplified by removing non-linear activations and learnable weight matrices, focusing instead on linear information propagation. Temporal dynamics, such as a retailer's evolving speed, are captured using Gated Recurrent Units (GRUs).

ETAformer: Capturing Semantic Interactions

The embeddings generated by THEGCN are passed to the ETAformer. This module treats an order as a sequence of "tokens" (retailer, addresses, etc.), similar to a sentence in natural language processing.

Detailed view of the ETAformer module, illustrating the positional encoding, header token addition, and transformer encoder layers.

By employing a transformer architecture with self-attention mechanisms, the ETAformer can model the complex, high-order interactions between all elements of an order. This allows the model to understand, for instance, the specific logistics nuances of a certain origin-destination pair during peak hours.

Empirical Evaluation

The model was rigorously tested on two large-scale datasets from Alibaba Group: D1 (Weihai) and D2 (Hangzhou), comprising millions of orders. Crucially, the test sets included unseen retailers and addresses to evaluate inductive performance.

Key Results

  • Superior Accuracy: IGT outperformed state-of-the-art baselines like XGBoost and DeepETA, achieving a 6% to 11% improvement in Mean Absolute Error (MAE).
  • Generalization Power: On the D1 dataset, IGT reduced prediction errors for unseen addresses by nearly 50% compared to the best-performing baseline.
  • Real-World Impact: In a live online test, the model demonstrated a 15% reduction in average predictive error compared to the existing production system.

Conclusion

The Inductive Graph Transformer represents a significant step forward in e-commerce ETA. By decoupling structural graph learning from semantic interaction modeling, IGT achieves both scalability and high generalization performance. Future work will focus on extending the model to provide confidence intervals and integrating real-time courier trajectory data to further enhance last-mile accuracy.

Summary updated

BibTeX
@inproceedings{zhou2023inductive,
  author = {Xin Zhou and Jinglong Wang and Yong Liu and Xingyu Wu and Zhiqi Shen and Cyril Leung},
  title = {{Inductive Graph Transformer for Delivery Time Estimation}},
  booktitle = {WSDM},
  year = {2023},
  doi = {10.1145/3539597.3570409},
}
Figure