
===== PDF PAGE 1 =====
                GCAL: Adapting Graph Models to Evolving Domain Shifts


Ziyue Qiao * 1 Qianyi Cai * 2 Hao Dong 3 Jiawei Gu 1 Pengyang Wang 4 Meng Xiao 3 Xiao Luo 5 Hui Xiong 2 6


                         Abstract                                       Graph Model                  Graph Model
                                                                                        Continual
                                                                                       Adaptation
      This paper addresses the challenge of graph do-
      main adaptation on evolving, multiple out-of-                             Θ(,$                       Θ(
                                                                                                t
                                                                                             ven g
      distribution (OOD) graphs. Conventional graph                                     Pre ettin
                                                                                          or g
                                                                                        F
      domain adaptation methods are confined to single-                                                  …
                                                                             …    …
                                                                                           …
      step adaptation, making them ineffective in han-                      …                              …
                                                                                                     …
      dling continuous domain shifts and prone to catas-                    .(,$                .(
      trophic forgetting. This paper introduces the                          Evolving OOD graphs
                                                                                      (a)                                 (b)
      Graph Continual Adaptive Learning (GCAL)
      method, designed to enhance model sustainabil-
      ity and adaptability across various graph domains.             Figure 1. (a) The challenge of continual adaptation of graph mod-
                                                                     els on evolving OOD graph sequences. (b) Empirical evaluations
      GCAL employs a bilevel optimization strategy.
                                                                     of the SOTA graph adaptation method across four OOD graph
      The ”adapt” phase uses an information maximiza-                datasets in a continual adaptation setting.
      tion approach to fine-tune the model with new
      graph domains while re-adapting past memories
      to mitigate forgetting. Concurrently, the ”gener-
      ate memory” phase, guided by a theoretical lower               tricate connections, have been pivotal in advancing data min-
      bound derived from information bottleneck theory,              ing and knowledge discovery. Classic graph models such as
      involves a variational memory graph generation                 Graph Convolutional Networks (GCNs) (Kipf & Welling,
      module to condense original graphs into memo-                  2016) and Graph Attention Networks (GATs) (Veličković
      ries. Extensive experimental evaluations demon-                et al., 2017) have been successfully applied in numerous
      strate that GCAL substantially outperforms exist-              applications ranging from social network analysis (Dong
      ing methods in terms of adaptability and knowl-                et al., 2023; Qiao et al., 2022; Sun et al., 2024) to bioinfor-
      edge retention. The code of GCAL is available at               matics (Huang et al., 2024; Wang et al., 2024c) and recom-
      https://github.com/joe817/GCAL.                                mendation systems (He et al., 2020; Wu et al., 2024b).
                                                                     Despite the successes, the sustainability of graph models
                                                                     in handling ever-increasing volumes of graph data presents
1. Introduction                                                      unique challenges, particularly in scenarios involving new,
Graphs are ubiquitously present in the real world, serving as        unseen graphs. Such OOD scenarios commonly arise when
fundamental structures for representing complex systems in           a model trained on one set of graph data is applied to a
a multitude of domains. Graph models, leveraging these in-           different and novel set. This discrepancy underscores a
                                                                     pivotal issue in graph machine learning: Domain Adaptation
  *
    Equal contribution 1 School of Computing and Information         in Graph Models. The objective is to enhance the model’s
Technology, Great Bay University 2 Thrust of Artificial Intel-       inference ability to generalize across different but related
ligence, The Hong Kong University of Science and Technol-
ogy (Guangzhou) 3 Computer Network Information Center, Uni-          graph distributions without substantial retraining.
versity of the Chinese Academy of Sciences 4 University of           However, the current body of research often limits its focus
Macau 5 Department of Computer Science, University of Cali-
fornia, Los Angeles 6 Department of Computer Science and En-         to single-step adaptations employing techniques like Max-
gineering, The Hong Kong University of Science and Technol-          imum Mean Discrepancy (MMD) (Dziugaite et al., 2015)
ogy Hong Kong SAR, China. Correspondence to: Hui Xiong               and adversarial learning (Dan et al., 2024; Qiao et al., 2023;
<xionghui@ust.hk>, Xiao Luo <xiaoluo@cs.ucla.edu>, Meng              Zhang et al., 2018). While useful, these techniques fall short
Xiao <shaow@cnic.cn>.                                                when the model is subjected to continual domain shifts over
Proceedings of the 42 nd International Conference on Machine         time or domains: As graph datasets grow and evolve, models
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025          encounter new domains that necessitate ongoing adaptation
by the author(s).                                                    but lose their ability to adapt to previous graphs, resulting

                                                                 1


===== PDF PAGE 2 =====
                                  GCAL: Adapting Graph Models to Evolving Domain Shifts

in catastrophic forgetting. The problem is illustrated in Fig-        2. Preliminary
ure 1 (a), and as the empirical results depicted in Figure 1
(b), the state-of-the-art (SOTA) graph domain adaptation              We present the formulation for the continual adaptive learn-
method EERM (Wu et al., 2022b) experiences a continuous               ing on graphs. Given a graph model f (Θ0 ) : Gs → Y
and serious decline in performance across four evolving               pre-trained on one or multiple source graphs for a specific
OOD graph datasets.                                                   classification task, where Θ0 represents the pre-trained pa-
                                                                      rameters, Gs is the source graph and Y = {y1 , y2 , ..., yC }
Continual learning (Wang et al., 2024a; 2022; Zhang et al.,           is the set of C classes. The sequence of m target domain
2022a;b; 2023b), or lifelong learning, offers a promising so-         graphs is defined as {G1 , G2 , ..., Gm }, where each graph
lution to mitigate catastrophic forgetting. A widely adopted          Gt = {At , Xt } belong to the t-th domain. At ∈ RNt ×Nt
strategy within this paradigm is the replay mechanisms,               is the adjacency matrix and Nt are the numbers of nodes.
where the model periodically revisits selected or generated           Xt ∈ RNt ×d is the attribute matrices and d are the dimen-
old data to reinforce past knowledge. This practice helps in          sions of node attributes. In this scenario, the target graphs
maintaining a balance between training cost and knowledge             arrive one by one sequentially, and each target graph may
retention. However, existing approaches typically rely on             exhibit a different distribution from previous ones due to
labeled data to select and replay memories, presenting a sub-         changes in the underlying data over region and time, i.e.,
stantial barrier in many applications where such labels are           p(Gi ) ̸= p(Gj ), ∀i ̸= j, where p(·) is the data distribu-
either unavailable or prohibitively expensive to obtain. This         tion. We aim at sustainable reusing of the graph model for
introduces a significant research gap: the development of             the continual adaptation and inference on multiple out-of-
continual adaptive methods for unsupervised memory gen-               distribution target domains within the same task in an online
eration and replay in graph models. Such methods would                fashion. As the target domain graph Gt arrives, we feed
need to autonomously identify critical features and struc-            the model on Gt to adapt the parameters Θt−1 → Θt and
tural patterns within graphs that are essential for the model’s       make the prediction accordingly. There are two purposes
long-term adaptability and robustness.                                in the process of test-time training: (1) Adapting: we aim
In this paper, we introduce a novel method named Graph                to ensure that the model adapts effectively to new target do-
Continual Adaptive Learning (GCAL), specifically designed             main graphs as they arise; (2) Avoid Forgetting: we aim to
to tackle the challenges of catastrophic forgetting in graph          retain the model’s performance on previously encountered
models’ continual adaptation. Our approach employs an                 target graphs after each adaptation, all without the need for
”adapt and generate memory” bilevel optimization strat-               complete retraining.
egy, activated each time new graph data is introduced. For
”adapt,” we utilize an information maximization approach              3. Methodology
to adapt the model to new domain graphs, simultaneously
re-adapting the previous memory graphs to prevent forget-             As shown in Figure 2, our method first utilizes an infor-
ting. For ”generate memory,” we theoretically derive a lower          mation maximization approach to adapt the current model
bound for preserving informative and generalized memory               Θt−1 to the newly arrived graph Gt while simultaneously
graphs from the current graph, leveraging the principles of           conducting memory replay on the previous memory graphs
the information bottleneck. The main contributions of this            to avoid forgetting, which will be introduced in Sec. 3.1.
research are outlined as follows:                                     Then the updated model parameter Θt is used to learn the
                                                                      small memory graph G   b t for Gt , which will be introduced
                                                                      in Sec. 3.2. To generate the memory graph, we develop a
   • We introduce the GCAL framework to effectively man-              variational memory graph generation module comprising
     age catastrophic forgetting and enhance the sustainable          a variational GNN, a trainable selector, and a novel graph
     reuse of graph models during their continual adaptation          structure learning and reparameterization technique. To
     across evolving OOD graph data.                                  optimize the memory graph, we follow the lower bound
                                                                      to introduce three learning objectives. The memory graph
   • We derive a theoretical lower bound that ensures the             learning loss uses a graph condensation technology to learn
     preservation of informative and generalized memory               task-related memory graphs. The regularization losses are
     graphs. Based on this foundation, we design a memory             proposed to ensure the stability and informativeness of the
     graph generator equipped with three tailored losses to           memory graph. The generation loss enhances the relevance
     effectively guide the memory graph learning process.             of the memory graph to the original graph.
   • We conduct extensive experiments on various graph
                                                                      3.1. Adaptation with Memory Replay
     datasets, demonstrating that GCAL significantly out-
     performs state-of-the-art across domain shifts.                  In the t-th adaptation step, the goal is to refine the current
                                                                      model f (Θt−1 ) to make the prediction to enhance its pre-

                                                                  2


===== PDF PAGE 3 =====
                                                   GCAL: Adapting Graph Models to Evolving Domain Shifts

                                                     Adaptation with Memory Replay                             Memory Graph Learning
            .(
                         …       …            GNN           Classifier                                        .(                       GNN     Classifier
                         …                                                                                          …       …
                                                                                                                                                                             %/7@
    Step                                                   Θ$D2                                                    …
     t+1                                                                             -)                                                        Θ$           )(Θ( )
                     …
                                     …       Parameter sharing                                   %/*;
                                                                                                                                (%     (&      … ('
                                              GNN          Classifier
                                                                                                                Variational
                                                                                                                                                                        Forward Pass
   Memory            …       …                                                                                   Memory                     %*?A               %?9B
   Graph                                                                                                      Graph Generator
   Pool '
                                                          Θ$D2                       -)*                            Φ                                                 Backpropagation
                                                                                                                                (' %    (' &   … ('
                                                                                                                                                      '
    Variational Memory Graph Generator
                                                      K       ((+. , /.4)                                                                                   ' ()
                                                                                                                                                            )(Θ
                             GNN$, &          0+                                /                            ./(                       GNN     Classifier
                                                                            1/( .(
            …    …                                     …
                                                                                                                       …
                                                                                                                                                                             %/7@
   .(
                                                                                           …     %;9C                   …
            …                                log&-                  …       #" (           …                                                   Θ$
                                         TopKSelector


Figure 2. The GCAL framework involves several steps: Starting with the graph model f (Θt−1 ), the current graph Gt , and the accumulated
memory graph pool G = {G   b i }t−1 , GCAL first applies the Adaptation with Memory Replay method using loss LAM R for model adaptation.
                                i=1
Next, a Variational Memory Generator creates a new memory graph G         b t for Gt , which is refined using the memory graph learning loss
LM GL , the regularization losses LReg to ensure stability and informativeness, and the generation loss LGen to enhance the memory
graph’s relevance to Gt . Finally, Gb t is added to G for future adaptation.


dictive accuracy on target domain graphs. Since there is no                                               By combining the adaptation loss on the new graph Gt with
label on the target graphs, the model adaptation is primar-                                               the adaptation losses on the graphs in the memory pool G,
ily conducted self-supervised. We adopt the Information                                                   the model f (Θt−1 ) is continually refined to adapt to new
Maximization (Liang et al., 2020) leveraged on the output                                                 graphs while reinforcing performance on historical graphs.
probability of the model. This approach rests on the fun-
damental premise: A model that effectively discriminates                                                  3.2. Variational Memory Graph Generation
target data will exhibit high inferential confidence, char-
acterized by output probabilities that closely resemble a                                                 In our model, meanwhile adapting to the new graph Gt with
one-hot vector. With the output probability pv of each node                                               memory-aware replay, our goal is also to learn the memory
                                                                                                          Gb t corresponding to Gt , forming a series of memories Gt
v encoded from pre-trained model f (Θt−1 ), the objective
to minimize risk (see Eq. 1) on is as follows:                                                            that can be replayed when the next adaptation task arrives to
                                     hP                                 i                                 prevent forgetting. We consider three factors: (1) the mem-
                                         C                                      PC
LAdp (G; Θt−1 ) = −Ev∼V                  k=1 pv,k log(pv,k )                +          bk log pbk ,
                                                                                   k=1 p                  ory size should be significantly smaller than the original
                                                           (1)                                            graph, (2) the memory should be informative, retaining as
where pi,k denotes the k-th element of pi . The expected                                                  much important information from the source graph as possi-
probability pbk is calculated as pbk = Ev∈V [pv,k ]. The sec-                                             ble, and (3) the memory should be generalizable, capable
ond term introduces a diversity regularization designed to                                                of being stored across diverse graph distributions.
enhance the variety of output probabilities. This regulariza-
tion helps prevent the issue where a few high integrity scores                                            3.2.1. D ERIVING I NFORMATION B OTTLENECK ON
might dominate during training, potentially causing all un-                                                      M EMORY G RAPHS
labeled nodes to converge towards the same pseudo-label,
resulting in overfitting.                                                                                 To achieve the above motivations, we proposed a varia-
                                                                                                          tional information bottleneck based memory graph genera-
To prevent the model from forgetting previously learned                                                   tion method. Graph information bottleneck (Sun et al., 2022;
graphs while adapting to new graphs, known as memory                                                      Wu et al., 2020b) usually aims to maximize the below:
replay in continual learning, we apply the information max-                                                                       h                             i
imization loss not only to the new graph but also to all                                                           G
                                                                                                                   b t = arg max I(G b t ; Ybt ) − βI(G
                                                                                                                                                      b t ; Gt ) , (3)
previous graphs. For efficient replay, we use a graph mem-                                                                       G
                                                                                                                                 bt

ory pool, denoted as G = {G   b1 , G            b t−1 }. This pool
                                   b2 , . . . , G
contains a sequence of smaller synthetic graphs, each repre-                                              where I(·; ·) denotes the mutual information and Ybt repre-
senting a previously encountered graph. We then perform                                                   sents the training signals associated with nodes in G   b t . The
adaptation using memory replay, formulated as follows:                                                    first term, I(Gt ; Yt ), aims to preserve task-related informa-
                                                                                                                        b    b
                                                   t−1
                                                                                                          tion within the memory, while the second term, I(G      b t ; Gt ),
                                                                                                          focuses on compressing information from the original graph
                                                   X
  LAM R = LAdp (Gt ; Θt−1 ) +                              LAdp (G
                                                                 b i ; Θt−1 ). (2)
                                                   i=1
                                                                                                          into the smaller memory graph, effectively filtering out irrel-

                                                                                                      3


===== PDF PAGE 4 =====
                                            GCAL: Adapting Graph Models to Evolving Domain Shifts

evant information. β acts as a trade-off parameter, balancing                         where p ∈ Rh is its trainable parameters. We compute the
the compression of input data with the preservation of task-                          logarithm of the standard deviation (i.e., log σ) rather than
relevant information.                                                                 directly calculating σ, which smoothly scales the deviation,
                                                                                      enhancing numerical stability and interpretability.
Despite the goal of G          b t to preserve information from the
graph, directly generating it from Gt is challenging. Instead,                           We first generate the latent variable of each node of the mem-
we generate G      b t from the original graph through a varia-                          ory graph from the distribution via the reparameterization
tional latent representation Zt , expressed as Pg (G                   b t |Gt ) =       trick:
                                                                                                       zbi ∼ N zbi |µi , σi2 = µi + σi2 ⊙ ε,
                                                                                                                               
Pg (Gt |Zt , Gt )Pg (Zt |Gt ) where g(Φ) is the generator with
      b                                                                                                                                                             (7)
parameter Φ. Utilizing this chain rule, we can reformulate                               where i = 1, ..., K and ε ∈ N (0, I) is a random variable
the second term in Eq.3 as: I(G              b t ; Gt ) = I(G    b t ; Gt , Zt ) −
                                                                                         drawn from a standard normal distribution. This reparam-
I(G b t ; Zt |Gt ). Consequently, the optimization objective for
                                                                                         eterization ensures that the sampling process remains dif-
generating G   b t can be reformulated as follows:                                       ferentiable, allowing the gradients to be backpropagated
                   h                                                                   i through the sampling step during training.
L(Φ) = max I(G           b t ; Ybt ) − βI(G   b t ; Gt , Zt ) + βI(G    b t ; Zt |Gt ) .
              Φ                                                                          Then, we assume zbi as the node features in the memory
                                                                                 (4)
                                                                                         graph and obtain the feature matrix via X              bt = id([b     zi ]K
                                                                                                                                                                   i=1 )
To optimize this objective in a parameterized manner, we
                                                                                         where id(·) is the identity function. We further generate the
derive a lower bound in the following Theorem:
                                                                                         edges of the memory graph from zbi . We assume that each
Theorem 3.1. Let G           b t be a generated graph conditioned                        edge follows an independent Bernoulli distribution, with
on the latent representation Zt of the original graph Gt .                               each edge characterized by a binary random variable ai,j ∼
Suppose Q(G      b t ) is a variational approximation of the true                        Bernoulli(wi,j ) for each edge. We use zbi to generate the
posterior P (G    b t ), Then, the following lower bound on the                          learnable Bernoulli weights for each edge. Given that ai,j is
optimization objective for Φ holds:                                                      non-differentiable to wi,j , we approximate it as a continuous
                                                                                         variable  within the interval [0,1]. To facilitate gradient-
 L(Φ) ≥E[log Pf (Ybt |G       b t )] − βE[KL(Pg (G      b t |Gt , Zt ) ∥ Q(G   b t ))]
                                                                                         based optimization, the Gumbel-Max reparameterization
            + βE[log(Pg (G       b t |Gt , Zt ))].                                       trick, as detailed by (Maddison et al., 2017), is employed
                                                                                 (5)     to update the edges as follows:
Here, KL(· ∥ ·) indicates the Kullback-Leibler divergence.
Pf is considered as the classifier f (Θt ).                                                                     (MLP([bzi ; zbj ]) + MLP([b    zj ; zbi ]))
                                                                                                   wi,j =                                                   ,
                                                                                                                                    2
The proof can be found in Appendix A. Thus, the mem-
                                                                                                                                                                  (8)
                                                                                                                                             δ
ory graph learning objective can be maximizing the above                                          a i,j   =   Sigmoid    (w   i,j +   log         )/τ       ,
                                                                                                                                          1−δ
lower bound. In the following sections, we first introduce
the variational memory generator. Then, we introduce the                                 where δ ∼ Uniform(0, 1) and τ represents the temperature
optimization objectives for each item in Equation 5 in detail.                           hyperparameter. As τ approaches 0, ai becomes increas-
                                                                                         ingly binary. The reparameterization enables a well-defined
                                                                                                    ∂a
3.2.2. VARIATIONAL M EMORY G RAPH G ENERATOR                                             gradient, ∂wi,j i,j
                                                                                                             , allowing for effective training of wi,j . Con-
In Theorem 3.1, we define the memory graph generator as                                  sequently,   a i,j  can be obtained through the training process
g(Φ) : P (Gt ) → P (G            b t ). We first employ a GNN archi-                     and  used  as   the   edge weight in constructing the adjacency
tecture to process the input graph Gt , transforming it into                             matrix  Abt for the memory graph.
latent distributions:                                                                    In this way, by combining the above modules together, we
   [µ; log σ] = TopKSelector(GNNµ,σ (At , Xt )),                                         obtain the variational memory graph generator g(Φ) and the
                                                                                     memory graph is obtained by G            b t = g(Gt , Φ) = {A             bt }.
                                                                                                                                                              bt , X
                                                              Xp
  TopKSelector(X) = argsort Sigmoid                                        [: K],        Leveraging the variational approach not only aids in the gen-
                                      X                       ∥p∥                        eration of nodes and edges but also helps in managing and
                                                                                 (6)
                   K∗h                           K∗h                                     optimizing the underlying distributions of these elements
where µ ∈ R               and log σ ∈ R                 represent the mean
                                                                                         efficiently.
and variance components for each node, respectively. K ≪
Nt is the number of nodes in the generated graph, and h
                                                                                         3.2.3. M EMORY G RAPH L EARNING VIA
is the hidden dimension. GNNµ,σ (·) is parameterized to
                                                                                                 C ONDENSATION L OSS
output a vector of dimensions 2 ∗ h, divided into mean
and variance components. To manage graph dimensionality                                  The first term in Eq.5, E[log Pf (Ybt |G         b t )], involves maxi-
and emphasize significant distributions, a top-k selector                                mizing the expected log-likelihood of the predicted out-
layer TopKSelector(·) reduces the number of distributions,                               comes given the generated memory graphs G                    b t . This can

                                                                                  4


===== PDF PAGE 5 =====
                                         GCAL: Adapting Graph Models to Evolving Domain Shifts

be reframed as minimizing the condensation loss (Jin et al.,                     the predefined probability parameter. Additionally, consis-
2021), a novel objective that enhances the fidelity and rele-                    tent with prevailing approaches in the literature, we define
vance of the generated graphs to downstream tasks:                               Q(X bt ) for node features as a Normal Gaussian distribution
                                                                                 N (0, I), where I represents the identity matrix in Rh×h .
           min L(f (G
                    b t ; Θt ), Ybt ),     b t ∈ Gt
                                           G                                     Then, the overall regularization loss can be defined as fol-
            Φ
                                                                  (9)            lows:
          s.t. Θt = arg min L(f (Gt ; Θt−1 ), Yt ),
                               Θ                                                                     K   h
                                                                                                  1 XX 2            2          2
                                                                                                                                      
where L is the task-related loss on the graphs and corre-                        LReg = min                 µi,j + σi,j − log(σi,j )−1 +
                                                                                           Φ      2 i=1 j=1
sponding training signals. As Ybt and Yt are not directly
                                                                                           K 
observable, we instead use the adaptation loss in Eq.1 with
                                                                                                                                                   
                                                                                           X                wi,j                   1 − wi,j
the soft pseudo-labels as training signals. In previous ap-                                        wi,j log      + (1 − wi,j ) log                     .
                                                                                          i,j=1
                                                                                                             q                      1−q
proaches, the gradient matching scheme was often employed
                                                                                                                                               (13)
to minimize this loss. This method aligns the gradients of
the model trained on the generated memory graph G     b t with                   This approach acts as the regularization term that ensures
the gradients from the true graph Gt with respect to the                         that the variability introduced during the generation of new
network parameters Θt . By doing so, it ensures that the                         memory graphs is effectively controlled, leading to more
model’s behavior on the generated data closely mirrors its                       stable adaptations over successive domains.
behavior on actual data, facilitating better generalization:
                                                                               3.2.5. G ENERATION L OSS
                                 bt ;f (Θt )) ∂LAdp (Gt ;f (Θt ))
                          ∂LAdp (G
LM GL = minD                    ∂Θt          ,      ∂Θt                  ,       For the last terms Eq.5, the objective becomes minimiz-
                 Φ
                                                       (10)                      ing −E[log(Pg (G b t |Gt , Zt ))], the likelihood of generating
where D(·, ·) is the sum of the distance between gradients                       the graph Gt . In conventional methods, the original graph
                                                                                            b
at each layer. Given two gradients g   b ∈ Rd1 ×d2 and g ∈                       usually serves as a reference for optimizing the generated
  d1 ×d2
R        at a specific layer, the distance between them is                       graph, typically employing a reconstruction-based discrep-
defined as:                                                                      ancy loss to quantify the differences between the generated
                            d2                                                 and the original graphs. However, our approach deviates
                            X          b i · gi
                                       g                                         from traditional methods due to the reduced size of the gen-
                D(b
                  g, g) =          1−                     ,     (11)
                            i=1
                                       gi ∥∥gi ∥
                                      ∥b                                         erated graph, challenging direct structural and feature-based
                                                                                 comparisons. To address this, we adopt a distribution-based
where gbi , gi are the i-th column vectors of the gradient                       discrepancy measure, specifically designed to assess differ-
matrices. With this optimization, we are able to achieve                         ences in the aggregate properties of the graphs:
task-related memory graph learning through the efficient
                                                                                                                   K                Nt
gradient-matching strategy.                                                                                        X                X
                                                                                 LGen = min Dis(G
                                                                                                b t , Gt ) =             bi (Θ) −
                                                                                                                         u                ui (Θ)       ,
                                                                                            Φ                                                      2
                                                                                                                   i=1              i=1
3.2.4. R EGULARIZATION L OSS                                                                                                                (14)
The second term in Eq.5, E[KL(Pg (G     b t |Gt , Zt ) ∥ Q(G  b t ))],           where Dis(·) means the discrepancy between the memory
                                                                                                                                       ′
corresponds to the KL divergence measure the learned dis-                        graph and the original graph, u  bi (Θ), ui (Θ) ∈ Rh are the
tribution Pg of the predicted graph G     b t , given the actual                 hidden representations of nodes encoded from the model
graph Gt and latent variables Zt , deviates from a simpler                       f (Θ) before the final classification head. Note that the node
prior Q(Gb t ). We refine the prior distribution Q(G   b t ) by dis-             representations are different from those in Eq.7, which are
tinguishing between the components of node features and                          encoded by the variational generator. ∥ · ∥2 denotes the L2
edges, i.e., Q(G b t ) = Q(Abt , X
                                 bt ) = Q(A  bt ) · Q(Xbt ). Thus,               normalization distance. We did not use MMD or adversarial
the optimization objective of the term can be rewritten as                       alignment methods but a more concise measure to minimize
minimizing the following:                                                        the distribution discrepancy because the detailed distribution
                                                                                 learning has already been effectively optimized in the former
                      bt |Gt , Zt ) ∥ Q(A
          minE[KL(Pg (A                 bt ))]                                   modules, and additionally, our method is more efficient and
            Φ
                                                                (12)             robust.
                            bt |Gt , Zt ) ∥ Q(X
                 + E[KL(Pg (X                 bt ))].
                                                                                 3.3. Optimization
For the first term, as outlined in Section 3.2.2, we define
the edges to follow an independent Bernoulli distribution.                       Combining the loss of adaptation with memory replay and
Accordingly, we specify Q(A  bt ) such that each edge ai,j ad-                   the three losses in memory generation, we can establish the
heres to a Bernoulli distribution Bernoulli(q), where q is                       overall learning objective as a bi-level optimization frame-

                                                                             5


===== PDF PAGE 6 =====
                                      GCAL: Adapting Graph Models to Evolving Domain Shifts

work. When the t-th graph Gt arrives, the learning contains
                                                                       Table 1. The statistics of datasets with distribution shifts, where #
two stages, the inner loop aims to adapt the model f (Θt−1 )
                                                                       denotes ”the number of”.
on Gt while the outer loop aims to learn a memory graph
                                                                         Category      Datasets          #Nodes             #Edges          #Domains
Gb t based on the adapted model f (Θt ):
                                                                         Regional   Twitch-explicit   1,912 - 9,498     31,299 - 153,138        7
 min LM GL (Gt , Θt ; Φ) + λ1 LReg (Gt ; Φ) + λ2 LGen (Gt , Θt ; Φ),      Shifts    Facebook-100      769 - 41,554     33,312 - 2,724,458      12
 bt ,Φ
 G
                                                                        Temporal      Elliptic        1,089 - 7,880      1,168 - 9,164         41
s.t.                               b i }t−1 ; Θt−1 ),
         Θt = arg min LAM R (Gt , {G                                     Shifts      OGB-Arxiv        4,427 - 39,711     1,225 - 38,735        11
                                        i=1
                    Θ
                                                           (15)
where λ1 , λ2 are the loss weights. For the generator, for each
timestep, a new generator is utilized to create the memory             tic dataset, the metric used is the F1 Score, while for the
graph, and only the memory graphs are preserved in the                 OGB-Arxiv dataset, Accuracy is used. To compute a single
memory buffer. We also use an exponential moving average               numeric value upon completing all domains, PT   we calculate
(EMA) strategy (Wang et al., 2022) to update the mode                  the Average Performance (AP) as T1 i=1 MT,i      result
                                                                                                                               , primar-
parameters to smooth the parameter updates.                            ily assessing Padaptation ability, and the Average Forgetting
                                                                                  1     T −1    result     result
                                                                       (AF) as T −1     i=1 (MT,i − Mi,i ), primarily evaluating
                                                                       the ability to avoid forgetting. Each experiment is repeated
4. Experiments                                                         five times, with results reported as the mean and standard
4.1. Experimental Setup                                                deviation. Detailed introduction for datasets, baselines, and
                                                                       experimental settings is in Appendix B.
Datasets Our paper involves two primary categories of
graph datasets, differentiated by regional and temporal shifts.        4.2. Experimental Results
For regional shifts, Facebook-100(Traud et al., 2012) and
Twitch-Explicit(Rozemberczki et al., 2021) datasets consist            4.2.1. OVERALL P ERFORMANCE C OMPARISON .(RQ1)
of multiple social networks from different regions. For tem-
                                                                       This experiment aims to answer: How does GCAL perform
poral shifts, OGB-Arxiv(Hu et al., 2020) is a paper citation
                                                                       in the unsupervised continual adaptation setting across
network dataset, and Elliptic(Pareja et al., 2020) is a Bitcoin
                                                                       evolving graph data? We compare GCAL with various
transactions network dataset, both of which include graphs
                                                                       baselines divided by different domain adaptation strategies
from different time steps. In these datasets, each graph is
                                                                       and report the experimental results in Table 2. Note that
treated as a separate domain. We select certain domains to
                                                                       Test does not involve modifying the model; EERM and
pre-train a graph model and then adapt it continuously using
                                                                       GTrans train a new parameter at each graph, inapplicable to
the remaining graphs.
                                                                       previous ones. Thus, their AF results are not applicable. Ob-
Baselines. We evaluate the performance of our continual                viously, we observe that GCAL sets a new state-of-the-art,
adaptive learning framework against a diverse set of base-             surpassing all baseline methods across all datasets.
line methods. Test employs a pretrained graph model to
                                                                       Specifically, certain baseline methods, especially traditional
perform direct inference on the target dataset without any
                                                                       domain adaptation methods, demonstrate poor results. This
adaptation, serving as the lower bound. The category ”No
                                                                       can be attributed to the difficulty of the problem, which
Rehearsal Based Test-Time Adaptation” comprises one-step
                                                                       involves various timesteps of unsupervised continual adap-
test-time adaptation methods, including DANN (Ganin et al.,
                                                                       tation. This setting requires the model to dynamically adapt
2016), Tent (Wang et al., 2021), BN Stats Adapt (Li et al.,
                                                                       to new domains while concurrently retaining knowledge of
2016), EERM (Wu et al., 2022b), and GTRANS (Jin et al.,
                                                                       previous ones. Specifically, when a model fails to preserve
2022). The category ”Continual Test Time Adaptation”
                                                                       knowledge from the current domain, accumulating errors
refers to continual test-time training methods, including
                                                                       may disrupt performance in future domains and even cause
CoTTA (Wang et al., 2022) and EATA (Niu et al., 2022).
                                                                       the model to degrade over time. Our approach mitigates this
For baselines not originally designed for graphs, their archi-
                                                                       challenge and collectively enhances the sustainable reuse
tectures have been adapted to GCNs to ensure consistency
                                                                       of graph models and effectively alleviates catastrophic for-
in evaluation.
                                                                       getting across evolving graph data via the Adaptation with
Evaluation Metrics. We report the performance matrix                   Memory Replay framework. Among the advanced base-
M result ∈ RT ×T , which is a lower triangular matrix where            lines, the most comparable method to GCAL is CoTTA.
   result
Mi,j      (for i ≥ j) represents the performance on the do-            Our method outperforms CoTTA primarily by integrating
main j after training on the domain i. Specifically, similar to        the variational memory graph generation module. Instead of
(Jin et al., 2022; Wu et al., 2022b), for the Twitch-Explicit          solely using EMA for model updates, we employ the Varia-
and Facebook-100 datasets, the results are measured us-                tional Memory Generator to generate previous graphs that
ing ROC-AUC and Accuracy, respectively. For the Ellip-                 enhance knowledge transfer. This strategy not only lever-

                                                                   6


===== PDF PAGE 7 =====
                                                                                     GCAL: Adapting Graph Models to Evolving Domain Shifts


  Table 2. Data performance comparison across four datasets, evaluated against eight baseline methods and GCAL. Test represents the
  lower bound, while Full indicates the upper bound. N/A: Not Applicable.
                                                 Twitch-explicit                                      Facebook-100                                       Elliptic                             OGB-Arxiv
                           Methods
                                             AP-AUC/%↑      AF/%↑                                AP-ACC/%↑      AF/%↑                             AP-F1/%↑        AF/%↑                  AP-ACC/%↑    AF/%↑
                           Test              53.88±0.00                  N/A                     50.55±0.00           N/A                         53.97±0.00            N/A                42.43±0.00                  N/A
                           DANN              51.50±0.39               0.19±0.55                  50.63±0.64        0.38±1.13                      53.84±0.56        -0.95±0.54             42.62±0.23              -1.28±0.16
                           Norm              52.65±0.00              -2.30±0.00                  47.62±0.00        0.53±0.00                      54.67±0.00         0.02±0.00             40.21±0.00               0.11±0.00
                           TENT              52.84±0.98              -1.83±1.05                  46.63±0.00        0.61±0.00                      46.54±0.00         0.55±0.00             36.72±0.37              -0.02±0.18
                           EERM              52.08±0.00                  N/A                     49.70±0.03           N/A                         46.51±0.00            N/A                36.26±0.00                  N/A
                           GTrans            53.55±0.29                  N/A                        OOM               N/A                         54.25±0.02            N/A                39.69±0.04                  N/A
                           CoTTA             53.94±0.36               0.34±0.41                  50.12±0.16        0.59±0.12                      54.08±0.05        -1.92±0.06             40.28±0.01              -1.96±0.01
                           EATA              53.56±0.10              -0.72±0.07                  49.02±3.16       -0.57±0.03                      50.48±0.07        -0.76±0.06             40.91±0.70              -1.35±0.59
                           GCAL              55.65±0.09              0.42±0.13                   52.72±0.36       0.72±0.19                       56.57±0.14        0.88±0.13              45.22±0.17               0.76±0.05

                                                                                     58                                                  70
                                      Test      TENT         CoTTA                                 Test   TENT     EATA                                  Test       TENT     CoTTA                   60           Test   TENT     CoTTA
                                      DANN      EERM         EATA                                  DANN   EERM     GCAL                                  DANN       EERM     EATA                                 DANN   EERM     EATA
                  60
                                      Norm      GTrans       GCAL                    56            Norm   CoTTA                                          Norm       GTrans   GCAL                                 Norm   GTrans   GCAL
                                                                                                                                         65
                                                                                                                                                                                                     55
Average ROC-AUC




                  58                                                                 54




                                                                                                                                                                                     Average ACC/%
                                                                     Average ACC/%




                                                                                                                          Average F1/%
                                                                                                                                         60
                                                                                                                                                                                                     50
                  56                                                                 52


                                                                                                                                         55
                                                                                     50                                                                                                              45
                  54

                                                                                     48                                                  50
                  52                                                                                                                                                                                 40

                                                                                     46
                  50                                                                                                                     45
                       1    2     3       4    5         6      7                         1 2 3 4 5 6 7 8 9 10 11 12                          1     10     20          30     40                          1 2 3 4 5 6 7 8 9 10 11
                                       Domains                                                     Domains                                                Domains                                                 Domains
                           (a) Twitch-explicit                                               (b) Facebook-100                                        (c) Elliptic                                            (d) OGB-Arxiv

                                         Figure 3. Dynamics of the average performance during continual adaptation on evolving OOD graphs.


   ages past insights for improved adaptation but also enriches                                                                          accuracy matrices of GCAL and CoTTA on the Twitch and
   the training process, boosting the model’s adaptability and                                                                           Elliptic datasets. The results are presented in Figure 4. In
   robustness across evolving domains. DANN achieves rela-                                                                               these matrices, each row represents the performance across
   tively high performance among the baselines as it uses the                                                                            all domains upon learning a new one, while each column
   source graph to guide the adaptation, while others only use                                                                           captures the evolving performance of a specific domain as
   the target graph data. Notably, our method surpasses DANN                                                                             all domains are learned sequentially. In the visual repre-
   in four datasets, particularly in AP. This improvement is                                                                             sentation, darker shades signify better performance, while
   attributed to GCAL’s enhanced ability to adapt effectively                                                                            lighter hues indicate inferior outcomes.
   to new target domains, leverage knowledge from past ex-
                                                                                                                                         From the results, we observed that as the number of do-
   periences for better adaptation, and maintain performance
                                                                                                                                         mains increases, the learning objectives grow increasingly
   on previously encountered domains, all without the need
                                                                                                                                         complex, resulting in a reduction in performance across all
   for complete retraining. This novel approach significantly
                                                                                                                                         examined methods. That is because as domains accumulate
   bolsters the model’s performance and adaptability.
                                                                                                                                         and the learning objectives become multifaceted, it becomes
                                                                                                                                         challenging for models to maintain optimal performance
   4.2.2. I N -D EPTH A NALYSIS OF C ONTINUOUS
                                                                                                                                         across all domains. Notably, most baselines experienced
          P ERFORMANCE .(RQ2)
                                                                                                                                         a substantial decline, with the model collapsing with the
  This experiment aims to answer: How does GCAL’s fine-                                                                                  arrival of merely a few new domains, demonstrating that
  grained performance evolve after continuously learning                                                                                 catastrophic forgetting occurs almost immediately when
  each domain? To present a more fine-grained demonstration                                                                              the model fails to access previous domain data. This rein-
  of the model’s performance in continual adaptive learning                                                                              forces the need for effective continual learning techniques
  on graphs, we analyzed the average performance across                                                                                  on the sequential graphs where new domains frequently
  all previously encountered domains each time a new do-                                                                                 emerge. While the performance drop was observed across
  main was learned. The comparative results of Test, DANN,                                                                               all methods, GCAL demonstrated resilience and outper-
  GCAL, and the top-performing baseline are depicted in Fig-                                                                             formed the top-performing baseline CoTTA. Also, GCAL
  ure 3. The curve represents the model’s performance after t                                                                            predominantly displays lighter shades across the majority
  in terms of AP on all previous t tasks. Also, we visualize the                                                                         of blocks compared to CoTTA in Figure 4. Moreover, its


                                                                                                                          7


===== PDF PAGE 8 =====
                                                                GCAL: Adapting Graph Models to Evolving Domain Shifts

                                                                                                                                                                               0.70                                                                    0.70
          1                                       0.58
                                                                      1                                     0.58
                                                                                                                                                                               0.65                                                                    0.65
          2                                                           2




                                                                                                                         10




                                                                                                                                                                                                 10
                                                  0.56                                                      0.56
          3                                                           3                                                                                                        0.60                                                                    0.60
Domains




                                                            Domains




                                                                                                                       Domains




                                                                                                                                                                                          Domains
                                                  0.54                                                      0.54




                                                                                                                          20




                                                                                                                                                                                             20
          4                                                           4                                                                                                        0.55                                                                    0.55

                                                  0.52                                                      0.52
          5                                                           5                                                                                                        0.50                                                                    0.50




                                                                                                                         30




                                                                                                                                                                                                 30
          6                                       0.50                6                                     0.50                                                               0.45                                                                    0.45

          7                                       0.48                7                                     0.48                                                               0.40                                                                    0.40




                                                                                                                         40




                                                                                                                                                                                                 40
              1    2   3     4   5    6   7                               1    2    3   4      5   6   7                                     10           20    30      40                                          10       20    30          40
                       Domains                                                       Domains                                                            Domains                                                            Domains

                  (a) Twitch-CoTTA                                            (b) Twitch-GCAL                                             (c) Elliptic-CoTTA                                                  (d) Elliptic-GCAL

                                                    Figure 4. Performance matrices of GCAL and CoTTA in different datasets.


                                                                                                                                         56.00                                                       54.00
                           Table 3. The results of the ablation study.                                                                   55.80                                                       53.00




                                                                                                                           Average AUC




                                                                                                                                                                                       Average ACC
              Methods            Twitch-explicit         Facebook-100               Elliptic       OGB-Arxiv                             55.60
                                                                                                                                                                                                     52.00
     w/o LReg & LGen                 54.03±2.63          52.05±0.31                46.53±0.01      44.70±0.06                            55.40
         w/o LReg                    55.34±0.41          52.37±0.56                55.23±0.32      44.76±0.48                            55.20                                                       51.00
         w/o LGen                    55.37±0.33          52.14±0.32                55.64±0.57      44.91±0.11
                                                                                                                                         55.00                                                       50.00
         w/o EMA                     54.79±0.04          47.66±0.06                53.83±0.20      43.19±0.08                                    0.09     0.10   0.11   0.12    0.13                         0.01        0.03   0.05    0.07    0.09
          GCAL                       55.65±0.09          52.72±0.36                56.57±0.14      45.22±0.17                                                Prompt Ratio                                                   Prompt Ratio

                                                                                                                                                 (a) Twitch-explicit                                         (b) Facebook-100
                                                                                                                                         58.00                                                       46.00
competitive performance in specific datasets signifies its                                                                               57.00                                                       45.50




                                                                                                                                                                                       Average ACC
                                                                                                                           Average F1

robustness and capability. This could be attributed to the                                                                               56.00                                                       45.00
”adapt and generate memory” framework, which not only re-                                                                                55.00                                                       44.50
tains critical knowledge from previous tasks but also adapts
                                                                                                                                         54.00                                                       44.00
to new ones.                                                                                                                                     0.01     0.02   0.03   0.04    0.05                         0.01        0.03   0.05    0.07    0.09
                                                                                                                                                             Prompt Ratio                                                   Prompt Ratio

 4.2.3. A BLATION S TUDIES .(RQ3)                                                                                                                       (c) Elliptic                                          (d) OGB-Arxiv

 This experiment aims to answer: Do all the proposed compo-                                                             Figure 5. The model performance with different synthetic ratios.
 nents of GCAL contribute effectively to continual adaptation
 on graphs? For that, we design four variant methods for
 GCAL to verify the EMA in the model parameter updat-
                                                                                                                        with K nodes for memory replay, where K is much
 ing module, regularization loss, and generation loss in the
                                                                                                                        less than the number of nodes in the initial graph.
 variational memory graph generation module: w/o LReg &
                                                                                                                        Thus, we set K as 0.01, 0.03, 0.05, 0.07, 0.09 of the num-
 LGen , w/o LReg , w/o LGen , and w/o EMA, where ”w/o”
                                                                                                                        ber of nodes for the datasets Facebook-100 and OGB-
 means ”without” the corresponding losses or components
                                                                                                                        Arxiv , and as 0.01, 0.02, 0.03, 0.04, 0.05 for Elliptic, and
 in model continual adapting. The results are presented in
                                                                                                                        0.09, 0.10, 0.11, 0.12, 0.13 for Twitch, respectively. From
 Table 3. Firstly, we can observe that when each of the losses
                                                                                                                        the results in Figure 5, we observe that even with a low
 or components is removed, the model’s performance de-
                                                                                                                        ratio of synthetic nodes, our model performs well across all
 creases across all datasets; while combining all modules, the
                                                                                                                        datasets. In particular, for Facebook-100 and OGB-Arxiv,
 method achieves the best results, providing straightforward
                                                                                                                        which have a larger number of nodes, the model continues to
 evidence that all the proposed techniques contribute to our
                                                                                                                        achieve promising results even at lower synthetic node ratios.
 method. For w/o LGen the generation loss, the method still
                                                                                                                        This demonstrates that our method effectively preserves the
 achieves remarkable results, primarily due to regularization
                                                                                                                        information from previous source distributions, as captured
 loss and EMA updates. These components help optimize
                                                                                                                        by µ and σ, highlighting its efficiency and robustness.
 the latent space representation and ensure smooth model
 updates, thereby enhancing generalization across diverse
 data distributions.                                                                                                     5. Conclusion
                                                                                                                         In conclusion, GCAL addresses the critical challenge of un-
 4.2.4. H YPERPARAMETER E XPERIMENTS .(RQ4)
                                                                                                                         supervised continual adaptation to out-of-distribution graph
 This experiment aims to answer: How do synthetic ra-                                                                    sequences. By employing a bilevel optimization strategy,
 tio impact the performance of GCAL? With the Varia-                                                                     GCAL effectively manages domain shifts and prevents catas-
 tional Memory Generator, we generate synthesized graphs                                                                 trophic forgetting. The method fine-tunes models on new

                                                                                                                   8


===== PDF PAGE 9 =====
                                  GCAL: Adapting Graph Models to Evolving Domain Shifts

domain graphs while reinforcing past memories through the            Ding, Z., Li, S., Shao, M., and Fu, Y. Graph adaptive
adaptation phase, and generates informative and relevant               knowledge transfer for unsupervised domain adaptation.
memory graphs guided by a theoretical framework rooted in              In Proceedings of the European Conference on Computer
information bottleneck theory. Experimental results indicate           Vision (ECCV), pp. 37–52, 2018.
significant improvements over existing methods in terms of
adaptability and knowledge retention, enhancing model sus-           Döbler, M., Marsden, R. A., and Yang, B. Robust mean
tainability and adaptability. A potential limitation of GCAL           teacher for continual and gradual test-time adaptation. In
is its lack of improvement in the graph model architecture             Proceedings of the IEEE/CVF Conference on Computer
itself. This could potentially hinder performance when the             Vision and Pattern Recognition, pp. 7704–7714, 2023.
base model itself is less capable or inadequate for complex          Dong, H., Ning, Z., Wang, P., Qiao, Z., Wang, P., Zhou, Y.,
graph data scenarios.                                                  and Fu, Y. Adaptive path-memory network for tempo-
                                                                       ral knowledge graph reasoning. In Proceedings of the
Impact Statement                                                      Thirty-Second International Joint Conference on Artifi-
                                                                       cial Intelligence, pp. 2086–2094, 2023.
This paper presents work whose goal is to advance the field
of Machine Learning, with a particular focus on model trans-         Dziugaite, G. K., Roy, D. M., and Ghahramani, Z. Training
fer learning under continual distribution shifts in structured         generative neural networks via maximum mean discrep-
data. There are many potential societal consequences of our            ancy optimization. arXiv preprint arXiv:1505.03906,
work, none of which we feel must be specifically highlighted           2015.
here. This research has been conducted with a commitment
                                                                     Gan, Y., Bai, Y., Lou, Y., Ma, X., Zhang, R., Shi, N., and
to ethical standards and presents no ethical concerns.
                                                                       Luo, L. Decorate the newcomers: Visual domain prompt
                                                                       for continual test time adaptation. In Proceedings of the
Acknowledgments                                                       AAAI Conference on Artificial Intelligence, volume 37,
                                                                       pp. 7595–7603, 2023.
The work is partially supported by the National Natural
Science Foundation of China (No. 62406056), the Guang-               Ganin, Y., Ustinova, E., Ajakan, H., Germain, P., Larochelle,
dong Basic and Applied Basic Research Foundation (No.                  H., Laviolette, F., March, M., and Lempitsky, V. Domain-
2024A1515140114, No. 2023B1515120057), the Beijing                     adversarial training of neural networks. Journal of ma-
Natural Science Foundation (No. 4254089), the National                 chine learning research, 17(59):1–35, 2016.
Key R&D Program of China (No. 2023YFF0725001),
the National Natural Science Foundation of China (No.                Gao, X., Chen, T., Zang, Y., Zhang, W., Nguyen, Q. V. H.,
92370204), and Guangzhou-HKUST(GZ) Joint Funding                       Zheng, K., and Yin, H. Graph condensation for inductive
Program (No. 2023A03J0008), Education Bureau of                        node representation learning. In 2024 IEEE 40th Inter-
Guangzhou Municipality. The computational resources are                national Conference on Data Engineering (ICDE), pp.
supported by SongShan Lake HPC Center (SSL-HPC) in                     3056–3069. IEEE, 2024.
Great Bay University.
                                                                     Hamilton, W., Ying, Z., and Leskovec, J. Inductive repre-
                                                                       sentation learning on large graphs. Advances in neural
References                                                             information processing systems, 30, 2017.
Cai, J., Wang, X., Guan, C., Tang, Y., Xu, J., Zhong, B.,            Hashemi, M., Gong, S., Ni, J., Fan, W., Prakash, B. A.,
  and Zhu, W. Multimodal continual graph learning with                 and Jin, W. A comprehensive survey on graph reduc-
  neural architecture search. In Proceedings of the ACM                tion: Sparsification, coarsening, and condensation. arXiv
  Web Conference 2022, pp. 1292–1300, 2022.                            preprint arXiv:2402.03358, 2024.

Dai, Q., Wu, X.-M., Xiao, J., Shen, X., and Wang, D. Graph           He, X., Deng, K., Wang, X., Li, Y., Zhang, Y., and Wang, M.
  transfer learning via adversarial domain adaptation with             Lightgcn: Simplifying and powering graph convolution
  graph convolution. IEEE Transactions on Knowledge and                network for recommendation. In Proceedings of the 43rd
  Data Engineering, 2022.                                              International ACM SIGIR conference on research and
                                                                       development in Information Retrieval, pp. 639–648, 2020.
Dan, J., Liu, W., Xie, C., Yu, H., Dong, S., and Tan, Y.             Hu, W., Fey, M., Zitnik, M., Dong, Y., Ren, H., Liu, B.,
  Tfgda: Exploring topology and feature alignment in semi-             Catasta, M., and Leskovec, J. Open graph benchmark:
  supervised graph domain adaptation through robust clus-              Datasets for machine learning on graphs. Advances in
  tering. In The Thirty-eighth Annual Conference on Neural             neural information processing systems, 33:22118–22133,
  Information Processing Systems, 2024.                                2020.

                                                                 9


===== PDF PAGE 10 =====
                                  GCAL: Adapting Graph Models to Evolving Domain Shifts

Huang, X., Ma, Z., Meng, D., Liu, Y., Ruan, S., Sun, Q.,                 In Proceedings of the IEEE/CVF Conference on Com-
  Zheng, X., and Qiao, Z. Praga: Prototype-aware graph                   puter Vision and Pattern Recognition, pp. 8266–8276,
  adaptive aggregation for spatial multi-modal omics anal-               2019.
 ysis. In AAAI 2025, 2024.
                                                                       Maddison, C., Mnih, A., and Teh, Y. The concrete dis-
Jin, W., Zhao, L., Zhang, S., Liu, Y., Tang, J., and Shah,              tribution: A continuous relaxation of discrete random
   N. Graph condensation for graph neural networks. arXiv               variables. In Proceedings of the international conference
   preprint arXiv:2110.07580, 2021.                                     on learning Representations. International Conference on
                                                                        Learning Representations, 2017.
Jin, W., Zhao, T., Ding, J., Liu, Y., Tang, J., and Shah,
   N. Empowering graph representation learning with test-              Niu, C., Pang, G., Chen, L., and Liu, B. Replay-and-forget-
   time graph transformation. In The Eleventh International              free graph class-incremental learning: A task profiling
   Conference on Learning Representations, 2022.                         and prompting approach. In The Thirty-eighth Annual
                                                                         Conference on Neural Information Processing Systems.
Kipf, T. N. and Welling, M. Semi-supervised classifica-
  tion with graph convolutional networks. arXiv preprint               Niu, S., Wu, J., Zhang, Y., Chen, Y., Zheng, S., Zhao, P.,
  arXiv:1609.02907, 2016.                                                and Tan, M. Efficient test-time model adaptation with-
                                                                         out forgetting. In International conference on machine
Li, J., Wang, Y., Zhu, P., Lin, W., and Hu, Q. What mat-                 learning, pp. 16888–16905. PMLR, 2022.
  ters in graph class incremental learning? an information
  preservation perspective. In The Thirty-eighth Annual                Pareja, A., Domeniconi, G., Chen, J., Ma, T., Suzumura,
  Conference on Neural Information Processing Systems,                   T., Kanezashi, H., Kaler, T., Schardl, T., and Leiserson,
  2024.                                                                  C. Evolvegcn: Evolving graph convolutional networks
                                                                         for dynamic graphs. In Proceedings of the AAAI confer-
Li, Y., Wang, N., Shi, J., Liu, J., and Hou, X. Revisit-                 ence on artificial intelligence, volume 34, pp. 5363–5370,
  ing batch normalization for practical domain adaptation.               2020.
  arXiv preprint arXiv:1603.04779, 2016.
                                                                       Qiao, Z., Fu, Y., Wang, P., Xiao, M., Ning, Z., Zhang, D.,
Liang, J., Hu, D., and Feng, J. Do we really need to access              Du, Y., and Zhou, Y. Rpt: toward transferable model
  the source data? source hypothesis transfer for unsuper-               on heterogeneous researcher data via pre-training. IEEE
  vised domain adaptation. In International conference on                Transactions on Big Data, 9(1):186–199, 2022.
  machine learning, pp. 6028–6039. PMLR, 2020.
                                                                       Qiao, Z., Luo, X., Xiao, M., Dong, H., Zhou, Y., and Xiong,
Liu, H., Yang, Y., and Wang, X. Overcoming catastrophic                  H. Semi-supervised domain adaptation in graph trans-
  forgetting in graph neural networks. In Proceedings of                 fer learning. In Proceedings of the Thirty-Second Inter-
  the AAAI conference on artificial intelligence, volume 35,             national Joint Conference on Artificial Intelligence, pp.
  pp. 8653–8661, 2021.                                                   2279–2287, 2023.
Liu, M., Li, S., Chen, X., and Song, L. Graph condensation             Qiao, Z., Xiao, M., Guo, W., Luo, X., and Xiong, H. Infor-
  via receptive field distribution matching. arXiv preprint              mation filtering and interpolating for semi-supervised
  arXiv:2206.13697, 2022.                                                graph domain adaptation. Pattern Recognition, 153:
                                                                         110498, 2024.
Liu, S., Li, T., Feng, Y., Tran, N., Zhao, H., Qiu, Q., and Li,
  P. Structural re-weighting improves graph domain adap-               Qiao, Z., Xiao, J., Sun, Q., Xiao, M., Luo, X., and Xiong, H.
  tation. In International Conference on Machine Learning,               Towards continuous reuse of graph models via holistic
  pp. 21778–21793. PMLR, 2023a.                                          memory diversification. In The Thirteenth International
                                                                         Conference on Learning Representations, 2025.
Liu, Y., Qiu, R., and Huang, Z. Cat: Balanced continual
  graph learning with graph condensation. In 2023 IEEE                 Rozemberczki, B., Allen, C., and Sarkar, R. Multi-scale at-
  International Conference on Data Mining (ICDM), pp.                    tributed node embedding. Journal of Complex Networks,
  1157–1162. IEEE, 2023b.                                                9(2):cnab014, 2021.
Liu, Y., Qiu, R., Tang, Y., Yin, H., and Huang, Z. Puma: Ef-           Sener, O. and Savarese, S. Active learning for convolutional
  ficient continual graph learning with graph condensation.              neural networks: A core-set approach. arXiv preprint
  arXiv preprint arXiv:2312.14439, 2023c.                                arXiv:1708.00489, 2017.

Ma, X., Zhang, T., and Xu, C. Gcan: Graph convolutional                Song, J., Lee, J., Kweon, I. S., and Choi, S. Ecotta: Memory-
 adversarial network for unsupervised domain adaptation.                 efficient continual test-time adaptation via self-distilled

                                                                  10


===== PDF PAGE 11 =====
                                  GCAL: Adapting Graph Models to Evolving Domain Shifts

  regularization. In Proceedings of the IEEE/CVF Confer-              Wang, Q., Fink, O., Van Gool, L., and Dai, D. Continual test-
  ence on Computer Vision and Pattern Recognition, pp.                 time domain adaptation. In Proceedings of the IEEE/CVF
  11920–11929, 2023.                                                   Conference on Computer Vision and Pattern Recognition,
                                                                       pp. 7201–7211, 2022.
Sun, L., Ye, J., Peng, H., Wang, F., and Philip, S. Y. Self-
  supervised continual graph learning in adaptive rieman-             Wang, Q., Sun, X., and Cheng, H. Does graph prompt work?
  nian spaces. In Proceedings of the AAAI Conference on                a data operation perspective with theoretical analysis.
  Artificial Intelligence, volume 37, pp. 4633–4642, 2023a.            arXiv preprint arXiv:2410.01635, 2024b.
Sun, Q., Chen, Z., Yang, B., Ji, C., Fu, X., Zhou, S., Peng,
                                                                      Wang, X., Duan, M., Li, J., Ma, A., Xin, G., Xu, D., Li, Z.,
  H., Li, J., and Philip, S. Y. Gc-bench: An open and unified
                                                                       Liu, B., and Ma, Q. Marsgt: Multi-omics analysis for rare
  benchmark for graph condensation. In The Thirty-eight
                                                                       population inference using single-cell graph transformer.
  Conference on Neural Information Processing Systems
                                                                       Nature Communications, 15(1):338, 2024c.
  Datasets and Benchmarks Track.

Sun, Q., Li, J., Peng, H., Wu, J., Fu, X., Ji, C., and Philip,        Wu, M., Pan, S., Zhou, C., Chang, X., and Zhu, X. Unsu-
  S. Y. Graph structure learning with variational informa-             pervised domain adaptive graph convolutional networks.
  tion bottleneck. In Proceedings of the AAAI Conference               In Proceedings of The Web Conference 2020, pp. 1457–
  on Artificial Intelligence, volume 36, pp. 4165–4174,                1467, 2020a.
  2022.
                                                                      Wu, M., Pan, S., and Zhu, X. Attraction and repulsion:
Sun, Q., Chen, C., Qiao, Z., Zheng, X., and Wang, K. Single-           Unsupervised domain adaptive graph contrastive learn-
  view graph contrastive learning with soft neighborhood               ing network. IEEE Transactions on Emerging Topics in
  awareness. In AAAI 2025, 2024.                                       Computational Intelligence, 2022a.
Sun, X., Cheng, H., Li, J., Liu, B., and Guan, J. All in              Wu, M., Zheng, X., Zhang, Q., Shen, X., Luo, X., Zhu, X.,
  one: Multi-task prompting for graph neural networks. In              and Pan, S. Graph learning under distribution shifts:
  Proceedings of the 29th ACM SIGKDD Conference on                     A comprehensive survey on domain adaptation, out-
  Knowledge Discovery and Data Mining, pp. 2120–2131,                  of-distribution, and continual learning. arXiv preprint
  2023b.                                                               arXiv:2402.16374, 2024a.
Sun, X., Zhang, J., Wu, X., Cheng, H., Xiong, Y., and Li,
  J. Graph prompt learning: A comprehensive survey and                Wu, Q., Zhang, H., Yan, J., and Wipf, D. Handling distribu-
  beyond. arXiv preprint arXiv:2311.16534, 2023c.                      tion shifts on graphs: An invariance perspective. Interna-
                                                                       tional Conference on Learning Representations, 2022b.
Traud, A. L., Mucha, P. J., and Porter, M. A. Social structure
  of facebook networks. Physica A: Statistical Mechanics              Wu, T., Ren, H., Li, P., and Leskovec, J. Graph information
  and its Applications, 391(16):4165–4180, 2012.                       bottleneck. Advances in Neural Information Processing
                                                                       Systems, 33:20437–20448, 2020b.
Tzeng, E., Hoffman, J., Saenko, K., and Darrell, T. Adver-
  sarial discriminative domain adaptation. In Proceedings             Wu, W., Wang, C., Shen, D., Qin, C., Chen, L., and Xiong,
  of the IEEE conference on computer vision and pattern                H. Afdgcf: Adaptive feature de-correlation graph collab-
  recognition, pp. 7167–7176, 2017.                                    orative filtering for recommendations. In Proceedings
                                                                       of the 47th International ACM SIGIR Conference on Re-
Veličković, P., Cucurull, G., Casanova, A., Romero, A.,
                                                                       search and Development in Information Retrieval, pp.
  Lio, P., and Bengio, Y. Graph attention networks. arXiv
                                                                       1242–1252, 2024b.
  preprint arXiv:1710.10903, 2017.

Wang, D., Shelhamer, E., Liu, S., Olshausen, B., and Darrell,         Xiao, J., Dai, Q., Xie, X., Dou, Q., Kwok, K.-W., and
 T. Tent: Fully test-time adaptation by entropy minimiza-               Lam, J. Domain adaptive graph infomax via conditional
 tion. In International Conference on Learning Represen-                adversarial networks. IEEE Transactions on Network
 tations, 2021. URL https://openreview.net/                             Science and Engineering, 2022.
 forum?id=uXl3bZLkr3c.
                                                                      Xu, Y., Zhang, Y., Guo, W., Guo, H., Tang, R., and Coates,
Wang, L., Zhang, X., Su, H., and Zhu, J. A comprehen-                   M. Graphsail: Graph structure aware incremental learn-
 sive survey of continual learning: theory, method and                  ing for recommender systems. In Proceedings of the
 application. IEEE Transactions on Pattern Analysis and                29th ACM International Conference on Information &
 Machine Intelligence, 2024a.                                          Knowledge Management, pp. 2861–2868, 2020.

                                                                 11


===== PDF PAGE 12 =====
                                 GCAL: Adapting Graph Models to Evolving Domain Shifts

Zhang, P., Yan, Y., Li, C., Wang, S., Xie, X., Song, G., and
  Kim, S. Continual learning on dynamic graphs via param-
  eter isolation. In Proceedings of the 46th International
  ACM SIGIR Conference on Research and Development
  in Information Retrieval, pp. 601–611, 2023a.
Zhang, W., Ouyang, W., Li, W., and Xu, D. Collaborative
  and adversarial network for unsupervised domain adapta-
  tion. In Proceedings of the IEEE conference on computer
  vision and pattern recognition, pp. 3801–3809, 2018.
Zhang, X., Song, D., and Tao, D. Hierarchical prototype net-
  works for continual graph representation learning. IEEE
  Transactions on Pattern Analysis and Machine Intelli-
  gence, 45(4):4622–4636, 2022a.
Zhang, X., Song, D., and Tao, D. Sparsified subgraph
  memory for continual graph representation learning. In
  2022 IEEE International Conference on Data Mining
  (ICDM), pp. 1335–1340. IEEE, 2022b.

Zhang, X., Song, D., and Tao, D. Ricci curvature-based
  graph sparsification for continual graph representation
  learning. IEEE Transactions on Neural Networks and
  Learning Systems, 2023b.
Zhang, X., Song, D., Chen, Y., and Tao, D. Topology-aware
  embedding memory for learning on expanding graphs.
  arXiv preprint arXiv:2401.13200, 2024.
Zhao, H., Chen, A., Sun, X., Cheng, H., and Li, J. All in one
  and one for all: A simple yet effective method towards
  cross-domain graph pretraining. In Proceedings of the
  30th ACM SIGKDD Conference on Knowledge Discovery
  and Data Mining, pp. 4443–4454, 2024.
Zheng, X., Zhang, M., Chen, C., Nguyen, Q. V. H., Zhu,
  X., and Pan, S. Structure-free graph condensation: From
  large-scale graphs to condensed graph-free data. Ad-
  vances in Neural Information Processing Systems, 36,
  2024.
Zhou, F. and Cao, C. Overcoming catastrophic forgetting in
  graph neural networks with experience replay. In Proceed-
  ings of the AAAI Conference on Artificial Intelligence,
  volume 35, pp. 4714–4722, 2021.




                                                                12


===== PDF PAGE 13 =====
                                  GCAL: Adapting Graph Models to Evolving Domain Shifts

A. Proof of Theorem 3.1.
In the section of Variational Memory Graph Generation, we give Theorem 1 to define a lower bound of the information
bottleneck for generating memory graphs G     b t from the original graph Gt :
Theorem A.1. Let G     b t be a generated graph conditioned on the latent representation Zt of the original graph Gt . Suppose
Q(G b t ) is a variational approximation of the true posterior P (G  b t ), Then, the following lower bound on the optimization
objective for Φ holds:
                                      b t )] − βE[KL(Pg (G
                L(Φ) ≥ E[log Pf (Ybt |G                  b t |Gt , Zt ) ∥ Q(G                    b t |Gt , Zt ))]
                                                                            b t ))] + βE[log(Pg (G                           (16)
Here, KL(· ∥ ·) indicates the Kullback-Leibler divergence. Pf is considered as the classifier f (Θt ).

Here we provide the proof of Theorem 3.1:

Proof. We start by decomposing the objective function L(Φ) in 4 and using variational approximations and known
inequalities to make the optimization tractable.
                                     b t ; Ybt ) quantifies the information shared between G
First, the mutual information term I(G                                                     b t and Ybt , which is defined as:
                                                                    "                 #
                                                                         P (Ybt |G
                                                                                 bt )
                                             I(Gt ; Yt ) = EGbt ,Ybt log
                                                 b  b                                   .                                   (17)
                                                                          P (Ybt )
Expanding and simplifying this using the definitions of expectation and entropy, we get the following:
                                                                       b t )] − E b [log P (Ybt )]
                                      b t ; Ybt ) = E b b [log P (Ybt |G
                                    I(G              Gt ,Yt                      Yt

                                                = EGbt ,Ybt [log P (Ybt |G
                                                                         b t )] + H(Ybt )                                    (18)
                                                ≥ EGbt ,Ybt [log Pf (Ybt |G
                                                                          b t )].

The inequality holds because H(Ybt ), the entropy of Ybt , is always non-negative.
                                 b t ; Gt , Zt ) measures the amount of information gained about G
Second, the mutual information I(G                                                               b t by observing Gt and
Zt . It is defined as:                                              "                       #
                                                                         P ( b t |Gt , Zt )
                                                                             G
                                  I(G                     Gt ,Gt ,Zt log
                                       b t ; Gt , Zt ) = E b                                  .                      (19)
                                                                             P (G bt )

We introduce a variational approximation Q(G   b t ) to the true posterior P (G   b t ). Then, the negative mutual information is
defined as:                                              "                       #
                                                                  b t |Gt , Zt )
                                                               P (G
                      −I(Gt ; Gt , Zt ) = − EGbt ,Gt ,Zt log
                          b                                                        + KL(P (G  b t ) ∥ Q(G
                                                                                                        b t ))
                                                                  Q(G  bt )
                                                         "                       #
                                                                  b t |Gt , Zt )
                                                               P (G                                                          (20)
                                        ≥ − EGbt ,Gt ,Zt log
                                                                  Q(G  bt )
                                                      b t |Gt , Zt ) ∥ Q(G
                                         = − E[KL(Pg (G                  b t ))].

Third, the conditional mutual information I(G     b t ; Zt |Gt ) quantifies the additional information about G
                                                                                                             b t obtained from Zt
given Gt . It is defined by the equation:
                                                                  "                             #
                                                                          P (G  b t , Zt |Gt )
                                 I(Gt ; Zt |Gt ) = EGbt ,Zt ,Gt log
                                   b
                                                                       P (Gb t |Gt )P (Zt |Gt )
                                                                  "                        #
                                                                       P (Gb t |Zt , Gt )
                                                 = EGbt ,Zt ,Gt log                                                           (21)
                                                                         P (G b t |Gt )
                                                                  h                       i
                                                 = EGbt ,Zt ,Gt log P (G  b t |Zt , Gt ) + H(G   b t |Gt )
                                                                  h                       i
                                                 ≥ EGbt ,Zt ,Gt log P (G  b t |Zt , Gt ) .

                                                                  13


===== PDF PAGE 14 =====
                                   GCAL: Adapting Graph Models to Evolving Domain Shifts

                                           b t |Gt ) is always non-negative.
The inequality holds because the entropy H(G
By combining these results, we can derive the lower bound for the objective L(Φ):


                                       b t )] − βE[KL(Pg (G
                 L(Φ) ≥ E[log Pf (Ybt |G                  b t |Gt , Zt ) ∥ Q(G                    b t |Gt , Zt ))]
                                                                             b t ))] + βE[log(Pg (G                         (22)

This completes the proof.

B. Detialed Experimental Setup
B.1. Datasets
Our paper involves two primary categories of graph datasets, Regional Shifts and Temporal Shifts, utilizing continual
learning principles to effectively manage adaptations across different regions and temporal variations. The datasets used
include Facebook-100(Traud et al., 2012), Twitch-Explicit(Rozemberczki et al., 2021), OGB-Arxiv(Hu et al., 2020), and
Elliptic(Pareja et al., 2020). The statistical details of the datasets are shown in Table 1.
Regional Shifts: The Facebook-100 dataset comprises 100 snapshots of Facebook friendship networks from 2005, each
representing users from a specific American university. These networks vary greatly in size, density, and degree distribution.
Additionally, the Twitch-Explicit dataset includes seven networks, where nodes are Twitch users and edges denote mutual
friendships. Each network originates from one of the following regions: DE, ENGB, ES, FR, PTBR, RU, and TW.
Temporal Shifts: The OGB-Arxiv dataset contains 169,343 Arxiv CS papers from 40 subject areas, detailing their citation
relationships, and is suitable for analyzing the evolution of scientific collaboration networks. The Elliptic dataset includes 49
sequential graph snapshots of Bitcoin transaction networks, where nodes represent transactions and edges represent payment
flows. Around 20% of transactions are labeled as licit or illicit, with the objective of detecting future illegal transactions.

B.2. Baselines
We evaluate the performance of our continual adaptive learning framework against a diverse set of baseline methods. Test
employs a pretrained graph model to perform direct inference on the target dataset without any adaptation, serving as the
lower bound. DANN (Ganin et al., 2016), a traditional domain adaptation method, utilizes the source graph and adversarial
training to minimize domain discrepancies at each step. The category ”No Rehearsal Based Test-Time Adaptation”
comprises one-step test-time adaptation methods. Tent (Wang et al., 2021), which minimizes entropy of test samples; BN
Stats Adapt (Li et al., 2016), which adjusts network weights and Batch Normalization statistics based on current input data
for prediction; EERM (Wu et al., 2022b), tailored for graph datasets, maximizing risk variance to manage domain shifts and
out-of-distribution challenges; and GTRANS (Jin et al., 2022), enhancing test-time performance by refining graph structure
and node features through a contrastive surrogate loss. The category ”Continual Test Time Adaptation” is continual test-time
training methods, including CoTTA and EATA. CoTTA (Wang et al., 2022) combines weight-averaged predictions with
partial neuron restoration to mitigate error accumulation and catastrophic forgetting. EATA (Niu et al., 2022) enhances
adaptation efficiency through entropy minimization and employs a Fisher-based regularizer to maintain performance across
domain shifts. For baselines not originally designed for graphs, their architectures have been adapted to GCNs to ensure
consistency in evaluation.

B.3. Experimental Setting
To effectively evaluate our model’s adaptability across varying domains and over time, we have introduced a continual
adaptive learning framework across evolving graph data. For academic and social networks, initial training is conducted
on three university graphs from the Facebook-100 dataset: Amherst41, Caltech36, and Johns Hopkins55. We continually
extend the domain adaptation to the remaining eleven university graphs without labels. This data selection sequence requires
the model to handle different graph structures from training/validation to testing data(Wu et al., 2022b). For Twitch-explicit,
the model is initially trained on the DE network and later tested for adaptability across regional networks, including ENGB,
ES, FR, PTBR, RU, and TW, also without labels. In addressing temporal shifts, the OGB-Arxiv dataset is employed, using
data prior to 2011 to pretrain the model, while data from 2011 and later is used for continual adaptation, exposing the model
to evolving scientific collaborations. For the Elliptic dataset, we utilize snapshots 7 through 9 for initial training, avoiding
the first six due to their extreme class imbalance, with the remaining data employed for continual adaptation. This approach

                                                                14


===== PDF PAGE 15 =====
                                               GCAL: Adapting Graph Models to Evolving Domain Shifts
       Original Graph         Original Graph                 Original Graph              Original Graph        Original Graph       Original Graph




       Synthetic Graph       Synthetic Graph                 Synthetic Graph             Synthetic Graph      Synthetic Graph      Synthetic Graph




 (a) Twitch-ENGB         (b) Twitch-ES                   (c) Twitch-FR              (d) Twitch-PTBR        (e) Twitch-RU        (f) Twitch-TW

Figure 6. Visualized comparison of the original graphs (the first line) and generative graphs (the second line) of GCAL in the Twitch
dataset.


reflects the dynamic and challenging nature of financial transactions. Our training strategy begins by pretraining the model
on selected graphs from each dataset, then continually adapting to the remaining unlabeled graph datasets in an online
manner.
We use a 2-layer GCN as the backbone for three datasets, except for OGB-Arxiv, where we use GraphSAGE (Hamilton
et al., 2017). The training, validation, and test rates for pretrain datasets are set at 60%, 20%, and 20% respectively. During
the train and adapt periods, the learning rates and weight decays are set as follows: lr = 0.0001 and wd = 5 × 10−4 for
training, and lr = 0.001 and wd = 5 × 10−4 for adaptation. The number of epochs for pre-training is set between 100 and
200, while the adaptation phase involves a relatively smaller number of epochs, ranging from 1 to 10, for these four datasets.
The detailed hyper-parameter settings are provided in the accompanying code. For the evaluation metric, we present the
accuracy matrix Macc ∈ RT ×T , which is a lower triangular matrix where Macc,i,j (for i ≥ j) represents the accuracy on the
domain j after training on the domain i. Specifically, similar to (Jin et al., 2022; Wu et al., 2022b), for the Twitch-Explicit
and Facebook-100 datasets, the results are measured using ROC-AUC and Accuracy, respectively. For the Elliptic dataset,
the metric used is the F1 Score, while for the OGB-Arxiv dataset, Accuracy isP          used. To compute a single numeric value
                                                                                          T
upon completing all domains, we calculate the Average Performance (AP) as T1 i=1 MT,i          acc
                                                                                                   , primarily assessing adaptation
                                                 1
                                                     P  T −1    acc      acc
ability, and the Average Forgetting (AF) as T −1 i=1 (MT,i − Mi,i ), primarily evaluating the ability to avoid forgetting.
Each experiment is repeated five times, with results reported as the mean and standard deviation.

C. Additional Experiments
C.1. Visualization of Generated Memory Graph.
This experiment aims to answer: How do the structure of memory graphs generated by GCAL look like compared with
the original ones? To demonstrate the effectiveness of the memory graphs we generated, we conducted an experiment to
visualize the graph structures. The experimental results are shown in Figure 6, where we used the networks python library as
a tool on the Twitch dataset to display the generated effects on six continuous domain graphs. The top row shows the original
graphs, while the bottom row displays the generated graphs. From this, we can observe that (1) the generated memory
graphs significantly reduce the number and density of the graphs, making them more lightweight, and (2) the structure of the
generated graphs is not random but shows a coherent structure, verifying the reliability and authenticity of the generated
graphs. This visualization confirms the capability of GCAL to produce streamlined yet structurally meaningful graphs.

C.2. Performance Matrices.
To present a more fine-grained demonstration of the model’s performance in continual adaptive learning on graphs, we
analyzed the average performance across all previously encountered domains each time a new domain was learned. We
have visualized the performance matrix of the Twitch and Elliptic datasets in Figure. 4. Here, we further report the results

                                                                               15


===== PDF PAGE 16 =====
                                                                        GCAL: Adapting Graph Models to Evolving Domain Shifts

               1                                       0.600                   1                                                               1                                                        1
               2                                       0.575                   2                                   0.575                       2                                                        2
                                                                                                                                                                                  0.5                                                       0.5
               3                                                               3                                   0.550                       3                                                        3
                                                       0.550
               4                                                               4                                                               4                                                        4
                                                                                                                   0.525
               5                                                               5                                                               5                                                        5




                                                                                                                            Domains




                                                                                                                                                                                        Domains
                                                       0.525                                                                                                                      0.4                                                       0.4
Domains




                                                               Domains
               6                                                               6                                   0.500                       6                                                        6
                                                       0.500
               7                                                               7                                                               7                                                        7
                                                                                                                   0.475
               8                                       0.475                   8                                                                                                  0.3                                                       0.3
                                                                                                                                               8                                                        8
               9                                       0.450
                                                                               9                                   0.450
              10                                                              10                                                               9                                                        9
              11                                       0.425                  11                                   0.425                      10                                  0.2                  10                                   0.2

              12                                       0.400                  12                                   0.400                      11                                                       11
                    1 2 3 4 5 6 7 8 9 10 11 12                                      1 2 3 4 5 6 7 8 9 10 11 12                                     1 2 3 4 5 6 7 8 9 10 11                                  1 2 3 4 5 6 7 8 9 10 11
                             Domains                                                         Domains                                                        Domains                                                   Domains
                   (a) Facebook-100-CoTTA                                       (b) Facebook-100-GCAL                                              (c) ogbn-arxiv-CoTTA                                     (d) ogbn-arxiv-GCAL

                                                          Figure 7. Performance matrices of GCAL and CoTTA in different datasets.

              60                                                             54.0                                                            75                                                       50
                     Test                                                            Test                                                          Test                                                     Test
                     GCAL                                                    53.5    GCAL                                                          GCAL                                                     GCAL
              58                                                                                                                             70                                                       40
                                                                             53.0
Average AUC




                                                               Average ACC




                                                                                                                                                                                        Average ACC
                                                                                                                                Average F1
              56                                                             52.5                                                            65                                                       30
                                                                             52.0
              54                                                             51.5                                                            60                                                       20

                                                                             51.0
              52                                                                                                                             55                                                       10
                                                                             50.5

              50                                                             50.0                                                            50                                                       0
                     GCN    GSAGE      GAT       GIN                                  GCN        GSAGE       GIN                                   GCN     GSAGE      GAT   GIN                             GCN       GSAGE     GAT   GIN

                       (a) Twitch-explicit                                             (b) Facebook-100                                                   (c) Elliptic                                             (d) OGB-Arxiv

                                                                 Figure 8. The model performance with different GNN backbones.


 of the Facebook and Ogbn-arxiv datasets in Figure 7. In these matrices, each row represents the performance across all
 domains upon learning a new one, while each column captures the evolving performance of a specific domain as all domains
 are learned sequentially. In the visual representation, darker shades signify better performance, while lighter hues indicate
 inferior outcomes. GCAL predominantly displays lighter shades across the majority of blocks compared to CoTTA in Figure
 7, which has similar experimental phenomena as before, further proving the effectiveness of GCAL in the continual graph
 model adaptation problem.

  C.3. Backbone Analysis.
 This experiment aims to answer: How do different GNN backbones compare within GCAL for continual adaptation? We
 select representative GNN models, including GCN, GSAGE, GAT, and GIN. These GNN models serve as the foundational
 backbones for integrating with GCAL. The results are presented in Figure 8. We compare the results of incorporating these
 GNN backbones within our framework versus utilizing them individually as standalone models. Using our framework
 demonstrates remarkable enhancements, showing the effectiveness of our proposed techniques. Lastly, it is important to
 note that the consistent use of different backbones significantly enhances results, thereby demonstrating the robustness and
 adaptability of our proposed method across various datasets. This is in contrast to the Test method, which directly infers
 from subsequent data without continuous domain adaptation. For Facebook-100, the GAT model encounters an Out Of
 Memory (OOM) issue and is therefore not included in the backbone comparison for this dataset.

  D. Related Work
  D.1. Graph Continual Learning.
 Existing graph continual learning (GCL) methodologies are typically divided into three main categories: regularization,
 parameter isolation, and memory replay approaches. Regularization-based methods primarily aim to preserve parameters
 crucial to previous tasks, thereby minimizing disruptions (Cai et al., 2022; Liu et al., 2021; Sun et al., 2023a; Xu et al., 2020).
 Examples include topology-aware weight preserving (TWP) (Liu et al., 2021) and RieGrace (Sun et al., 2023a), which focus
 on maintaining essential parameters and structural topologies. Parameter isolation techniques allocate distinct parameters
 for new tasks to maintain those relevant to prior tasks (Niu et al.; Zhang et al., 2023a; 2022a), as seen in HPNs (Zhang et al.,
 2022a). In contrast, memory replay strategies(Li et al., 2024; Qiao et al., 2025) archive and revisit representative data from
 past tasks to alleviate the critical issue of catastrophic forgetting, as exemplified by ER-GNN (Zhou & Cao, 2021), SSM
 (Zhang et al., 2022b), SEM-curvature (Zhang et al., 2023b), PDGNNs (Zhang et al., 2024), and CaT (Liu et al., 2023b).

                                                                                                                           16


===== PDF PAGE 17 =====
                                  GCAL: Adapting Graph Models to Evolving Domain Shifts

GCL has garnered increasing interest due to its practical applications, with each approach offering distinct strategies for
handling task progression in graph-based models(Wu et al., 2024a). Our approach, which belongs to the memory replay
category, uniquely preserves critical topological structures while minimizing memory usage. Notably, while existing GCL
methods are confined to supervised learning settings, our work introduces an unsupervised approach to graph continual
learning, marking a pioneering step in this direction.

D.2. Graph Domain Adaptation.
Unlike traditional domain adaptation, which typically assumes a static target domain, Continual Domain Adaptation
addresses evolving target data. Traditional methods, including Maximum Mean Discrepancy (MMD) (Dziugaite et al., 2015)
and adversarial techniques (Dan et al., 2024; Qiao et al., 2023; Tzeng et al., 2017; Zhang et al., 2018), form the basis of this
field. In graph-based domain adaptation, a variety of methods have been proposed (Ding et al., 2018; Jin et al., 2022; Liu
et al., 2023a; Ma et al., 2019; Qiao et al., 2024; Wu et al., 2022a; Xiao et al., 2022). For instance, UDA-GCN (Wu et al.,
2020a) and AdaGCN (Dai et al., 2022) leverage graph topology to improve adaptability, reducing discrepancies between
source and target graphs via local and global consistencies and a graph domain discriminated loss, respectively. Continual
Test-Time Adaptation (CTTA), a critical facet of Continual Domain Adaptation, addresses the unique demands of non-static
domains. Unlike traditional Test-Time Adaptation (TTA), CTTA incorporates advanced strategies such as bi-average pseudo
labels and stochastic weight resets, as implemented in CoTTA (Wang et al., 2022). Innovations like VDP (Gan et al., 2023),
with visual domain prompts to counter error accumulation, and RMT (Döbler et al., 2023), which employs symmetric
cross-entropy for enhanced robustness, further refine CTTA. Additional strategies, including entropy minimization by Tent
and EATA (Niu et al., 2022) and meta-networks in EcoTTA (Song et al., 2023), contribute to improved model normalization
and adaptability. Despite these advancements, challenges such as noisy pseudo-labels and calibration issues persist, and a
notable gap remains in unsupervised graph continual domain adaptation research.

D.3. Graph Condensation
Graph condensation(Sun et al.) has become increasingly prominent for its ability to create compact synthetic datasets
that closely approximate the performance of full datasets (Hashemi et al., 2024). Classical techniques like GCond (Jin
et al., 2021) and MCond (Gao et al., 2024) utilize gradient alignment to synthesize representative samples that maintain the
statistical properties of the original data, drawing from principles of traditional sampling (Sener & Savarese, 2017). Among
recent innovations, GCDM (Liu et al., 2022), introduce graph-specific distribution alignment to enhance condensation
effectiveness. SFGC (Zheng et al., 2024) further refines this by distilling large graphs into structure-free node sets using
meta-matching and dynamic feature scoring, resulting in compact, highly generalizable data. Additionally, techniques such
as CaT (Liu et al., 2023b) and PUMA (Liu et al., 2023c) extend graph condensation to continual learning, demonstrating
these methods’ adaptability for dynamic graph-based applications. In parallel, Graph prompt learning based method(Sun
et al., 2023b;c; Wang et al., 2024b; Zhao et al., 2024) also condenses knowledge into a compact graph-based prompt, which
is typically used to fine-tune pre-trained graph models on specific downstream tasks. However, most of these method rely on
supervised signals for knowledge condensation. In contrast, our work addresses a more challenging task by condensing
graphs into memory in an unsupervised manner.




                                                              17
