SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.12639 · September 2026

EXPLAINING TIME SERIES FORECASTING WITH HORIZON-RESOLVED ATTRIBUTION

Jun Seo, Jaehoon Lee, Sangjun Han, Seunghan Lee, Minjae Kim, Soonyoung Lee, Sungdong Yoo, Junhyeok Kang, Hwanil Choi, Dongwan Kang, Yoon Lim, Wonbin Ahn, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2609.12639.json · badge: /api/ran/2609.12639.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
seunghan96/HRX canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
backbone_key Ran
ran; our contract draft was wrong, not the code
seunghan96/HRX/experiments/backbone_order.py
code served (permissive licence) · get_code("82a2fa3ecc410805")
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 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

torch.manual_seed(0)

# The function backbone_key takes a single parameter: name (a string)
# It returns a tuple for sorting purposes
# The function uses:
# - _RANK.get(name, len(_RANK)) to look up the rank
# - name as the secondary sort key
# No complex objects needed, just a string parameter

ARGS = {
    "name": "Linear"
}
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 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
dataset_stats Ran
ran; our contract draft was wrong, not the code
seunghan96/HRX/experiments/run_compare.py
code served (permissive licence) · get_code("b77128af597b8e9f")
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 dict. 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 numpy as np

torch.manual_seed(0)

class MockBundle:
    def __init__(self):
        self.test = MockTestSet()

class MockTestSet:
    def __init__(self):
        # Create small tensors: batch_size=2, time_steps=4, features=1
        self.x = torch.randn(2, 4, 1)
        self.y = torch.randn(2, 3, 1)

bundle = MockBundle()

ARGS = {
    'bundle': bundle
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
explain_taps Ran
ran; our contract draft was wrong, not the code
seunghan96/HRX/experiments/run_exp.py
code served (permissive licence) · get_code("ae93b6f647ae6cfc")
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 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

torch.manual_seed(0)

class MockFC(nn.Module):
    def __init__(self):
        super().__init__()
        self.sites = {
            'layer1.ffn': None,
            'layer2.act': None,
            'layer3.weight': None,
            'layer4.bias': None,
        }
    
fc = MockFC()

ARGS = {
    'fc': fc
}
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 list, ndim 1, dtype family float — 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
hrx_metrics Ran
ran; our contract draft was wrong, not the code
seunghan96/HRX/tsxai/methods/hrx.py
code served (permissive licence) · get_code("207690a3bab541bc")
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 dict. 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 numpy as np

torch.manual_seed(0)

# Create a small tensor E with shape (H, L, C)
# H=4 (horizons), L=5 (lookback length), C=3 (channels)
E = torch.randn(4, 5, 3)

ARGS = {
    "E": E,
    "mass": 0.9,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
jsonable Ran
ran; our contract draft was wrong, not the code
seunghan96/HRX/experiments/run_exp.py
code served (permissive licence) · get_code("fe9de43cafa96a17")
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 dict. 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

# Test various types that jsonable() handles
np_float = np.float32(3.14)
np_int = np.int64(42)
np_array = np.array([1, 2, 3, 4])
nested_dict = {
    "a": np.float64(2.71),
    "b": [np.int32(1), np.int32(2)],
    "c": {"nested": np.array([[1, 2], [3, 4]])}
}
nested_list = [np.float32(1.5), np.int64(10), [np.float64(2.5)]]
tuple_input = (np.int32(5), np.float32(6.7), "text")
primitive_dict = {"bool": True, "int": 123, "float": 4.56, "str": "hello", "none": None}
primitive_list = [True, 42, 3.14, "world", None]
string_fallback = object()  # Will trigger str(o) fallback

ARGS = {
    "o": {
        "np_float": np_float,
        "np_int": np_int,
        "np_array": np_array,
        "nested_dict": nested_dict,
        "nested_list": nested_list,
        "tuple_input": tuple_input,
        "primitive_dict": primitive_dict,
        "primitive_list": primitive_list,
        "string_fallback": string_fallback
    }
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
needs_gradsafe Ran
ran; our contract draft was wrong, not the code
seunghan96/HRX/tsxai/gradsafe.py
code served (permissive licence) · get_code("b1f7ccd7a206fe1f")
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 bool, 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 torch.nn as nn

torch.manual_seed(0)

# Create a simple function that does NOT have in-place gradient issues
def safe_fn(x: torch.Tensor) -> torch.Tensor:
    """A function that computes gradients safely."""
    return x * 2 + 1

# Create a small tensor (batch_size=2, features=4)
x = torch.randn(2, 4, dtype=torch.float32)

ARGS = {
    "fn": safe_fn,
    "x": x,
}
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 bool, 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
rich_stats Ran
ran; our contract draft was wrong, not the code
seunghan96/HRX/experiments/run_mech.py
code served (permissive licence) · get_code("78670e51621bf431")
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 dict. 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

# Create a small test array with shape (N, L) = (2, 4)
# N=2 time series, L=4 time steps
x = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [2.0, 3.0, 4.0, 5.0]
], dtype=np.float64)

ARGS = {
    'x': x
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
scan Ran
ran, honoured the contract we drafted
seunghan96/HRX/experiments/exp_registry.py
code served (permissive licence) · get_code("4a2c90d93974461b")
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 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 os
import json
import tempfile
import shutil

# Create a temporary directory structure to simulate the file layout
temp_dir = tempfile.mkdtemp()
test_subdir = os.path.join(temp_dir, "test_data")
os.makedirs(test_subdir, exist_ok=True)

# Create some test JSON files
test_json_1 = {
    "status": "ok",
    "args": {
        "model_key": "bert-base",
        "dataset_key": "wikitext:train"
    }
}

test_json_2 = {
    "status": "ok",
    "args": {
        "model_key": "gpt2",
        "dataset_key": "openwebtext:val"
    }
}

test_json_3 = {
    "status": "failed",
    "args": {
        "model_key": "roberta",
        "dataset_key": "custom:test"
    }
}

test_json_4 = {
    "status": "ok",
    "args": {}
}

with open(os.path.join(test_subdir, "result_1.json"), "w") as f:
    json.dump(test_json_1, f)

with open(os.path.join(test_subdir, "result_2.json"), "w") as f:
    json.dump(test_json_2, f)

with open(os.path.join(test_subdir, "result_3.json"), "w") as f:
    json.dump(test_json_3, f)

with open(os.path.join(test_subdir, "result_4.json"), "w") as f:
    json.dump(test_json_4, f)

# Patch ROOT to point to our temp directory
import glob as glob_module
original_glob = glob_module.glob

def patched_glob(pattern):
    return original_glob(pattern)

# Monkey patch the scan function's ROOT
def create_scan_function(root_path):
    def scan(d, mk, dk):
        n = bad = 0
        ms, ds = (set(), set())
        for f in patched_glob(os.path.join(root_path, d, '*.json')):
            try:
                r = json.load(open(f))
            except Exception:
                bad += 1
                continue
            if r.get('status') != 'ok':
                bad += 1
                continue
            n += 1
            a = r.get('args') or {}
            if a.get(mk):
                ms.add(str(a[mk]))
            if a.get(dk):
                ds.add(str(a[dk]).split(':')[0])
        return (n, bad, len(ms), len(ds))
    return scan

scan = create_scan_function(temp_dir)

# Define arguments for the scan function
ARGS = {
    "d": "test_data",
    "mk": "model_key",
    "dk": "dataset_key"
}
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 tuple, ndim 1, dtype family int — 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
timed Ran
ran, honoured the contract we drafted
seunghan96/HRX/experiments/run_cost.py
code served (permissive licence) · get_code("ca5de74417b12a6c")
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 float, ndim 0, dtype family float, shape () 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 time
import numpy as np
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple callable function that performs a basic computation
def simple_fn():
    x = torch.randn(2, 4)
    y = x @ torch.randn(4, 3)
    return y

# Define ARGS mapping every parameter of timed to a value
ARGS = {
    'fn': simple_fn,
    'warmup': 2,
    'reps': 3
}
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 float, 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
verify_equivalence Ran
ran; our contract draft was wrong, not the code
seunghan96/HRX/tsxai/gradsafe.py
code served (permissive licence) · get_code("66349101727149ae")
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 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 torch.nn as nn
from typing import Callable

torch.manual_seed(0)

class SimpleModel(nn.Module):
    """A minimal model that uses in-place operations."""
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x: torch.Tensor) -> torch.Tensor:
        # Use some in-place operations that will be converted
        out = self.linear(x)
        out.add_(0.1)  # in-place add
        out.mul_(2.0)  # in-place mul
        return out

# Create a small input tensor (batch_size=2, features=4)
x = torch.randn(2, 4)

# Create a simple function that applies the model
def fn(x: torch.Tensor) -> torch.Tensor:
    model = SimpleModel()
    model.eval()
    return model(x)

ARGS = {
    'fn': fn,
    'x': x,
    'atol': 1e-05,
    'rtol': 0.0001
}
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 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
make_config Not yet run
unverified (harvested, no recorded run)
seunghan96/HRX/tsxai/config.py
code served (permissive licence) · get_code("5a768915128f9a4f")
How it ran

no invocation recorded.

zero_shot_error Not yet run
unverified (harvested, no recorded run)
seunghan96/HRX/experiments/run_fm.py
code served (permissive licence) · get_code("6df2a85dfb47e1a2")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 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 12 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-24.

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 advances in explaining time series (TS) models have produced methods that identify which past values a prediction depends on. However, most existing methods return a single importance vector, assuming that every predicted step depends on the same past values. In this paper, we show that this assumption does not hold, as different forecast steps depend on different past values. Motivated by this observation, we propose Horizon-Resolved eXplanation (HRX), which adds a horizon axis to the explanation, so that every forecast step receives its own importance map. HRX is a simple yet effective plug-in framework with three components: 1) an estimator that reads these maps out of any differentiable forecaster without modifying the TS backbone, 2) an evaluation protocol that validates the horizon axis by measuring how much a single forecast step changes when the inputs an importance map ranks highest are removed, and 3) a rank criterion that predicts in advance whether the axis is worth resolving on a given TS. We further show that this step-wise dependence is low-dimensional, as the explanations of all steps are built from a few shared maps whose number does not grow with the forecast length. Extensive experiments across various backbones and datasets show that the improvement comes from the horizon axis and holds for estimators of previous explanation methods. Code is available at https://github.com/seunghan96/HRX.

For agents

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

get_harvested_code_for_paper("2609.12639")
get_code_for_paper("2609.12639")
have("2609.12639")

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

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

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

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

Connect an agent — have() is free.