SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.06910 · 2025

TimeKAN: KAN-based Frequency Decomposition Learning Architecture for Long-term Time Series Forecasting

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2502.06910.json · badge: /api/ran/2502.06910.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
huangst21/timekan canonical (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
FunctionStatusWhere it lives
CORR Ran
ran, violated the contract we drafted
huangst21/timekan/utils/metrics.py
code served (permissive licence) · get_code("03d63d172032b256")
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 float32, 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

# Create small numpy arrays for pred and true
# CORR expects 2D arrays where it computes correlation across the first dimension
# Using distinct sizes: batch=2, features=4
np.random.seed(0)
pred = np.random.randn(2, 4).astype(np.float32)
true = np.random.randn(2, 4).astype(np.float32)

ARGS = {
    "pred": pred,
    "true": true
}
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 float32, 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
collate_fn Ran
ran; our contract draft was wrong, not the code
huangst21/timekan/data_provider/uea.py
code served (permissive licence) · get_code("bbdc0c4ddfbaa19b")
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

torch.manual_seed(0)

# Create sample data: list of (X, y) tuples
# X: (seq_length, feat_dim) tensor with variable sequence lengths
# y: (num_labels,) tensor with target labels

data = [
    (torch.randn(5, 3), torch.tensor([0, 1])),  # seq_length=5, feat_dim=3, num_labels=2
    (torch.randn(3, 3), torch.tensor([1, 0])),  # seq_length=3, feat_dim=3, num_labels=2
]

ARGS = {
    "data": data,
    "max_len": None,
}
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
interpolate_missing Ran
ran; our contract draft was wrong, not the code
huangst21/timekan/data_provider/uea.py
code served (permissive licence) · get_code("c43495731acfe20c")
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 Series. 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 pandas as pd
import numpy as np

# Create a pandas Series with some NaN values for testing
y = pd.Series([1.0, np.nan, 3.0, np.nan, 5.0, 6.0])

ARGS = {
    'y': y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series 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
padding_mask Ran
ran; our contract draft was wrong, not the code
huangst21/timekan/data_provider/uea.py
code served (permissive licence) · get_code("fbf2cb45dcc978f2")
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 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 torch

torch.manual_seed(0)

# Create a tensor of sequence lengths for a batch of 2 sequences
# The lengths should be small integers indicating actual sequence lengths
lengths = torch.tensor([3, 2], dtype=torch.long)

# max_len is optional, but we can provide it
max_len = 4

ARGS = {
    "lengths": lengths,
    "max_len": max_len
}
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 Tensor, 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
MAE Not yet run
unverified (harvested, no recorded run)
huangst21/timekan/utils/metrics.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shangzongjiang/Ada-MSHyper, is pointer only (licence: NONE) · get_code("75f44993b096bf76")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from shangzongjiang/Ada-MSHyper, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

RSE Not yet run
unverified (harvested, no recorded run)
huangst21/timekan/utils/metrics.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shangzongjiang/Ada-MSHyper, is pointer only (licence: NONE) · get_code("b40a11875ebd0cd2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from shangzongjiang/Ada-MSHyper, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 3 later) and 0 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
RSE 18 other papers
16 dated earlier, 1 later, 1 same year, order not determinable
2202.01381 (2022-02)
ETSformer: Exponential Smoothing Transformers for Time-series Forecasting
2203.05167 (2022-03)
TiSAT: Time Series Anomaly Transformer
2207.10941 (2022-07)
Respecting Time Series Properties Makes Deep Time Series Forecasting Perfect
and 15 more not named here
MAE 17 other papers
14 dated earlier, 1 later, 2 same year, order not determinable
2202.01381 (2022-02)
ETSformer: Exponential Smoothing Transformers for Time-series Forecasting
2203.05167 (2022-03)
TiSAT: Time Series Anomaly Transformer
2207.10941 (2022-07)
Respecting Time Series Properties Makes Deep Time Series Forecasting Perfect
and 14 more not named here
CORR 13 other papers
11 dated earlier, 1 later, 1 same year, order not determinable
2202.01381 (2022-02)
ETSformer: Exponential Smoothing Transformers for Time-series Forecasting
2203.05167 (2022-03)
TiSAT: Time Series Anomaly Transformer
2207.10941 (2022-07)
Respecting Time Series Properties Makes Deep Time Series Forecasting Perfect
and 10 more not named here
interpolate_missing 3 other papers
3 dated earlier
2010.02803 (2020-10)
A Transformer-based Framework for Multivariate Time Series Representation Learning
2308.08241 (2023-08)
TEST: Text Prototype Aligned Embedding to Activate LLM's Ability for Time Series
2403.07300 (2024-03)
CALF: Aligning LLMs for Time Series Forecasting via Cross-modal Fine-Tuning
padding_mask 3 other papers
3 dated earlier
2403.07300 (2024-03)
CALF: Aligning LLMs for Time Series Forecasting via Cross-modal Fine-Tuning
2411.07506 (2024-11)
FlowTS: Time Series Generation via Rectified Flow
2412.09328 (2024-12)
Auto-Regressive Moving Diffusion Models for Time Series Forecasting
collate_fn 1 other paper
1 dated earlier
2403.07300 (2024-03)
CALF: Aligning LLMs for Time Series Forecasting via Cross-modal Fine-Tuning

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-22.

Repositories linked to this paper

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

Abstract

Real-world time series often have multiple frequency components that are intertwined with each other, making accurate time series forecasting challenging. Decomposing the mixed frequency components into multiple single frequency components is a natural choice. However, the information density of patterns varies across different frequencies, and employing a uniform modeling approach for different frequency components can lead to inaccurate characterization. To address this challenges, inspired by the flexibility of the recent Kolmogorov-Arnold Network (KAN), we propose a KAN-based Frequency Decomposition Learning architecture (TimeKAN) to address the complex forecasting challenges caused by multiple frequency mixtures. Specifically, TimeKAN mainly consists of three components: Cascaded Frequency Decomposition (CFD) blocks, Multi-order KAN Representation Learning (M-KAN) blocks and Frequency Mixing blocks. CFD blocks adopt a bottom-up cascading approach to obtain series representations for each frequency band. Benefiting from the high flexibility of KAN, we design a novel M-KAN block to learn and represent specific temporal patterns within each frequency band. Finally, Frequency Mixing blocks is used to recombine the frequency bands into the original format. Extensive experimental results across multiple real-world time series datasets demonstrate that TimeKAN achieves state-of-the-art performance as an extremely lightweight architecture. Code is available at https://github.com/huangst21/TimeKAN.

For agents

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

get_harvested_code_for_paper("2502.06910")
get_code_for_paper("2502.06910")
have("2502.06910")

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

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

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

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

Connect an agent — have() is free.