Improving Location Recommendation with Urban Knowledge Graph

Chang Liu, Chen Gao, Depeng Jin, Yong LiarXiv 2021

Abstract

Point-of-Interest (POI) recommendation is a critical task in location-based services, yet it is often hindered by geographical bias, where proximity overshadows a user's actual functional preferences. This paper introduces UKGC (Urban Knowledge Graph with Counterfactual learning), a novel framework that leverages a large-scale Urban Knowledge Graph (UrbanKG) to disentangle geographical constraints from true user interest. By modeling geography as a causal confounder and employing disentangled Graph Convolutional Networks (GCNs), UKGC effectively "subtracts" the effect of mere proximity. Experimental results on massive real-world datasets from Beijing and Shanghai demonstrate that UKGC significantly outperforms state-of-the-art baselines in both accuracy and ranking metrics.

Introduction: The Challenge of Geographical Bias

Point-of-Interest (POI) recommendation—suggesting restaurants, shops, or parks—is notoriously difficult because of geographical bias. In causal inference terms, geography acts as a confounder: a user might visit a mediocre coffee shop simply because it is 50 meters away, rather than because they prefer its quality.

Existing models often treat longitude and latitude as simple features or use black-box models that fail to distinguish between a user's functional preference (e.g., "I like Italian food") and geographical constraint (e.g., "I only walk 10 minutes"). This leads to sub-optimal recommendations that over-prioritize proximity at the expense of relevance. The core insight of this work is to treat distance not as a feature to be maximized, but as a bias to be controlled.

Constructing the Urban Knowledge Graph (UrbanKG)

To move beyond raw GPS coordinates, the researchers constructed a structured Urban Knowledge Graph. This graph captures the semantic relationships between POIs, business areas, regions, brands, and hierarchical categories.

The structure of the Urban Knowledge Graph, showing relationships between POIs, brands, categories, and geographical regions.

As shown in Figure 1, relations are split into two distinct types:

  1. Geographical Relations: Such as LocateAt and NearBy, which define the physical space.
  2. Functional Relations: Such as BrandOf and SubCateOf, which define the nature of the service provided.

Moving from raw "lat/long" data to entities like "Business Area" allows the model to capture the semantics of a location. For instance, two POIs in the same shopping mall are geographically similar in a way that raw coordinates might struggle to represent as cleanly as a graph edge.

The UKGC Framework

The UKGC framework consists of three main stages designed to isolate and remove geographical bias from recommendation logic.

The UKGC architecture, illustrating the Disentangled Embedding Layer, Graph Convolutional Layer, and the Counterfactual Learning process.

1. Disentangled Graph Convolutional Networks

The model maintains two separate sets of embeddings for every user and POI—one for geography and one for function. It runs information propagation on two distinct sub-graphs (the Geographical Graph and the Functional Graph) to ensure these features do not "pollute" each other during the learning process.

2. Intent Modeling

The model uses an attention mechanism to represent users as a distribution of "intents." For example, a user might have distinct functional intents like "fast food," "gym," and "cinema," which are learned through the functional sub-graph.

3. Counterfactual Learning

This is the framework's "secret sauce." Using a causal graph, the authors define the Total Indirect Effect (TIE). They calculate the probability of a visit in a "factual world" and subtract the "Natural Direct Effect" (the probability of a visit if the user only knew the location). This effectively removes the geographical bias, leaving behind the user's true interest in the POI's attributes.

Experimental Evaluation

The researchers evaluated UKGC using two massive datasets based on Tencent Map and WeChat check-in logs in Beijing and Shanghai. These datasets include hundreds of thousands of POIs and check-ins, replacing raw coordinates with structured urban entities.

Key Results

UKGC significantly outperformed state-of-the-art baselines, including LightGCN, KGAT, and KGIN:

  • Accuracy: In the Beijing dataset, UKGC improved AUC by 3.80% over the best baseline.
  • Ranking: The model saw massive gains in ranking metrics, with Recall@20 increasing by 13.51%–23.16% and NDCG@20 increasing by 22.22%–30.33% compared to previous models.
  • Ablation Studies: Removing either the disentangled embeddings or the counterfactual reasoning led to a significant drop in performance, proving that both the structural graph and the causal inference are necessary components.

Conclusion and Future Work

UKGC demonstrates that treating geography as a confounder rather than a simple feature allows for more personalized and relevant POI recommendations. By disentangling functional intent from geographical proximity, the model provides a clearer picture of user behavior.

Future work will focus on moving from offline datasets to online A/B testing in live recommendation systems. Additionally, the researchers aim to explore dynamic graphs to incorporate temporal changes, such as how business areas evolve over time or how user preferences shift between day and night.

Summary updated

BibTeX
@misc{liu2021improving,
  author = {Chang Liu and Chen Gao and Depeng Jin and Yong Li},
  title = {{Improving Location Recommendation with Urban Knowledge Graph}},
  year = {2021},
  eprint = {2111.01013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.01013},
}
Figure