SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.16466 · 2024

High-Performance Temporal Reversible Spiking Neural Networks with $O(L)$ Training Memory and $O(1)$ Inference Cost

arXiv · PDF · Open in the Atlas

Code that ran

17 of 19 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, 1 violated it and 4 have no contract verdict; 10 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/2405.16466.json · badge: /api/ran/2405.16466.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
biclab/t-revsnn canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
MindSpore-scientific-2/code-7 community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
FunctionStatusWhere it lives
TET_loss Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/loss.py
pointer only (licence: NONE); the stored copy get_code serves, from qiwang233/dailydvs-200, is pointer only (licence: NONE) · get_code("a71accca7675fc44")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

build_scheduler Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/lr_scheduler.py
pointer only (licence: NONE) · get_code("c9aba121df4c6d52")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

calc_firing_rate Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/main_no_decoder.py
pointer only (licence: NONE) · get_code("30efe3fef88ef14c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

calc_non_zero_rate Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/main_no_decoder.py
pointer only (licence: NONE) · get_code("d61a821f2b84fe36")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

check_keywords_in_name Ran
ran, violated the contract we drafted
biclab/t-revsnn/optimizer.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/inline, is pointer only (licence: NONE) · get_code("b0a5beb34716d5a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

compound_loss_only_cls Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/loss.py
pointer only (licence: NONE) · get_code("85558ca537762448")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

create_logger Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/logger.py
pointer only (licence: NONE); the stored copy get_code serves, from ghrua/seqpe, is pointer only (licence: NONE) · get_code("80450600f7f09b0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

detach_and_grad Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/models/rev_function.py
pointer only (licence: NONE) · get_code("3227c202c2b3ebf1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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_cpu_and_gpu_states Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/models/rev_function.py
pointer only (licence: NONE) · get_code("c2a073f0eb31bd73")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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_grad_norm Ran
ran, honoured the contract we drafted
biclab/t-revsnn/utils.py
pointer only (licence: NONE) · get_code("eec1e7cba51d5e8e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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_padding Ran
ran on a synthesized input
MindSpore-scientific-2/code-7/ms_spike_modules.py
code served (permissive licence) · get_code("e2a6feec71c8cf83")
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 int, ndim 0, dtype family int, 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
from typing import List, Union
from itertools import repeat
import collections.abc

torch.manual_seed(0)

def _ntuple(n):
    def parse(x):
        if isinstance(x, collections.abc.Iterable) and (not isinstance(x, str)):
            return tuple(x)
        return tuple(repeat(x, n))
    return parse

to_2tuple = _ntuple(2)

def get_padding(kernel_size: int, stride: int=1, dilation: int=1, **_) -> Union[int, List[int]]:
    if any([isinstance(v, (tuple, list)) for v in [kernel_size, stride, dilation]]):
        kernel_size, stride, dilation = (to_2tuple(kernel_size), to_2tuple(stride), to_2tuple(dilation))
        return [get_padding(*a) for a in zip(kernel_size, stride, dilation)]
    padding = (stride - 1 + dilation * (kernel_size - 1)) // 2
    return padding

ARGS = {
    'kernel_size': 3,
    'stride': 1,
    'dilation': 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 int, ndim 0, dtype family int, 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
laplacians Ran
ran on a synthesized input
MindSpore-scientific-2/code-7/pointdpi/utils_for_matching_dtinet.py
code served (permissive licence) · get_code("a41e4bcb54a4b5d2")
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 2, dtype family float, shape (4, 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 math

def laplacians(A):
    n = A.shape[0]
    m = A.shape[1]
    D = np.sum(A, axis=1)
    A_L = np.zeros(A.shape)
    for i in range(n):
        for j in range(m):
            if i == j and D[i] != 0:
                A_L[i, j] = 1
            elif i != j and A[i, j] != 0:
                A_L[i, j] = -1 / math.sqrt(D[i] * D[j])
            else:
                A_L[i, j] = 0
    return A_L

# Create a small adjacency matrix for testing
# Using a 4x4 matrix with some non-zero entries
A_test = np.array([
    [0, 1, 1, 0],
    [1, 0, 1, 1],
    [1, 1, 0, 1],
    [0, 1, 1, 0]
], dtype=np.float64)

ARGS = {
    'A': A_test
}
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 2, dtype family float, shape (4, 4) — shape (4, 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
line_normalize Ran
ran on a synthesized input
MindSpore-scientific-2/code-7/pointdpi/utils_for_matching_dtinet.py
code served (permissive licence) · get_code("038548fc8980d84c")
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 2, dtype family float, shape (3, 3) 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 a small test matrix
# The function normalizes rows so each row sums to 1
A = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [0.0, 0.0, 0.0]
], dtype=np.float32)

ARGS = {
    "A": A
}
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 2, dtype family float, shape (3, 3) — shape (3, 3) 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
load_checkpoint Ran
ran, honoured the contract we drafted
biclab/t-revsnn/utils.py
pointer only (licence: NONE) · get_code("d429b6a417929c36")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

max_min_normalize Ran
ran on a synthesized input
MindSpore-scientific-2/code-7/pointdpi/utils_for_matching_dtinet.py
code served (permissive licence) · get_code("ec5063b857ea5fa8")
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 2, dtype family float, shape (4, 3) 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

# The function takes a numpy array and performs max-min normalization on each row
# We need to create a small 2D numpy array with distinct dimensions

# Create a simple 2D numpy array (4 rows, 3 columns)
# Using distinct sizes so dimensions are unambiguous
test_array = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [0.0, 0.0, 0.0],  # Test row with sum = 0
    [10.0, 20.0, 15.0]
], dtype=float)

ARGS = {
    "a": test_array
}
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 2, dtype family float, shape (4, 3) — shape (4, 3) 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
set_weight_decay Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/optimizer.py
pointer only (licence: NONE) · get_code("5dd42a7ce2cea5bd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

unitwise_norm Ran
ran; our contract draft was wrong, not the code
biclab/t-revsnn/utils.py
pointer only (licence: NONE) · get_code("670bc2732a11c7eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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_config Not yet run
unverified (harvested, no recorded run)
biclab/t-revsnn/config.py
pointer only (licence: NONE) · get_code("547f21f5227890b7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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.

get_gpu_states Not yet run
unverified (harvested, no recorded run)
biclab/t-revsnn/models/rev_function.py
pointer only (licence: NONE) · get_code("09909a0053973029")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, biclab/t-revsnn 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 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 4 the same month, 8 later) and 10 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
get_config 51 other papers
31 dated earlier, 4 the same month, 12 later, 4 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 48 more not named here
create_logger 35 other papers
23 dated earlier, 3 the same month, 7 later, 2 same year, order not determinable
2104.13840 (2021-04)
Twins: Revisiting the Design of Spatial Attention in Vision Transformers
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 32 more not named here
check_keywords_in_name 31 other papers
19 dated earlier, 2 the same month, 8 later, 2 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 28 more not named here
get_grad_norm 23 other papers
11 dated earlier, 2 the same month, 8 later, 2 same year, order not determinable
1910.13616 (2019-10)
Multimodal Model-Agnostic Meta-Learning via Task-Aware Modulation
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
and 20 more not named here
TET_loss 2 other papers
1 dated earlier, 1 later
2307.01694 (2023-07)
Spike-driven Transformer
2407.05106 (2024-07)
DailyDVS-200: A Comprehensive Benchmark Dataset for Event-Based Action Recognition
detach_and_grad 2 other papers
1 dated earlier, 1 later · 1 only as an assembly brick
2212.11696 (2022-12)
Reversible Column Networks
2406.09135 (2024-06)
AdaRevD: Adaptive Patch Exiting Reversible Decoder Pushes the Limit of Image Deblurring
get_cpu_and_gpu_states 2 other papers
1 dated earlier, 1 later · 1 only as an assembly brick
2212.11696 (2022-12)
Reversible Column Networks
2406.09135 (2024-06)
AdaRevD: Adaptive Patch Exiting Reversible Decoder Pushes the Limit of Image Deblurring
get_gpu_states 2 other papers
1 dated earlier, 1 later · 1 only as an assembly brick
2212.11696 (2022-12)
Reversible Column Networks
2406.09135 (2024-06)
AdaRevD: Adaptive Patch Exiting Reversible Decoder Pushes the Limit of Image Deblurring
unitwise_norm 2 other papers
2 dated earlier
2104.08215 (2021-04)
"BNN - BN = ?": Training Binary Neural Networks without Batch Normalization
Tang_Progressive_Attention_on_Multi-Level_Dense_Difference_Maps_for_Generic_Event_CVPR_2022_paper (2022 (year only))
Progressive Attention on Multi-Level Dense Difference Maps for Generic Event Boundary Detection

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

Multi-timestep simulation of brain-inspired Spiking Neural Networks (SNNs) boost memory requirements during training and increase inference energy cost. Current training methods cannot simultaneously solve both training and inference dilemmas. This work proposes a novel Temporal Reversible architecture for SNNs (T-RevSNN) to jointly address the training and inference challenges by altering the forward propagation of SNNs. We turn off the temporal dynamics of most spiking neurons and design multi-level temporal reversible interactions at temporal turn-on spiking neurons, resulting in a $O(L)$ training memory. Combined with the temporal reversible nature, we redesign the input encoding and network organization of SNNs to achieve $O(1)$ inference energy cost. Then, we finely adjust the internal units and residual connections of the basic SNN block to ensure the effectiveness of sparse temporal information interaction. T-RevSNN achieves excellent accuracy on ImageNet, while the memory efficiency, training time acceleration, and inference energy efficiency can be significantly improved by $8.6 \times$, $2.0 \times$, and $1.6 \times$, respectively. This work is expected to break the technical bottleneck of significantly increasing memory cost and training time for large-scale SNNs while maintaining high performance and low inference energy cost. Source code and models are available at: https://github.com/BICLab/T-RevSNN.

For agents

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

get_harvested_code_for_paper("2405.16466")
get_code_for_paper("2405.16466")
have("2405.16466")

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

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

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

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

Connect an agent — have() is free.