Joint Estimation and Prediction of City-wide Delivery Demand: A Large Language Model Empowered Graph-based Learning Approach

Tong Nie, Junlin He, Yuewen Mei, Guoyang Qin, Guilong Li, Jian Sun, Wei Ma · DOI

Researchers from The Hong Kong Polytechnic University and Tongji University have introduced IMPEL (Inductive Message-Passing Neural Network with Encoding from LLMs), a framework designed to solve the "cold-start" problem in urban logistics. This challenge occurs when companies expand into new cities or neighborhoods where historical delivery data is unavailable.

The Challenge: Cold-Start in Urban Logistics

Predicting delivery demand is complex because it depends on the functional characteristics of a neighborhood—whether it is residential, commercial, or industrial. Traditional models rely on extensive historical data, making it difficult to forecast demand for newly "activated" regions.

Illustration of the joint estimation and prediction problem in new and activated regions.

When a logistics provider enters a new area, they face a joint estimation and prediction problem. They must reconstruct what the demand would have been (estimation) while simultaneously forecasting future needs (prediction). Standard spatial features, like coordinates, often fail to capture the functional similarities between geographically distant but similar urban zones.

Methodology: The IMPEL Framework

IMPEL addresses these issues through a three-stage approach that integrates Large Language Models (LLMs) with graph-based learning.

The IMPEL architecture, showing the transition from LLM embeddings to a spatiotemporal graph-based expert architecture.
  1. LLM-based Geolocation Knowledge Extraction: The framework uses a pre-trained LLM (Llama) as a geospatial encoder. By processing text descriptions from OpenStreetMap (e.g., POIs like schools or hospitals), the LLM generates high-dimensional embeddings that represent a region's functional identity.
  2. LLM-Enhanced Spatiotemporal Graph Forecasting: These embeddings are integrated into a Spatio-Temporal Graph Neural Network (STGNN). The model constructs a "functional graph" where connections represent similarities in LLM-derived knowledge rather than simple physical proximity.
  3. Inductive Masking-Reconstruction: To handle missing data, the model uses an inductive training scheme. During training, regions are randomly "masked," forcing the model to learn how to reconstruct demand based on neighboring patterns and LLM-encoded features.

Experimental Results

The model was evaluated on two real-world datasets: package delivery data from five Chinese cities (Cainiao Network) and food delivery data from three major US cities.

  • Performance Gains: IMPEL significantly outperformed baselines like DCRNN and Graph WaveNet. It achieved a 20.8% improvement in Mean Absolute Error (MAE) for Shanghai and 27.2% for Los Angeles.
  • Zero-Shot Transfer: The model demonstrated robust zero-shot capabilities, maintaining high accuracy when transferred to entirely new cities, whereas traditional models experienced sharp performance declines.
  • Functional vs. Physical Proximity: A key finding was that functional similarity (via LLM embeddings) is a superior predictor compared to physical distance. For instance, two distant industrial zones often share more demand patterns than an industrial zone and a nearby residential area.
  • The RLHF Paradox: Interestingly, using LLMs fine-tuned with Reinforcement Learning from Human Feedback (RLHF) actually degraded performance. The researchers hypothesize that RLHF might distort the alignment between the LLM’s internal feature space and the downstream graph neural network's requirements.

Discussion and Future Work

While IMPEL offers a significant leap forward, the authors note that the "black-box" nature of deep learning embeddings remains a challenge for interpretability. Additionally, the joint estimation-prediction task carries risks of error propagation. Future research may explore advanced prompting techniques like Chain-of-Thought (CoT) or Retrieval-Augmented Generation (RAG) to further refine geospatial knowledge extraction.

The success of IMPEL highlights the potential of LLMs to serve as "urban experts," providing rich contextual data that traditional numerical features lack.

Summary updated

BibTeX
@inproceedings{nie2025joint,
  author = {Tong Nie and Junlin He and Yuewen Mei and Guoyang Qin and Guilong Li and Jian Sun and Wei Ma},
  title = {{Joint Estimation and Prediction of City-wide Delivery Demand: A Large Language Model Empowered Graph-based Learning Approach}},
  booktitle = {Transportation},
  year = {2025},
  doi = {10.1016/j.tre.2025.104075},
}
Figure