Papers
Topics
Authors
Recent
Search
2000 character limit reached

CoMemNet: Continual Traffic Forecasting

Updated 5 July 2026
  • The paper introduces CoMemNet, a dual-branch framework that enables continual traffic prediction by addressing evolving node sets and traffic patterns.
  • It employs a Dynamic Contrastive Sampler and a Node-Adaptive Temporal Memory Replay Buffer to select high-shift nodes and adapt efficiently without full retraining.
  • Empirical evaluations on PeMS datasets demonstrate state-of-the-art improvements in MAE, RMSE, and MAPE while reducing computational overhead.

Searching arXiv for the topic and closely related names to ground the article in current papers. to=arxiv_search.search 总代理联系 ՞նչ query="CoMemNet OR CoMEM OR Chain-of-Memory CoMemNet COMNet CMMAC" max_results=10 sort_by="relevance" to=arxiv_search.search 天天彩票网 天天中彩票有json {"query":"CoMemNet OR CoMEM OR Chain-of-Memory CoMemNet COMNet CMMAC","max_results":10,"sort_by":"relevance"} CoMemNet most directly denotes the framework introduced in “CoMemNet: Contrastive Sampling with Memory Replay Network for Continual Traffic Prediction” (Wu et al., 7 May 2026), a continual spatio-temporal forecasting architecture for expanding traffic networks. In that formulation, CoMemNet addresses sequential prediction on graphs whose node set and traffic patterns evolve over time, combining a dual-branch continual learning design, a Dynamic Contrastive Sampler driven by Wasserstein Distance features, and a Node-Adaptive Temporal Memory Replay Buffer. The name also overlaps with adjacent usages in recent literature: CoMEM denotes a continuous memory module for vision-LLMs (Wu et al., 23 May 2025), “CoMemNet” is discussed as a natural system interpretation of Chain-of-Memory for LLM agents (Xu et al., 14 Jan 2026), and related abbreviations such as COMNet and co-membership-based anomaly frameworks appear in other domains (Su et al., 2023, Lapid et al., 2022). In current arXiv usage, however, the explicit title “CoMemNet” refers to the continual traffic prediction framework (Wu et al., 7 May 2026).

1. Definition and scope

CoMemNet is a dual-branch continual learning framework for traffic prediction on expanding road networks, where both the node set and traffic patterns change over time (Wu et al., 7 May 2026). The underlying setting is a sequence of graphs

G={G1,G2,,Gτ,,GT},Gτ={Vτ,Eτ,Aτ},G = \{G_1, G_2, \dots, G_\tau, \dots, G_T\}, \quad G_\tau = \{V_\tau, E_\tau, A_\tau\},

with

Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,

so that new nodes and edges are added over time (Wu et al., 7 May 2026). At the forecasting level, the model consumes historical traffic

X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}

and predicts future traffic

Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}

for each period τ\tau (Wu et al., 7 May 2026).

The framework is designed for continual prediction without retraining from scratch and without storing all past data (Wu et al., 7 May 2026). Its central claim is that static-graph spatio-temporal methods are inadequate when VτV_\tau, EτE_\tau, and AτA_\tau evolve and when traffic distributions drift over years (Wu et al., 7 May 2026). Accordingly, CoMemNet replaces fixed-topology dependence with a graph-free, embedding-based backbone and augments it with replay- and sampling-based continual learning mechanisms (Wu et al., 7 May 2026).

A useful contextual distinction is that the traffic-prediction CoMemNet is not a generic umbrella term for all “co-memory” systems. In multimodal reasoning, CoMEM denotes a continuous memory module attached to a frozen VLM (Wu et al., 23 May 2025). In LLM-agent memory, a hypothetical CoMemNet is described as a reusable module built around Chain-of-Memory (Xu et al., 14 Jan 2026). In weakly supervised semantic segmentation, COMNet denotes a co-occurrent matching network (Su et al., 2023). These systems share a memory-centric vocabulary, but they solve different problems and use different inductive biases.

2. Problem formulation in expanding traffic networks

The motivating problem is continual traffic prediction on streaming, expanding graphs (Wu et al., 7 May 2026). Most earlier spatio-temporal GNNs assume a fixed adjacency matrix and a bounded training window, whereas real traffic systems exhibit node expansion, edge evolution, and nonstationary traffic dynamics (Wu et al., 7 May 2026). This makes naive incremental training vulnerable to catastrophic forgetting and full retraining computationally prohibitive (Wu et al., 7 May 2026).

CoMemNet formalizes the task as sequential learning over years, with each year treated as a period τ\tau (Wu et al., 7 May 2026). Data are split temporally into train/valid/test with ratio $6:2:2$, and the model is updated sequentially from year 1 to the final year, retaining learned parameters and compact memory rather than full raw history (Wu et al., 7 May 2026). The adjacency matrix used for baselines is defined by Post-Mile distance as

Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,0

with Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,1 and Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,2 (Wu et al., 7 May 2026). The paper explicitly notes that this adjacency is not used directly by the CoMemNet backbone (Wu et al., 7 May 2026).

This formulation situates CoMemNet closer to identity- and embedding-based spatio-temporal forecasting than to conventional STGNNs. A plausible implication is that the method treats topology change primarily as a source of distribution shift in node representations rather than as an object of explicit message passing. That interpretation is consistent with the paper’s emphasis on node features, time embeddings, Wasserstein-distance-based drift estimation, and replay over compact temporal summaries (Wu et al., 7 May 2026).

3. Dual-branch architecture and objective

CoMemNet consists of three main parts: a backbone, an Online branch, and a Target branch (Wu et al., 7 May 2026). The backbone includes the DC Sampler, a Node Memory Bank with TMRB-N, and an MLP-based Encoder plus a Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,3 Conv Projector (Wu et al., 7 May 2026). The Online branch is the fast learner updated by gradient descent on the current period, while the Target branch is a momentum-updated copy that provides stable historical features (Wu et al., 7 May 2026).

The supervised objective is MAE on the dynamically selected node subset: Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,4 The paper explicitly notes that despite the term “contrastive” in the name, CoMemNet does not use an InfoNCE-style contrastive loss; “contrastive” refers to contrastive sampling based on inter-period feature change (Wu et al., 7 May 2026).

The Online branch parameters Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,5 are updated as

Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,6

while the Target branch parameters Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,7 follow an EMA update

Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,8

with Gτ=Gτ1+ΔGτ,G_\tau = G_{\tau-1} + \Delta G_\tau,9 (Wu et al., 7 May 2026). This dual-timescale design separates fast adaptation from stable historical representation.

The backbone itself is intentionally lightweight and graph-free (Wu et al., 7 May 2026). Spatio-temporal context is injected through spatial identity, temporal identity, and temporal memory rather than explicit graph convolution (Wu et al., 7 May 2026). The encoder is described as an X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}0-layer MLP producing node-level features X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}1, followed by a linear X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}2 convolutional projector (Wu et al., 7 May 2026). This suggests a deliberate trade-off: weaker explicit structural inductive bias in exchange for robustness under topology drift and lower replay cost.

4. Dynamic Contrastive Sampler

The Dynamic Contrastive Sampler is the mechanism that selects informative nodes for training in each period (Wu et al., 7 May 2026). It operates on Target-branch embeddings from consecutive periods,

X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}3

and uses Wasserstein Distance features to quantify node-level distribution shift (Wu et al., 7 May 2026).

For each node X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}4 present in both periods, current-period features are normalized as

X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}5

These normalized features are discretized into X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}6 bins, yielding

X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}7

and similarly for X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}8 (Wu et al., 7 May 2026). The paper then defines a Wasserstein-style discrepancy

X(tTh:t)τRTh×Nτ×CX_{(t-T_h:t)}^\tau \in \mathbb{R}^{T_h \times N_\tau \times C}9

with the operational interpretation of a per-node score

Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}0

for sampling purposes (Wu et al., 7 May 2026).

Given a ratio hyperparameter Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}1, the number of replayed historical nodes is

Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}2

The selected node subset is

Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}3

that is, all new nodes plus the historical nodes with largest Wasserstein distance (Wu et al., 7 May 2026). This focuses optimization on nodes with the greatest distributional change and on newly introduced nodes, thereby mitigating catastrophic forgetting while reducing per-period training cost (Wu et al., 7 May 2026).

The paper’s terminology can be misleading if read through the lens of metric learning. The “contrastive” component is not pairwise representation learning with positive and negative pairs, but contrastive node selection based on temporal discrepancy (Wu et al., 7 May 2026). This distinction is central to understanding the method’s contribution.

5. Node-Adaptive Temporal Memory Replay Buffer

The Node-Adaptive Temporal Memory Buffer, TMRB-N, is CoMemNet’s replay mechanism for temporal information (Wu et al., 7 May 2026). Rather than storing full time series or full-graph neighborhoods, it stores a compact temporal memory vector Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}4 for each period (Wu et al., 7 May 2026). The module is designed to adapt to varying node set sizes and to emphasize nodes whose temporal embeddings change most (Wu et al., 7 May 2026).

For selected nodes Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}5, the model constructs daily embeddings Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}6 and weekly embeddings Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}7, then concatenates them into

Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}8

(Wu et al., 7 May 2026). Given previous-period memory Y(t+Tf:t)τRTf×Nτ×CY_{(t+T_f:t)}^\tau \in \mathbb{R}^{T_f \times N_\tau \times C}9, the difference signal is

τ\tau0

The key nodes are selected by

τ\tau1

and their weighted average temporal representation is

τ\tau2

where τ\tau3 is a learnable weight matrix (Wu et al., 7 May 2026).

Temporal fusion is then performed by a GRU-like update: τ\tau4 The resulting τ\tau5 is stored for the next period (Wu et al., 7 May 2026).

This design is explicitly motivated as a response to memory explosion (Wu et al., 7 May 2026). A plausible implication is that TMRB-N should scale more gracefully than replay schemes that preserve full node histories, though it also implies a strong compression bottleneck. The ablations reported in the paper show that removing TMRB-N, replacing key-node selection with random selection, or disabling temporal update all worsens MAE/RMSE/MAPE (Wu et al., 7 May 2026).

6. Empirical evaluation and continual-learning behavior

CoMemNet is evaluated on three multi-year PeMS-based datasets: PEMSD3(S), PEMSD4(L), and PEMSD8(M) (Wu et al., 7 May 2026). These datasets were derived from PeMS 30-second sensor data aggregated to 5-minute intervals, with prediction of the next 60 minutes from the previous 60 minutes (Wu et al., 7 May 2026). The node counts expand over time: PEMSD3(S) from 655 to 871, PEMSD4(L) from 1118 to 2406, and PEMSD8(M) from 216 to 320 (Wu et al., 7 May 2026).

The paper reports state-of-the-art performance across all three datasets (Wu et al., 7 May 2026). On 12-step annual-average forecasting, CoMemNet achieves 13.57 MAE, 22.94 RMSE, and 18.80% MAPE on PEMSD3(S); 22.00 MAE, 37.38 RMSE, and 15.86% MAPE on PEMSD4(L); and 17.03 MAE, 28.41 RMSE, and 17.82% MAPE on PEMSD8(M) (Wu et al., 7 May 2026). It is compared against retrained, static, and expansible backbones as well as continual-learning baselines including TrafficStream, STKEC, PECPM, TFMoE, and EAC (Wu et al., 7 May 2026).

A salient result is node efficiency. The DC Sampler drastically reduces training-node counts while preserving or improving accuracy (Wu et al., 7 May 2026). On PEMSD3(S) in 2017, CoMemNet trains on 192 of 871 nodes; on PEMSD4(L) in 2015, on 1089 of 2406 nodes; and on PEMSD8(M) in 2018, on 92 of 320 nodes (Wu et al., 7 May 2026). Training time per epoch is also substantially reduced relative to heavier continual baselines (Wu et al., 7 May 2026).

The ablation results identify both DC Sampler and TMRB-N as essential (Wu et al., 7 May 2026). Removing new-node inclusion or historical replay degrades performance; a static variant performs worst; and a retrained version is strongest but more expensive (Wu et al., 7 May 2026). Hyperparameter studies show that increasing τ\tau6 generally improves MAE with diminishing returns and that τ\tau7 yields the best and most stable results across datasets (Wu et al., 7 May 2026).

The name “CoMemNet” has a broader conceptual neighborhood in recent arXiv literature, but these systems should not be conflated.

In vision-language modeling, CoMEM is a continuous memory module that encodes each retrieved image-text item into τ\tau8 and prepends the resulting dense memory vectors to a frozen VLM’s input embeddings (Wu et al., 23 May 2025). It uses the same VLM as encoder and decoder, adds a Q-Former compression head, trains only 1.2% of parameters, and evaluates on eight multimodal reasoning benchmarks (Wu et al., 23 May 2025). This work describes CoMEM as a continuous memory network for VLMs, but its problem setting is multimodal retrieval-conditioned reasoning rather than continual forecasting (Wu et al., 23 May 2025).

In LLM-agent memory, “Chain-of-Memory” proposes lightweight construction plus sophisticated utilization of external memory (Xu et al., 14 Jan 2026). The paper explicitly remarks that its design is highly relevant to a system like a “CoMemNet,” describing a hypothetical reusable memory module built around write(turn) and read(query) semantics (Xu et al., 14 Jan 2026). The core mechanism organizes top-τ\tau9 retrieved nodes into chains with gating score

VτV_\tau0

and adaptive truncation

VτV_\tau1

to prune irrelevant steps (Xu et al., 14 Jan 2026). Here “CoMemNet” is an interpretive extension rather than the paper’s formal title.

In weakly supervised semantic segmentation, COMNet stands for Co-Occurrent Matching Network (Su et al., 2023). It improves CAMs through inter-matching across paired images with common classes and intra-matching within an image, achieving 67.1/67.6 val/test mIoU with ResNet-50 and 67.8/68.1 with ResNet-101 on PASCAL VOC 2012 (Su et al., 2023). Although the details note that COMNet is sometimes loosely referred to as “CoMemNet,” the official name is COMNet (Su et al., 2023).

In network anomaly detection, CMMAC constructs a co-membership bipartite graph and ranks communities by aggregated membership probabilities inferred via link prediction (Lapid et al., 2022). This is conceptually a co-membership network model, but not a system formally named CoMemNet (Lapid et al., 2022).

Taken together, these papers indicate that “CoMemNet” functions both as a specific model name in traffic prediction and as a broader memory-network descriptor in adjacent areas. This suggests a convergent design tendency across fields: compact external state, selective replay or retrieval, and dynamic conditioning of the current computation by compressed historical information.

8. Limitations and prospective directions

The traffic-prediction CoMemNet has several explicit limitations. First, the “contrastive” component is only implicit; there is no explicit contrastive loss, which may differ from expectations associated with contrastive representation learning (Wu et al., 7 May 2026). Second, performance depends on hyperparameters such as VτV_\tau2 and VτV_\tau3, and tuning may be required for new domains (Wu et al., 7 May 2026). Third, the MLP-based graph-free backbone may underutilize explicit spatial connectivity when reliable graph structure is available (Wu et al., 7 May 2026). Fourth, the continual segmentation into yearly periods is fixed by the experimental setup and may not transfer optimally to other streaming regimes (Wu et al., 7 May 2026).

The paper suggests combining the DC Sampler and TMRB-N with stronger spatial backbones, extending discrepancy measures beyond Wasserstein distance, automating hyperparameter selection, and applying the framework to other spatio-temporal streams such as cellular traffic or IoT networks (Wu et al., 7 May 2026). A plausible implication is that CoMemNet’s main transferable contribution lies less in its specific MLP forecaster than in its separation of three concerns: fast online adaptation, slow historical representation via EMA, and replay constrained to dynamically selected high-shift entities.

Across the related literature, analogous future directions appear in different forms. CoMEM points toward larger memory banks, hierarchical retrieval, and cross-model sharing of continuous memory (Wu et al., 23 May 2025). Chain-of-Memory points toward learned gating, RL-based stopping, and multimodal extension (Xu et al., 14 Jan 2026). These parallels suggest that selective memory utilization, rather than indiscriminate accumulation of context or replay, is becoming a recurring systems principle.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to CoMemNet.