← Latest papers
🤖 machine learning

CoMemNet: Contrastive Sampling with Memory Replay Network for Continual Traffic Prediction

CoMemNet is a dual-branch continual learning framework that combines a momentum-updated target branch with a Dynamic Contrastive Sampler and a lightweight temporal memory buffer to effectively capture evolving traffic patterns and mitigate catastrophic forgetting, achieving state-of-the-art performance on large-scale real-world datasets.

Original authors: Mei Wu, Wenchao Weng, Wenxin Su, Wenjie Tang, Wei Zhou

Published 2026-05-08
📖 4 min read☕ Coffee break read

Original authors: Mei Wu, Wenchao Weng, Wenxin Su, Wenjie Tang, Wei Zhou

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to predict traffic jams in a city that is constantly growing. Every year, new roads are built, new intersections open up, and the way people drive changes. This is the challenge the paper CoMemNet tackles.

Here is the story of how they solved it, using simple analogies:

The Problem: The "Moving Target" City

Most traffic prediction tools are like old maps. They are drawn based on the city as it was a few years ago.

  • The Issue: If you build a new highway or a new neighborhood, your old map is useless.
  • The Old Way: To fix an old map, you usually have to throw it away and redraw the entire city from scratch every time a new road appears. This takes forever and costs a fortune (computational power).
  • The "Forgetting" Problem: If you try to just add the new road to the old map without re-drawing everything, the AI gets confused. It learns the new road but forgets how the old roads worked. This is called "catastrophic forgetting."

The Solution: CoMemNet (The Smart, Adaptable Traffic Coach)

The authors created a system called CoMemNet that learns like a smart coach who never forgets, even as the team grows and changes. It has three main tricks up its sleeve:

1. The "Dual-Brain" System (Online vs. Target Branch)

Imagine a coach with two brains working together:

  • The "Fast Learner" Brain (Online Branch): This brain is hyper-focused on today's traffic. It learns quickly to handle the new roads and current rush hour patterns. It's agile and fast.
  • The "Wise Mentor" Brain (Target Branch): This brain moves slowly. It remembers the traffic patterns from last year and the year before. It doesn't change its mind easily.
  • How they work together: The Fast Learner tries new things, but the Wise Mentor gently pulls it back to remember the basics. This ensures the system learns the new stuff without forgetting the old stuff.

2. The "Spotlight" Selector (DC Sampler)

You can't watch every single car in a massive city at once; your computer would explode.

  • The Trick: Instead of watching every road, CoMemNet uses a "Spotlight." It uses a special math tool (Wasserstein Distance) to ask: "Which roads are changing the most?"
  • The Result: If a road has been the same for 10 years, the Spotlight ignores it. If a new road just opened or an old road's traffic pattern suddenly flipped, the Spotlight shines brightly on it. The system only spends its energy studying the roads that actually need attention. This saves massive amounts of time and memory.

3. The "Pocket Notebook" (TMRB-N)

Usually, to remember old traffic, you'd need to store a giant library of every car's history. That's too heavy.

  • The Trick: CoMemNet uses a tiny, lightweight "Pocket Notebook." It doesn't store every detail. Instead, it only writes down the "gist" of the most important changes.
  • The Result: When the system needs to remember the past, it flips through this small notebook. It's so efficient that the system never runs out of memory, even as the city grows for years.

The Results: Why It Matters

The authors tested this on real traffic data from California (including two new datasets they created).

  • Accuracy: It predicted traffic better than any other method currently available (State-of-the-Art).
  • Efficiency: While other methods had to retrain on thousands of roads every year, CoMemNet only focused on a tiny fraction (sometimes less than 30%) of the roads, yet still got better results.
  • Longevity: It successfully handled a city growing over 7 years without "forgetting" how to predict traffic from the early years.

In a Nutshell

CoMemNet is like a traffic prediction system that doesn't need to relearn the whole city every time a new street is built. It has a fast brain for new things, a slow brain for old memories, a spotlight to focus only on what's changing, and a tiny notebook to keep things organized. This allows it to predict traffic accurately in a city that is constantly expanding, without crashing the computer.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →