POIFormer: A Transformer-Based Framework for Accurate and Scalable Point-of-Interest Attribution

Nripsuta Ani Saxena, Shang-Ling Hsu, Mehul Shetty, Omar Alkhadra, Cyrus Shahabi, Abigail L. Horn

Introduction

The challenge of mapping raw GPS "stays" to specific Points-of-Interest (POIs)—a process known as POI Attribution—is fundamental to understanding urban mobility. However, real-world GPS signals often carry error margins of 2 to 20 meters. In dense urban environments, such inaccuracies can place a user near dozens of potential destinations, making simple proximity-based attribution unreliable.

The POI attribution problem: mapping noisy GPS trajectories to specific points of interest in dense urban environments.

Methodology

The authors introduce POIFormer, a framework that leverages a "dual-signal" approach to disambiguate visits by combining individual habits with collective behavior.

Individual Preferences

POIFormer utilizes a Transformer encoder to analyze a user’s trajectory as a sequence of visits. By "masking" the current location during training, the model learns to predict the most likely POI category based on preceding and succeeding activities. To capture the nuances of geography and time, the model employs Space2Vec and Time2Vec embedding techniques, which transform raw coordinates and timestamps into high-dimensional vectors.

Crowd Preferences

Recognizing that location popularity varies by time, the model incorporates Kernel Density Estimations (KDEs). These pre-computed probability maps weight POI categories based on historical crowd data. For instance, a "bar" category might receive higher weight than a "dentist" at late hours, even if both are located in the same building.

Architecture of POIFormer, showing the integration of individual preferences via a Transformer encoder and crowd preferences via KDEs.

Datasets

The framework was validated using two distinct datasets:

  • Breadcrumbs: A real-world dataset from Lausanne, Switzerland, containing ground-truth labels from 81 participants over 12 weeks.
  • NUMOSIM: A large-scale synthetic dataset simulating 200,000 agents in Los Angeles, used to test scalability and performance in hyper-dense urban clusters.

Results and Key Insights

POIFormer consistently outperformed existing state-of-the-art (SOTA) models, including proximity-based methods used by industry leaders like SafeGraph.

  • Robustness to Noise: In the noisy NUMOSIM environment, POIFormer achieved a Top-3 accuracy of 90.9%, surpassing SafeGraph by 14.55%.
  • Contextual Importance: The study found that the sequence of a user's day is often more informative than exact GPS coordinates. Knowing a user is traveling between "Work" and "Home" significantly narrows the likely POI candidates.
  • Ablation Analysis: The "Learned Category Prior" (the Transformer component) proved to be the most critical element; its removal resulted in a performance drop of over 20% in Top-3 accuracy.

Conclusion

POIFormer provides a scalable and accurate solution for POI attribution by prioritizing behavioral context over raw spatial proximity. Future research will focus on refining attribution for complex multi-use structures and optimizing the Transformer architecture for real-time inference on mobile devices.

Summary updated

BibTeX
@inproceedings{saxena2025poiformer,
  author = {Nripsuta Ani Saxena and Shang-Ling Hsu and Mehul Shetty and Omar Alkhadra and Cyrus Shahabi and Abigail L. Horn},
  title = {{POIFormer: A Transformer-Based Framework for Accurate and Scalable Point-of-Interest Attribution}},
  booktitle = {SIGSPATIAL/GIS},
  year = {2025},
  doi = {10.1145/3748636.3762775},
}
Figure