                             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
