SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.14197 · NeurIPS · 2024

SOFTS: Efficient Multivariate Time Series Forecasting with Series-Core Fusion

Han-Jia Ye, De-Chuan Zhan, Lu Han, Xu-Yang Chen

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 0 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/2404.14197.json · badge: /api/ran/2404.14197.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
secilia-cxy/softs community
Papers with Code archive
5 ran · 0 no recorded run
FunctionStatusWhere it lives
DataEmbedding_inverted Ran
ran on a synthesized input · constructed an object; no result was computed
secilia-cxy/softs/models/SOFTS.py
code served (permissive licence) · get_code("3dfb40fd79a6c27e")
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 an instance of its own class, DataEmbedding_inverted: the run constructed the object and did not call it, so no result was computed. 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)

class DataEmbedding_inverted(nn.Module):

    def __init__(self, c_in, d_model, dropout=0.1):
        super(DataEmbedding_inverted, self).__init__()
        self.value_embedding = nn.Linear(c_in, d_model)
        self.dropout = nn.Dropout(p=dropout)

    def forward(self, x, x_mark):
        x = x.permute(0, 2, 1)
        if x_mark is None:
            x = self.value_embedding(x)
        else:
            x = self.value_embedding(torch.cat([x, x_mark.permute(0, 2, 1)], 1))
        return self.dropout(x)


# Setup: Create instance arguments
c_in = 5
d_model = 8
dropout = 0.1

# Create the module instance
embedding_module = DataEmbedding_inverted(c_in=c_in, d_model=d_model, dropout=dropout)

# Create test inputs for forward pass
batch_size = 2
seq_length = 4

# x shape: (batch, seq_length, c_in)
x = torch.randn(batch_size, seq_length, c_in)

# x_mark shape: (batch, seq_length, mark_dim) - we use None in one case, provide tensor in another
x_mark = torch.randn(batch_size, seq_length, 3)

ARGS = {
    'c_in': c_in,
    'd_model': d_model,
    '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 DataEmbedding_inverted — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DataEmbedding_inverted 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
Encoder Ran
ran on a synthesized input · constructed an object; no result was computed
secilia-cxy/softs/models/SOFTS.py
code served (permissive licence) · get_code("2823fd0720f2b50e")
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 an instance of its own class, Encoder: the run constructed the object and did not call it, so no result was computed. 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)

# Create a mock attention layer that returns (x, attn)
class MockAttentionLayer(nn.Module):
    def __init__(self, d_model=4):
        super().__init__()
        self.d_model = d_model
        self.linear = nn.Linear(d_model, d_model)
    
    def forward(self, x, attn_mask=None, tau=None, delta=None, **kwargs):
        # Return transformed x and a dummy attention map
        x_out = self.linear(x)
        attn = torch.randn(2, 3, 3)  # batch=2, seq_len=3, seq_len=3
        return x_out, attn

# Create a mock conv layer
class MockConvLayer(nn.Module):
    def __init__(self, d_model=4):
        super().__init__()
        self.conv = nn.Conv1d(d_model, d_model, kernel_size=1)
    
    def forward(self, x):
        # x shape: (batch, seq_len, d_model)
        # Conv1d expects (batch, d_model, seq_len)
        x = x.transpose(1, 2)
        x = self.conv(x)
        x = x.transpose(1, 2)
        return x

# Create mock norm layer
class MockNormLayer(nn.Module):
    def __init__(self, d_model=4):
        super().__init__()
        self.norm = nn.LayerNorm(d_model)
    
    def forward(self, x):
        return self.norm(x)

# Build components
d_model = 4
num_attn_layers = 3
num_conv_layers = 2

attn_layers = [MockAttentionLayer(d_model) for _ in range(num_attn_layers)]
conv_layers = [MockConvLayer(d_model) for _ in range(num_conv_layers)]
norm_layer = MockNormLayer(d_model)

ARGS = {
    "attn_layers": attn_layers,
    "conv_layers": conv_layers,
    "norm_layer": norm_layer,
}
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 Encoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Encoder 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
EncoderLayer Ran
ran on a synthesized input · constructed an object; no result was computed
secilia-cxy/softs/models/SOFTS.py
code served (permissive licence) · get_code("313093e2f8629244")
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 an instance of its own class, EncoderLayer: the run constructed the object and did not call it, so no result was computed. 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 torch.nn.functional as F

torch.manual_seed(0)

# Create a minimal attention module that satisfies the usage in EncoderLayer.forward()
class MinimalAttention(nn.Module):
    def __init__(self, d_model):
        super(MinimalAttention, self).__init__()
        self.d_model = d_model
    
    def forward(self, query, key, value, attn_mask=None, tau=None, delta=None, **kwargs):
        # Returns (output, attention_weights)
        # output shape: (batch, seq_len, d_model)
        # attention shape: arbitrary attention weights
        batch_size = query.shape[0]
        seq_len = query.shape[1]
        output = torch.randn(batch_size, seq_len, self.d_model)
        attn_weights = torch.randn(batch_size, seq_len, seq_len)
        return output, attn_weights

# Set up parameters
d_model = 4
d_ff = 16
dropout = 0.1
activation = 'relu'

attention = MinimalAttention(d_model)

ARGS = {
    'attention': attention,
    'd_model': d_model,
    'd_ff': d_ff,
    'dropout': dropout,
    'activation': activation,
}
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 EncoderLayer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a EncoderLayer 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
Model Ran
ran on a synthesized input · constructed an object; no result was computed
secilia-cxy/softs/models/SOFTS.py
code served (permissive licence) · get_code("9db3c235d674d71c")
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 an instance of its own class, Model: the run constructed the object and did not call it, so no result was computed. 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)

class Config:
    def __init__(self):
        self.seq_len = 10
        self.pred_len = 5
        self.d_model = 4
        self.d_core = 3
        self.d_ff = 16
        self.dropout = 0.1
        self.activation = 'relu'
        self.e_layers = 2
        self.use_norm = True
        self.c_in = 10

configs = Config()

ARGS = {
    'configs': configs
}
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 Model — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Model 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
STAR Ran
ran on a synthesized input
secilia-cxy/softs/models/SOFTS.py
code served (permissive licence) · get_code("f2a3c7a002ba5994")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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
import torch.nn.functional as F

class STAR(nn.Module):

    def __init__(self, d_series, d_core):
        super(STAR, self).__init__()
        '\n        STar Aggregate-Redistribute Module\n        '
        self.gen1 = nn.Linear(d_series, d_series)
        self.gen2 = nn.Linear(d_series, d_core)
        self.gen3 = nn.Linear(d_series + d_core, d_series)
        self.gen4 = nn.Linear(d_series, d_series)

    def forward(self, input, *args, **kwargs):
        batch_size, channels, d_series = input.shape
        combined_mean = F.gelu(self.gen1(input))
        combined_mean = self.gen2(combined_mean)
        if self.training:
            ratio = F.softmax(combined_mean, dim=1)
            ratio = ratio.permute(0, 2, 1)
            ratio = ratio.reshape(-1, channels)
            indices = torch.multinomial(ratio, 1)
            indices = indices.view(batch_size, -1, 1).permute(0, 2, 1)
            combined_mean = torch.gather(combined_mean, 1, indices)
            combined_mean = combined_mean.repeat(1, channels, 1)
        else:
            weight = F.softmax(combined_mean, dim=1)
            combined_mean = torch.sum(combined_mean * weight, dim=1, keepdim=True).repeat(1, channels, 1)
        combined_mean_cat = torch.cat([input, combined_mean], -1)
        combined_mean_cat = F.gelu(self.gen3(combined_mean_cat))
        combined_mean_cat = self.gen4(combined_mean_cat)
        output = combined_mean_cat
        return (output, None)


INIT_ARGS = {
    'd_series': 4,
    'd_core': 3,
}

ARGS = {
    'input': torch.randn(2, 5, 4),
}

if __name__ == '__main__':
    model = STAR(**INIT_ARGS)
    model.eval()
    output, none_val = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
    print(f"None value: {none_val}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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.

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

Multivariate time series forecasting plays a crucial role in various fields such as finance, traffic management, energy, and healthcare. Recent studies have highlighted the advantages of channel independence to resist distribution drift but neglect channel correlations, limiting further enhancements. Several methods utilize mechanisms like attention or mixer to address this by capturing channel correlations, but they either introduce excessive complexity or rely too heavily on the correlation to achieve satisfactory results under distribution drifts, particularly with a large number of channels. Addressing this gap, this paper presents an efficient MLP-based model, the Series-cOre Fused Time Series forecaster (SOFTS), which incorporates a novel STar Aggregate-Redistribute (STAR) module. Unlike traditional approaches that manage channel interactions through distributed structures, e.g., attention, STAR employs a centralized strategy to improve efficiency and reduce reliance on the quality of each channel. It aggregates all series to form a global core representation, which is then dispatched and fused with individual series representations to facilitate channel interactions effectively. SOFTS achieves superior performance over existing state-of-the-art methods with only linear complexity. The broad applicability of the STAR module across different forecasting models is also demonstrated empirically. We have made our code publicly available at https://github.com/Secilia-Cxy/SOFTS.

For agents

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

get_harvested_code_for_paper("2404.14197")
get_code_for_paper("2404.14197")
have("2404.14197")

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

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

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

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

Connect an agent — have() is free.