SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.11687 · IJCAI · 2024

TIM: An Efficient Temporal Interaction Module for Spiking Transformer

Yi Zeng, Dongcheng Zhao, Guobin Shen, Sicheng Shen

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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; 4 failures of our instrument; 2 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/2401.11687.json · badge: /api/ran/2401.11687.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
BrainCog-X/Brain-Cog canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
deriv_sigma Ran
ran; our contract draft was wrong, not the code
BrainCog-X/Brain-Cog/braincog/model_zoo/qsnn.py
code served (permissive licence) · get_code("34b2b48215f91ce3")
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)

ARGS = {
    "x": torch.randn(2, 4)
}
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
find_classes Ran
ran; our contract draft was wrong, not the code
BrainCog-X/Brain-Cog/braincog/datasets/TinyImageNet.py
code served (permissive licence) · get_code("403277d0bfbb477b")
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 tempfile
import os

# Create a temporary file with class names
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("cat\n")
temp_file.write("dog\n")
temp_file.write("bird\n")
temp_file.close()

ARGS = {
    "class_file": temp_file.name
}
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 — 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
kappa Ran
ran, violated the contract we drafted
BrainCog-X/Brain-Cog/braincog/model_zoo/qsnn.py
code served (permissive licence) · get_code("ec18b3af081dcead")
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
import torch

torch.manual_seed(0)

tau_s = 4.0

def kappa(x):
    return np.exp(-x / tau_s)

# Construct valid arguments for kappa function
# The function takes a single parameter 'x' which is used in a numpy exponential calculation
# x should be a numeric value or array that can be used in arithmetic operations

x_value = np.array([0.0, 1.0, 2.0, 4.0])

ARGS = {
    "x": x_value
}
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 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
make_dataset Ran
ran; our contract draft was wrong, not the code
BrainCog-X/Brain-Cog/braincog/datasets/TinyImageNet.py
code served (permissive licence) · get_code("5ded0879a886f3c4")
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 2, 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 os
import tempfile
import shutil

# Create a temporary directory structure that mimics the expected dataset layout
temp_root = tempfile.mkdtemp()
base_folder = "tiny_imagenet"
base_path = os.path.join(temp_root, base_folder)
os.makedirs(base_path)

# Create train directory structure
train_dir = os.path.join(base_path, "train")
os.makedirs(train_dir)

# Create two dummy classes with images subdirectories
for cls_name in ["class_a", "class_b"]:
    cls_dir = os.path.join(train_dir, cls_name)
    os.makedirs(cls_dir)
    imgs_dir = os.path.join(cls_dir, "images")
    os.makedirs(imgs_dir)
    # Create dummy image files
    for i in range(2):
        img_path = os.path.join(imgs_dir, f"img_{i}.jpg")
        with open(img_path, "w") as f:
            f.write("dummy")

# Create val directory structure
val_dir = os.path.join(base_path, "val")
os.makedirs(val_dir)
val_imgs_dir = os.path.join(val_dir, "images")
os.makedirs(val_imgs_dir)

# Create dummy validation images
for i in range(2):
    img_path = os.path.join(val_imgs_dir, f"val_img_{i}.jpg")
    with open(img_path, "w") as f:
        f.write("dummy")

# Create val_annotations.txt
val_annotations_path = os.path.join(val_dir, "val_annotations.txt")
with open(val_annotations_path, "w") as f:
    f.write("val_img_0.jpg\tclass_a\n")
    f.write("val_img_1.jpg\tclass_b\n")

# Define class_to_idx mapping
class_to_idx = {
    "class_a": 0,
    "class_b": 1
}

ARGS = {
    "root": temp_root,
    "base_folder": base_folder,
    "dirname": "train",
    "class_to_idx": class_to_idx
}
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 list, ndim 2, 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
sigma Ran
ran; our contract draft was wrong, not the code
BrainCog-X/Brain-Cog/braincog/model_zoo/qsnn.py
code served (permissive licence) · get_code("00a6c38b2c651cd6")
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)

# The function sigma takes a single parameter x and applies torch.sigmoid to it
# x should be a tensor
x = torch.randn(2, 4)

ARGS = {
    '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 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
conv1x1 Not yet run
unverified (harvested, no recorded run)
BrainCog-X/Brain-Cog/braincog/model_zoo/resnet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from whai362/PytorchInsight, is pointer only (licence: NONE) · get_code("de955f3e3ead10d1")
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 whai362/PytorchInsight, 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.

conv3x3 Not yet run
unverified (harvested, no recorded run)
BrainCog-X/Brain-Cog/braincog/model_zoo/resnet.py
code served (permissive licence) · get_code("71d699d243383ea6")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 4 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
conv1x1 431 other papers
313 dated earlier, 8 the same month, 99 later, 10 same year, order not determinable, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3 312 other papers
214 dated earlier, 6 the same month, 81 later, 10 same year, order not determinable, 1 undated · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
and 309 more not named here
find_classes 7 other papers
3 dated earlier, 4 later
2103.13027 (2021-03)
AutoMix: Unveiling the Power of Mixup for Stronger Classifiers
2209.04996 (2022-09)
Switchable Online Knowledge Distillation
2310.00258 (2023-10)
NAYER: Noisy Layer Data Generation for Efficient and Effective Data-free Knowledge Distillation
and 4 more not named here
make_dataset 3 other papers
2 dated earlier, 1 later
2103.13027 (2021-03)
AutoMix: Unveiling the Power of Mixup for Stronger Classifiers
2310.00258 (2023-10)
NAYER: Noisy Layer Data Generation for Efficient and Effective Data-free Knowledge Distillation
2408.01952 (2024-08)
CACE-Net: Co-guidance Attention and Contrastive Enhancement for Effective Audio-Visual Event Localization

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

Spiking Neural Networks (SNNs), as the third generation of neural networks, have gained prominence for their biological plausibility and computational efficiency, especially in processing diverse datasets. The integration of attention mechanisms, inspired by advancements in neural network architectures, has led to the development of Spiking Transformers. These have shown promise in enhancing SNNs' capabilities, particularly in the realms of both static and neuromorphic datasets. Despite their progress, a discernible gap exists in these systems, specifically in the Spiking Self Attention (SSA) mechanism's effectiveness in leveraging the temporal processing potential of SNNs. To address this, we introduce the Temporal Interaction Module (TIM), a novel, convolutionbased enhancement designed to augment the temporal data processing abilities within SNN architectures. TIM's integration into existing SNN frameworks is seamless and efficient, requiring minimal additional parameters while significantly boosting their temporal information handling capabilities. Through rigorous experimentation, TIM has demonstrated its effectiveness in exploiting temporal information, leading to state-of-the-art performance across various neuromorphic datasets. The code is available at https://github.com/BrainCog-X/Brain-Cog/tree/main/examples/TIM.

For agents

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

get_harvested_code_for_paper("2401.11687")
get_code_for_paper("2401.11687")
have("2401.11687")

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

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

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

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

Connect an agent — have() is free.