      Cross-City Latent Space Alignment for Consistency Region Embedding


     Meng Chen 1 Hongwei Jia 1 Zechen Li 1 Wenzhen Jia 2 Kai Zhao 3 Hongjun Dai 1 Weiming Huang 4


                        Abstract                                     (Chen et al., 2025a; Li et al., 2022; Ning et al., 2024; Zhang
                                                                     et al., 2023).
     Learning urban region embeddings has substan-
     tially advanced urban analysis, but their typical               From a holistic perspective, as illustrated in Figure 1(a),
     focus on individual cities leads to disparate em-               learning region representations typically involves two stages:
     bedding spaces, hindering cross-city knowledge                  1) regions from city X are projected into a latent space to
     transfer and the reuse of downstream task predic-               generate representations (ZX ), and 2) these representations
     tors. To tackle this issue, we present Consistency              are fed into downstream task predictors (decX ) to produce
     Region Embedding (CoRE), a unified framework                    analytical results. However, the second stage requires suffi-
     integrating region embedding learning with cross-               cient ground truth data to train decX , which is often difficult
     city latent space alignment. CoRE first embeds                  to acquire in practice. Many studies focus on cities like New
     regions from two cities into separate latent spaces,            York City, where ground truth labels are readily available
     followed by the alignment of latent space man-                  with open data projects, while other cities remain understud-
     ifolds and fine-grained individual regions from                 ied (Zhang et al., 2022).
     both cities. This ensures compatible and com-
                                                                     To address this issue, we aim to answer the following ques-
     parable embeddings within aligned latent spaces,
                                                                     tion in the paper: can we align the latent spaces between
     enabling predictions of various socioeconomic in-
                                                                     different cities so that we can leverage the knowledge
     dicators without ground truth labels by migrating
                                                                     from one city to facilitate the analysis in other cities?
     knowledge from label-rich cities. Extensive ex-
                                                                     Technically, this hinges on whether the latent embedding
     periments show CoRE outperforms competitive
                                                                     spaces learned from urban sensory data in different cities are
     baselines, confirming its effectiveness for cross-
                                                                     comparable. The straightforward answer is that the latent
     city knowledge transfer via aligned latent spaces.
                                                                     spaces learned separately for different cities are typically
                                                                     incomparable and unaligned, making it difficult to trans-
                                                                     fer knowledge through them. This incomparability issue
1. Introduction                                                      is shown in Figure 2(a), where latent spaces learned by
Learning vector representations (embeddings) for small ur-           MVURE (Zhang et al., 2021) are projected onto the same
ban units (regions) using various urban sensory data sources,        2D plane using t-Distributed Stochastic Neighbor Embed-
including points of interest and human trajectories, has be-         ding (t-SNE) (Maaten & Hinton, 2008). The triangles and
come a common practice in urban computing and analytics              dots represent regions in two cities (Chengdu and Xi’an),
(Chen et al., 2024; Huang et al., 2023; Li et al., 2023; Jia         with yellow, green, and red indicating low, medium, and
et al., 2024; Mai et al., 2023; Zhang et al., 2024; Chen             high GDP levels, respectively. The two spaces are clearly
et al., 2025b). These representations have been proven to            different, indicating a meaningless direct comparison of two
be valuable for various urban downstream tasks, including            cities.
regional land use analysis, crime rate prediction, and house         In this paper, we aim to achieve the knowledge transfer
price forecasting, demonstrating significant potential for           between cities by reusing task predictors (decX ). These
real-world applications in urban planning and management             predictors, trained in a label-rich city, can be reused in an-
    1
      School of Software, Shandong University, Jinan, China          other city without ground truth labels, enabling cross-city
2
  Business School, Shandong Normal University, Jinan, China          predictions. Recent studies have realized this through unsu-
3
  Walmart AI Lab, California, USA 4 Department of Physical Ge-       pervised translation (Yabe et al., 2019; 2020; Haikal et al.,
ography and Ecosystem Science, Lund University, Sweden. Cor-         2022), where they transform region representations learned
respondence to: Hongjun Dai <dahogn@sdu.edu.cn>, Weiming             in one city to the other, similar to translating words across
Huang <W.Huang@leeds.ac.uk>.
                                                                     languages, as shown in Figure 1(b). Specifically, they follow
Proceedings of the 42 nd International Conference on Machine         a two-stage paradigm: intra-city region embedding learning
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025          and cross-city translation. First, region embedding meth-
by the author(s).

                                                                 1
                                       Cross-City Latent Space Alignment for Consistency Region Embedding

  (a)                                                                             (c)
    CityX
                                                                                                                                   Cross-City
                            Region                                                       Region                              Latent Space Alignment
                           Embedding            𝐙𝑋                 𝑑𝑒𝑐𝑋                 Embedding           𝐙𝑋
                             Model                                                        Model
                                                                                                                                 Latent Manifold
        urban regions                  latent space of city X   task predictors                     latent space of city X         Alignment
                                                                                                                                                      𝐙 𝑋 (training)
  (b)
                                                                                                                                                                        𝑑𝑒𝑐𝑋
                                                                                                                                                      𝐙 𝑌(prediction)
                                                                                                                                Latent Individual
                   latent space translation                                              Region                                    Alignment
            𝐙𝑌                                 𝐙𝑋                  𝑑𝑒𝑐𝑋                 Embedding           𝐙𝑌                                                      task predictors
                            𝒯(𝐙𝑌 )                                                        Model

  latent space of city Y               latent space of city X   task predictors                     latent space of city Y



Figure 1. Illustration of: (a) learning and using region representations within a single city, (b) existing latent space translation methods
that requires a direct mapping T from ZY to ZX , and (c) our CoRE method that integrates region embedding learning with cross-city
alignment to produce compatible representations across cities, ensuring that semantically similar regions lie close in the aligned spaces.


ods generate region representations (ZX and ZY ) within
individual cities (X and Y ), where the two latent spaces
are incompatible. Then they manually construct anchoring
pairs of region representations across cities using fixed corre-
spondence rules (e.g., urban hierarchical structures) to learn
transformation functions (ZX ≈ T (ZY )). This process
translates the region representations of one city (Y ) to the
                                                                                                                (a) MVURE                       (b) Our Proposed CoRE
space of another (X), enabling the reuse of task predictors
(decX ) in city Y based on T (ZY ).
                                                                                                Figure 2. Visualization of the pre-trained region embeddings. We
While these methods have shown promise, they suffer from                                        project embeddings into 2D via t-SNE, where triangles and dots
two major shortcomings:                                                                         denote regions in Chengdu and Xi’an, respectively. Colors (yellow,
                                                                                                green, red) indicate low, medium, and high GDP levels. Panel (a)
1) Disconnected Embedding and Translation: In two-                                              shows the MVURE (Zhang et al., 2021) embeddings, with clearly
stage approaches, the decoupled learning paradigm creates                                       separate city spaces, while panel (b) shows our CoRE embeddings,
a fundamental limitation: the frozen pre-trained embeddings                                     where semantically similar regions are closely aligned.
in the translation stage force cross-city mapping to operate
on rigid latent spaces. This rigidity constrains the translation
                                                                                                ment, and individual region alignment. Specifically, CoRE
function to suboptimal linear projections between selected
                                                                                                consists of three components. First, we employ a graph
anchor pairs, failing to adapt to the inherent non-linear man-
                                                                                                attention network as the encoder to generate city-specific
ifold structures of urban feature spaces. Therefore, develop-
                                                                                                region representations in distinct latent spaces using hu-
ing a one-stage method that jointly learns and aligns region
                                                                                                man mobility data. Second, we construct virtual parallel
embeddings through a synergistic optimization process is
                                                                                                common anchors in both spaces as bridges and align the
needed.
                                                                                                data manifolds using the idea of relative representations.
2) Reliance on Hand-Crafted Correspondence: Previous                                            Third, we develop a cross-city attention pipeline to transfer
methods depend on fixed, hand-crafted correspondence (e.g.,                                     pairwise region correlations between two spaces, ensuring
matching regions across cities by check-in counts), which                                       embedding consistency at the individual region level.
can be incomplete or biased - especially since user check-
                                                                                                As illustrated in Figure 2(b), CoRE aligns the latent spaces
ins reflect social media biases (Wang et al., 2016; Li et al.,
                                                                                                of two cities such that semantically similar regions across
2024). An adaptive cross-city alignment method free of
                                                                                                cities are positioned closely. This makes CoRE useful for ur-
manual rules is needed to address this limitation.
                                                                                                ban embedding learning, which enables knowledge transfer
In this paper, we propose a one-stage Consistency Region                                        between different cities trained on similar urban data types.
Embedding method (CoRE), which integrates region em-                                            The key contributions of this paper are as follows:
bedding learning with cross-city latent space alignment to
produce compatible and comparable region representations                                        • We propose CoRE, a one-stage consistency region embed-
across cities, as shown in Figure 1(c). Recognizing the                                           ding method that integrates region embedding learning
challenge of achieving cross-city alignment without human-                                        with cross-city latent space alignment in a unified frame-
crafted rules and labels, CoRE accomplishes this through                                          work. This approach ensures compatibility and compara-
two mutually reinforcing pathways: latent manifold align-                                         bility of region representations from different cities within

                                                                                            2
                             Cross-City Latent Space Alignment for Consistency Region Embedding

  an aligned latent space.                                           et al., 2024). To this end, we first construct a base region
                                                                     embedding model for an individual city. This model cap-
• We achieve cross-city alignment of latent spaces through           tures human mobility patterns between regions and derives
  two interdependent pathways: latent manifold alignment             latent region representations using a self-supervised graph
  and latent individual alignment, addressing both global            embedding approach.
  and individual perspectives. Our method accounts for
  the complex interplay between cities without relying on            3.1.1. M OBILITY G RAPH C ONSTRUCTION
  explicit anchoring pairs of region representations across
  cities based on human-crafted rules.                               Given a human mobility dataset M = {m1 , m2 , · · · },
                                                                     where each trip mi = (ro , rd ) represents a movement
• We conduct comprehensive experiments across three                  from an origin region ro to a destination region rd , we
  downstream tasks using datasets from three cities. The             construct a mobility graph G = {V, E} for each city. Here,
  results clearly show the advantages of CoRE over base-             V = {ri }N  i=1 represents the N regions as nodes, and the
  line methods. Data and source codes are available at:              edge weights E = {wij }N   i,j=1 are derived from M. Specifi-
  https://github.com/AIMUrban/CoRE.                                  cally, the transition frequency (edge weight) from region ri
                                                                     to region rj is calculated as:
2. PROBLEM FORMULATION
                                                                                                        N
                                                                                                        X
Definition 2.1 (Urban Region). A city is divided into n                        wij = count(ri → rj )/        count(ri → rk ),         (1)
disjoint urban regions R = {r1 , r2 , . . . , rn }, where each                                         k=1

region ri is defined by a set of boundary points specified by        where count(ri → rj ) denotes the number of trips from
their latitude and longitude coordinates.                            ri to rj . This normalization ensures that each edge weight
Definition 2.2 (Region Representations). For a region riX            reflects the proportion of trips from a given origin to each
in city X, its representation is encoded as a d-dimensional          possible destination. Using this approach, we construct two
vector ZXi . The representations of all regions in city X are        separate mobility graphs, G X and G Y , for cities X and Y ,
collectively represented as a (NX × d) matrix ZX , where             respectively.
NX denotes the number of regions in the city.
Definition 2.3 (Consistency Region Embedding across                  3.1.2. G RAPH E MBEDDING
Cities). Our objective is to generate compatible region rep-         Based on the mobility graph G, we employ a graph attention
resentations for cities X and Y by aligning their latent             network (GAT) (Veličković et al., 2017) to learn the latent
spaces. This alignment ensures that semantically similar             representation of each node (region). The input vectors for
regions from both cities are positioned closely within the           the N regions are initialized as {Ei ∈ R1×d }Ni=1 . The GAT
shared latent space. Achieving consistent region embedding           layer computes the feature representation Zi ∈ R1×d for
for cities X and Y makes their representations compatible            region ri as follows:
and comparable. Thus, downstream task predictors trained
with region representations in city X, where ample ground                            H
                                                                                   1 X ′(h)       ′(h)
                                                                                                              X        (h)
truth data is available, can be directly applied to make accu-              Zi =      Zi ,      Zi       =            αij Ej W(h) ,
                                                                                   H
rate predictions in city Y .                                                        h=1                      rj ∈Ni

                                                                                     (h)        (h)
                                                                                                         X             (h)
                                                                                    αij = exp(sij )/           exp(sik ),             (2)
3. Method                                                                                             rk ∈Ni

In this section, we first introduce the base region embedding         (h)
                                                                     sij = LeakyReLU([Ei W(h) ∥Ej W(h) ∥wij We(h) ]·a(h)T ),
model, which independently learns region representations
for each city. We then propose a cross-city latent manifold          where W(h) ∈ Rd×d , We(h) ∈ R1×d , and a(h) ∈ R1×3d
alignment component designed to align the data manifolds             are learnable parameters of the h-th attention head, H is the
of two latent spaces without requiring external supervision.         number of attention heads, ∥ denotes concatenation, and Ni
Finally, we present a cross-city latent individual alignment         represents the neighbors of region ri .
component that enhances fine-grained alignment of individ-
ual region representations through a self-supervised task.           3.1.3. I NTRA -C ITY R EGION E MBEDDING L OSS
                                                                     To effectively learn region representations, we utilize a self-
3.1. Base Region Embedding Model
                                                                     supervised task that reconstructs mobility patterns among
Human mobility within a city reflects the relationships be-          regions within an individual city. Specifically, we predict
tween its different regions, making it a popular data source         the destination region rj given ri using the region represen-
for learning region representations (Yao et al., 2018; Liu           tations Z. For a specific region ri , the distribution of the

                                                                 3
                                            Cross-City Latent Space Alignment for Consistency Region Embedding

                                                                                     first relative space 𝐀𝐀X𝑟𝑟𝑟𝑟𝑟𝑟                                                            second relative space 𝐀𝐀�X𝑟𝑟𝑟𝑟𝑟𝑟
          latent space 𝐙𝐙X                 relative representation                                                                relative representation
                                                                                           based on 𝐙𝐙X                             𝐀𝐀X𝑟𝑟𝑟𝑟𝑟𝑟 1    𝐀𝐀X𝑟𝑟𝑟𝑟𝑟𝑟 2   𝐀𝐀X𝑟𝑟𝑟𝑟𝑟𝑟 3        based on 𝐀𝐀X𝑟𝑟𝑟𝑟𝑟𝑟
                                             𝐙𝐙1X          𝐙𝐙2X          𝐙𝐙3X
             𝐙𝐙2X                     𝐀𝐀1 sim( , ) sim( , ) sim( , )                                                   𝐀𝐀X𝑟𝑟𝑟𝑟𝑟𝑟 1 sim( , ) sim( , ) sim( , )
                             𝐙𝐙3X
                      𝐀𝐀2             𝐀𝐀2 sim( , ) sim( , ) sim( , )                                                   𝐀𝐀X𝑟𝑟𝑟𝑟𝑟𝑟 2 sim( , ) sim( , ) sim( , )
     𝐙𝐙1X      𝐀𝐀3
                      𝐀𝐀1             𝐀𝐀3 sim( , ) sim( , ) sim( , )                                                   𝐀𝐀X𝑟𝑟𝑟𝑟𝑟𝑟 3 sim( , ) sim( , ) sim( , )
                                                                                                                                                                                                                     Latent
                                                                                                                                                                                                                   Manifold
                                                                                                                                                                                                                   Alignment
                                                    𝐙𝐙1Y          𝐙𝐙2Y                                                              𝐀𝐀Y𝑟𝑟𝑟𝑟𝑟𝑟 1    𝐀𝐀Y𝑟𝑟𝑟𝑟𝑟𝑟 2   𝐀𝐀Y𝑟𝑟𝑟𝑟𝑟𝑟 3                                          Loss
                                                                                                                         Y
            𝐙𝐙1Y                           𝐀𝐀1 sim( , ) sim( , )                                                       𝐀𝐀𝑟𝑟𝑟𝑟𝑟𝑟 1 sim( , )        sim( , ) sim( , )
                      𝐀𝐀2                  𝐀𝐀2 sim( , ) sim( , )                                                       𝐀𝐀Y𝑟𝑟𝑟𝑟𝑟𝑟 2 sim( , ) sim( , ) sim( , )
   𝐙𝐙2Y        𝐀𝐀3
                                           𝐀𝐀3 sim( , ) sim( , )                                                       𝐀𝐀Y𝑟𝑟𝑟𝑟𝑟𝑟 3 sim( , ) sim( , ) sim( , )
                      𝐀𝐀1
                                                                                     first relative space 𝐀𝐀Y𝑟𝑟𝑟𝑟𝑟𝑟                                                            second relative space 𝐀𝐀 �Y𝑟𝑟𝑟𝑟𝑟𝑟
          latent space 𝐙𝐙Y                 relative representation                                                                relative representation
                                                                                            based on 𝐙𝐙Y                                                                             based on 𝐀𝐀Y𝑟𝑟𝑟𝑟𝑟𝑟
             virtual parallel common anchors                                    data points in latent space 𝐙𝐙X                            data points in latent space 𝐙𝐙Y


Figure 3. The framework of cross-city latent manifold alignment. Three common anchors A1 , A2 , and A3 (colored dots) are randomly
generated in both latent spaces. For a given anchor Ai , we compute its similarity w.r.t. the region representations on the data manifold of
ZX and ZY , yielding vectors (AX              Y
                                  reli and Areli ) of dimensionality 3 and 2, respectively. Each dimension is treated as coefficients in a
coordinate system defined by all region representations, which are orthogonal in this example only for visualization purposes. Similarly,
we compute the second relative representations ÂX        Y          X     Y
                                                   rel /Ârel w.r.t.Arel /Arel , which are now in the same coordinate system. Finally, we
                                     X          Y
minimize the difference between Ârel and Ârel to ensure the alignment of the latent manifolds of ZX and ZY .


destination region rj is computed as:                                                                                 3.2.1. R ELATIVE R EPRESENTATIONS OF PARALLEL
                                                                                                                             C OMMON A NCHORS
                                                           N
                                                           X
            p̂ (rj | ri ) = exp(Zi · Zj T )/                        exp(Zi · Zk T ).                  (3)         Due to the varying number of data points (regions) in each
                                                           k=1                                                    latent space, directly measuring the similarity between the
                                                                                                                  data manifolds of two latent spaces is challenging. To ad-
Using the human mobility data M, we define the intra-city                                                         dress this, we propose using Na randomly generated virtual
region embedding (RE) loss as:                                                                                    parallel anchor points, A ∈ RNa ×d , which remain con-
                                                                                                                  sistent across the latent spaces of different cities. These
                                     1
                     LRE = −
                                             X
                                                            log p̂ (rj | ri ) .                       (4)         anchors serve as bridges for comparison, where Na is the
                                    |M|
                                          (ri ,rj )∈M                                                             number of anchors, and their dimensionality matches that
                                                                                                                  of the region representations.
This approach reconstructs actual mobility patterns based
                                                                                                                  To represent the manifold of the latent space using these
on the graph structure, enabling us to derive the region
                                                                                                                  anchors, we adopt the concept of relative representations
representations ZX and ZY for both cities.
                                                                                                                  (Moschella et al., 2023). Specifically, each anchor is rep-
                                                                                                                  resented relative to all region representations in the la-
3.2. Cross-City Latent Manifold Alignment
                                                                                                                  tent space. We define a generic similarity function sim :
The region embedding model in Section 3.1 generates city-                                                         Rd × Rd → R to capture the relationship between the an-
specific region representations in distinct latent spaces.                                                        chors and the region representations, yielding a scalar score
Aligning these separate latent spaces for cross-city com-                                                         Arelij = sim(Ai , Zj ) for two absolute representations Ai
parison poses significant challenges, particularly due to the                                                     and Zj . Given the region representations ZX              X
                                                                                                                                                               1 , · · · , ZNX in
                                                                                                                                    X
absence of labeled paired data or correspondence annota-                                                          the latent space Z , the relative representation of Ai is
tions, as well as the differing numbers of regions across
                                                                                                                                      AX                 X                      X
                                                                                                                                       reli = (sim(Ai , Z1 ), · · · , sim(Ai , ZNX )),                                         (5)
cities. To address these challenges, we propose a cross-city
latent manifold alignment method. This method leverages                                                           where cosine similarity is chosen as the similarity function
the relative representations of virtual common anchors as                                                         due to its invariance to angle-preserving transformations.
a shared reference system for both cities. By replacing the                                                       Similarly, the relative representation of Ai with respect to
original absolute representations with a relative reference                                                       the latent space ZY is computed as:
system, defined by the similarity between region representa-
tions and common anchor points, we ensure that the region                                                                             AYreli = (sim(Ai , ZY1 ), · · · , sim(Ai , ZYNY )).                                      (6)
representations of both cities are learned within a unified
reference framework (see Figure 3).                                                                               Based on Equations (5) and (6), we compute the relative

                                                                                                             4
                           Cross-City Latent Space Alignment for Consistency Region Embedding

                                                                                                                                                                                         𝐂𝐂𝐂𝐂𝐂𝐂 𝑋𝑋→𝑋𝑋
representations of all anchors in matrix form, projecting                   latent space 𝐙𝐙 𝑋𝑋                   City-Specific Pairwise Region Correlation
each anchor point Ai ∈ Rd into the region sets RX ⊂ RNX                               𝐙𝐙2𝑋𝑋
                                                                                                𝐙𝐙3𝑋𝑋   Attention-based Cross-City Correlation
                                                                              𝐙𝐙1𝑋𝑋                      𝐐𝐐𝑋𝑋                          𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝐀 𝑋𝑋→𝑌𝑌
and RY ⊂ RNY in the latent spaces ZX and ZY . This is                                                                                                   𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝐀 𝑋𝑋→𝑌𝑌 � 𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝑌𝑌→𝑋𝑋
                                                                                                         𝐊𝐊 𝑋𝑋                                                                                            Latent
formally represented as:                                                                                         Cross-Space                                                                            Individual
                                                                                                         𝐐𝐐𝑌𝑌     Attention          𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝑌𝑌→𝑋𝑋                                                      Alignment
                                                                                                                                                        𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝑌𝑌→𝑋𝑋 � 𝐀𝐀𝐀𝐀𝐀𝐀𝐀𝐀 𝑋𝑋→𝑌𝑌                     Loss
                                                                                    𝐙𝐙1𝑌𝑌
                                                                                                         𝐊𝐊 𝑌𝑌
                          XT                       YT
           AX
            rel = A · Z        ,   AYrel = A · Z        ,       (7)         𝐙𝐙2𝑌𝑌

                                                                            latent space 𝐙𝐙𝒀𝒀                    City-Specific Pairwise Region Correlation
                  Na ×NX                                                                                                                                                            𝐂𝐂𝐂𝐂𝐂𝐂 𝑌𝑌→𝑌𝑌
where AX rel ∈ R           and AYrel ∈ RNa ×NY , in which
each entry quantifies the similarity between an anchor and
a region within the city. The samples in AX          Y
                                            rel and Arel are                                  Figure 4. Cross-city latent individual alignment.
rescaled to unit norm, capturing the intrinsic shape of the
data by considering only the relative angles between points.
We use the parallel common anchors as bridges and project                 from ZX to ZY and vice versa. Specifically, if we can cycle
AX          Y                                                             through ZX → ZY → ZX (or ZY → ZX → ZY ) and
  rel and Arel into a relative space based on the common
anchor set A. Each sample is represented as a function of                 ensure that the pairwise region correlations in the original
the common anchor set, computed as:                                       and cycled spaces closely match, it indicates that the cross-
                                                                          city pairwise relations among regions are well preserved.
                           T                                T
       ÂX      X      X
         rel = Arel · Arel ,       ÂYrel = AYrel · AYrel ,     (8)       This serves as strong evidence that the two latent spaces are
                                                                          further aligned at the individual level.
                   Na ×Na
where ÂX rel ∈ R          and ÂYrel ∈ RNa ×Na are also
                                                                          This process is analogous to machine translation between
rescaled to unit norm. At this stage, through two rounds of
                                                                          two languages (e.g., English to Spanish). For instance, trans-
relative representations, ÂX          Y
                            rel and Ârel are aligned within              lating words from English to Spanish and then back to En-
the same reference system.
                                                                          glish should preserve the semantic relationships between the
                                                                          original English words. If these relationships remain consis-
3.2.2. L ATENT M ANIFOLD A LIGNMENT L OSS
                                                                          tent before and after translation, we can be confident that the
For well-aligned latent spaces ZX and ZY , the difference                 translation process is reliable at the individual-word level.
between ÂX            Y
            rel and Ârel remains small, as the latent mani-              Similarly, our cross-space attention mechanism ensures that
folds of the two spaces are similar. Conversely, significant              the pairwise relationships between regions are preserved
discrepancies between the latent manifolds result in large                across cities, enhancing the alignment of individual region
differences in ÂX          Y
                  rel and Ârel . To ensure the alignment of              representations.
the latent manifolds, we minimize the difference between
                                                                          The proposed latent individual alignment method consists
ÂX           Y
  rel and Ârel and define the latent manifold alignment                  of several key steps, as illustrated in Figure 4. First, we
(LMA) loss as:
                                                                          compute city-specific pairwise region correlations to cre-
                         1                                                ate ground truth labels. Next, we employ a cross-attention
               LLMA =       ∥ÂX       Y    2
                               rel − Ârel ∥2 ,                 (9)
                        Na2                                               mechanism to generate cross-city correlation matrices from
                                                                          ZX to ZY and from ZY to ZX . Finally, we use these cross-
where ∥ · ∥2 denotes the L2 norm. This difference is solely               city pairwise correlation matrices to reconstruct intra-city
determined by the parallel common anchors in the latent                   pairwise region correlations and minimize the reconstruc-
spaces and is independent of the number of regions in each                tion differences based on the ground truth signals.
city. Moreover, the latent manifold alignment does not
rely on human-defined rules for creating anchoring pairs of               3.3.1. C ITY- SPECIFIC PAIRWISE C ORRELATIONS
region representations across cities.
                                                                          Using the region representations in the latent spaces ZX
3.3. Cross-City Latent Individual Alignment                               and ZY , we compute the intra-city pairwise region corre-
                                                                          lation matrices CorX→X ∈ RNX ×NX and CorY →Y ∈
In addition to aligning the latent manifolds of two spaces,               RNY ×NY as ground truth labels:
we aim to achieve more fine-grained alignment of individ-
ual region representations. Effective alignment should bring               CorX→X = ZX · (ZX )T ,                                     CorY →Y = ZY · (ZY )T . (10)
semantically similar regions from different cities closer to-
gether, which is crucial for cross-city knowledge transfer.
                                                                          3.3.2. ATTENTION - BASED C ROSS -C ITY PAIRWISE
To this end, we propose a self-supervised task that enhances
                                                                                 C ORRELATION
alignment from an individual perspective. The core idea
is to utilize cross-space attention mechanisms to transfer                To measure cross-city region correlations, we employ a
pairwise region correlations between the two latent spaces:               cross-attention mechanism that facilitates interaction be-

                                                                      5
                             Cross-City Latent Space Alignment for Consistency Region Embedding

tween region representations from the two latent spaces. The           4. Experiments
cross-attention module consists of two parallel attention op-
erations: queries QX and keys KX are derived from latent               In this section, we evaluate the proposed CoRE on three
space ZX , while queries QY and keys KY are derived from               cross-city urban prediction tasks with real-world datasets
latent space ZY . By computing the dot product of queries              and compare its performance against various baselines.
and keys, we obtain the attention-based cross-city pairwise
region correlation matrices AttnX→Y ∈ RNX ×NY and                      4.1. Data
AttnY →X ∈ RNY ×NX . This process is defined as:                       We use real-world datasets from three cities: Xi’an (XA),
                    X→Y        X
                                      √
                                      Y T                              Chengdu (CD), and Beijing (BJ). Each dataset comprises ur-
              Attn     = Q · (K ) / d,
                                      √                                ban sensory data (including region data and human mobility
              AttnY →X = QY · (KX )T / d,                              data) and downstream label data (i.e., urban socioeconomic
                                                            (11)
              QX = ZX Wq ,         KX = ZX Wk ,                        indicator data). The details of each data type are introduced
                                                                       in Appendix A.1.
              QY = ZY Wq ,       KY = ZY Wk ,

where Wq ∈ Rd×d and Wk ∈ Rd×d are trainable parame-                    4.2. Experiment Settings
ters.                                                                  4.2.1. M ODEL PARAMETERS
3.3.3. L ATENT I NDIVIDUAL A LIGNMENT L OSS                            In the base region embedding model, we utilize a two-layer
                                                                       GAT as the encoder with an embedding dimension d set to
Using the two cross-city pairwise correlation matrices, we
                                                                       128 and the attention heads H set to 8. For cross-city latent
reconstruct the city-specific pairwise region correlations
                                                                       manifold alignment, we initially generate 1000 anchors and
through a cyclical approach. We then minimize the recon-
                                                                       further assess the impact of varying anchor counts in our
struction differences based on the ground truth city-specific
                                                                       experiments. The optimization of the model is conducted
pairwise region correlations and define the latent individual
                                                                       using the Adam optimizer, with a learning rate configured
alignment (LIA) loss as:
                                                                       at 1 × 10−3 .
           1
 LLIA =       ∥CorX→X − AttnX→Y · AttnY →X ∥22
          NX2                                                          4.2.2. BASELINES
                                                  (12)
              1
          + 2 ∥CorY →Y − AttnY →X · AttnX→Y ∥22 .                      To evaluate CoRE, we compare it against unsupervised trans-
             NY
                                                                       lation methods and domain adaptation techniques. Among
By minimizing this loss, the pairwise relative positions of            the translation methods, we primarily benchmark against
regions are preserved. This holds true for both intra-city and         the approach proposed by Yabe et al. (2020). This method
inter-city region pairs, strongly indicating that the individual       first generates city-specific region representations and then
region representations from the two cities are positioned              employs three strategies (rank-based, hierarchical stochastic,
reasonably within the aligned latent spaces.                           and hierarchical batch) to construct anchoring embedding
                                                                       matrices across cities. These matrices are aligned using
3.4. Model Training                                                    Orthogonal Procrustes and Affine alignment techniques,
                                                                       resulting in six baselines: RP (Rank-based + Procrustes),
Our proposed CoRE is a one-stage approach that simul-                  RA (Rank-based + Affine), HSP (Hierarchical Stochastic +
taneously learns region representations for two cities and             Procrustes), HSA (Hierarchical Stochastic + Affine), HBP
aligns their latent spaces. We combine the objectives into             (Hierarchical Batch + Procrustes), and HBA (Hierarchical
the overall loss function:                                             Batch + Affine). Furthermore, we include MMD (Saito
                                                                       et al., 2018), Adv (Ganin et al., 2016), and CrossTReS (Jin
            L = (LRE   RE
                  X + LY ) + αL
                               LMA
                                   + βLLIA ,                (13)
                                                                       et al., 2022) as domain adaptation baselines, along with
where LRE         RE                                                   CARPG (Yang et al., 2023) as a knowledge transfer base-
         X and LY denote the intra-city region embedding
losses for cities X and Y , respectively. The terms α and              line. We also introduce a lower-bound baseline, Individual,
β are hyperparameters that adjust the weights of the LMA               which generates city-specific region representations without
loss and the LIA loss, respectively. This objective function           any cross-city alignment. Detailed descriptions of these
can be optimized using stochastic gradient descent. Once               baselines are provided in Appendix A.2.
optimized, the two latent spaces ZX and ZY are aligned
within the same coordinate system, positioning semantically            4.2.3. E VALUATION M ETRICS
similar regions from different cities closer together. This            We conduct cross-city region-level prediction of socioeco-
alignment facilitates effective cross-city knowledge transfer          nomic indicators using region representations in aligned
and enables the reuse of task predictors across cities.

                                                                   6
                             Cross-City Latent Space Alignment for Consistency Region Embedding


Table 1. Performance comparison on three downstream tasks with the XA and CD datasets, where the best results are represented in bold
and the performance improvements of CoRE are compared with the second best results marked by underlined.
                                        XA(X)/CD(Y )                                           CD(X)/XA(Y )
       Method              GDP             Population          Carbon            GDP             Population            Carbon
                      MAE MAPE          MAE       MAPE MAE MAPE MAE MAPE MAE MAPE MAE MAPE
      Individual     475.84 20.39 1694.82          7.92   480.05 21.69      247.9    10.61 978.15 11.92 176.19               4.56
          RP         189.75 11.91      664.31      3.62   145.11 10.51 191.44         6.19    672.58     5.39      148.11    2.53
         RA          197.47 12.58      654.83      3.84   143.99 10.49 187.07         6.08    614.32     5.27      143.04    2.09
         HSP         189.48 11.66      674.31      3.74   143.46 10.13 192.22         6.43    697.59     5.71      144.49     2.1
        HSA          183.68 11.51      642.17      3.71   140.73    9.98   182.52      5.6    622.43     5.33      141.06    1.97
         HBP         196.14 11.52      682.71      3.82    149.6    10.33 228.25      8.65    808.61     7.84      152.76    2.96
        HBA          196.67 11.53      661.88      3.61   153.71    9.77    187.7     5.68    653.88     5.53      142.91    2.07
        MMD          205.48 12.97      767.26       4.8   153.38     9.9   208.17     7.07    776.82     6.61      148.05    2.51
         Adv         204.92 12.79      742.62      4.13    153.8    10.04 216.67      7.81    779.52     5.75      153.77    3.01
     CrossTReS       201.06 12.71      698.49      3.98   164.81 11.21 195.13         6.81    689.83     5.69      142.96    2.08
       CARPG         188.08 11.89      650.62      3.85   133.82    9.66   189.81     6.14    655.39     5.58      144.99    2.21
        CoRE         178.93    11.4    620.15      3.42   127.45    9.42   170.25     5.06    580.98     4.88      136.56    1.77
  Improvement (%)     2.59     0.96      3.43      5.26     4.76     2.48   6.72      9.64     5.43       7.4       3.19     10.15


latent spaces. The training data consists of region represen-             distributions and fail to adequately capture inter-region
tations (ZX ) and socioeconomic indicator labels ({yiX }N    X
                                                           i=1 ),         relationships. Additionally, disparities in the number of
including GDP, population, and carbon emissions, from the                 regions between cities further compromise their alignment
source city (X). The test data comprises region represen-                 effectiveness. The CARPG exhibits limited performance
tations (ZY ) and corresponding labels ({yiY }N    Y
                                                 i=1 ) from the           due to its inability to explicitly align feature distributions
target city (Y ). First, a downstream task predictor decX is              between cities. The Adv method also underperforms com-
trained using the source city’s representations ZX and so-                pared to other methods, which we attribute to the limita-
cioeconomic labels {yiX }N     X
                             i=1 . The predictive performance             tions of unsupervised learning. In the absence of labeled
is evaluated by applying the trained decX to the target city’s            data from the target city, the alignment process cannot be
representations ZY . Ridge regression is employed as the                  directly validated or optimized based on predictive per-
task predictor. We use mean absolute error (MAE) and mean                 formance, potentially leading to incomplete or inaccurate
absolute percentage error (MAPE). Lower values of MAE                     alignment.
and MAPE indicate higher predictive accuracy.
                                                                        • Our proposed CoRE method achieves the best perfor-
                                                                          mance with two key contributions: 1) it aligns both the la-
4.3. Performance Comparison with Baselines
                                                                          tent manifolds of embedding spaces and individual region
Table 1 presents the cross-city socioeconomic indicator pre-              representations across cities, and 2) the cross-city align-
diction performance of various methods on the XA and CD                   ment enhances the quality of region embedding learning.
datasets, where X denotes the source city and Y denotes the               The superiority of CoRE is further validated by paired
target city. Each method is evaluated over five runs, and the             t-tests (Hull, 1993), which confirm that its improvements
average values of MAE and MAPE are reported. Additional                   over the baselines are statistically significant (p-value <
results for other city pairs are provided in Appendix A.3.                0.01).
From these results, we have the following observations:
                                                                        To further validate the effectiveness of our approach, we
• The Individual method performs the worst, as it fails to              visualize the region representations learned by HBA and
  align latent spaces across cities. This underscores the               CoRE for two cities by projecting them onto 2D planes us-
  necessity of cross-city alignment to effectively reuse task           ing t-SNE (Maaten & Hinton, 2008). Detailed results are
  predictors trained in data-rich cities. In contrast, the latent       provided in Appendix A.4. The visualizations demonstrate
  space translation methods (RP, RA, HSP, HSA, HBP, and                 that CoRE effectively aligns individual region representa-
  HBA) achieve better performance. These methods lever-                 tions across cities, achieving fine-grained alignment of latent
  age urban hierarchical structures to construct effective              spaces from both global and local perspectives.
  correspondences between regions, enabling the transfor-
  mation of target city region representations into the source          We also investigate whether the cross-city alignment com-
  city’s latent space.                                                  promises within-city prediction performance, and if so, to
                                                                        what extent. The detailed analysis in Appendix A.5 confirms
• The MMD and CrossTReS methods exhibit poor per-                       that this compromise is minor. Therefore, CoRE maintains
  formance, as they primarily focus on aligning feature                 strong within-city predictive accuracy while successfully

                                                                    7
                                                               Cross-City Latent Space Alignment for Consistency Region Embedding

                                                      
                                                      850                                                                                                                          ; $  & '                 
                                                                                                                                                                                                                700                                ; $  & '                                             ; $  & '
                     Z  R  2 Q H  6 W D J H                    Z  R  2 Q H  6 W D J H                      Z  R  2 Q H  6 W D J H                                               & '  ; $                                                 & '  ; $                                                & '  ; $
                     Z  R  / 0 $                                Z  R  / 0 $                                  Z  R  / 0 $
                     Z  R  / , $                                Z  R  / , $                                  Z  R  / , $




                                                                                                                                                  0 $ (




                                                                                                                                                                                                            0 $ (




                                                                                                                                                                                                                                                                      0 $ (
                  & R 5 (
                                                         
                                                      750
                                                                  & R 5 (
                                                                                                              & R 5 (                                                                                        
                                                                                                                                                                                                                600                                                          
 0 $ (




                                                  0 $ (




                                                                                               0 $ (
                                                                                                                                                                                                                
                                                                                                                                                                                                                500                                                          
                                                      
                                                      650                                                                                                                                                                                                       
                                                                                                                                                                           Q X P E H U                                               Q X P E H U                                              Q X P E H U
             ; $  & '  & '  ; $                      
                                                      550  ; $  & '  & '  ; $                         ; $  & '  & '  ; $                                     (a) GDP                                         (b) Population                                                (c) Carbon
              (a) GDP                                  (b) Population                                   (c) Carbon
                                                                                                                                                            Figure 6. Effect of the number of virtual parallel anchors.
          Figure 5. Performance comparison of different variants.


enabling cross-city alignment.                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                           




                                                                                                                                                   0 $ (




                                                                                                                                                                                                             0 $ (




                                                                                                                                                                                                                                                                        0 $ (
                                                                                                                                                                                                                                                                            
4.4. Ablation Study and Parameter Analysis                                                                                                                                                                                                                                  
                                                                                                                                                             0.01                                    100               0.01                                    100               0.01                                   100
                                                                                                                                                                        1                     1                                   1                     1                                  1                      1
                                                                                                                                                                            100       0.01                                            100       0.01                                           100        0.01
4.4.1. S TUDY OF D IFFERENT VARIANTS
                                                                                                                                                                    (a) GDP                                          (b) Population                                                (c) Carbon
To evaluate the contribution of each component in CoRE,
we conduct an ablation study by designing three variants: 1)                                                                                                                             Figure 7. Effect of weights α and β.
CoRE w/o One-Stage: The one-stage paradigm is separated
into two stages. First, region representations ZX and ZY
are learned using the intra-city region embedding loss. Then,
ZX and ZY are projected into two vector spaces via affine
                                                                                                                                                 that a larger number of anchors enhances the model’s ability
layers and aligned using LLMA and LLIA , without updating
                                                                                                                                                 to align latent manifolds. However, further increasing Na
the parameters of the base region embedding model. 2)
                                                                                                                                                 beyond 1000 results in performance degradation, likely due
CoRE w/o LMA: The cross-city latent manifold alignment
                                                                                                                                                 to overfitting or increased computational complexity.
component is removed, and only the losses LRE and LLIA
are used. 3) CoRE w/o LIA: The cross-city latent individual                                                                                      The parameters α and β control the influence of different
alignment component is removed, and only the losses LRE                                                                                          components in the total loss function. To investigate their
and LLMA are used.                                                                                                                               impact, we vary their values within the range {0.01, 0.1,
                                                                                                                                                 1, 10, 100}. Figure 7 illustrates the MAE results for the
The results of CoRE and its variants in terms of MAE for
                                                                                                                                                 XA/CD pair, demonstrating that CoRE achieves optimal
XA/CD and CD/XA pairs are shown in Figure 5. Additional
                                                                                                                                                 performance when both α and β are set to 1. Deviating
results for other city pairs are provided in Appendix A.6.
                                                                                                                                                 from this balance, either by increasing or decreasing α and
We observe that both CoRE w/o LMA and CoRE w/o LIA
                                                                                                                                                 β, leads to suboptimal performance.
underperform compared to CoRE. The former struggles to
align embedding spaces from a global perspective, while
the latter lacks the ability to finely align individual region                                                                                   5. Conclusion
representations across cities. Additionally, CoRE w/o One-
                                                                                                                                                 In this paper, we introduce CoRE, a framework that in-
Stage exhibits inferior performance due to its inability to
                                                                                                                                                 tegrates region embedding learning with cross-city latent
adaptively adjust region representations based on the effec-
                                                                                                                                                 space alignment to produce compatible and comparable
tiveness of cross-city latent space alignment.
                                                                                                                                                 consistency region representations across cities. CoRE com-
                                                                                                                                                 prises three key modules: 1) an intra-city region embedding
4.4.2. S TUDY OF PARAMETER S ENSITIVITY
                                                                                                                                                 module that generates city-specific region representations
The parameter Na represents the number of virtual parallel                                                                                       from human mobility data, 2) a latent manifold alignment
anchors used in latent manifold alignment. To evaluate its                                                                                       module that aligns data manifolds of two spaces using rela-
impact on model performance, we vary Na from 200 to                                                                                              tive representations, 3) a latent individual alignment module
2000 in increments of 200. Figure 6 presents the MAE                                                                                             that ensures precise alignment of individual regions across
results for the XA/CD and CD/XA pairs, with similar trends                                                                                       cities through a cross-attention mechanism. Experimental
observed for the other four city pairs. Our analysis reveals                                                                                     results on data from three cities demonstrate that CoRE out-
that CoRE performs poorly when Na = 200, indicating                                                                                              performs state-of-the-art methods in cross-city prediction
that an insufficient number of anchors hinders effective                                                                                         tasks. Importantly, our approach eliminates the need for
manifold alignment. Increasing Na from 200 to 1000 leads                                                                                         manual inter-city correspondence rules, making it broadly
to a significant improvement in performance, suggesting                                                                                          applicable to unsupervised latent space alignment tasks.

                                                                                                                                             8
                           Cross-City Latent Space Alignment for Consistency Region Embedding

Impact Statement                                                     Haikal, C., Alizadeh, P., Rodrigues, C., and Chongke, B.
                                                                       Place embedding across cities in location-based social
Learning effective representations for urban regions (neigh-           networks. In Proceedings of the 37th ACM/SIGAPP Sym-
borhoods) has become an increasingly popular approach                  posium on Applied Computing, pp. 539–546, 2022.
for various urban analyses, such as inferring land use and
population distribution. These representations are typically         Huang, W., Zhang, D., Mai, G., Guo, X., and Cui, L. Learn-
learned in a self-supervised manner, without requiring task-           ing urban region representations with pois and hierarchi-
specific ground truth data. However, making task-specific              cal graph infomax. ISPRS Journal of Photogrammetry
predictions still relies on ground truth data to train predic-         and Remote Sensing, 196:134–145, 2023.
tors, which is often scarce or unavailable in practice. In
this work, we propose a cross-city latent space alignment            Hull, D. Using statistical testing in the evaluation of retrieval
method that enables the transfer of learned patterns across            experiments. In Proceedings of the 16th Annual Interna-
cities. This allows task predictors trained in a city with             tional ACM SIGIR Conference on Research and Develop-
ample ground truth data to be reused in another city with no           ment in Information Retrieval, pp. 329–338, 1993.
such data, making it possible to use region representations          Jia, H., Chen, M., Huang, W., Zhao, K., and Gong, Y. Learn-
in a fully label-free manner.                                           ing hierarchy-enhanced poi category representations us-
                                                                        ing disentangled mobility sequences. In Proceedings of
Acknowledgments                                                         the Thirty-Third International Joint Conference on Artifi-
                                                                        cial Intelligence, pp. 2090–2098, 2024.
This work was supported in part by the National Natural
Science Foundation of China under Grant No. 61906107                 Jiang, J., Pan, D., Ren, H., Jiang, X., Li, C., and Wang, J.
and 42101421, the Key Scientific and Technological In-                  Self-supervised trajectory representation learning with
novation Project of Shandong Province under Grant No.                   temporal regularities and travel semantics. In 2023 IEEE
2024CXGC010113 and 2024CXG010213, and the Young                         39th International Conference on Data Engineering, pp.
Scholars Program of Shandong University. W.H. was sup-                  843–855. IEEE, 2023.
ported by the Knut and Alice Wallenberg Foundation.
                                                                     Jin, Y., Chen, K., and Yang, Q. Selective cross-city transfer
                                                                        learning for traffic prediction via source city region re-
References                                                              weighting. In Proceedings of the 28th ACM SIGKDD
Bondarenko, M., Kerr, D., Sorichetta, A., and Tatem,                    Conference on Knowledge Discovery and Data Mining,
  A. Census/projection-disaggregated gridded population                 pp. 731–741, 2022.
  datasets for 189 countries in 2020 using built-settlement          Li, T., Xin, S., Xi, Y., Tarkoma, S., Hui, P., and Li, Y. Pre-
  growth model (bsgm) outputs. 2020.                                   dicting multi-level socioeconomic indicators from struc-
                                                                       tural urban imagery. In Proceedings of the 31st ACM
Chen, M., Li, Z., Huang, W., Gong, Y., and Yin, Y. Profil-             International Conference on Information & Knowledge
  ing urban streets: A semi-supervised prediction model                Management, pp. 3282–3291, 2022.
  based on street view imagery and spatial topology. In
  Proceedings of the 30th ACM SIGKDD Conference on                   Li, Y., Huang, W., Cong, G., Wang, H., and Wang, Z. Urban
  Knowledge Discovery and Data Mining, pp. 319–328,                     region representation learning with openstreetmap build-
  2024.                                                                 ing footprints. In Proceedings of the 29th ACM SIGKDD
                                                                       Conference on Knowledge Discovery and Data Mining,
Chen, M., Li, Z., Jia, H., Shao, X., Zhao, J., Gao, Q.,                 pp. 1363–1373, 2023.
  Yang, M., and Yin, Y. Mgrl4re: A multi-graph repre-
  sentation learning approach for urban region embedding.            Li, Z., Ning, H., Jing, F., and Lessani, M. N. Understanding
  ACM Transactions on Intelligent Systems and Technology,               the bias of mobile location data across spatial scales and
  2025a.                                                                over time: A comprehensive analysis of safegraph data in
                                                                        the united states. Plos one, 19(1):e0294430, 2024.
Chen, Y., Huang, W., Zhao, K., Jiang, Y., and Cong, G. Self-         Liu, C., Zhang, H., Zhu, G., Guan, H., and Kwong, S. Ex-
  supervised representation learning for geospatial objects:           ploring trajectory embedding via spatial-temporal propa-
  A survey. Information Fusion, pp. 103265, 2025b.                     gation for dynamic region representations. Information
                                                                       Sciences, 668:120516, 2024.
Ganin, Y., Ustinova, E., Ajakan, H., Germain, P., Larochelle,
  H., Laviolette, F., March, M., and Lempitsky, V. Domain-           Maaten, L. v. d. and Hinton, G. Visualizing data using
  adversarial training of neural networks. Journal of Ma-             t-sne. Journal of Machine Learning Research, 9(Nov):
  chine Learning Research, 17(59):1–35, 2016.                         2579–2605, 2008.

                                                                 9
                           Cross-City Latent Space Alignment for Consistency Region Embedding

Mai, G., Lao, N., He, Y., Song, J., and Ermon, S. Csp: Self-         Yang, G., Zhang, Y., Hang, J., Feng, X., Xie, Z., Zhang,
 supervised contrastive spatial pre-training for geospatial-           D., and Yang, Y. Carpg: Cross-city knowledge transfer
 visual representations. In International Conference on                for traffic accident prediction via attentive region-level
 Machine Learning, pp. 23498–23515. PMLR, 2023.                        parameter generation. In Proceedings of the 32nd ACM
                                                                       International Conference on Information and Knowledge
Moschella, L., Maiorca, V., Fumero, M., Norelli, A., Lo-               Management, pp. 2939–2948, 2023.
 catello, F., and Rodolà, E. Relative representations enable
 zero-shot latent space communication. In The Eleventh               Yao, Z., Fu, Y., Liu, B., Hu, W., and Xiong, H. Representing
 International Conference on Learning Representations,                 urban functions through zone embedding with human
 2023.                                                                 mobility patterns. In Proceedings of the Twenty-Seventh
                                                                       International Joint Conference on Artificial Intelligence,
Ning, Y., Liu, H., Wang, H., Zeng, Z., and Xiong, H. Uukg:             2018.
  Unified urban knowledge graph dataset for urban spa-
  tiotemporal prediction. Advances in Neural Information             Zhang, D., Chen, M., Huang, W., Gong, Y., and Zhao,
  Processing Systems, 36, 2024.                                        K. Exploring urban semantics: a multimodal model
                                                                       for poi semantic annotation with street view images and
Oda, T., Maksyutov, S., and Andres, R. J. The open-                    place names. In Proceedings of the Thirty-Third Inter-
  source data inventory for anthropogenic co2, version 2016            national Joint Conference on Artificial Intelligence, pp.
 (odiac2016): A global monthly fossil fuel co2 gridded                 2533–2541, 2024.
  emissions data product for tracer transport simulations
                                                                     Zhang, L., Long, C., and Cong, G. Region embedding with
  and surface flux inversions. Earth System Science Data,
                                                                       intra and inter-view contrastive learning. IEEE Trans-
 10(1):87–107, 2018.
                                                                       actions on Knowledge & Data Engineering, (01):1–6,
Saito, K., Watanabe, K., Ushiku, Y., and Harada, T. Max-               2022.
  imum classifier discrepancy for unsupervised domain                Zhang, M., Li, T., Li, Y., and Hui, P. Multi-view joint
  adaptation. In Proceedings of the IEEE Conference                    graph representation learning for urban region embed-
  on Computer Vision and Pattern Recognition, pp. 3723–                ding. In Proceedings of the Twenty-Ninth International
  3732, 2018.                                                          Conference on International Joint Conferences on Artifi-
                                                                       cial Intelligence, pp. 4431–4437, 2021.
Veličković, P., Cucurull, G., Casanova, A., Romero, A.,
  Lio, P., and Bengio, Y. Graph attention networks. arXiv            Zhang, Q., Huang, C., Xia, L., Wang, Z., Yiu, S. M., and
  preprint arXiv:1710.10903, 2017.                                     Han, R. Spatial-temporal graph learning with adversarial
                                                                       contrastive adaptation. In International Conference on
Wang, G., Schoenebeck, S., Zheng, H., and Zhao, B. ”will
                                                                       Machine Learning, pp. 41151–41163. PMLR, 2023.
 check-in for badges”: Understanding bias and misbehav-
 ior on location-based social networks. In Proceedings of            Zhao, N., Liu, Y., Cao, G., Samson, E. L., and Zhang, J.
 the International AAAI Conference on Web and Social                   Forecasting china’s gdp at the pixel level using nighttime
 Media, volume 10, pp. 417–426, 2016.                                  lights time series and population images. GIScience &
                                                                       Remote Sensing, pp. 1–19, 2017.
Wang, H. and Li, Z. Region representation learning via
 mobility flow. In Proceedings of the 2017 ACM on Con-
 ference on Information and Knowledge Management, pp.
 237–246, 2017.

Yabe, T., Tsubouchi, K., Shimizu, T., Sekimoto, Y., and
  Ukkusuri, S. V. City2city: Translating place represen-
  tations across cities. In Proceedings of the 27th ACM
  SIGSPATIAL International Conference on Advances in
  Geographic Information Systems, pp. 412–415, 2019.

Yabe, T., Tsubouchi, K., Shimizu, T., Sekimoto, Y., and
  Ukkusuri, S. V. Unsupervised translation via hierarchical
  anchoring: Functional mapping of places across cities.
  In Proceedings of the 26th ACM SIGKDD International
  Conference on Knowledge Discovery & Data Mining, pp.
  2841–2851, 2020.

                                                                10
                               Cross-City Latent Space Alignment for Consistency Region Embedding

A. Appendix
A.1. Data
We use real-world datasets from three cities: Xi’an (XA), Chengdu (CD), and Beijing (BJ). Each dataset comprises three
types of data, namely region data, human mobility data and socioeconomic indicator data. The details of each data type are
as follows:
1) Region data is obtained from Beijing City Lab1 . Each city is segmented into various regions, which serve as basic
spatial units defined by the road network. The number of regions in XA, CD, and BJ datasets are 1306, 1056, and 1311,
respectively.
2) Human mobility data includes one-month taxi trips from three cities, with each trip providing the latitude and longitude
of both the origin and destination (Jiang et al., 2023). The XA, CD, and BJ datasets contain 559729, 384618, and 78945
trips, respectively.
3) Socioeconomic indicator data includes GDP data (Zhao et al., 2017), population data (Bondarenko et al., 2020), and
carbon emission data (Oda et al., 2018) of the three cities, which are used in downstream tasks. Since the data types are raster
and the regions are irregular, we first map the pixels to the regions and then use the sum values as the final socioeconomic
indicators for those regions.

A.2. Description of Baselines
We compare our proposed CoRE with unsupervised latent space translation methods and domain adaptation techniques.
Among the translation methods, we primarily benchmark against the approach proposed by (Yabe et al., 2020). This method
first generates city-specific region representations and then employs three strategies (rank-based, hierarchical stochastic, and
hierarchical batch) to construct anchoring embedding matrices across cities. These matrices are aligned using Orthogonal
Procrustes and Affine alignment techniques, resulting in the following baselines:

   • RP (Rank-based Anchoring + Procrustes): Establishes one-to-one correspondences by sorting regional ranks within
     each city, forming anchoring pairs that are aligned using the Orthogonal Procrustes method.

   • RA (Rank-based Anchoring + Affine): Similar to RP but employs Affine alignment instead of Orthogonal Procrustes.

   • HSP (Hierarchical Stochastic Anchoring + Procrustes): Randomly selects anchoring pairs within each hierarchical
     level across cities and aligns them using the Orthogonal Procrustes method.

   • HSA (Hierarchical Stochastic Anchoring + Affine): Uses Affine alignment instead of Orthogonal Procrustes, as in HSP.

   • HBP (Hierarchical Batch Anchoring + Procrustes): Computes mean vectors of region representations at each hierarchi-
     cal level, constructs anchoring matrices, and aligns them using the Orthogonal Procrustes method.

   • HBA (Hierarchical Batch Anchoring + Affine): Replaces Orthogonal Procrustes with Affine alignment, differing from
     HBP.

Additionally, we include three domain adaptation methods and one knowledge transfer method for comparison:

   • MMD (Saito et al., 2018): Utilizes Maximum Mean Discrepancy (MMD) to minimize representation distribution
     disparities between source and target cities for effective alignment.

   • Adv (Ganin et al., 2016): Implements domain adversarial training to make region representations indistinguishable
     between cities, enabling distribution alignment through model parameter adjustments.

   • CrossTReS (Jin et al., 2022): Employs MMD to reduce the distribution discrepancies in representations between
     source and target cities. Furthermore, it constructs edge embeddings by concatenating the features of paired regions.
     An edge classification task is implemented to enhance the alignment of feature distribution.
   1
       https://www.beijingcitylab.com/data-released-1/

                                                              11
                             Cross-City Latent Space Alignment for Consistency Region Embedding


Table 2. Performance comparison on three downstream tasks, where the best results are represented in bold and the performance
improvements of CoRE are compared with the second best results marked by underlined.
                                          BJ(X)/CD(Y )                                                CD(X)/BJ(Y )
      Method                GDP             Population         Carbon                   GDP             Population         Carbon
                    MAE       MAPE        MAE      MAPE    MAE          MAPE    MAE       MAPE        MAE      MAPE    MAE      MAPE
     Individual     245.46    16.06      1170.74    9.89   361.29       25.57   321.48    12.63      997.96     6.62   240.71   6.56
        RP          210.89    11.89      1065.99    8.81   253.03       15.53   187.07        8.15   803.38     6.24   198.69   3.79
        RA          173.46        8.5    720.68     5.58   189.94       13.84   161.96        6.98   731.01     5.48   181.74   3.09
       HSP          198.11    11.45      1074.02    8.56   255.89       15.98   163.98        6.92   743.87     5.55   197.54   3.83
       HSA          176.49        8.57   685.37     4.19   170.52       12.46   158.64        6.55   726.02     5.35   189.95   3.68
       HBP          202.74    11.04      1092.02    8.82   250.42       14.86   187.39        8.13   843.17     6.53   187.69   3.63
       HBA          152.18        6.63   707.67     4.2    182.68       13.62   184.49        7.18   759.61     5.68   186.49   3.49
       MMD          179.28        8.58   904.79     6.75   230.04       14.4    199.39        8.66   873.23     6.64   197.82   3.82
       Adv          227.23    13.92      940.57     7.27   330.95       23.53   193.39        8.39   825.77     6.33   186.31   3.45
    CrossTReS       188.66        9.61   902.92     6.45   222.77       14.19   179.59        7.84   755.34     5.71   183.55   3.32
      CARPG         173.24        8.07   813.84     6.56   195.91       14.18   191.25        8.54   741.44     5.53   187.13   3.58
       CoRE         148.55        6.22   665.16     4.07   148.49       10.09   141.96        5.79   676.87     4.73   179.25   2.95
 Improvement (%)     2.39         6.18    2.95      2.86   12.92        19.02   10.51         11.6    6.77     11.59    1.37    4.53
                                          XA(X)/BJ(Y )                                                BJ(X)/XA(Y )
      Method                GDP             Population         Carbon                   GDP             Population         Carbon
                    MAE       MAPE        MAE      MAPE    MAE          MAPE    MAE       MAPE        MAE      MAPE    MAE      MAPE
     Individual     362.51    15.35      1102.51    6.84   374.34       8.71    500.1     18.28      1238.58   11.92   372.03   9.23
        RP          230.14        7.96   699.15     3.51   215.86       3.81    224.03        7.01   795.08     7.38   213.86   6.04
        RA          212.87        7.41   666.45     3.47   175.31       3.28    175.04        3.87   674.65     4.83   182.05   4.79
       HSP          229.63        7.96   744.88     3.81   224.14       4.06    208.79        6.97   1042.84   10.06   306.32   8.25
       HSA          167.06        5.88   630.88     3.21   186.08       3.62    188.86        5.33   735.32     6.57   227.79   6.03
       HBP          264.14        8.29   905.45     4.81   261.15       5.81    207.27        6.85   963.11     9.81   291.51   7.93
       HBA          170.67        6.35   659.64     3.43   191.89       3.65    173.02        3.91   682.59     4.89   181.05   4.83
       MMD          242.42        8.76   856.39     4.37   236.43       4.16    198.91        6.42   788.16     6.89   231.81   6.45
       Adv          235.38        8.54   886.34     5.89   260.98       5.75    241.76        8.38   972.23     9.91   257.08   6.57
    CrossTReS       187.07        7.27   674.28     3.53   196.13       3.71    188.99        4.99   740.94     6.83   217.4    6.12
      CARPG         177.08        6.71   746.81     3.84   246.33       4.41    228.84        6.98   910.22     8.67   267.8    7.32
       CoRE         154.85        5.45   608.66     2.94   173.82       3.12    164.96        3.65   623.92     4.66   176.25   4.38
 Improvement (%)     7.31         7.31    3.52      8.41    0.85        4.88     4.66         5.68    7.52      3.52    2.65    8.56




   • CARPG (Yang et al., 2023): Facilitates cross-city knowledge transfer by constructing an inter-city region graph, where
     regions from the source and target cities are connected based on feature similarity. A reconstruction loss is incorporated
     to enable joint learning of region representations across both cities during the training stage.



Finally, we introduce a lower-bound baseline, Individual, which generates city-specific region representations without any
cross-city alignment.

A.3. Performance Comparison with Baselines
Table 2 presents the cross-city socioeconomic indicator prediction performance of various methods across XA, BJ, and CD
datasets, with X as the source city and Y as the target city. For the four city pairs (BJ/CD, CD/BJ, BJ/XA, and XA/BJ), our
CoRE method also demonstrates the best performance.

                                                                   12
                                        Cross-City Latent Space Alignment for Consistency Region Embedding

A.4. Visualization of Region Representations
We visualize the region representations of two cities by projecting them onto 2D planes using t-SNE (Maaten & Hinton,
2008). The results from the XA and BJ datasets, including CoRE, CoRE w/o LIA (which represents the complete CoRE
model excluding the cross-city latent individual alignment component), and the baseline method (HBA), are shown in
Figure 8. In these plots, each point represents a region, with green squares for BJ regions and yellow triangles for XA
regions. Figure 8 (a) indicates that the region representations from HBA are only partially aligned. Notably, as shown in
Figure 8 (b), CoRE w/o LIA exhibits a discernible trend that the overall distributions of region representations from the two
cities are similar, suggesting that our latent manifold alignment method enhances the similarity between the data manifolds
of the two latent spaces, while still falling short in individual-level alignment. Figure 8 (c) shows that CoRE effectively
aligns individual region representations across cities, demonstrating fine-grained alignment of latent spaces from global and
local perspectives.




                      (a) HBA                                            (b) CoRE w/o LIA                                                   (c) CoRE

Figure 8. Exhibition of region representations of two cities in 2D planes, with green squares denoting region representations from the BJ
data and yellow triangles denoting region representations from the XA data.


A.5. Within-City Performance
To investigate the potential trade-off between cross-city and within-city predictive performance, we conducted experiments
evaluating CoRE on within-city prediction tasks. We compared CoRE against representative mobility-based region
embedding methods: HDGE (Wang & Li, 2017) constructs human mobility flow graphs and applies graph embedding to
learn region representations; ZE-Mob (Yao et al., 2018) models co-occurrence patterns between regions for representation
learning. We also included a variant of our model, CoRE w/o Alignment, which does not perform cross-city alignment and
thus serves as a city-specific embedding baseline. We evaluated within-city performance for three cities (XA, CD, BJ) on
three downstream tasks: GDP estimation, population prediction, and carbon emission prediction. Results in terms of MAE
and MAPE are shown in Table 3.

Table 3. Within-city predictive performance on three tasks. “X/Y” denotes training and testing on the same city. The best results per
column are in bold.
                                         XA(X)/XA(Y )                                      CD(X)/CD(Y )                                      BJ(X)/BJ(Y )
      Method               GDP             Population        Carbon           GDP            Population       Carbon           GDP            Population        Carbon
                       MAE     MAPE      MAE      MAPE   MAE      MAPE   MAE      MAPE     MAE      MAPE   MAE     MAPE   MAE      MAPE     MAE      MAPE   MAE      MAPE
       HDGE           207.36   12.58     616.37   5.45   175.24   5.95   174.39   18.98    701.82   4.97   73.84   6.08   124.55     5.57   708.58   5.57   202.60   5.43
      ZE-Mob          199.09   11.82     597.54   5.35   169.06   5.78   173.49   20.72    687.44   4.90   72.56   6.07   122.46     5.46   695.64   5.45   198.39   5.31
 CoRE w/o Alignment   165.36     7.24    498.38   2.96   140.81   3.31   146.35     9.05   611.24   3.01   64.34   3.41   107.13     3.24   595.11   3.08   174.82   3.19
       CoRE           172.91   10.11     508.78   3.51   143.53   3.86   148.31   10.09    621.58   3.65   65.88   4.35   107.82     3.44   608.95   3.38   176.29   3.36



As shown in Table 3, CoRE achieves strong within-city performance, consistently outperforming mobility-based baselines.
CoRE exhibits a marginal compromise compared to its variant without cross-city alignment, which is an expected trade-off
for its cross-city alignment capabilities.

A.6. Ablation Study
The results of CoRE and its variants in terms of MAE and MAPE for the four city pairs (CD/BJ, BJ/CD, BJ/XA, XA/BJ) are
shown in Figure 9. We observe that CoRE w/o LMA, CoRE w/o LIA and CoRE w/o One-Stage underperform compared to

                                                                                     13
                                                      Cross-City Latent Space Alignment for Consistency Region Embedding

the full CoRE model, which further validates the effectiveness of the newly designed cross-city alignment components and
one-stage learning paradigm.

                                                                                                                                                                        
                               Z  R  2 Q H  6 W D J H           Z  R  / , $                                Z  R  2 Q H  6 W D J H           Z  R  / , $                                Z  R  2 Q H  6 W D J H           Z  R  / , $
                               Z  R  / 0 $                       & R 5 (                                      Z  R  / 0 $                       & R 5 (                                      Z  R  / 0 $                       & R 5 (
                                                                                                                                                                        
   0 $ (




                                                                                    0 $ (




                                                                                                                                                                     0 $ (
                                                                                                                                                                        
               & '  % -         % -  & '          % -  ; $        ; $  % -               & '  % -         % -  & '          % -  ; $        ; $  % -               & '  % -         % -  & '          % -  ; $        ; $  % -
                                                                                                                                                                         
                              Z  R  2 Q H  6 W D J H            Z  R  / , $                               Z  R  2 Q H  6 W D J H            Z  R  / , $                               Z  R  2 Q H  6 W D J H            Z  R  / , $
                              Z  R  / 0 $                        & R 5 (                                     Z  R  / 0 $                        & R 5 (                                     Z  R  / 0 $                        & R 5 (
                                                                                                                                                                         
   0 $ 3 (




                                                                                    0 $ 3 (




                                                                                                                                                                     0 $ 3 (
                                                                                                                                                                          
                & '  % -        % -  & '          % -  ; $        ; $  % -                  & '  % -        % -  & '          % -  ; $        ; $  % -                  & '  % -        % -  & '          % -  ; $        ; $  % -
                       (a) GDP Prediction                                                          (b) Population Prediction                                                   (c) Carbon Emission Prediction

                                                                          Figure 9. Performance comparison of different variants.




                                                                                                                        14
