SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.10524 · NeurIPS · 2024

Get Rid of Isolation: A Continuous Multi-task Spatio-Temporal Learning Framework

Yang Wang, Zhengyang Zhou, Zhongchao Yi, Qihe Huang, Yanjiang Chen, Liheng Yu, Xu Wang

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.10524.json · badge: /api/ran/2410.10524.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
DILab-USTCSZ/CMuST canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
dilab-ustcsz/cmust canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
FunctionStatusWhere it lives
attention Ran
ran; our contract draft was wrong, not the code
DILab-USTCSZ/CMuST/model/layers.py
code served (permissive licence) · get_code("86885c66700abb4c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Construct query, key, value tensors
# Shape: (batch_size, seq_len, d_k)
batch_size = 2
seq_len = 3
d_k = 4

query = torch.randn(batch_size, seq_len, d_k)
key = torch.randn(batch_size, seq_len, d_k)
value = torch.randn(batch_size, seq_len, d_k)

# Construct mask: shape (batch_size, seq_len, seq_len)
# 1 means attend, 0 means mask out
mask = torch.ones(batch_size, seq_len, seq_len)

# Construct dropout layer
dropout = nn.Dropout(p=0.1)

ARGS = {
    "query": query,
    "key": key,
    "value": value,
    "mask": mask,
    "dropout": dropout,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_variance Ran
ran, violated the contract we drafted
DILab-USTCSZ/CMuST/utils/utils.py
code served (permissive licence) · get_code("e892e633f5ff5ff5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create multiple weight snapshots
# Each snapshot should be a numpy array representing model weights
snapshot_1 = np.array([[1.0, 2.0, 3.0, 4.0],
                       [5.0, 6.0, 7.0, 8.0]])

snapshot_2 = np.array([[1.5, 2.5, 3.5, 4.5],
                       [5.5, 6.5, 7.5, 8.5]])

snapshot_3 = np.array([[1.2, 2.2, 3.2, 4.2],
                       [5.2, 6.2, 7.2, 8.2]])

weight_snapshots = [snapshot_1, snapshot_2, snapshot_3]

ARGS = {
    "weight_snapshots": weight_snapshots
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
clones Ran
ran; our contract draft was wrong, not the code
dilab-ustcsz/cmust/model/models.py
code served (permissive licence) · get_code("a3722169bbc81569")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ModuleList. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import copy

torch.manual_seed(0)

# Create a simple module to clone
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

module = SimpleModule()
N = 5

ARGS = {
    "module": module,
    "N": N
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ModuleList — a ModuleList output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ModuleList output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_dataloaders_scaler Ran
ran; our contract draft was wrong, not the code
dilab-ustcsz/cmust/utils/dataloader.py
code served (permissive licence) · get_code("a2ca636629cfd262")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
import tempfile
import os
import logging

torch.manual_seed(0)

# Create a temporary directory with mock .npz files
temp_dir = tempfile.mkdtemp()

# Create mock data for train, val, test
# Shape: (num_samples, time_steps, num_nodes)
# We'll use distinct sizes: train=2, val=3, test=4 samples; time_steps=5; nodes=6
train_x = np.random.randn(2, 5, 6).astype(np.float32)
train_y = np.random.randn(2, 1).astype(np.float32)
np.savez(os.path.join(temp_dir, 'train.npz'), x=train_x, y=train_y)

val_x = np.random.randn(3, 5, 6).astype(np.float32)
val_y = np.random.randn(3, 1).astype(np.float32)
np.savez(os.path.join(temp_dir, 'val.npz'), x=val_x, y=val_y)

test_x = np.random.randn(4, 5, 6).astype(np.float32)
test_y = np.random.randn(4, 1).astype(np.float32)
np.savez(os.path.join(temp_dir, 'test.npz'), x=test_x, y=test_y)

# Create a simple logger
logger = logging.getLogger('test_logger')
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
logger.addHandler(handler)

ARGS = {
    'dataset_dir': temp_dir,
    'batch_size': 2,
    'logger': logger
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_logger Ran
ran; our contract draft was wrong, not the code
DILab-USTCSZ/CMuST/utils/logging.py
code served (permissive licence) · get_code("f651f9272fd5a62a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import sys
import logging
import tempfile

# Create a temporary directory for logging
log_dir = tempfile.mkdtemp()
name = "test_logger"
log_filename = "test.log"
level = logging.INFO

ARGS = {
    "log_dir": log_dir,
    "name": name,
    "log_filename": log_filename,
    "level": level
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_mae Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DILab-USTCSZ/CMuST/utils/metrics.py
code served (permissive licence) · get_code("1208d48cf19f87d0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for preds and labels
# preds: predictions tensor
preds = torch.randn(2, 4)

# labels: ground truth tensor with some NaN values to test masking
labels = torch.randn(2, 4)
labels[0, 1] = np.nan  # Add a NaN value to test the masking logic

# null_val: the value to treat as missing (default is np.nan)
null_val = np.nan

ARGS = {
    "preds": preds,
    "labels": labels,
    "null_val": null_val,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_mse Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DILab-USTCSZ/CMuST/utils/metrics.py
code served (permissive licence) · get_code("8982d44f3ff56232")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for predictions and labels
# Using distinct shapes to make dimensions probing-friendly
preds = torch.randn(2, 4, dtype=torch.float32)
labels = torch.randn(2, 4, dtype=torch.float32)

# Create a version with some NaN values to test the masking logic
labels_with_nan = labels.clone()
labels_with_nan[0, 1] = float('nan')

ARGS = {
    "preds": preds,
    "labels": labels_with_nan,
    "null_val": np.nan
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_rmse Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DILab-USTCSZ/CMuST/utils/metrics.py
code served (permissive licence) · get_code("b91a4360472e079e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# Create small tensors for predictions and labels
# preds and labels should be float tensors of the same shape
batch_size = 2
num_features = 4

preds = torch.randn(batch_size, num_features)
labels = torch.randn(batch_size, num_features)

# Add some NaN values to test the masking logic
labels[0, 0] = np.nan
labels[1, 2] = np.nan

ARGS = {
    "preds": preds,
    "labels": labels,
    "null_val": np.nan
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train_epoch Ran
ran, honoured the contract we drafted
DILab-USTCSZ/CMuST/engine.py
code served (permissive licence) · get_code("5704fc9bd459b22f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np
from torch.optim import SGD
from torch.optim.lr_scheduler import StepLR

torch.manual_seed(0)

# Small model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Scaler stand-in with inverse_transform method
class SimpleScaler:
    def inverse_transform(self, outputs):
        return outputs * 2.0 + 1.0

# Criterion (loss function)
criterion = nn.MSELoss()

# Device
device = torch.device('cpu')

# Model
model = SimpleModel()
model.to(device)

# Optimizer
optimizer = SGD(model.parameters(), lr=0.01)

# Scheduler
scheduler = StepLR(optimizer, step_size=1, gamma=0.1)

# Scaler
scaler = SimpleScaler()

# Dataloader - list of (inputs, labels) tuples
# inputs: batch_size=2, feature_dim=4
# labels: batch_size=2, output_dim=3
dataloader = [
    (torch.randn(2, 4), torch.randn(2, 3)),
    (torch.randn(2, 4), torch.randn(2, 3)),
]

ARGS = {
    'model': model,
    'device': device,
    'dataloader': dataloader,
    'scaler': scaler,
    'optimizer': optimizer,
    'scheduler': scheduler,
    'criterion': criterion,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
CMuST Not yet run
unverified (harvested, no recorded run)
dilab-ustcsz/cmust/model/models.py
code served (permissive licence) · get_code("b323e4aa98ca715e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 2 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
clones
brick of this paper's assembly: helper
79 other papers
68 dated earlier, 10 later, 1 same year, order not determinable · 11 only as an assembly brick
1411.4555 (2014-11)
Show and Tell: A Neural Image Caption Generator
1612.00563 (2016-12)
Self-critical Sequence Training for Image Captioning
1706.03762 (2017-06)
Attention Is All You Need
and 76 more not named here
get_logger 2 other papers
1 dated earlier, 1 the same month
2310.09751 (2023-10)
UniTime: A Language-Empowered Unified Model for Cross-Domain Time Series Forecasting
2410.00373 (2024-10)
Robust Traffic Forecasting against Spatial Shift over Years
masked_rmse 2 other papers
1 dated earlier, 1 the same month
2310.06119 (2023-10)
Exploring Progress in Multivariate Time Series Forecasting: Comprehensive Benchmarking and Heterogeneity Analysis
2410.19192 (2024-10)
TEAM: Topological Evolution-aware Framework for Traffic Forecasting--Extended Version
attention 1 other paper
1 dated earlier
1706.03762 (2017-06)
Attention Is All You Need
masked_mae 1 other paper
1 later
2412.09972 (2024-12)
Efficient Large-Scale Traffic Forecasting with Transformers: A Spatial Data Management Perspective
masked_mse 1 other paper
1 dated earlier
2310.06119 (2023-10)
Exploring Progress in Multivariate Time Series Forecasting: Comprehensive Benchmarking and Heterogeneity Analysis

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Spatiotemporal learning has become a pivotal technique to enable urban intelligence. Traditional spatiotemporal models mostly focus on a specific task by assuming a same distribution between training and testing sets. However, given that urban systems are usually dynamic, multi-sourced with imbalanced data distributions, current specific task-specific models fail to generalize to new urban conditions and adapt to new domains without explicitly modeling interdependencies across various dimensions and types of urban data. To this end, we argue that there is an essential to propose a Continuous Multi-task Spatio-Temporal learning framework (CMuST) to empower collective urban intelligence, which reforms the urban spatiotemporal learning from single-domain to cooperatively multi-dimensional and multi-task learning. Specifically, CMuST proposes a new multi-dimensional spatiotemporal interaction network (MSTI) to allow cross-interactions between context and main observations as well as self-interactions within spatial and temporal aspects to be exposed, which is also the core for capturing task-level commonality and personalization. To ensure continuous task learning, a novel Rolling Adaptation training scheme (RoAda) is devised, which not only preserves task uniqueness by constructing data summarization-driven task prompts, but also harnesses correlated patterns among tasks by iterative model behavior modeling. We further establish a benchmark of three cities for multi-task spatiotemporal learning, and empirically demonstrate the superiority of CMuST via extensive evaluations on these datasets. The impressive improvements on both few-shot streaming data and new domain tasks against existing SOAT methods are achieved. Code is available at https://github.com/DILab-USTCSZ/CMuST.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.10524")
get_code_for_paper("2410.10524")
have("2410.10524")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.10524.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.10524.svg)](https://syntology.ai/paper/2410.10524)

Connect an agent — have() is free.