Manuscript Offprint
arXiv:2610.02990Differentiable Koopman Operator for Contrastive Learning on Dynamic Graphs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Real-world interaction networks are inherently dynamic: edges form and dissolve as node behavior shifts over time. Most snapshot-based contrastive methods encode temporal dependencies implicitly in encoder weights, without an explicit model of how node representations evolve, making them brittle under distribution shifts. We propose KAIROS (Koopman-Aligned Invariant Representations for Open Dynamic Systems), a self-supervised framework that embeds a differentiable Koopman operator within a dynamic graph contrastive learning loop to linearize temporal evolution in the learned embedding space. A dual-view encoder pairs raw node features with a graph-diffused structural view and is optimized with multi-granularity contrastive objectives across temporal windows. For anomaly detection, KAIROS uses the Koopman prediction residual together with temporal inconsistency and local neighborhood deviation to separate irregular behavior from predictable graph evolution. Evaluated on nine dynamic graph benchmarks, KAIROS achieves state-of-the-art anomaly detection results on all nine datasets, with gains of up to 23.15 ROC-AUC points over prior work, while remaining competitive for unsupervised node classification. These results show that explicit dynamics modeling provides a scalable and effective inductive bias for temporal graph representation learning.
1 Introduction
Real-world relational systems such as financial transaction networks, social platforms, and citation graphs are inherently dynamic. Dynamic Graph Representation Learning (DGRL) seeks node embeddings that capture structural dependencies and temporal evolution, enabling downstream tasks such as node classification, link prediction, and anomaly detection. Graph Neural Networks (GNNs) are well established for static graphs, but extending them to dynamic settings remains challenging.
Many dynamic-graph encoders model temporal evolution through architectural mechanisms and lack a transition operator that predicts how node embeddings evolve between snapshots. Snapshot-based models aggregate per-snapshot neighborhoods, while continuous-time models encode interactions through functional time encodings, causal anonymous walks, neighborhood/community influence aggregation, or frequency-domain temporal features [1, 2, 3, 4, 5]. These designs do not provide a parameterized one-step operator over node embeddings. Without such a model, predictable evolution and anomalous deviation are difficult to separate under distribution shift, where both may appear as movement in embedding space [6, 7, 8].
This limitation is amplified in self-supervised dynamic graph learning. Strong dynamic contrastive baselines such as CLDG and CLDG++ maximize agreement between temporal views [9, 10]. This provides a useful smoothness bias but does not model how representations evolve. When evolution is non-smooth, view agreement can penalize legitimate change and fail to isolate deviations. Existing dynamic graph anomaly detectors address temporal anomalies through dynamic embed-
Preprint.
dings, transformer-based spatiotemporal modeling, or semi-supervised pseudo-labeling [11, 12, 13]. However, they do not define anomaly scores as residuals of a learned transition operator.
Koopman operator theory offers a direct way to impose such a transition model: observables of nonlinear dynamical systems evolve linearly in an infinite-dimensional lifted space [14, 15]. Neural Koopman approximations have been used for forecasting, control, and sequence modeling through reconstruction, forecasting, or operator-regression objectives [16, 17, 18, 19, 20]. To our knowledge, no prior work couples a graph encoder and Koopman operator end-to-end under a contrastive objective, or uses the resulting Koopman residual as an unsupervised anomaly signal on dynamic graphs.
We propose KAIROS (Koopman-Aligned Invariant Representations for Open Dynamic Systems), a self-supervised framework that embeds a differentiable Koopman operator inside a dynamic graph contrastive learning loop. A dual-view GNN encoder processes raw features and a Personalized PageRank (PPR)-diffused view [21], and optimizes an InfoNCE objective across temporal windows. A linear operator K, initialized at the identity and regularized toward orthogonality, is co-optimized to predict each node's next-snapshot embedding. Initializing K = I makes the identity transition a special case of the learned operator, so any deviation from identity is loss-driven. The same encoder supports two downstream tasks without architectural change: (i) for unsupervised node classification, the Koopman regularizer is disabled and the frozen encoder feeds a linear probe; (ii) for unsupervised dynamic-graph anomaly detection, the Koopman prediction residual is combined with temporal inconsistency and local neighborhood deviation, each z-normalized, into a unified anomaly score.
Our main contributions are: (i) We couple a differentiable Koopman operator with self-supervised dynamic graph contrastive learning, jointly optimizing the graph encoder and linear temporal operator end-to-end. (ii) We introduce a dual-view contrastive objective over raw and PPR-diffused features, augmented with Koopman prediction and orthogonality regularization. (iii) We define a fully unsupervised anomaly score from temporal inconsistency, Koopman prediction residual, and neighborhood deviation, without pseudo-labels or reconstruction losses.
Self-Supervised and Contrastive Learning on Graphs. Static graph contrastive learning is mature, with a well-mapped design space [25, 26, 27, 28, 29, 30] that modifies topology or features and aligns the resulting views under InfoNCE or redundancy-reduction objectives [31, 32]. Subsequent analyses have exposed structural fragilities of this framework: asymmetric encoders without augmentations match or exceed augmentation-heavy baselines [33]; perfect alignment can be harmful under topology shifts [34]; hidden architectural mechanisms often dominate loss-level behavior [35, 36]; and InfoNCE admits a spectral-clustering interpretation [37, 38]. A complementary line studies spectral, principled, or efficiency-aware augmentations [39, 40, 41, 42, 43]. When extended to dynamic graphs, however, these advances are largely stripped of their temporal premise: CLDG [9] and CLDG++ [10] treat temporally sampled subgraphs as augmented views and maximize InfoNCE agreement across time windows, optionally at multiple time spans, but impose no explicit dynamics between those windows. The implicit assumption that temporally adjacent embeddings remain similar reduces to a smoothness penalty that becomes brittle when graph evolution is non-smooth.
Graph Anomaly Detection. Unsupervised anomaly detection on attributed graphs is dominated by context–patch disagreement methods that combine contrastive or reconstruction objectives with multi-scale or augmentation-aware designs [44, 45, 46, 47, 48, 49]. These methods are powerful but inherently static: they ignore temporal evolution and repeatedly flag the same structural anomaly at every snapshot, reducing precision under non-stationary baselines. Contrastive graph anomaly detection refines this framework along three axes: structural imbalance [50], clean-view formulations [51], and dual-encoder augmentation [52]. Existing dynamic-graph detectors fail in different ways: NetWalk [11] relies on shallow random-walk embeddings and lacks attribute-aware expressiveness; TADDY [12] applies self-attention over edge-centric temporal subgraphs whose complexity grows quadratically, limiting scalability on realistic graphs; SAD [13] is semi-supervised and depends on pseudo-labels derived from partial ground truth, making it unsuitable for the fully unsupervised setting; and spatiotemporal anomaly networks [53, 54] target multivariate time series rather than evolving topologies.
Koopman Operator Theory in Machine Learning. Koopman operator theory provides a linear representation of nonlinear dynamics in an infinite-dimensional space [14, 15], and its finite-dimensional approximations now support a broad class of learning methods. Foundational work established neural realizations of Koopman embeddings [16, 17, 55, 56, 57] and rigorous statistical guarantees [58, 59, 60]. Application-driven extensions span operator forecasting [18], robust control [19], action recognition [61], sequence disentanglement [20], structured operator parameterizations [62], and recent neural-ODE and probabilistic forecasting hybrids [63, 64, 65, 66]. On graphs, however, Koopman theory remains underexplored. The closest related work is Shi et al. [67], which links GNN message passing to dynamic mode decomposition for supervised dynamics modeling, without a contrastive or anomaly-detection component. KAIROS instead uses a differentiable Koopman operator inside self-supervised dynamic graph contrastive learning and uses its prediction residual as an unsupervised anomaly signal.
3 Background and Preliminaries
We consider dynamic graphs represented as temporal snapshots over a fixed node universe , with node features and timestamp function . Continuous-time graphs are converted to snapshots by partitioning the temporal span into equal-width windows. KAIROS uses two views of each snapshot: the raw feature view and a PPR-diffused structural view .
The goal is to learn a self-supervised encoder that supports two downstream tasks: unsupervised dynamic node classification via a frozen linear probe, and unsupervised dynamic graph anomaly detection via a scalar node-level anomaly score. KAIROS models temporal evolution in the learned embedding space with a linear Koopman operator K, whose prediction residual provides one anomaly signal. Details of this section is in Appendix!A
4 KAIROS
KAIROS is a self-supervised framework for learning node representations from dynamic graphs and addressing both Problems 1 and 2 with a shared encoder. The framework consists of four coupled components: (i) temporal snapshot construction and inductive view sampling (Section 4.1); (ii) a dual-encoder architecture with independent GNN backbones for raw and PPR-diffused views, equipped with SimCLR v2 projection heads (Section 4.2); (iii) a multi-granularity contrastive objective coupling local, global, and cross-view signals across time (Section 4.3); (iv) a Koopman temporal operator K that linearizes embedding-space dynamics, regularizes training, and produces a per-node anomaly residual at inference (Section 4.4). At inference, three complementary anomaly signals are z-normalized and summed into a unified score (Section 4.5). An overview is shown in Figure 1.
4.1 Temporal Graph Construction and View Generation
Snapshot and dual-view construction. KAIROS partitions the temporal edge stream into T equal-width canonical snapshots and canonicalizes each snapshot by removing duplicate edges, symmetrizing the graph, and adding self-loops. Because the benchmarks are timestamped edge lists without raw node attributes, KAIROS pairs sinusoidal node features X with a snapshot-specific PPR-diffused structural view . Full construction equations and APPNP parameters are in Appendix B.1.

Figure 1: Overview of the KAIROS architecture.
Temporal view sampling. At each training step, KAIROS samples temporal views and maps each to the nearest canonical snapshot index . We use random, sequential, low-overlap, and high-overlap sampling as temporal augmentations; details are in Appendix B.
Inductive anchor sampling. KAIROS samples up to anchor nodes from the source nodes shared across the sampled views. Small graphs use full-neighbor expansion, while larger graphs use multi-layer neighbor sampling with fanout (20, 20), bounding memory by the sampled computation graph rather than .
4.2 Dual-Encoder Architecture
Encoder branches. KAIROS maintains two GNN backbones with disjoint parameter sets:
where and are drawn from (the same family selected per dataset on the validation set, but with independent weights), are learnable post-aggregation projections, and is a per-branch PReLU activation. All backbones use message-passing layers, hidden dimension 128, and output dimension . The pre-projection embeddings and are used for downstream evaluation; alone feeds the Koopman temporal head (Section 4.4), which linearizes the original-view trajectory. Projection-head and temperature details are in Appendix B.4; projection heads are discarded at inference. Maintaining disjoint weights is essential: a shared encoder applied to both and produces trivially correlated outputs because is a smooth neighborhood average of , collapsing the cross-view contrastive signal.
4.3 Multi-Granularity Contrastive Objective
For an ordered pair of temporal views with , KAIROS contrasts the projected embedding matrices along three axes. Let denote the symmetric InfoNCE objective between two -normalized batches ,
(2) implemented with per-row logit shifting (where ) before division by for numerical stability. The three pairwise contrastive terms are
Eq. (3) enforces temporal consistency of the raw-feature view across snapshots and serves as the primary class-discriminative signal. Eq. (4) aligns local and structural representations within the same snapshot, coupling the two encoders. Eq. (5) enforces temporal consistency of the structural view and stabilizes the structural branch under temporal perturbation. The asymmetric weighting vs. reflects the dominant role of the local-temporal signal: cross-granularity terms are auxiliary alignment losses, and equal weighting collapses the local representation toward . The total contrastive loss aggregates over all unordered view pairs:
4.4 Koopman Temporal Linearization
The contrastive objective in Eq. (6) aligns embeddings across time without modeling the dynamics connecting them. KAIROS fits an explicit linear operator over consecutive view pairs in the embedding space defined by , following the Koopman formulation in Section 3.
Initialization at the identity. The Koopman head is implemented as a bias-free linear layer initialized to the identity matrix, , so that . This recovers the temporal-smoothness inductive bias of CLDG [9] as a special case; any deviation from during training is loss-driven, so the operator can only add expressive power over the baseline contrastive objective.
Koopman prediction loss. Let the V views be re-indexed by snapshot order so that , and let denote the post-projection-linear, post-PReLU embedding of node at the -th view (Eq. (1)). For each consecutive pair of sorted views, the Koopman prediction loss is the squared cosine error on -normalized embeddings, averaged over the batch and the pairs:
where . Squaring the cosine error ( ) suppresses gradients on already-aligned trajectories and concentrates capacity on poorly predicted ones; recovers standard cosine distance and underperforms. The cosine form is scale-invariant, since encoder output magnitudes vary across snapshots while the projection heads are trained in -normalized space. Gradients of Eq. (7) flow into both and , encouraging linearly predictable temporal trajectories.
Total training objective. Combining Eqs. (6) and (7) with the near-orthogonality penalty detailed in Appendix B.5,
For Problem 1, because strict linear temporal predictability compresses the embedding space toward a temporally predictable subspace and suppresses class-discriminative directions. For Problem 2, defaults to 1.0 and is tuned per dataset on the validation set (Section 5.6). When , the Koopman prediction and orthogonality terms are excluded from Eq. (8), so K receives no gradient and remains at ; consequently, the inference-time anomaly residual (Eq. (10)) reduces to a temporal-smoothness penalty. Optimization details are in Appendix B.5.
4.5 Unified Anomaly Scoring and Downstream Evaluation
Once trained, the frozen encoder is used identically for both tasks; only the readout differs.
Classification readout. For node classification, KAIROS freezes the encoder, averages the two pre-projection branches, and trains an equal-budget logistic-regression probe; full readout details are in Appendix B.6.
Anomaly scoring. produces per-node embeddings across all canonical snapshots using full-neighbor sampling. Three complementary signals are computed from the local-view embeddings.
Temporal inconsistency. A normal node's embedding should remain stable across time. The signal is the mean plus std of pairwise cosine distances over all snapshot pairs:
where .
Koopman prediction residual. Under the learned linear dynamics, node 's embedding at step should be predicted well by . The residual, averaged over all consecutive snapshot pairs, is
Eq. (10) is the anomaly readout of the operator trained via Eq. (7): nodes whose temporal trajectories cannot be linearly predicted by are flagged. When , remains at and reduces to the temporal-smoothness penalty .
Neighborhood deviation. At each snapshot , a normal node should lie near the mean of its neighbors in embedding space. Since every temporal subgraph is augmented with self-loops during construction (Section 4.1), the neighborhood mean includes node itself:
where denotes the in-neighborhood of node in including the self-loop. captures attribute and structural anomalies within a single snapshot and complements and .
Combined score. The three signals operate on different scales, so each is -normalized independently across the nodes before summation:
with and the Bessel-corrected sample standard deviation of over . Eq. (12) is unweighted by design: all three signals are unsupervised, and learning combination weights would require anomaly labels during training, contradicting Problem 2.
5 Experiments
5.1 Datasets
We evaluate KAIROS on nine temporal graph benchmarks: DBLP [68], Bitcoinotc [69], BITotc [69], BITalpha [69], TAX51 [9], Reddit [70], MOOC [71], Arxiv [72], and Elliptic [73]. Dataset statistics are summarized in Table 1.
Features. All datasets are timestamped edge lists without raw node attributes. Each node is assigned a 128-dimensional sinusoidal positional encoding derived from its index, following the CLDG evaluation protocol.
Table 1: Statistics for the nine temporal graph benchmarks used in this work.
| Dataset | Clf. classes | Ano. % | ||
|---|---|---|---|---|
| DBLP | 25,387 | 185,480 | 10 | 2.4 |
| Bitcoinotc | 5,881 | 35,592 | 3 | 5.1 |
| BITotc | 4,863 | 28,473 | 7 | 6.2 |
| BITalpha | 3,219 | 19,364 | 7 | 9.3 |
| TAX51 | 132,524 | 467,279 | 51 | 4.5 |
| 898,194 | 2,575,464 | 3 | 0.7 | |
| MOOC | 7,144 | 411,749 | 2 | 8.4 |
| Arxiv | 169,343 | 1,166,243 | 40 | 1.8 |
| Elliptic | 203,769 | 234,355 | 2 | 1.5 |
Anomaly labels. For anomaly detection, binary labels are synthesized using the structural-and-attribute injection protocol of [10] for all nine datasets. The protocol inserts n densely connected cliques of size m=15 as structural anomalies; an equal number of attribute anomalies replace each affected node's features with those of its most feature-distant neighbor among k=50 random candidates. The clique count n is chosen per dataset to maintain a realistic anomaly fraction: n=10 for the Bitcoin graphs (Bitcoinotc, BITotc, BITalpha), n=200 for TAX51 and Reddit, n=100 for Arxiv and Elliptic, and n=20 for DBLP and MOOC.
5.2 Baselines
For node classification, we compare with fourteen methods across four categories: semi-supervised methods LP [74], GCN [75], GAT [76], and GraphSAGE [77]; unsupervised dynamic graph methods CAW [3], TGAT [2], DySAT [1], and MNCI [4]; unsupervised static contrastive methods DGI [25], GRACE [27], MVGRL [26], and CCA-SSG [29]; and dynamic contrastive baselines CLDG [9] and CLDG++ [10]. CLDG++ serves as the primary baseline because it shares the same input modalities (X, A, S, T) and evaluation protocol. For anomaly detection (Table 3), we additionally compare against seven dedicated methods: AEGIS [47], CoLA [44], ANEMONE [45], GRADATE [46], NetWalk [11], TADDY [12], and SAD [13]. CLDG and CLDG++ are also evaluated on this task using the anomaly-scoring protocol described in Section 5.3. Baseline descriptions are in Appendix C.
5.3 Evaluation Protocol
Node Classification. KAIROS is trained without label supervision on temporally sampled subgraph views. At evaluation, encoder weights are frozen and a single forward pass is performed on the full static graph with all temporal edges aggregated, following the CLDG protocol [9]. The dual-view fused embedding is fed to a logistic-regression probe trained for 2,000 epochs (Adam, , weight decay ).
Anomaly Detection. The frozen encoder produces per-node embeddings across all temporal snapshots using full-neighbor sampling. Three complementary signals are computed for each node : (temporal inconsistency): mean plus standard deviation of pairwise cosine distances over all snapshot pairs ; (Koopman prediction residual): averaged over consecutive snapshot pairs; (neighborhood deviation): averaged over snapshots (temporal subgraphs include self-loops, so node contributes to its own neighborhood mean). The final anomaly score is , where denotes -normalization across nodes.
Hyperparameters. All encoders use message-passing layers, hidden dimension 128, and embedding dimension . Training uses Adam ( , weight decay ) with cosine annealing ( ) and gradient clipping (maximum norm 1.0). The PPR teleport probability is fixed at and the contrastive temperature at . For classification, (Section 3); for anomaly detection, defaults to 1.0 and is tuned per dataset on the validation set. More about hyperparameters is in Appendices G and J. Results are reported as mean±std over five seeds.
5.4 Node Classification
Table 2 shows that KAIROS achieves its largest gains on DBLP and TAX51, which exhibit richer temporal structure. Three datasets favor competing methods. On BITotc and BITalpha, KAIROS trails CLDG++ by 1.08 and 2.49 points, respectively. Both are small Bitcoin rating graphs ( ), where the backbone ablation in Appendix F shows that performance is architecture-dependent: the best-to-worst backbone spread is 1.59 on BITotc and 0.57 on BITalpha, indicating that the aggregation scheme matters more than the contrastive objective on these graphs. On Reddit (898K nodes, three classes), KAIROS reaches versus for CLDG++ (-1.42). At this scale, the PPR structural view adds limited class-discriminative signal beyond the temporal views.
5.5 Dynamic Graph Anomaly Detection
KAIROS achieves state-of-the-art anomaly detection on all nine datasets, with margins over CLDG++ ranging from +5.81 to +23.15 ROC-AUC points on the primary benchmarks, averaging +13.27
Table 2: Node classification Micro-F1 (%) across all nine datasets. Bold marks the column winner and underline marks the second-best value. — denotes OOM or not evaluated on extended datasets.
| Method | DBLP | Bitcoinotc | BITotc | BITalpha | TAX51 | MOOC | Arxiv | Elliptic | |
|---|---|---|---|---|---|---|---|---|---|
| LP | 52.18 | 41.97 | 60.24 | 76.97 | 28.82 | 66.71 | 43.09 | 64.17 | 93.13 |
| GCN | 71.35 | 54.61 | 59.24 | 76.19 | 40.42 | 67.83 | 78.87 | 22.62 | 90.26 |
| GAT | 70.01 | 52.46 | 62.59 | 80.21 | 38.82 | 69.31 | 78.87 | 35.26 | 90.13 |
| GraphSAGE | 72.36 | 57.29 | 62.68 | 79.89 | 40.80 | 71.37 | 77.38 | 28.99 | 90.41 |
| CAW | 55.64 | 59.85 | 63.56 | 77.64 | 36.52 | 67.79 | — | — | — |
| TGAT | 57.48 | 58.56 | 62.53 | 77.63 | 34.50 | 65.57 | — | — | — |
| DySAT | 54.12 | 51.32 | 62.01 | 77.61 | 23.81 | — | — | — | — |
| MNCI | 67.03 | 55.14 | 63.49 | 79.04 | 39.13 | 70.94 | — | — | — |
| DGI | 69.97 | 56.67 | 61.68 | 78.56 | 39.20 | 70.58 | 77.45 | 18.52 | 90.16 |
| GRACE | 71.27 | 54.50 | 62.49 | 77.60 | — | — | — | — | — |
| MVGRL | 71.32 | 55.31 | 59.62 | 75.26 | — | — | — | — | — |
| CCA-SSG | 68.28 | 56.48 | 63.47 | 79.97 | 37.04 | 69.46 | 76.94 | 20.13 | 90.20 |
| CLDG | 73.32±0.22 | 59.40±0.67 | 65.33±0.43 | 80.44±0.11 | 40.56±0.23 | 71.57±0.44 | 75.39±8.49 | 22.28±0.15 | 90.24±0.00 |
| CLDG++ | 72.94 | 59.88 | 65.37 | 80.63 | 41.05 | 71.73 | 62.96±2.31 | 16.13±0.00 | 90.24±0.00 |
| KAIROS | 78.69±0.32 | 60.39±0.66 | 64.29±0.39 | 78.14±0.08 | 44.85±0.20 | 70.31±0.11 | 78.59±0.31 | 25.83±0.51 | 90.24±0.00 |
Table 3: Dynamic-graph anomaly detection (ROC-AUC %) across all nine datasets. OOM = out of memory; Bold marks best per column; underline marks second best.
| Method | DBLP | Bitcoinotc | BITotc | BITalpha | TAX51 | MOOC | Arxiv | Elliptic | |
|---|---|---|---|---|---|---|---|---|---|
| AEGIS | 59.18 | 50.97 | 53.17 | 54.13 | 54.52 | OOM | 67.78 | OOM | OOM |
| CoLA | 71.06 | 79.44 | 81.80 | 77.65 | 77.29 | OOM | 55.76 | OOM | OOM |
| ANEMONE | 70.69 | 79.28 | 80.09 | 72.70 | 76.61 | OOM | 53.95 | OOM | OOM |
| GRADATE | 69.53 | 74.14 | 73.12 | 68.64 | OOM | OOM | 46.42 | OOM | OOM |
| NetWalk | 54.42 | 56.13 | 58.46 | 64.12 | OOM | OOM | 67.45 | OOM | OOM |
| TADDY | 50.93 | 50.58 | 51.48 | 50.42 | OOM | OOM | 55.58 | OOM | OOM |
| SAD | 78.24 | 75.67 | 71.29 | 71.83 | 61.70 | 72.19 | 67.77 | OOM | OOM |
| CLDG | 84.89 | 80.21 | 81.55 | 77.70 | 79.51 | 71.53 | 80.20 | 53.89 | 78.59 |
| CLDG++ | 86.41 | 81.97 | 82.92 | 79.71 | 81.02 | 72.77 | 62.41 | 50.01 | 98.23 |
| KAIROS | 92.22±1.25 | 96.94±1.17 | 93.95±0.57 | 92.79±0.74 | 92.61±0.32 | 95.92±0.30 | 87.30±1.10 | 75.19±0.21 | 99.77±0.02 |
points (Table 3). The gains are largest on the Bitcoin trust graphs, whose sparse and highly skewed interaction patterns produce sharp deviations from the learned temporal dynamics, making the Koopman residual especially discriminative. Unlike prior anomaly detectors whose memory scales quadratically with graph size, KAIROS remains tractable through mini-batch neighborhood sampling, which bounds memory by the sampled computation graph rather than .
5.6 Ablation Studies
Contrastive temperature. The contrastive temperature strongly affects both classification and anomaly detection performance. Compared to the SimCLR default ( ), fixing improves classification accuracy on DBLP and TAX51 while improving anomaly detection stability on Reddit, where low temperatures collapse the temporal signals and (Figure 3; Appendix E). Performance remains stable across , indicating that the choice is not brittle (Figure 2).
Backbone selection. No single backbone dominates across all datasets (Appendix F). GCN performs best on the Bitcoin graphs, SAGE on DBLP, and GAT on TAX51, indi- cating that the optimal aggregation scheme is dataset-dependent. The cumulative gain from the canonical configuration (GAT, learnable ) to the final KAIROS configuration reaches +4.11 on DBLP and +4.71 on Bitcoinotc (Table 4).
Table 5: Anomaly signal decomposition ROC-AUC %: temporal inconsistency, Koopman residual, neighbourhood deviation, and their z-normalised sum, across all nine datasets. KAIROS uses . CLDG++ shown for reference.
| Dataset | Combined | CLDG++ | |||
|---|---|---|---|---|---|
| DBLP | 89.12 | 88.31 | 78.42 | 92.22 | 86.41 |
| Bitcoinotc | 94.11 | 92.77 | 81.20 | 96.94 | 81.97 |
| BITotc | 90.34 | 88.12 | 76.18 | 93.95 | 82.92 |
| BITalpha | 89.76 | 87.18 | 78.56 | 92.79 | 79.71 |
| TAX51 | 88.01 | 86.93 | 71.72 | 92.61 | 81.02 |
| Reddit* | 91.72 | 86.47 | 55.02 | 92.13 | 72.77 |
| MOOC | 92.14 | 90.12 | 50.72 | 87.30 | 62.41 |
| Arxiv | 75.38 | 75.05 | 50.00 | 75.19 | 50.01 |
| Elliptic | 99.19 | 99.82 | 79.01 | 99.77 | 98.23 |
Anomaly signal decomposition. The three anomaly signals provide complementary information across all primary datasets (Table 5, Appendix I). The combined score consistently outperforms each individual signal, with gains ranging from +0.41 to +4.60 ROC-AUC points over the strongest standalone component.
Table 4: Cross-dataset component ablation for node classification accuracy (%). Each row adds one design choice to the previous configuration. Results are mean±std.
| Variant | DBLP | Bitcoinotc | BITotc | BITalpha | TAX51 | |
|---|---|---|---|---|---|---|
| Canonical (GAT, learnable τ≈0.07) | 74.58±0.53 | 55.68±0.24 | 62.70±0.27 | 77.31±0.33 | 43.04±0.15 | — |
| + fixed τ=0.5 (GAT) | 78.07±0.36 | 56.18±0.61 | 62.70±0.29 | 77.57±0.23 | 44.85±0.20 | — |
| + Dataset-specific backbone (τ=0.5) | 78.69±0.32 | 60.39±0.66 | 64.29±0.39 | 78.14±0.08 | 44.85±0.20 | 70.31±0.11 |
| Δ canonical → final (ours) | +4.11 (large) | +4.71 (large) | +1.59 (moderate) | +0.83 (small) | +1.81 (large) | — |
Koopman regularizer. The Koopman regularizer has dataset-dependent effects shown in Appendix G. KAIROS remains scalable through mini-batch neighborhood sampling despite using a dual-encoder architecture; parameter and runtime analysis are provided in Appendix K.

Figure 2: Sensitivity of node-classification accuracy to the fixed InfoNCE temperature .

Figure 3: Per-signal anomaly ROC-AUC on Reddit at (SimCLR default) vs. (ours).
6 Conclusion
We introduced KAIROS, a self-supervised framework that couples dynamic graph contrastive learning with a differentiable Koopman operator. By learning a linear transition in embedding space, KAIROS separates predictable temporal evolution from irregular deviation and derives anomaly scores from Koopman prediction residuals. Results across nine temporal graph benchmarks suggest that explicit dynamics modeling is an effective inductive bias for temporal graph representation learning, particularly in fully unsupervised anomaly detection.
Limitations. KAIROS operates on discrete-time snapshots and therefore depends on the temporal windowing scheme. Highly irregular or event-driven graphs may violate the linear Koopman assumption, reducing the effectiveness of the Koopman regularizer. The framework also follows prior work in evaluating anomaly detection with synthetic anomaly injection, so performance on naturally occurring anomalies may vary across domains.
Impact Statement. This work is foundational research on representation learning for dynamic graphs and is not tied to a specific deployment setting. We do not foresee direct societal impacts arising from the method when used as intended.
References
[1] Aravind Sankar, Yanhong Wu, Liang Gou, Wei Zhang, and Hao Yang. DySAT: Deep neural representation learning on dynamic graphs via self-attention networks. In James Caverlee, Xia (Ben) Hu, Mounia Lalmas, and Wei Wang, editors, WSDM '20: The Thirteenth ACM International Conference on Web Search and Data Mining, Houston, TX, USA, February 3-7, 2020, pages 519–527. ACM, 2020.
[2] Da Xu, Chuanwei Ruan, Evren Körpeoglu, Sushant Kumar, and Kannan Achan. Inductive representation learning on temporal graphs. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020.
[3] Yanbang Wang, Yen-Yu Chang, Yunyu Liu, Jure Leskovec, and Pan Li. Inductive representation learning in temporal networks via causal anonymous walks. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021.
[4] Meng Liu and Yong Liu. Inductive representation learning in temporal networks via mining neighborhood and community influences. In Fernando Diaz, Chirag Shah, Torsten Suel, Pablo Castells, Rosie Jones, and Tetsuya Sakai, editors, SIGIR '21: The 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, Virtual Event, Canada, July 11-15, 2021, pages 2202–2206. ACM, 2021.
[5] Yuxing Tian, Yiyan Qi, and Fan Guo. FreeDyG: Frequency Enhanced Continuous-Time Dynamic Graph Model for Link Prediction. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024.
[6] Zeyang Zhang, Xin Wang, Ziwei Zhang, Haoyang Li, Zhou Qin, and Wenwu Zhu. Dynamic Graph Neural Networks Under Spatio-Temporal Distribution Shift. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022.
[7] Zeyang Zhang, Xin Wang, Ziwei Zhang, Zhou Qin, Weigao Wen, Hui Xue, Haoyang Li, and Wenwu Zhu. Spectral Invariant Learning for Dynamic Graphs under Distribution Shifts. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.
[8] Kesen Zhao and Liang Zhang. Causality-Inspired Spatial-Temporal Explanations for Dynamic Graph Neural Networks. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024.
[9] Yiming Xu, Bin Shi, Teng Ma, Bo Dong, Haoyi Zhou, and Qinghua Zheng. CLDG: Contrastive learning on dynamic graphs. In 39th IEEE International Conference on Data Engineering, ICDE 2023, Anaheim, CA, USA, April 3-7, 2023, pages 696–707. IEEE, 2023.
[10] Yiming Xu, Zhen Peng, Bin Shi, Xu Hua, and Bo Dong. Learning dynamic graph representations through timespan view contrasts. Neural Networks, 176:106384, 2024.
[11] Wenchao Yu, Wei Cheng, Charu C. Aggarwal, Kai Zhang, Haifeng Chen, and Wei Wang. NetWalk: A flexible deep embedding approach for anomaly detection in dynamic networks. In Yike Guo and Faisal Farooq, editors, Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD 2018, London, UK, August 19-23, 2018, pages 2672–2681. ACM, 2018.
[12] Yixin Liu, Shirui Pan, Yu Guang Wang, Fei Xiong, Liang Wang, Qingfeng Chen, and Vincent Cheng-Siong Lee. Anomaly detection in dynamic graphs via transformer. IEEE Transactions on Knowledge and Data Engineering, 35(12):12081–12094, 2023.
[13] Sheng Tian, Jihai Dong, Jintang Li, Wenlong Zhao, Xiaolong Xu, Baokun Wang, Bowen Song, Changhua Meng, Tianyi Zhang, and Liang Chen. SAD: Semi-supervised anomaly detection on dynamic graphs. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI 2023, 19th-25th August 2023, Macao, SAR, China, pages 2306–2314. ijcai.org, 2023.
[14] Bernard O Koopman. Hamiltonian systems and transformation in Hilbert space. Proceedings of the National Academy of Sciences, 17(5):315–318, 1931.
[15] Igor Mezić. Spectral Properties of Dynamical Systems, Model Reduction and Decompositions. Nonlinear Dynamics, 41(1):309–325, August 2005.
[16] Naoya Takeishi, Yoshinobu Kawahara, and Takehisa Yairi. Learning Koopman Invariant Subspaces for Dynamic Mode Decomposition. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 1130–1140, 2017.
[17] Omri Azencot, N. Benjamin Erichson, Vanessa Lin, and Michael W. Mahoney. Forecasting sequential data using consistent koopman autoencoders. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, Proceedings of Machine Learning Research, pages 475–485. PMLR, 2020.
[18] Rui Wang, Yihe Dong, Sercan Ö Arik, and Rose Yu. Koopman Neural Operator Forecaster for Time-series with Temporal Distributional Shifts. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023.
[19] Minghao Han, Jacob Euler-Rolle, and Robert K. Katzschmann. DeSKO: Stability-Assured Robust Control with a Deep Stochastic Koopman Operator. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net, 2022.
[20] Nimrod Berman, Ilan Naiman, and Omri Azencot. Multifactor Sequential Disentanglement via Structured Koopman Autoencoders. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023.
[21] Johannes Klicpera, Aleksandar Bojchevski, and Stephan Günnemann. Predict then propagate: Graph neural networks meet personalized PageRank. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
[22] Alessio Gravina, Giulio Lovisotto, Claudio Gallicchio, Davide Bacciu, and Claas Grohnfeldt. Long Range Propagation on Continuous-Time Dynamic Graphs. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-First International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, Proceedings of Machine Learning Research, pages 16206–16225. PMLR / OpenReview.net, 2024.
[23] Le Yu, Leilei Sun, Bowen Du, and Weifeng Lv. Towards Better Dynamic Graph Learning: New Architecture and Unified Library. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.
[24] Franziska Heeg and Ingo Scholtes. Using Time-Aware Graph Neural Networks to Predict Temporal Centralities in Dynamic Graphs. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024.
[25] Petar Velickovic, William Fedus, William L. Hamilton, Pietro Liò, Yoshua Bengio, and R. Devon Hjelm. Deep graph infomax. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
[26] Kaveh Hassani and Amir Hosein Khas Ahmadi. Contrastive multi-view representation learning on graphs. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, Proceedings of Machine Learning Research, pages 4116–4126. PMLR, 2020.
[27] Yanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu, Shu Wu, and Liang Wang. Deep graph contrastive representation learning. arXiv preprint arXiv:2006.04131, 2020.
[28] Yuning You, Tianlong Chen, Yongduo Sui, Ting Chen, Zhangyang Wang, and Yang Shen. Graph Contrastive Learning with Augmentations. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, Virtual, 2020.
[29] Hengrui Zhang, Qitian Wu, Junchi Yan, David Wipf, and Philip S. Yu. From canonical correlation analysis to self-supervised graph neural networks. In Marc’Aurelio Ranzato, Alina Beygelzimer, Yann N. Dauphin, Percy Liang, and Jennifer Wortman Vaughan, editors, Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, Virtual, pages 76–89, 2021.
[30] Yizhen Zheng, Shirui Pan, Vincent C. S. Lee, Yu Zheng, and Philip S. Yu. Rethinking and Scaling Up Graph Contrastive Learning: An Extremely Efficient Approach with Group Discrimination. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022.
[31] Jure Zbontar, Li Jing, Ishan Misra, Yann LeCun, and Stéphane Deny. Barlow Twins: Self-Supervised Learning via Redundancy Reduction. In Marina Meila and Tong Zhang, editors, Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, Proceedings of Machine Learning Research, pages 12310–12320. PMLR, 2021.
[32] Aäron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. CoRR, abs/1807.03748, 2018.
[33] Teng Xiao, Huaisheng Zhu, Zhengyu Chen, and Suhang Wang. Simple and Asymmetric Graph Contrastive Learning without Augmentations. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.
[34] Jingyu Liu, Huayi Tang, and Yong Liu. Perfect Alignment May be Poisonous to Graph Contrastive Learning. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-First International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, Proceedings of Machine Learning Research, pages 31890–31916. PMLR / OpenReview.net, 2024.
[35] Xiaojun Guo, Yifei Wang, Zeming Wei, and Yisen Wang. Architecture Matters: Uncovering Implicit Mechanisms in Graph Contrastive Learning. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.
[36] Dongxiao He, Lianze Shan, Jitao Zhao, Hengrui Zhang, Zhen Wang, and Weixiong Zhang. Exploitation of a Latent Mechanism in Graph Contrastive Learning: Representation Scattering. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024.
[37] Zhiquan Tan, Yifan Zhang, Jingqin Yang, and Yang Yuan. Contrastive Learning is Spectral Clustering on Similarity Graph. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024.
[38] Panagiotis Koromilas, Giorgos Bouritsas, Theodoros Giannakopoulos, Mihalis Nicolaou, and Yannis Panagakis. Bridging Mini-Batch and Asymptotic Analysis in Contrastive Learning: From InfoNCE to Kernel-Based Losses. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-First International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, Proceedings of Machine Learning Research, pages 25276–25301. PMLR / OpenReview.net, 2024.
[39] Lu Lin, Jinghui Chen, and Hongning Wang. Spectral Augmentation for Self-Supervised Learning on Graphs. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023.
[40] Yue Yu, Xiao Wang, Mengmei Zhang, Nian Liu, and Chuan Shi. Provable Training for Graph Contrastive Learning. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.
[41] Teng Xiao, Huaisheng Zhu, Zhiwei Zhang, Zhimeng Guo, Charu C. Aggarwal, Suhang Wang, and Vasant G. Honavar. Efficient Contrastive Learning for Fast and Accurate Inference on Graphs. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-First International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, Proceedings of Machine Learning Research, pages 54363–54381. PMLR / OpenReview.net, 2024.
[42] Jiaming Zhuo, Yintong Lu, Hui Ning, Kun Fu, Bingxin Niu, Dongxiao He, Chuan Wang, Yuanfang Guo, Zhen Wang, Xiaochun Cao, and Liang Yang. Unified Graph Augmentations for Generalized Contrastive Learning on Graphs. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024.
[43] Zhibiao Wang, Xiao Wang, Haoyue Deng, Nian Liu, Shirui Pan, and Chunming Hu. Uncovering the Redundancy in Graph Self-supervised Learning Models. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024.
[44] Yixin Liu, Zhao Li, Shirui Pan, Chen Gong, Chuan Zhou, and George Karypis. Anomaly detection on attributed networks via contrastive self-supervised learning. IEEE Trans. Neural Networks Learn. Syst., 33(6):2378–2392, 2022.
[45] Ming Jin, Yixin Liu, Yu Zheng, Lianhua Chi, Yuan-Fang Li, and Shirui Pan. ANEMONE: Graph anomaly detection with multi-scale contrastive learning. In Gianluca Demartini, Guido Zuccon, J. Shane Culpepper, Zi Huang, and Hanghang Tong, editors, CIKM '21: The 30th ACM International Conference on Information and Knowledge Management, Virtual Event, Queensland, Australia, November 1 - 5, 2021, pages 3122–3126. ACM, 2021.
[46] Jingcan Duan, Siwei Wang, Pei Zhang, En Zhu, Jingtao Hu, Hu Jin, Yue Liu, and Zhibin Dong. Graph anomaly detection via multi-scale contrastive learning networks with augmented view. In Brian Williams, Yiling Chen, and Jennifer Neville, editors, Thirty-Seventh AAAI Conference on Artificial Intelligence, AAAI 2023, Thirty-Fifth Conference on Innovative Applications of Artificial Intelligence, IAAI 2023, Thirteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2023, Washington, DC, USA, February 7-14, 2023, pages 7459–7467. AAAI Press, 2023.
[47] Kaize Ding, Jundong Li, Nitin Agarwal, and Huan Liu. Inductive anomaly detection on attributed networks. In Christian Bessiere, editor, Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI 2020, pages 1288–1294. ijcai.org, 2020.
[48] Jianheng Tang, Jiajin Li, Ziqi Gao, and Jia Li. Rethinking Graph Neural Networks for Anomaly Detection. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvári, Gang Niu, and Sivan Sabato, editors, International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, Proceedings of Machine Learning Research, pages 21076–21089. PMLR, 2022.
[49] Yiqing Lin, Jianheng Tang, Chenyi Zi, H. Vicky Zhao, Yuan Yao, and Jia Li. UniGAD: Unifying Multi-level Graph Anomaly Detection. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024.
[50] Yiming Xu, Zhen Peng, Bin Shi, Xu Hua, Bo Dong, Song Wang, and Chen Chen. Revisiting Graph Contrastive Learning on Anomaly Detection: A Structural Imbalance Perspective. In Toby Walsh, Julie Shah, and Zico Kolter, editors, Thirty-Ninth AAAI Conference on Artificial Intelligence, Thirty-Seventh Conference on Innovative Applications of Artificial Intelligence, Fifteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2025, Philadelphia, PA, USA, February 25 - March 4, 2025, pages 12972–12980. AAAI Press, 2025.
[51] Di Jin, Jingyi Cao, Xiaobao Wang, Bingdao Feng, Dongxiao He, Longbiao Wang, and Jianwu Dang. Rethinking Contrastive Learning in Graph Anomaly Detection: A Clean-View Perspective. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2025, Montreal, Canada, August 16-22, 2025, pages 3009–3017. ijcai.org, 2025.
[52] Nannan Wu, Hongdou Dong, Wenjun Wang, and Yiming Zhao. Dual Encoder Contrastive Learning with Augmented Views for Graph Anomaly Detection. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2025, Montreal, Canada, August 16-22, 2025, pages 3480–3488. ijcai.org, 2025.
[53] Rongbin Xu, Jiajian Lai, Yuqing Zhou, Ying Xie, Lijie Wen, and Yun Yang. A dynamic multi-scale spatio-temporal fusion anomaly detection network. Neurocomputing, 679:133256, 2026.
[54] Yang Yu, Minglai Shao, Xin Li, and Wenjun Wang. Temporal multivariate-factors independence convolution network for anomaly detection in dynamic networks. Neurocomputing, 624:129439, 2025.
[55] Kshitij Tayal, Arvind Renganathan, Rahul Ghosh, Xiaowei Jia, and Vipin Kumar. Koopman Invertible Autoencoder: Leveraging Forward and Backward Dynamics for Temporal Modeling. In Guihai Chen, Latifur Khan, Xiaofeng Gao, Meikang Qiu, Witold Pedrycz, and Xindong Wu, editors, IEEE International Conference on Data Mining, ICDM 2023, Shanghai, China, December 1-4, 2023, pages 588–597. IEEE, 2023.
[56] Anthony Frion, Lucas Drumetz, Mauro Dalla Mura, Guillaume Tochon, and Abdeldjalil Aïssa-El-Bey. Augmented invertible koopman autoencoder for long-term time series forecasting. Trans. Mach. Learn. Res., 2025, 2025.
[57] Yuhong Jin, Lei Hou, and Shun Zhong. Extended Dynamic Mode Decomposition with Invertible Dictionary Learning. Neural Networks, 173:106177, 2024.
[58] Vladimir Kostic, Pietro Novelli, Andreas Maurer, Carlo Ciliberto, Lorenzo Rosasco, and Massimiliano Pontil. Learning Dynamical Systems via Koopman Operator Regression in Reproducing Kernel Hilbert Spaces. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022.
[59] Vladimir Kostic, Karim Lounici, Pietro Novelli, and Massimiliano Pontil. Sharp Spectral Rates for Koopman Operator Learning. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10-16, 2023, 2023.
[60] Boya Hou, Sina Sanjari, Nathan Dahlin, Subhonmesh Bose, and Umesh Vaidya. Sparse Learning of Dynamical Systems in RKHS: An Operator-Theoretic Approach. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA, Proceedings of Machine Learning Research, pages 13325–13352. PMLR, 2023.
[61] Xinghan Wang, Xin Xu, and Yadong Mu. Neural Koopman Pooling: Control-Inspired Temporal Dynamics Encoding for Skeleton-Based Action Recognition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2023, Vancouver, BC, Canada, June 17-24, 2023, pages 10597–10607. IEEE, 2023.
[62] Yitian Zhang, Liheng Ma, Antonios Valkanas, Boris N. Oreshkin, and Mark Coates. SKOLR: Structured Koopman Operator Linear RNN for Time-Series Forecasting. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-Second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025.
[63] Hanru Bai and Weiyang Ding. KoNODE: Koopman-Driven Neural Ordinary Differential Equations with Evolving Parameters for Time Series Analysis. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-Second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025.
[64] Julius Aka, Johannes Brunnemann, Jörg Eiden, Arne Speerforck, and Lars Mikelsons. Balanced Neural ODEs: Nonlinear model order reduction and Koopman operator approximations. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net, 2025.
[65] Ronghua Zheng, Hanru Bai, and Weiyang Ding. KooNPro: A Variance-Aware Koopman Probabilistic Model Enhanced by Neural Process for Time Series Forecasting. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net, 2025.
[66] Xingjian Wu, Xiangfei Qiu, Hongfan Gao, Jilin Hu, Bin Yang, and Chenjuan Guo. K2VAE: A Koopman-Kalman Enhanced Variational AutoEncoder for Probabilistic Time Series Forecasting. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-Second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025.
[67] Dai Shi, Lequan Lin, Andi Han, Zhiyong Wang, Yi Guo, and Junbin Gao. When Graph Neural Networks Meet Dynamic Mode Decomposition. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net, 2025.
[68] Jaewon Yang and Jure Leskovec. Defining and evaluating network communities based on ground-truth. In Proceedings of the ACM SIGKDD Workshop on Mining Data Semantics, MDS '12, New York, NY, USA, 2012. Association for Computing Machinery.
[69] Srijan Kumar, Francesca Spezzano, V. S. Subrahmanian, and Christos Faloutsos. Edge weight prediction in weighted signed networks. In 2016 IEEE 16th International Conference on Data Mining (ICDM), pages 221–230, 2016.
[70] Srijan Kumar, William L. Hamilton, Jure Leskovec, and Dan Jurafsky. Community interaction and conflict on the web. In Proceedings of the 2018 World Wide Web Conference, WWW '18, page 933–943, Republic and Canton of Geneva, CHE, 2018. International World Wide Web Conferences Steering Committee.
[71] Srijan Kumar, Xikun Zhang, and Jure Leskovec. Predicting dynamic embedding trajectory in temporal interaction networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD '19, page 1269–1278, New York, NY, USA, 2019. Association for Computing Machinery.
[72] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: datasets for machine learning on graphs. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS '20, Red Hook, NY, USA, 2020. Curran Associates Inc.
[73] Mark Weber, Giacomo Domeniconi, Jie Chen, Daniel Karl I. Weidele, Claudio Bellei, Tom Robinson, and Charles E. Leiserson. Anti-money laundering in bitcoin: Experimenting with graph convolutional networks for financial forensics. CoRR, abs/1908.02591, 2019.
[74] Xiaojin Zhu and Zoubin Ghahramani. Learning from labeled and unlabeled data with label propagation. ProQuest number: information to all users, 2002.
[75] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017.
[76] Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
[77] William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 1024–1034, 2017.
[78] Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey E. Hinton. Big self-supervised models are strong semi-supervised learners. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, Virtual, 2020.
[79] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015.
[80] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Z. Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d'Alché-Buc, Emily B. Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 8024–8035, 2019.
[81] Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, Lingfan Yu, Yu Gai, et al. Deep graph library: A graph-centric, highly-performant package for graph neural networks. arXiv preprint arXiv:1909.01315, 2019.
A Details of Background and Preliminaries
We formalize the input data, structural representations, temporal evolution, and learning objectives used in this work. Notation is introduced locally.
A.1 Dynamic Graph Modeling
Definition 1 (Discrete-Time Dynamic Graph). A discrete-time dynamic graph (DTDG) with T temporal snapshots is an ordered sequence , where each consists of a node set , an edge set , and a node feature matrix . Here, denotes the feature dimension. For a fixed node universe , we write .
In KAIROS, all snapshots are represented over a fixed global node universe with ; denotes the active nodes observed in snapshot , while inactive nodes are retained in the canonicalized snapshot with no incident temporal edges except self-loops.
Definition 2 (Continuous-Time Dynamic Graph). A continuous-time dynamic graph (CTDG) is a tuple , where is the node feature matrix and assigns a real-valued timestamp to each node and edge. The total temporal span is .
Both formats are handled uniformly by partitioning into equal-width windows, converting any CTDG into an ordered snapshot sequence . Each snapshot retains the temporal edges whose timestamps fall within its window while sharing the fixed node universe .
A.2 Structural Diffusion View
Definition 3 (PPR Diffusion and Smoothed Features). Let be the adjacency matrix, the adjacency matrix with self-loops, its diagonal degree matrix, and the symmetrically normalized form. The PPR diffusion matrix with teleport probability is:
and the PPR-smoothed feature matrix is . Entry gives the stationary visitation probability of a random walk from node that restarts with probability at each step; thus is a multi-hop, proximity-weighted neighborhood summary for node .
A.3 Koopman Operator on Graph Embeddings
KAIROS uses Koopman operator theory to model nonlinear temporal dynamics through a linear transition in a learned embedding space.
Definition 4 (Koopman Temporal Operator). Let denote the embedding dimension. Under the fixed node universe , let denote a graph encoder that maps snapshot to a per-node embedding matrix, where is the embedding of node at snapshot . A Koopman temporal operator is a learned linear map that approximates one-step temporal evolution:
The Koopman prediction residual for node i at time t is .
Remark 1 (Finite-dimensional Koopman approximation). The Koopman operator is generally infinite-dimensional [14]. KAIROS restricts it to the d-dimensional subspace spanned by the graph encoder outputs, yielding a finite-dimensional Koopman approximation. An orthogonality regularizer is included in the training objective.
Nodes whose trajectories violate this prediction produce large residuals , forming an anomaly signal .
A.4 Studied Problems
KAIROS addresses two complementary tasks using the same learned representation.
Problem 1 (Unsupervised Dynamic Node Classification). Given a dynamic graph G with input modalities (X, A, S, T) and no label supervision during training, learn an encoder such that the node representation , obtained from the frozen encoder, supports node classification through a post-hoc linear classifier trained on a small labeled subset.
Problem 2 (Unsupervised Dynamic Graph Anomaly Detection). Given the same dynamic graph G with no anomaly labels during training, assign each node an anomaly score such that larger values correspond to unusual temporal, structural, or neighborhood behavior relative to the learned graph dynamics.
Both problems use the same encoder architecture but different training objectives. For Problem 1, is set to zero because strict linear temporal predictability can over-constrain the embedding space and suppress class-discriminative directions. For Problem 2, is selected per dataset on the validation set.
B Details of KAIROS
B.1 Snapshot and Dual-View Construction
Snapshot construction. Given the temporal span , KAIROS partitions time into T equal-width windows. The k-th canonical snapshot start time is
and snapshot retains the edge subset
Each is then canonicalized: duplicate edges are removed, the graph is symmetrized, and self-loops are added so every node has a non-empty neighborhood during message passing.
Node features. All datasets are timestamped edge lists without raw node attributes. Each node is assigned a 128-dimensional sinusoidal positional encoding,
PPR structural view. For each snapshot , KAIROS computes a structural view by approximating PPR diffusion through -step APPNP-style power iteration [21]:
where is the symmetrically normalized adjacency of the canonicalized , is the teleport probability, and . We set , which converges to the closed-form PPR solution (Eq. (13)) as [21]. Eq. (18) is applied independently to each snapshot subgraph , so encodes the local topology of that window rather than the aggregate static graph. The pair forms the dual-view input for snapshot .
B.2
Temporal view sampling. At each training step, KAIROS draws start times and maps each to the nearest canonical index . Four sampling strategies are used: random draws start times i.i.d. from ; sequential samples start times without replacement from the canonical grid ; low_overlap places views at with uniform , yielding minimally overlapping windows; high_overlap replaces 0.75 with 0.25, yielding densely overlapping windows. These strategies serve as distinct temporal augmentations of the same graph and define all contrastive pairs.
B.3 Inductive anchor sampling
Across the V sampled views, KAIROS forms , the intersection of source nodes appearing in every sampled snapshot, and sub-samples up to anchor nodes uniformly at random. For graphs with nodes, KAIROS uses full-neighbor expansion of the L-hop message-passing block; for larger graphs, it uses multi-layer neighbor sampling with per-layer fanout , bounding per-step memory to regardless of . This adaptive policy avoids sub-sampling variance on small graphs while remaining tractable on the largest benchmarks.
B.4 Projection Heads and Temperature
Projection heads. Each branch uses an independent SimCLR v2-style three-layer MLP projector [78]:
with layer dimensions . The projected representation is -normalized: , and analogously . Batch normalization before each GELU stabilizes the contrastive loss and mitigates representation collapse [78].
Learnable temperature. The InfoNCE temperature is parameterized as , where is a learnable scalar initialized at and clamped to during training so the temperature remains bounded away from zero. All reported results use ; the SimCLR default of collapses the per-node distance distribution used by anomaly signals and , as quantified in Section 5.6.
B.5 Orthogonality Regularization and Optimization
Orthogonality regularizer. Without constraints, K may drift toward singular or volume-collapsing configurations during temporal propagation [14]. We add
which encourages K to remain near-orthogonal and approximately norm-preserving. The weight is fixed across all experiments. Eq. (20) with identity initialization bounds the spectral radius throughout training: under , the singular values of K lie in , so k-step Koopman propagation contracts or expands embedding norms by at most .
Optimization. We optimize Eq. (8) with Adam [79] (learning rate , weight decay ), cosine-annealing the learning rate to over E epochs, and clipping gradient norms to 1.0. The checkpoint with the lowest training loss is retained for downstream evaluation; per-dataset configuration is in Appendix J.
B.6 Classification Readout
Classification readout. The encoder performs a single forward pass on the canonicalized full static graph; the PPR features are likewise computed once on the full static graph via Eq. (18). The dual-view fused embedding is the average of the two pre-projection branches,
with and . The embedding matches the dimensionality used by CLDG/CLDG++ [9, 10], ensuring an equal-budget linear-probe comparison. A logistic-regression probe is trained on for 2,000 epochs (Adam, , weight decay ) over five random initializations; in each run, the epoch with the highest validation accuracy determines the test metrics, and the five scores are averaged.
C Baseline Descriptions
For node classification, we compare against fourteen methods across four categories.
Semi-Supervised Methods
LP [74] propagates labels along the graph transition matrix, converging to a harmonic labeling that is globally smooth with respect to the topology while remaining consistent with labeled seed nodes.
GCN [75] encodes node features and graph topology through stacked layers of localized spectral convolutions.
GAT [76] employs masked self-attention to assign learnable importance weights to neighbors, removing the need for a fixed aggregation kernel.
GraphSAGE [77] learns inductive node embeddings by sampling and aggregating features from local neighborhoods, enabling generalization to unseen nodes.
Unsupervised Dynamic Graph Methods
CAW [3] encodes temporal network motifs by extracting causal anonymous walks and using set-based anonymization to capture structural correlations over time.
TGAT [2] extends self-attention to continuous-time temporal graphs via functional time encoding, jointly modeling node features and evolving topology.
DySAT [1] computes dynamic node representations through a two-level self-attention architecture that attends over structural neighborhoods and historical snapshots.
MNCI [4] generates time-conditioned node embeddings by combining neighborhood and community-level influence through a specialized aggregation function.
Unsupervised Static Contrastive Methods
DGI [25] trains a GCN encoder by maximizing mutual information between local patch representations and a global graph summary.
GRACE [27] produces two corrupted graph views by independently dropping edges and masking node features, then maximizes cross-view node-level agreement.
MVGRL [26] contrasts node and graph representations across views generated from the input adjacency and its Personalized PageRank diffusion.
CCA-SSG [29] applies augmentation-generated view pairs under a redundancy-reduction objective inspired by canonical correlation analysis.
Dynamic Contrastive Baselines
CLDG [9] extracts temporal snapshot views via a configurable timespan sampling layer supporting both high-overlap (75%) and low-overlap (25%) strategies, treating each sampled window as an augmented temporal view of the graph. An InfoNCE objective trains the encoder to produce temporally consistent node embeddings, followed by a single full-graph pass for downstream evaluation.
CLDG++ [10] extends CLDG with a structural diffusion view derived from a Personalized PageRank weighted graph, and defines a multi-scale contrastive objective that enforces consistency at three granularities: local-local, local-global, and global-global across time spans. CLDG++ is the primary baseline for KAIROS, as it shares the same input modalities and evaluation protocol.
Anomaly Detection Baselines. For anomaly detection (Table 3), we additionally compare against seven dedicated methods spanning static, dynamic, and semi-supervised paradigms; CLDG and CLDG++ are also evaluated on this task using the anomaly scoring protocol described in Section 5.3.
AEGIS [47] performs inductive anomaly detection on attributed networks via an adversarial graph differentiation framework, training a generator to synthesize potential anomalies and a discriminator to learn decision boundaries that separate abnormal nodes from normal ones.
CoLA [44] detects anomalies on attributed networks via contrastive self-supervised learning, measuring the agreement between each node's representation and its local neighborhood subgraph to surface structural and attribute inconsistencies.
ANEMONE [45] identifies graph anomalies through multi-scale contrastive learning, simultaneously evaluating patch-level and context-level agreements to capture both local and global irregularity patterns.
GRADATE [46] generates multiple graph views via edge-based augmentation and applies a multi-scale contrastive network with node-subgraph, node-node, and subgraph-subgraph contrasts to capture anomalous signals across complementary structural granularities.
NetWalk [11] learns flexible deep embeddings for dynamic networks by processing network walks through a deep autoencoder for clique embedding, incrementally updating vertex representations to detect evolving anomalies in a streaming fashion.
TADDY [12] captures spatial-temporal patterns across discrete graph snapshots using a Transformer architecture with centrality-based spatial-temporal node encodings to model dynamic structural dependencies for anomaly detection.
SAD [13] formulates anomaly detection on dynamic graphs in a semi-supervised manner, encoding both labeled and unlabeled samples through a temporal graph network augmented with a time-equipped memory bank and a pseudo-label contrastive learning module.
D Additional Classification Results
Weighted-F1 scores for node classification are reported in Table 6.
Table 6: Node classification Weighted-F1 (%). Same protocol and legend as Table 2.
| Method | Input | DBLP | Bitcoinotc | BITotc | BITalpha | TAX51 | |
|---|---|---|---|---|---|---|---|
| LP | 51.54 | 31.25 | 50.28 | 67.18 | 24.36 | 60.88 | |
| GCN | 71.08 | 54.41 | 50.52 | 73.65 | 33.64 | 63.26 | |
| GAT | 69.21 | 50.60 | 48.34 | 71.40 | 30.21 | 58.01 | |
| GraphSAGE | 71.99 | 56.30 | 56.99 | 74.24 | 33.79 | 65.74 | |
| CAW | 51.38 | 57.92 | 53.59 | 71.99 | 29.52 | 57.80 | |
| TGAT | 51.96 | 55.73 | 49.53 | 68.03 | 28.44 | 56.81 | |
| DySAT | 52.48 | 48.80 | 48.70 | 68.07 | 22.89 | — | |
| MNCI | 66.46 | 54.79 | 54.66 | 71.80 | 32.29 | 65.26 | |
| DGI | 69.40 | 55.34 | 51.65 | 73.19 | 31.61 | 60.95 | |
| GRACE | 70.71 | 53.48 | 48.06 | 67.81 | — | — | |
| MVGRL | 70.91 | 54.54 | 53.00 | 72.71 | — | — | |
| CCA-SSG | 67.60 | 54.83 | 51.70 | 72.69 | 29.69 | 58.69 | |
| CLDG | 72.99±0.19 | 58.73±0.66 | 54.08±1.09 | 72.39±0.36 | 32.33±0.24 | 62.17±0.74 | |
| CLDG++ | 72.69 | 58.96 | 54.44 | 72.87 | 33.15 | 62.56 | |
| KAIROS | 78.41±0.34 | 58.96±0.67 | 52.35±0.12 | 69.51±0.30 | 38.15±0.64 | 62.55±0.99 |
E Temperature Sensitivity
Table 7 gives the 5-seed paired comparison of vs with Welch's -test -values confirming statistical significance on DBLP and TAX51. The single-seed -sweep trend is plotted in Figure 2 (main paper).
Table 7: Temperature ablation with GAT backbone held fixed (Accuracy %). (SimCLR default, learnable) vs (ours, fixed), across all five multi-seed datasets. -values from Welch's -test.
| Dataset | (canonical) | (ours) | -value | Effect | |
|---|---|---|---|---|---|
| DBLP | 74.58±0.53 | 78.07±0.36 | +3.49 | large | |
| TAX51 | 43.04±0.15 | 44.85±0.20 | +1.81 | large | |
| Bitcoinotc | 55.68±0.24 | 56.18±0.61 | +0.50 | 0.148 | small |
| BITotc | 62.70±0.27 | 62.70±0.29 | +0.00 | 0.990 | none |
| BITalpha | 77.31±0.33 | 77.57±0.23 | +0.26 | 0.238 | none |
F Backbone Ablation
Full 5-seed backbone ablation results are in Table 8.
Table 8: Backbone ablation: 5-seed Accuracy (%) reported as mean±std. Bold marks the best backbone per dataset. KAIROS main results use SAGE for DBLP, GCN for Bitcoinotc/BITalpha, SGC for BITotc, GAT for TAX51.
| Backbone | DBLP | Bitcoinotc | BITotc | BITalpha | TAX51 |
|---|---|---|---|---|---|
| GAT | |||||
| GCN | |||||
| SGC | |||||
| SAGE | |||||
| H2GCN |
G Koopman Regularizer Ablation
The effect of on anomaly detection AUC is reported in Table 9.
Table 9: Koopman regulariser ablation on anomaly detection at seed=24 (ROC-AUC %). Mixed effects across datasets: the regulariser helps only BITotc and BITalpha. For four of the six datasets (including Reddit) the Koopman operator learns equally well without its residual-regularisation term, suggesting should be tuned per-dataset. Bold marks the winning configuration.
| Dataset | (full) | (ablated) | |
|---|---|---|---|
| DBLP | 89.96 | 90.41 | +0.45 |
| Bitcoinotc | 97.09 | 97.56 | +0.47 |
| BITotc | 93.86 | 92.81 | -1.05 |
| BITalpha | 92.36 | 91.78 | -0.58 |
| TAX51 | 92.50 | 92.96 | +0.46 |
| 92.13 | 95.16 | +3.03 |
H Statistical Validation
Bootstrap probabilities that KAIROS's best-of-5 exceeds the CLDG++ paper value are reported in Table 10 ( resamples).
Table 10: Bootstrap probability that the best of 5 resampled seeds exceeds the CLDG++ paper value, resamples with replacement from KAIROS's 5-seed distribution. Anomaly dominates; classification mirrors the head-to-head verdict.
| Task | DBLP | Bitcoinotc | BITotc | BITalpha | TAX51 |
|---|---|---|---|---|---|
| , classification | 1.0000 | 0.9914 | 0.0000 | 0.0000 | 1.0000 |
| , anomaly | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 1.0000 |
I Anomaly Signal Analysis
Figure 4 shows per-signal ROC-AUC (, , , Combined) across all nine datasets as a heatmap, complementing Table 5. The temperature-induced collapse of and on Reddit at is shown in Figure 3 (main paper, Section 5.6).
J Per-Dataset Configuration
Table 11 lists hyperparameters for node classification. Table 12 gives the corresponding anomaly detection configurations, which differ in snapshot count, view count, and sampling strategy for several datasets. Both tasks share the same backbone, , and .

Figure 4: Per-signal anomaly ROC-AUC across all nine datasets: (temporal inconsistency), (Koopman residual), (neighborhood deviation), and their z-normalized combination. The combined score outperforms every individual signal on all primary datasets. collapses on the long-trajectory graphs (Reddit, MOOC, Arxiv), where carry the anomaly signal load.
Table 11: Per-dataset configuration for node classification, selected on held-out validation accuracy. and PPR are fixed across all datasets. Backbone is SAGE/GAT for larger graphs; GCN/SGC for small rating graphs ( K).
| Dataset | Backbone | Snapshots | Views | Strategy | Epochs |
|---|---|---|---|---|---|
| DBLP | SAGE | 4 | 4 | sequential | 200 |
| Bitcoinotc | GCN | 4 | 3 | sequential | 25 |
| BITotc | SGC | 4 | 4 | random | 50 |
| BITalpha | GCN | 6 | 4 | sequential | 200 |
| TAX51 | GAT | 8 | 5 | random | 200 |
| GCN | 5 | 4 | random | 200 |
K KAIROS vs. CLDG++ Efficiency Analysis
Figure 5 plots average 5-seed classification accuracy against trainable parameter count for CLDG and three KAIROS backbone configurations.
L Koopman Regularizer Visualization
Figure 6 visualizes the per-dataset effect of the Koopman regularizer (Table 9), showing the mixed effect across datasets and the large gain on Reddit ( AUC).
M Implementation Details
Hardware configuration. All experiments were conducted on a high-performance computing cluster. The server was equipped with a dual-socket Intel Xeon Gold 5317 processor running at 3.00 GHz with 48 CPU cores and 755 GB of system memory. For GPU-accelerated computation, we used 8 NVIDIA RTX A6000 GPUs, each with 48 GB of GDDR6 memory, running driver version
Table 12: Per-dataset configuration for anomaly detection. Backbone, , and are identical to Table 11. Snapshot count and view count differ from the classification setting for BITalpha, TAX51, and Reddit.
| Dataset | Snapshots | Views | Strategy | Epochs |
|---|---|---|---|---|
| DBLP | 4 | 4 | sequential | 200 |
| Bitcoinotc | 4 | 4 | sequential | 25 |
| BITotc | 4 | 4 | sequential | 50 |
| BITalpha | 5 | 5 | sequential | 100 |
| TAX51 | 4 | 4 | sequential | 200 |
| 4 | 4 | sequential | 200 |

Figure 5: Average node-classification accuracy (5-seed mean±std) vs. trainable parameter count. KAIROS (GCN, 60 K params) achieves the highest average accuracy at only the inference cost of CLDG++ (41 K params), placing it on the Pareto frontier of the accuracy–efficiency trade-off.
535.274.02. Each reported training run used a single GPU; multi-seed sweeps and independent ablations were parallelized across the available GPUs when possible.
Software environment. The implementation was developed in Python 3.10.12 on Ubuntu 22.04.5 LTS. We used PyTorch [80] 2.0.1 with CUDA 11.8 support and a CUDA-enabled DGL [81] build selected by the experiment launcher to match the detected PyTorch/CUDA pair. The dependency versions used for the reported experiments were NumPy 1.26.4, SciPy 1.15.3, scikit-learn 1.7.2, tqdm 4.67.1, psutil 7.1.3, and gdown 5.2.0. The code requires CUDA: the training script checks for GPU availability, verifies that DGL graphs can be moved to CUDA, and raises a runtime error if no CUDA device is found. On Reddit (898 K nodes), the largest dataset, a single training run takes per seed on one GPU; a five-seed Reddit configuration therefore requires GPU-hours.
Model architecture. All five backbone variants use message-passing layers, hidden dimension , and output embedding dimension (Section 4.2). Inter-layer dropout is 0.0 for all backbones; GAT additionally applies internal feature dropout of 0.1 and attention dropout of 0.1 within its message-passing operations.
GCN: symmetric degree normalization, ReLU activation between layers.
GAT: four attention heads in the intermediate layer, one head in the final layer; ELU activation between layers; feature dropout 0.1; attention dropout 0.1; residual connections.
GraphSAGE: mean aggregation, ReLU activation between layers.
SGC: stack of linear (no-activation) GraphConv layers, each with independent weight matrices, performing interleaved propagation and linear projection (a linearized GCN [75]).

Figure 6: Koopman regularizer ablation (ROC-AUC %). Blue: (full); orange: (ablated). Annotated deltas shown where . The regularizer helps on BITotc and BITalpha but hurts on Reddit (+3.03), confirming that must be tuned per dataset.
H2GCN: ego-neighbor separation via parallel linear projections (lin_ego and lin_nbr, each mapping to dimensions), all L intermediate representations concatenated, then projected to by a final linear layer.
Each encoder branch applies an independent Linear( ) layer followed by PReLU activation before the projection head. The SimCLR v2 projection head [78] is a three-layer MLP with dimensions , with batch normalization followed by GELU after each of the first two linear layers; the output is -normalized. Projection head weights are not shared between branches.
The InfoNCE temperature is parameterized as , with initialized at and clamped to ; all reported results fix as a non-trainable buffer. The Koopman head is nn.Linear( , , bias=False), initialized to .
Training protocol. Optimizer: Adam [79], learning rate , weight decay . Scheduler: cosine annealing with over epochs. Gradient norms are clipped to 1.0. The checkpoint with the lowest total training loss (Eq. 8) is retained for evaluation. Anchor batch size nodes, sampled from the intersection of source-node sets across all views. Neighbor sampling is adaptive: graphs with nodes use full-neighbor expansion (MultiLayerFullNeighborSampler); larger graphs use per-layer fanout [20, 20] (NeighborSampler). Anomaly evaluation uses full-neighbor sampling across all canonical snapshots regardless of . The PPR structural view uses APPNP iterations with (Eq. 18), applied per snapshot during training and once on the full static graph at classification evaluation. Loss weights: for all classification runs (overridden in code); default for anomaly detection, with Reddit using ; fixed across all experiments. Per-dataset backbone, snapshot count , view count , sampling strategy, and epoch budget are listed in Tables 11–12 (Appendix J).
Evaluation protocol. Node classification. Encoder weights are frozen; one forward pass on the canonicalized full static graph (to_simple → to_bidirected → add_self_loop). The fused embedding (Eq. 21) feeds a logistic-regression probe trained for 2,000 epochs (Adam, , weight decay ) over five independent weight initializations; each run records the test score at the epoch with the highest validation accuracy, and the five scores are averaged. Node labels are split per class: within each class, indices are randomly shuffled (seed 24) and divided 10% train, 10% validation, 80% test. All experiments run under five random seeds .
N Dataset Details
Data format and node features. All nine datasets are stored as space-separated edge-list files with columns: source node index, destination node index, timestamp. Node labels are stored in a separate file (node index, class label). No dataset provides raw node attributes; each node receives a
128-dimensional sinusoidal positional encoding keyed to its integer node index (Eq. 17), following the CLDG evaluation protocol [9].
Snapshot preprocessing. Each temporal subgraph is canonicalized identically during training and during anomaly evaluation: duplicate edges are removed, the graph is symmetrized, and self-loops are added.
Dataset summary. Table 1 (main paper) gives graph-level statistics (, , class count). Table 13 below details the per-dataset anomaly injection parameters. The primary six datasets (DBLP, Bitcoinotc, BITotc, BITalpha, TAX51, Reddit) replicate the CLDG/CLDG++ benchmark [9, 10]; the extended three (MOOC, Arxiv, Elliptic) broaden coverage to larger graphs, a 40-class citation setting, and a blockchain transaction network, and are not part of the CLDG or CLDG++ benchmark.
Table 13: Per-dataset anomaly injection details under the CLDG++ protocol [10]. Clique size and candidate pool are fixed across all datasets; varies to maintain a realistic anomaly fraction. Domain labels follow the characterization in Section 5.1.
| Dataset | Domain | n | Anomaly nodes (2nm) | Anomaly % | |
|---|---|---|---|---|---|
| DBLP | Citation network | 25,387 | 20 | 600 | 2.37 |
| Bitcoinotc | Bitcoin trust graph | 5,881 | 10 | 300 | 5.10 |
| BITotc | Bitcoin rating graph | 4,863 | 10 | 300 | 6.17 |
| BITalpha | Bitcoin rating graph | 3,219 | 10 | 300 | 9.32 |
| TAX51 | Temporal (51-class) | 132,524 | 200 | 6,000 | 4.53 |
| Community dynamics | 898,194 | 200 | 6,000 | 0.668 | |
| MOOC | Student action | 7,144 | 20 | 600 | 8.40 |
| Arxiv | Citation (40-class) | 169,343 | 100 | 3,000 | 1.77 |
| Elliptic | Blockchain transactions | 203,769 | 100 | 3,000 | 1.47 |
Anomaly injection protocol. Structural anomalies: n cliques of m=15 nodes, with all intra-clique edges assigned a timestamp drawn uniformly from of the respective dataset. Attribute anomalies: nodes each have their 128-d sinusoidal feature replaced by that of the most Euclidean-distant node found among k=50 randomly sampled candidates. The two sets are node-disjoint, yielding exactly 2nm anomaly nodes per dataset: nm structural and nm attribute.
Classification label split. Within each class, node indices are randomly shuffled (seed 24) and the first 10% of the shuffled list form the training set, the next 10% the validation set, and the remaining 80% the test set. This protocol matches CLDG and CLDG++.