Efficient Memory Crystallization for Graph Learning under Non-Stationary Distribution Shifts
Yue Hou, Ruomei Liu, Yingke Su, Wu Junran, Ke Xu
Abstract. Deep graph learning models deployed in real-world systems often need to cope with non-stationary environments, where the underlying graph distribution drifts continually over time. Prevailing solutions rely on training auxiliary generative modules to synthesize memory graphs for cross-domain adaptation, which incurs substantial computational overhead and scales poorly under prolonged distribution shifts. We argue that a more economical path exists: rather than generating memory, one can crystallize it. To this end, we propose Efficient Memory Crystallization (EMC), a training-free test-time framework that distills each incoming graph domain into a compact, semantically faithful memory through a closed-form solution to a memory-oriented distribution-matching objective, thereby eliminating redundant domain information under continual covariate shifts. To preserve both generalizability and adaptability as the model traverses a long sequence of target domains, EMC further models inter-domain dependencies through state-evolving memories and admits a theoretically grounded, tighter generalization error bound than direct adaptation. Extensive experiments demonstrate the superior performance of EMC over state-of-the-art baselines on graphs under non-stationary distribution shifts, while reducing average runtime by 87.4% and GPU memory consumption by 92.4% relative to the recent competitor, making continual graph adaptation practical at scale.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes an approach named EMC for continual test-time domain adaptation on graph-structured data. The superiority of the proposed method is validated across extensive benchmark papers. The paper also calculates the upper bound of the generalization error for the proposed module. However, reviewers pointed out that the proposed method has too many hyperparameters, which could influence real-world adaptation. Moreover, Reviewer z27g pointed out that it is better to measure the adapted model's performance relative to the source domain or source distribution. Please address the concerns raised by reviewers during the rebuttal.
Final justification
During the rebuttal, two reviewers confirmed that the authors resolved their concerns mostly and maintained their positive scores. Overall, the paper received all positive scores from reviewers. After checking the rebuttal, I agree with the reviewers and believe the paper can be published at NeurIPS.
Read meta-review
Meta-review
This paper proposes an approach named EMC for continual test-time domain adaptation on graph-structured data. The superiority of the proposed method is validated across extensive benchmark papers. The paper also calculates the upper bound of the generalization error for the proposed module. However, reviewers pointed out that the proposed method has too many hyperparameters, which could influence real-world adaptation. Moreover, Reviewer z27g pointed out that it is better to measure the adapted model's performance relative to the source domain or source distribution. Please address the concerns raised by reviewers during the rebuttal.
Final justification
During the rebuttal, two reviewers confirmed that the authors resolved their concerns mostly and maintained their positive scores. Overall, the paper received all positive scores from reviewers. After checking the rebuttal, I agree with the reviewers and believe the paper can be published at NeurIPS.
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper presents EMC, a continual test-time graph adaptation framework that distills each incoming target domain into a compact memory graph via a closed-form construction. By leveraging state-evolving memories, EMC effectively handles non-stationary distribution shifts. Notably, it replaces costly generative replay with a significantly more efficient memory construction procedure, yielding substantial reductions in both runtime and GPU memory usage compared to recent baselines.
Strengths and weaknesses
Strengths
- The core idea of the paper is clear and easy to follow. It replaces learned memory generation with a closed-form memory crystallization step.
- The experiments are fairly extensive, and the reported results are strong in both performance and efficiency.
Weaknesses
- The "training-free" claim is inconsistent. EMC does not train a separate generator, but Algorithm 1 explicitly updates parameters via gradient descent at test time. This must be described much more carefully.
- The method relies on several assumptions. It depends heavily on a covariate-shift setting and pseudo-label-based class partitioning. This makes it fragile under label shift, semantic drift, heterogeneous graphs, or when the model's predictions are already unreliable.
- The theory reads more as intuition than solid evidence. The paper repeatedly touts "tighter" bounds, but it's unclear whether these gains are meaningful or just artifacts of changing representations and objectives.
- Limitations are missing. Although the checklist indicates they are discussed in the Conclusion, such discussion is not present. The paper does not include any limitations section or analysis, which is a clear gap.
Questions
- How robust is EMC when the shift is not pure covariate shift? In particular, what happens under label shift, semantic drift, or low-quality pseudo-labels during class-wise partitioning?
Limitations
Refer to Weaknesses.
Final justification
Most of my questions have been addressed. I will maintain my Borderline Accept score.
Formatting concerns
None
3 comments
Rebuttal
We sincerely appreciate your valuable comments and will reply to all these concerns individually.
W1: Clarification on the "training-free" claim
Thank you for pointing this out. Our original intention was that the proposed Efficient Memory Crystallization itself is training-free, through a closed-form solution without additional model training. The subsequent adaptation of the backbone does update parameters by gradient descent, which is intrinsic to test-time adaptation methods.
The three occurrences of "training-free" in Abstract, Introduction and Conclusion all refer to the memory crystallization rather than to the adaptation. We acknowledge that the wording invites ambiguity, and we have already revised these to make the scope precise throughout the paper, stating that the memory construction is closed-form while the backbone is updated by standard test-time adaptation.
W2 & Q1: The covariate shift assumption makes it fragile under label shift, semantic drift, heterogeneous graphs
Thank you for the question. We would like to clarify that the partitioning is not pseudo-label-based. As described in Section 3.1, it only provides semantic anchors for grouping nodes with similar semantic content during aggregation.
Covariate shift is declared as the setting in Section 2. Within this setting, our evaluation spans regional shifts across social networks collected from different regions on Facebook-100 and Twitch-Explicit, temporal shifts across year-by-year citation snapshots on OGB-Arxiv and across Bitcoin transaction snapshots on Elliptic where drift can be abrupt, node-level and graph-level adaptation in Appendix E.6, and non-monotonic and cyclic domain orderings in Appendix E.8. We would therefore describe the reliance as a clearly delimited scope rather than a narrow one.
Label shift or semantic drift over the stream is the problem addressed by graph incremental and continual learning methods[1-3]. Applying a model trained under covariate shift directly to such a stream makes predictions unreliable, and the shift can no longer be handled by test-time adaptation alone, which is a limitation of the setting rather than of the method. For heterophilous or heterogeneous graphs, we regard them as directions for future work and will supplement these discussions in the revision.
W3: Whether tighter bounds are meaningful rather than artifacts of changing objectives
Thank you for the insightful question. All theorems, propositions and lemmas are accompanied by rigorous and complete proofs in Appendix D. The tighter bounds of Theorem 3.5 and 3.6 land on the State Evolving Field: in the theorem is exactly the convex combination realized by this mechanism over consecutive memories, so the per-step bound justifies its design and motivates modeling inter-domain dependence.
Empirically, the ablation in Table 2 confirms that removing the memory-driven adaptation degrades performance. We would like to note that Theorem 3.5 and 3.6 are not intended to support the overall optimization objective (adaptation loss in Eq.(12)).
W4: Lack of limitations discussion
Thank you for pointing this out. We add the missing limitations discussion here.
- Hyperparameter configuration: current experiments use a single fixed hyperparameter configuration per dataset, without dynamically adjusting the parameters for each incoming domain.
- Explicit drift measurement: EMC adapts sequentially under non-stationary shifts, but it does not explicitly estimate the magnitude of domain drift to guide adaptation strength. Developing drift-aware adaptation strategies is an interesting direction for future research. Thanks again for the constructive comments, and we have revised the manuscript to improve the clarity and completeness.
We once again thank you for your constructive feedback and valuable suggestions. We will carefully address all the raised points in the revised version.
[1] Liu, Huihui, Yiding Yang, and Xinchao Wang. "Overcoming catastrophic forgetting in graph neural networks." Proceedings of the AAAI conference on artificial intelligence. Vol. 35. No. 10. 2021.
[2] Zhang, Xikun, Dongjin Song, and Dacheng Tao. "Hierarchical prototype networks for continual graph representation learning." IEEE Transactions on Pattern Analysis and Machine Intelligence 45.4 (2022): 4622-4636.
[3] Guo, Zihao, et al. "GraphKeeper: Graph domain-incremental learning via knowledge disentanglement and preservation." Advances in Neural Information Processing Systems 38 (2026): 1145-1171.
Thank you to the authors for the detailed responses. Most of my questions have been addressed. I will maintain my Borderline Accept score.
Thank you for your thoughtful review and for confirming that your questions have been addressed. We greatly appreciate your careful reading, which helped us identify and correct the claim and add the missing discussion. We will make the scope of the memory crystallization and the role of our theoretical results clearer in the revision, and we are grateful that your feedback has directly improved both the precision and the completeness of our paper.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes the EMC framework to address the Test-Time Adaptation (TTA) problem in graphs with non-stationary offsets. Unlike previous methods that rely on training a generative module to synthesize the stored graph, EMC employs a training-free, closed-form solution to crystallize the input graph domain into a compact and semantically realistic low-rank storage. Furthermore, the paper introduces a state evolution storage mechanism to capture inter-domain dependencies and provides a more compact generalization error bound. Experiments show that this method significantly reduces runtime and GPU memory consumption while maintaining model generalization and adaptability.
Strengths and weaknesses
Strengths:
-
Compared to benchmark methods (such as GCAL), EMC avoids expensive generative training through a mathematically closed-form solution, achieving a remarkable improvement of 87.4% reduction in average runtime and 92.4% reduction in memory consumption. This enables continuous adaptation of large-scale graphs on edge devices.
-
The paper not only proposes the algorithm but also derives the upper bound of generalization error under the storage crystallization and state evolution mechanisms. Theoretical analysis proves that this method has a more compact error bound compared to direct transfer, providing theoretical support for the algorithm's effectiveness.
-
The paper tests on four node classification datasets (covering region and time offsets) and compares against 10 representative baselines. The results show robust performance on AP and AF metrics and universal applicability across different GNN backbone networks (GCN, SAGE, etc.).
Weaknesses
-
Algorithm performance is significantly affected by hyperparameters (such as α, β, τ). In real-world adaptive scenarios, the lack of labels and a global validation set presents an unresolved challenge in automatically and dynamically adjusting these parameters.
-
The paper sets the storage size to 1% of the original graph (N_t' = 0.01N_t). While experiments show good results, such drastic compression may lead to the loss of crucial structural information in graphs with extremely complex topologies or highly imbalanced class distributions, thus affecting long-term adaptive capabilities.
-
The crystallization process of EMC is highly dependent on node embeddings generated by the pre-trained source model. If the source and target domains differ too much, causing the initial representation to completely fail, the subsequent crystallization process based on semantic anchors may fail to extract effective features.
Questions
refer to weaknesses
Limitations
The assumption-based decision boundaries remain relatively stable under covariate shifts, allowing it to utilize predictive semantics as an "anchor." The stability of the method has not been adequately verified when the label space or semantic meaning shifts.
Formatting concerns
N/A
3 comments
Rebuttal
We sincerely appreciate your thoughtful comments and address your comments and suggestions point by point below.
W1: Sensitivity to hyperparameters and their adjustment without labels or a global validation set
Thank you for the insightful question. The reported results are obtained without per-stream retuning. The sensitivity analyses of and in Section 4.5, and of in Appendix E.12, all vary within narrow bands, and Table 13 in Appendix E.12 likewise shows that varying the memory ratio causes little fluctuation in EMC.
Compared with the generative replay baseline GCAL, which requires the analogous adaptation hyperparameters and, in addition, the VGAE architecture and its learning rate, the number of inner-loop updates, and the weights of its KL, MMD, and gradient-matching objectives, as detailed in the complexity comparison in Appendix C.1, our EMC reduces the tuning burden with fewer hyperparameters, and it removes an auxiliary trained module together with its own optimization.
To further support the robustness, in Appendix E.8 we design four non-monotonic domain orderings and five cyclic domain sequences on Twitch-Explicit, with no retuning across any of these runs. EMC outperforms GCAL on AP in eight of the nine configurations, and its own AP fluctuates within a very small range, indicating that EMC is robust to hyperparameter choices. All experiments follow the same protocol as the baseline GCAL for a fair comparison.
Automatic and dynamic parameter adjustment remains an open problem, and we consider it a promising direction for future work. For scenarios without a global validation set, a possible solution is to determine the hyperparameters of the current domain from the data of the previous t-1 domains.
W2: Whether compressing the memory to 1% of the graph loses crucial structural information
Thank you for the valuable question. The memory is a distribution-matched surrogate rather than a subsample. In Appendix D.1, our analysis shows that the memory crystallized from the original graph is consistent with it in distribution, which is the distribution-matching guarantee that underlies the construction. Consistently, Table 13 in Appendix E.12 shows that the memory ratio has little effect on performance, so enlarging the memory beyond 1% brings no gain.
We also visualize the crystallized memories in Appendix E.10, where the structural layouts of the original graphs and their memories are rendered in Figures 12 to 22. Across the visualized domains, the structure barely changes under the 1% budget, which, together with the distribution-matching guarantee above, confirms that what is discarded is redundancy rather than essential structure.
W3: Dependence on the embeddings of the pre-trained source model
Thank you for raising this point. We would like to clarify that the memory features are computed non-parametrically and the anchors from the second step onward are produced by the already-adapted model; we can point to a direct empirical check. In Appendix E.8, we test EMC on four non-monotonic domain orderings and five cyclic domain sequences on Twitch-Explicit, in which each run places a different domain first and therefore confronts the pre-trained model with a different initial degree of mismatch. The AP of EMC stays within a very small band across all orderings and remains ahead of baseline GCAL, showing that the outcome is not governed by the quality of the source representation on whichever domain happens to arrive first.
Limitations: Stability when the label space or the semantic meaning shifts
Thank you for the insightful suggestion. When the label space or the semantic meaning shifts, the class semantics themselves change, which corresponds to the incremental learning setting [1-3] rather than the covariate-shift setting studied in this work. We have added this discussion to the revised manuscript and regard the extension to such settings as a direction for future work.
We once again thank you for your constructive feedback and valuable suggestions. We will carefully address all the raised points in the revised version.
[1] Liu, Huihui, Yiding Yang, and Xinchao Wang. "Overcoming catastrophic forgetting in graph neural networks." Proceedings of the AAAI conference on artificial intelligence. Vol. 35. No. 10. 2021.
[2] Zhang, Xikun, Dongjin Song, and Dacheng Tao. "Hierarchical prototype networks for continual graph representation learning." IEEE Transactions on Pattern Analysis and Machine Intelligence 45.4 (2022): 4622-4636.
[3] Guo, Zihao, et al. "GraphKeeper: Graph domain-incremental learning via knowledge disentanglement and preservation." Advances in Neural Information Processing Systems 38 (2026): 1145-1171.
Thank you for the reply. Most of my concerns have been resolved, and I tend to maintain my current positive score.
Thank you for taking the time to review our responses and for maintaining your positive assessment. We sincerely appreciate your acknowledgment, and we are glad that our clarifications on the hyperparameter robustness and memory budget have resolved your concerns. Following your valuable suggestions, we will make the discussion on hyperparameter selection and the stability under different shift settings more thorough in the revised version, to further enhance the quality of the paper.
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes EMC, a framework for continual test-time domain adaptation on graph-structured data. While existing methods (GCAL) mitigate catastrophic forgetting by generating memory graphs, they incur substantial computational and storage overhead. The core idea of EMC is to replace memory graphs with domain-specific crystallization, which are efficiently constructed as low-dimensional representations via a closed-form solution, thereby enabling efficient continual adaptation.
Strengths and weaknesses
Strengths
-
Replacing a separately trained generative replay module (GCAL's VGAE) with a closed-form "crystallization" of each incoming graph is elegant and addresses a real pain point.
-
The reported ~87% runtime and ~92% memory reductions over GCAL are large and consistent across datasets and backbones.
-
The evaluation spans four datasets, four backbones (GCN/SAGE/GAT/GIN), ten baselines, both node- and graph-level adaptation, component ablations, scaling analyses, hyperparameter sensitivity, and robustness to non-monotonic and cyclic domain orderings.
Weaknesses
-
The generalization bounds in Theorems 3.5 and 3.6 are expressed in source-domain quantities: both $\epsilon^T ( \hat{h}, h^S) $ and depend on the source labeling function . Yet the algorithm optimizes neither. At the same time, every reported metric (AP, AF, TDG, TDA) is computed purely on the target stream, and none measures the adapted model's performance relative to the source domain or source distribution.
-
Crystallization quality hinges on grouping nodes by predicted semantics. Especially early in the stream, before the encoder has adapted, these predictions may be unreliable, raising the possibility of a feedback loop in which a poorly partitioned memory degrades subsequent adaptation.
-
The anti-forgetting term sums a KL divergence over all previously stored memories (Eq. 12), giving per-step cost that scales as and storage that grows linearly with the number of domains. Evaluating behavior under much longer streams, or discussing memory-budgeting strategies (subsampling/merging past memories), would help.
Questions
Please refer to the weaknesses above. Overall I find the paper to be of reasonable quality, with fairly complete and clear experiments and theory; if the authors can clarify and address these points, I would be glad to raise my score.
Limitations
yes
Final justification
The author addressed all of my questions. I think this is a solid paper that brings new ideas and inspiration to the field.
Formatting concerns
I did not find any major formatting issues in this paper.
2 comments
Rebuttal
We sincerely appreciate your valuable comments and would be happy to address your concerns as follows:
W1.1: Bounds in Theorems 3.5 and 3.6 involve source-domain quantities, yet the algorithm optimizes neither
Thank you for the question. The generalization bounds in Theorems 3.5 and 3.6 are active throughout the whole adaptation process, rather than being quantities that the algorithm optimizes; the state-evolved representation of the crystallized memory in Eq. (8) is exactly the object whose generalization error the bounds characterize, and this error is shown to be tighter than that of direct adaptation. What EMC optimizes is precisely this generalization error, and the optimization is realized through the model adaptation process, so the bounds and the algorithm act on the same quantity rather than on separate ones.
W1.2: Measuring performance relative to the source domain
Thank you for the valuable question. The concern is in fact partly reflected in the current metrics: TDG measures the performance on each domain before adaptation to it, so it captures the knowledge carried from previously seen domains including the source, and AP averages this together with the adapted performance, so both metrics already incorporate a source-related component.
To make this explicit, we additionally report the average performance on the source domain after continual adaptation, evaluated on the held-out source split. EMC retains source-domain performance better than GCAL on all four datasets:
| Twitch | Elliptic | Arxiv | ||
|---|---|---|---|---|
| GCAL | 55.59 | 53.45 | 66.50 | 55.03 |
| EMC | 56.26 | 55.47 | 68.54 | 59.19 |
In addition, the performance matrices visualized in Figure 4 and Figure 11 also reflect the model's performance on the source domain. We have added the analysis above together with the supplementary results to the revised manuscript.
W2: The risk that unreliable early partitioning triggers a degrading feedback loop
Thank you for your thoughtful question. Memory crystallization is inherently formulated as a closed-form module decoupled from the encoder: each memory is built from its own incoming graph and frozen, so an early partition cannot propagate into later memories, and the information it carries comes from the non-parametric propagated features rather than from the model.
Empirically, we evaluate our method on Twitch-Explicit with four non-monotonic domain orders and five cyclic domain sequences to fully encompass diverse distribution shift patterns (detailed in Appendix E.8). EMC does not fail under any of them, and it outperforms the baseline GCAL across these settings, which indicates that the construction is not derailed by unreliable partitioning early in the stream.
W3: Behavior under much longer streams and memory budgeting
Thank you for the insightful suggestion. In Appendix E.11, we provide a detailed domain scaling analysis in Table 12. We set the initial number of target domains to 10, with each graph containing 10k nodes and 128-dimensional node features aligned with OGB-Arxiv, and gradually increase the number of domains from 10 to 80. Here we additionally report the storage cost of the crystallized memories as the stream lengthens:
| #Domains | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 |
|---|---|---|---|---|---|---|---|---|
| GCAL GPU (MB) | 6892.91 | 14239.83 | 21586.75 | 28933.67 | OOM | OOM | OOM | OOM |
| EMC GPU (MB) | 81.02 | 85.92 | 90.80 | 95.71 | 104.52 | 118.21 | 131.90 | 145.59 |
| Crystallized memory (MB) | 4.88 | 9.76 | 14.65 | 19.53 | 24.41 | 29.30 | 34.18 | 39.07 |
Although the stored memory does grow with the number of domains, EMC maintains a very small GPU footprint across all scales even under much longer streams, whereas GCAL runs out of memory once the number of domains reaches 50 or more.
Discussion on memory budgeting. A natural strategy is to cap the buffer at memories and manage it as in agent-memory mechanisms, for example keeping the most recent ones in a first-in-first-out manner, retaining those most representative by similarity, or maintaining a weighted moving average of past memories. Because crystallization is a closed-form operation on node features, the oldest memories can also be merged and re-crystallized into a single memory at negligible cost, yielding constant storage, which is not available to generative replay without retraining the generator.
We once again thank you for your constructive feedback and valuable suggestions. We will carefully address all the raised points in the revised version.
Thank you very much for your positive feedback and for raising the score. We are truly grateful that our responses addressed your concerns. Your suggestions on measuring performance relative to the source distribution and on memory budgeting under longer streams have genuinely improved the paper, and we will incorporate the added source-domain results and the memory-budgeting discussion in the revision. We sincerely appreciate the time and care you devoted to reviewing our work.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear Reviewers and ACs,
We sincerely thank all reviewers and the Area Chair for their detailed and constructive feedback on our manuscript. We are encouraged that the reviewers recognize the value of our contributions and the effectiveness of our method. Specifically, the reviewers acknowledged:
We have provided detailed responses to each reviewer's comments and have addressed all concerns. Based on the reviewers' and the Area Chair's suggestions, we have extended our evaluation with the average performance on the source domain after continual adaptation, so that the model's behavior relative to the source distribution is reported explicitly, and we have added a storage analysis together with a discussion of memory-budgeting strategies under much longer streams. We have further clarified the role of our theoretical results and the robustness of EMC to hyperparameter choices, and added a dedicated Limitations section discussing settings such as label shift and semantic drift as promising directions for future work.
Once again, we would like to express our sincere gratitude to all the reviewers and the Area Chair for these valuable insights, which have greatly helped us improve our work.