Towards General-Purpose Representation Learning of Polygonal Geometries

Gengchen Mai, Chiyu Jiang, Weiwei Sun, Rui Zhu, Yao Xuan +4 more
9/29/2022
cs.CVcs.AIcs.LG

Official code: gengchenmai/polygon_encoder (21 stars, Python, Apache-2.0, last commit 2023-10-27).

Abstract

Neural network representation learning for spatial data is a common need for geographic artificial intelligence (GeoAI) problems. In recent years, many advancements have been made in representation learning for points, polylines, and networks, whereas little progress has been made for polygons, especially complex polygonal geometries.

Show full abstract

In this work, we focus on developing a general-purpose polygon encoding model, which can encode a polygonal geometry (with or without holes, single or multipolygons) into an embedding space. The result embeddings can be leveraged directly (or finetuned) for downstream tasks such as shape classification, spatial relation prediction, and so on. To achieve model generalizability guarantees, we identify a few desirable properties: loop origin invariance, trivial vertex invariance, part permutation invariance, and topology awareness. We explore two different designs for the encoder: one derives all representations in the spatial domain; the other leverages spectral domain representations. For the spatial domain approach, we propose ResNet1D, a 1D CNN-based polygon encoder, which uses circular padding to achieve loop origin invariance on simple polygons. For the spectral domain approach, we develop NUFTspec based on Non-Uniform Fourier Transformation (NUFT), which naturally satisfies all the desired properties. We conduct experiments on two tasks: 1) shape classification based on MNIST; 2) spatial relation prediction based on two new datasets - DBSR-46K and DBSR-cplx46K. Our results show that NUFTspec and ResNet1D outperform multiple existing baselines with significant margins. While ResNet1D suffers from model performance degradation after shape-invariance geometry modifications, NUFTspec is very robust to these modifications due to the nature of the NUFT.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is the code repository for the paper entitked Towards General-Purpose Representation Learning of Polygonal Geometries.

213Python, ShellSep 19, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{mai2022towards,
  title  = {Towards General-Purpose Representation Learning of Polygonal Geometries},
  author = {Gengchen Mai and Chiyu Jiang and Weiwei Sun and Rui Zhu and Yao Xuan and Ling Cai and Krzysztof Janowicz and Stefano Ermon and Ni Lao},
  year   = {2022},
  eprint = {2209.15458},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.15458}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.15458.svg)](https://codeofpaper.com/paper/2209.15458)

Discussion