SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.08897 · NeurIPS · 2022

FiLM: Frequency improved Legendre Memory Model for Long-term Time Series Forecasting

Tian Zhou, Ziqing Ma, Xue Qingsong, Wen Liang, Sun Tao, Yao Wotao, Yin Rong, Mae Mse

arXiv · PDF · Open in the Atlas

Code that ran

17 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 13 failures of our instrument; 1 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/2205.08897.json · badge: /api/ran/2205.08897.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
tianzhou2011/FiLM canonical (classifier label)
classifier basis not recorded on the link
14 ran · 0 no recorded run
damo-di-ml/neurips2022-film community
Papers with Code archive
3 ran · 1 no recorded run
FunctionStatusWhere it lives
Activation Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/S4.py
code served (permissive licence) · get_code("89b10a8b26bbb7ed")
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 ReLU. 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)

# The function takes two parameters: activation and dim
# activation: a string or None specifying which activation function to use
# dim: an integer specifying the dimension for GLU (default -1)

ARGS = {
    'activation': 'relu',
    'dim': -1
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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
HiPPO_LegT Ran
ran on a synthesized input · constructed an object; no result was computed
damo-di-ml/neurips2022-film/models/FiLM.py
code served (permissive licence) · get_code("d22c957702db6906")
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, HiPPO_LegT: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np
from scipy import signal, special as ss

torch.manual_seed(0)

# Create minimal valid arguments for HiPPO_LegT
ARGS = {
    'N': 8,
    'dt': 0.1,
    'discretization': 'bilinear'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type HiPPO_LegT — 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 HiPPO_LegT 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
SpectralConv1d Ran
ran on a synthesized input · constructed an object; no result was computed
damo-di-ml/neurips2022-film/models/FiLM.py
code served (permissive licence) · get_code("84a100173d52d8f1")
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, SpectralConv1d: 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 numpy as np

torch.manual_seed(0)
np.random.seed(0)

# Parameters for SpectralConv1d
in_channels = 3
out_channels = 4
seq_len = 16
modes1 = 5
compression = 0
ratio = 0.5
mode_type = 0

ARGS = {
    "in_channels": in_channels,
    "out_channels": out_channels,
    "seq_len": seq_len,
    "modes1": modes1,
    "compression": compression,
    "ratio": ratio,
    "mode_type": mode_type,
}
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 SpectralConv1d — 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 SpectralConv1d 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
batched_index_select Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/LSHAttention_reformer.py
code served (permissive licence) · get_code("8429e6520e353d4d")
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 3, dtype family float, shape (2, 3, 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)

# Construct arguments for batched_index_select
# The function expects:
# - values: a tensor with shape (batch, seq_len, features)
# - indices: a tensor with shape (batch, num_indices) containing indices to select from seq_len dimension

batch_size = 2
seq_len = 5
feature_dim = 4
num_indices = 3

# values tensor: shape (batch_size, seq_len, feature_dim)
values = torch.randn(batch_size, seq_len, feature_dim)

# indices tensor: shape (batch_size, num_indices) with valid indices in range [0, seq_len)
indices = torch.tensor([[0, 2, 4], [1, 3, 2]], dtype=torch.long)

ARGS = {
    "values": values,
    "indices": indices,
}
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 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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
compl_mul1d Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/mwt.py
pointer only (licence: MIT); the stored copy get_code serves, from gaurav71531/mwt-operator, is pointer only (licence: NONE) · get_code("0a550f84606d37a9")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from gaurav71531/mwt-operator, 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. A run is recorded.

decor_time Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/AutoCorrelation.py
code served (permissive licence) · get_code("c4d0804ed8acef6e")
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 function. 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 time
import torch
import torch.nn as nn

def decor_time(func):
    def func2(*args, **kw):
        now = time.time()
        y = func(*args, **kw)
        t = time.time() - now
        print('call <{}>, time={}'.format(func.__name__, t))
        return y
    return func2

# Create a simple test function to decorate
@decor_time
def sample_function(x, y):
    """A simple function that does some work"""
    result = x + y
    time.sleep(0.001)  # Small delay to ensure measurable time
    return result

# Define ARGS mapping every parameter of decor_time to a value
ARGS = {
    'func': sample_function
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
exists Ran
ran, violated the contract we drafted
tianzhou2011/FiLM/layers/LSHAttention_reformer.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThomasMrY/VCT, 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. A run is recorded.

get_dynamic_modes Ran
ran, honoured the contract we drafted
tianzhou2011/FiLM/layers/FourierCorrelation.py
code served (permissive licence) · get_code("304bff6fb6e3e2cd")
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 list, ndim 1, dtype family int; 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

torch.manual_seed(0)

ARGS = {
    "seq_len": 192,
    "modes": 64
}
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 list, ndim 1, dtype family int — a list 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_initializer Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/S4.py
code served (permissive licence) · get_code("f3449af8fae1d130")
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 partial. 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
from functools import partial

torch.manual_seed(0)

ARGS = {
    'name': 'uniform',
    'activation': 'relu'
}
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 partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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
get_initializer Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/mwt.py
code served (permissive licence) · get_code("c12f08051ec5fa06")
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 partial. 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
from torch import nn
from functools import partial

torch.manual_seed(0)

def get_initializer(name):
    if name == 'xavier_normal':
        init_ = partial(nn.init.xavier_normal_)
    elif name == 'kaiming_uniform':
        init_ = partial(nn.init.kaiming_uniform_)
    elif name == 'kaiming_normal':
        init_ = partial(nn.init.kaiming_normal_)
    return init_

ARGS = {
    'name': 'xavier_normal'
}
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 partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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
get_logger Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/S4.py
code served (permissive licence) · get_code("61139ec62260b411")
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 logging
from pytorch_lightning.utilities import rank_zero_only

# Construct arguments for get_logger function
ARGS = {
    "name": "test_logger",
    "level": logging.DEBUG
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pytorch_lightning — 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
get_phi_psi Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/utils.py
code served (permissive licence) · get_code("f32036738135c8a8")
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 numpy as np
from functools import partial

# Construct valid arguments for get_phi_psi
ARGS = {
    'k': 3,
    'base': 'legendre'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sympy — 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
legendreDer Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tianzhou2011/FiLM/layers/utils.py
code served (permissive licence) · get_code("4ef26472da51e3aa")
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 1, dtype family float, shape (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
from scipy.special import eval_legendre

# The function legendreDer takes two parameters:
# k: an integer representing the order
# x: a value or array on which to evaluate the Legendre polynomials

# Looking at the function:
# - k is used in range(k-1, -1, -2) so it should be an integer
# - x is passed to eval_legendre which accepts scalars or arrays
# - The function iterates through odd/even indices based on k

# Create small test values
k = 5  # integer order
x = np.array([0.0, 0.5, -0.5, 1.0])  # small array of evaluation points

ARGS = {
    "k": k,
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
phi_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tianzhou2011/FiLM/layers/utils.py
code served (permissive licence) · get_code("a54c8c5c47c6a8b8")
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 1, dtype family float, shape (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

# phi_ takes phi_c (polynomial coefficients), x (input array), and bounds lb, ub
# It creates a Polynomial from phi_c, evaluates it at x, and masks values outside [lb, ub]

# Create polynomial coefficients (small array)
phi_c = np.array([1.0, 2.0, 0.5])

# Create input array with values in and out of bounds
x = np.array([0.2, 0.5, 0.8, 1.5])

# Define bounds
lb = 0.0
ub = 1.0

ARGS = {
    "phi_c": phi_c,
    "x": x,
    "lb": lb,
    "ub": ub,
}
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 1, dtype family float, shape (4,) — shape (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
softmax_complex Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/mwt.py
code served (permissive licence) · get_code("117b5aefd4b1b065")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
from torch import nn
torch.manual_seed(0)

# The function softmax_complex takes a complex tensor z and a dim parameter
# It calls Sparsemax(dim=dim)(abs(z))
# So we need to provide a complex tensor and a dimension

# Create a small complex tensor with batch size 2 and logits dimension 4
z = torch.complex(
    torch.randn(2, 4),
    torch.randn(2, 4)
)

# The dim parameter should be an integer specifying which dimension to apply sparsemax over
dim = -1

ARGS = {
    "z": z,
    "dim": dim
}
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
sort_key_val Ran
ran; our contract draft was wrong, not the code
tianzhou2011/FiLM/layers/LSHAttention_reformer.py
code served (permissive licence) · get_code("8b42f84b228597d9")
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, ndim 3, 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

torch.manual_seed(0)

# The function sorts t1 along a dimension and gathers t2 according to the sort indices
# t1 needs to be a tensor that supports .sort() method
# t2 needs to be a tensor that supports .expand_as() and .gather() methods
# Both should be sortable tensors with numeric values

t1 = torch.randn(2, 4)
t2 = torch.randn(2, 1)

ARGS = {
    "t1": t1,
    "t2": t2,
    "dim": -1
}
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, ndim 3, 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
transition Ran
ran; our contract draft was wrong, not the code
damo-di-ml/neurips2022-film/models/FiLM.py
code served (permissive licence) · get_code("82ea253c64044e55")
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 numpy as np
from scipy import special as ss

# Define ARGS with all parameters for the transition function
ARGS = {
    'measure': 'glagt',
    'N': 4,
    'alpha': 0.5,
    'beta': 0.01,
}

# Test with different measures to ensure validity
test_cases = [
    {'measure': 'lagt', 'N': 4, 'beta': 1.0},
    {'measure': 'tlagt', 'N': 4, 'beta': 0.5},
    {'measure': 'glagt', 'N': 4, 'alpha': 0.5, 'beta': 0.01},
    {'measure': 'legt', 'N': 4},
    {'measure': 'lmu', 'N': 4},
    {'measure': 'legs', 'N': 4},
]

# Verify the primary ARGS case works
def transition(measure, N, **measure_args):
    """ A, B transition matrices for different measures.

    measure: the type of measure
      legt - Legendre (translated)
      legs - Legendre (scaled)
      glagt - generalized Laguerre (translated)
      lagt, tlagt - previous versions of (tilted) Laguerre with slightly different normalization
    """
    if measure == 'lagt':
        b = measure_args.get('beta', 1.0)
        A = np.eye(N) / 2 - np.tril(np.ones((N, N)))
        B = b * np.ones((N, 1))
    if measure == 'tlagt':
        b = measure_args.get('beta', 1.0)
        A = (1.0 - b) / 2 * np.eye(N) - np.tril(np.ones((N, N)))
        B = b * np.ones((N, 1))
    if measure == 'glagt':
        alpha = measure_args.get('alpha', 0.0)
        beta = measure_args.get('beta', 0.01)
        A = -np.eye(N) * (1 + beta) / 2 - np.tril(np.ones((N, N)), -1)
        B = ss.binom(alpha + np.arange(N), np.arange(N))[:, None]
        L = np.exp(0.5 * (ss.gammaln(np.arange(N) + alpha + 1) - ss.gammaln(np.arange(N) + 1)))
        A = 1.0 / L[:, None] * A * L[None, :]
        B = 1.0 / L[:, None] * B * np.exp(-0.5 * ss.gammaln(1 - alpha)) * beta ** ((1 - alpha) / 2)
    elif measure == 'legt':
        Q = np.arange(N, dtype=np.float64)
        R = (2 * Q + 1) ** 0.5
        j, i = np.meshgrid(Q, Q)
        A = R[:, None] * np.where(i < j, (-1.0) ** (i - j), 1) * R[None, :]
        B = R[:, None]
        A = -A
    elif measure == 'lmu':
        Q = np.arange(N, dtype=np.float64)
        R = (2 * Q + 1)[:, None]
        j, i = np.meshgrid(Q, Q)
        A = np.where(i < j, -1, (-1.0) ** (i - j + 1)) * R
        B = (-1.0) ** Q[:, None] * R
    elif measure == 'legs':
        q = np.arange(N, dtype=np.float64)
        col, row = np.meshgrid(q, q)
        r = 2 * q + 1
        M = -(np.where(row >= col, r, 0) - np.diag(q))
        T = np.sqrt(np.diag(2 * q + 1))
        A = T @ M @ np.linalg.inv(T)
        B = np.diag(T)[:, None]
    return (A, B)

# Verify ARGS works
result = transition(**ARGS)
assert len(result) == 2
assert isinstance(result[0], np.ndarray)
assert isinstance(result[1], np.ndarray)

ARGS = {
    'measure': 'glagt',
    'N': 4,
    'alpha': 0.5,
    'beta': 0.01,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
Model Not yet run
unverified (harvested, no recorded run)
damo-di-ml/neurips2022-film/models/FiLM.py
code served (permissive licence) · get_code("ec0ad07ef03f10ee")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 15 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 1 the same month, 14 later) and 3 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
exists 486 other papers
94 dated earlier, 3 the same month, 386 later, 1 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
phi_ 24 other papers
1 dated earlier, 23 later · 1 only as an assembly brick
2201.12740 (2022-01)
FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting
2304.05206 (2023-04)
The Capacity and Robustness Trade-off: Revisiting the Channel Independent Strategy for Multivariate Time Series Forecasting
2305.13036 (2023-05)
Disentangling Structured Components: Towards Adaptive, Interpretable and Scalable Time Series Forecasting
and 21 more not named here
get_phi_psi 23 other papers
1 dated earlier, 22 later · 1 only as an assembly brick
2201.12740 (2022-01)
FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting
2305.13036 (2023-05)
Disentangling Structured Components: Towards Adaptive, Interpretable and Scalable Time Series Forecasting
2307.01616 (2023-07)
SageFormer: Series-Aware Framework for Long-term Multivariate Time Series Forecasting
and 20 more not named here
legendreDer 23 other papers
1 dated earlier, 22 later · 1 only as an assembly brick
2201.12740 (2022-01)
FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting
2305.13036 (2023-05)
Disentangling Structured Components: Towards Adaptive, Interpretable and Scalable Time Series Forecasting
2307.01616 (2023-07)
SageFormer: Series-Aware Framework for Long-term Multivariate Time Series Forecasting
and 20 more not named here
Activation 15 other papers
7 dated earlier, 8 later · 2 only as an assembly brick
1312.5602 (2013-12)
Playing Atari with Deep Reinforcement Learning
2008.07669 (2020-08)
HiPPO: Recurrent Memory with Optimal Polynomial Projections
2009.09761 (2020-09)
DiffWave: A Versatile Diffusion Model for Audio Synthesis
and 12 more not named here
get_logger 15 other papers
3 dated earlier, 12 later · 3 only as an assembly brick
2009.09761 (2020-09)
DiffWave: A Versatile Diffusion Model for Audio Synthesis
2111.00396 (2021-11)
Efficiently Modeling Long Sequences with Structured State Spaces
2204.01692 (2022-04)
Long Movie Clip Classification with State-Space Video Models
and 12 more not named here
get_initializer 10 other papers
5 dated earlier, 5 later · 1 only as an assembly brick
2008.07669 (2020-08)
HiPPO: Recurrent Memory with Optimal Polynomial Projections
2111.00396 (2021-11)
Efficiently Modeling Long Sequences with Structured State Spaces
2202.09729 (2022-02)
It's Raw! Audio Generation with State-Space Models
and 7 more not named here
batched_index_select 5 other papers
2 dated earlier, 3 later · 1 only as an assembly brick
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2302.02451 (2023-02)
KDEformer: Accelerating Transformers via Kernel Density Estimation
and 2 more not named here
compl_mul1d 4 other papers
1 dated earlier, 3 later
2109.13459 (2021-09)
Multiwavelet-based Operator Learning for Differential Equations
2405.13522 (2024-05)
Intervention-Aware Forecasting: Breaking Historical Limits from a System Perspective
2410.06651 (2024-10)
Toward Physics-guided Time Series Embedding
and 1 more not named here
decor_time 3 other papers
3 later
2310.14838 (2023-10)
Calibration of Time-Series Forecasting: Detecting and Adapting Context-Driven Distribution Shift
2311.01933 (2023-11)
ForecastPFN: Synthetically-Trained Zero-Shot Forecasting
2410.13792 (2024-10)
Analyzing Deep Transformer Models for Time Series Forecasting via Manifold Learning
sort_key_val 3 other papers
1 dated earlier, 2 later
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
2302.02451 (2023-02)
KDEformer: Accelerating Transformers via Kernel Density Estimation
2602.18473 (2026-02)
Decentralized Attention Fails Centralized Signals: Rethinking Transformers for Medical Time Series
get_initializer 2 other papers
1 dated earlier, 1 later
2109.13459 (2021-09)
Multiwavelet-based Operator Learning for Differential Equations
2405.13522 (2024-05)
Intervention-Aware Forecasting: Breaking Historical Limits from a System Perspective
get_dynamic_modes 1 other paper
1 later
2405.13522 (2024-05)
Intervention-Aware Forecasting: Breaking Historical Limits from a System Perspective
softmax_complex 1 other paper
1 later
2405.13522 (2024-05)
Intervention-Aware Forecasting: Breaking Historical Limits from a System Perspective
transition
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2008.07669 (2020-08)
HiPPO: Recurrent Memory with Optimal Polynomial Projections

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

Recent studies have shown that deep learning models such as RNNs and Transformers have brought significant performance gains for long-term forecasting of time series because they effectively utilize historical information. We found, however, that there is still great room for improvement in how to preserve historical information in neural networks while avoiding overfitting to noise presented in the history. Addressing this allows better utilization of the capabilities of deep learning models. To this end, we design a Frequency improved Legendre Memory model, or FiLM: it applies Legendre Polynomials projections to approximate historical information, uses Fourier projection to remove noise, and adds a low-rank approximation to speed up computation. Our empirical studies show that the proposed FiLM significantly improves the accuracy of stateof-the-art models in multivariate and univariate long-term forecasting by (20.3%, 22.6%), respectively. We also demonstrate that the representation module developed in this work can be used as a general plug-in to improve the long-term prediction performance of other deep learning modules. Code is available at https://github.com/tianzhou2011/FiLM/.

For agents

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

get_harvested_code_for_paper("2205.08897")
get_code_for_paper("2205.08897")
have("2205.08897")

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

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

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

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

Connect an agent — have() is free.