SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.04958 · ICML · 2026

CalM: A Self-Supervised Foundation Model for Population Dynamics in Calcium Imaging Data

Yimeng Zhang, Qichen Qian, Yuanlong Zhang, Xinhong Xu

arXiv · PDF · Open in the Atlas

Code that ran

17 of 22 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; 4 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 11 failures of our instrument; 5 no recorded run), measured 2026-11-23; 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/2604.04958.json · badge: /api/ran/2604.04958.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
TSuXinH/CalM canonical (classifier label)
classifier basis: census
17 ran · 5 no recorded run
FunctionStatusWhere it lives
collate_fixedN_padT_v2 Ran
ran; our contract draft was wrong, not the code
TSuXinH/CalM/dataset/dt_dataset.py
pointer only (licence: NONE) · get_code("1fab8e75a3faaa57")
How it ran

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

collate_fn_Tseng_trial Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TSuXinH/CalM/dataset/nq_dataset.py
pointer only (licence: NONE) · get_code("b6f62a1c2dc5d7c7")
How it ran

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

collate_padT_behavior Ran
ran; our contract draft was wrong, not the code
TSuXinH/CalM/dataset/ft_behavior_dataset.py
pointer only (licence: NONE) · get_code("f1e6557aad4d4bb6")
How it ran

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

collate_trial_neurons Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TSuXinH/CalM/dataset/nq_dataset.py
pointer only (licence: NONE) · get_code("b05e2b39dc9f6213")
How it ran

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

compute_corr Ran
ran, honoured the contract we drafted
TSuXinH/CalM/baseline/run_baselines_glm_tcn_final.py
pointer only (licence: NONE) · get_code("874587a0873f2da4")
How it ran

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

ddp_max_float Ran
ran, honoured the contract we drafted
TSuXinH/CalM/model/behavior_decoder/distributed.py
pointer only (licence: NONE) · get_code("52b3146525889bb9")
How it ran

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

ddp_setup Ran
ran; our contract draft was wrong, not the code
TSuXinH/CalM/model/behavior_decoder/distributed.py
pointer only (licence: NONE) · get_code("8a2dc912c65185b0")
How it ran

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

feature_cache_is_done Ran
ran, violated the contract we drafted
TSuXinH/CalM/model/behavior_decoder/feature_cache.py
pointer only (licence: NONE) · get_code("a4e5c325ced6355b")
How it ran

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

find_npz_files Ran
ran, honoured the contract we drafted
TSuXinH/CalM/dataset/nq_dataset.py
pointer only (licence: NONE) · get_code("cbd3ecae3fcc29f7")
How it ran

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

is_under_root Ran
ran, violated the contract we drafted
TSuXinH/CalM/dataset/session_registry.py
pointer only (licence: NONE) · get_code("77d08cbdf5ab1a05")
How it ran

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

list_feature_cache_files Ran
ran; our contract draft was wrong, not the code
TSuXinH/CalM/model/behavior_decoder/feature_cache.py
pointer only (licence: NONE) · get_code("1d11a136bf038f75")
How it ran

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

load_npz_all_splits Ran
ran; our contract draft was wrong, not the code
TSuXinH/CalM/dataset/session_registry.py
pointer only (licence: NONE) · get_code("0e7405de1fcd76c7")
How it ran

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

load_registry_paths Ran
ran; our contract draft was wrong, not the code
TSuXinH/CalM/dataset/session_registry.py
pointer only (licence: NONE) · get_code("a729e3a407b507c8")
How it ran

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

load_session_data Ran
ran; our contract draft was wrong, not the code
TSuXinH/CalM/baseline/run_baselines_glm_tcn_final.py
pointer only (licence: NONE) · get_code("68cb85431e64cc6d")
How it ran

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

process_arrays Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TSuXinH/CalM/baseline/run_baselines_glm_tcn_final.py
pointer only (licence: NONE) · get_code("90f29785324e5b0a")
How it ran

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

safe_mean Ran
ran, honoured the contract we drafted
TSuXinH/CalM/model/behavior_decoder/ft_eval.py
pointer only (licence: NONE) · get_code("9c35fcf4d70f9eb4")
How it ran

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

strip_module_prefix Ran
ran; our contract draft was wrong, not the code
TSuXinH/CalM/model/behavior_decoder/ft_trainer.py
pointer only (licence: NONE) · get_code("1dbb3b755a39d6f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TSuXinH/CalM 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_session_index_v2 Not yet run
unverified (harvested, no recorded run)
TSuXinH/CalM/dataset/dt_dataset.py
pointer only (licence: NONE) · get_code("4c3c7e8b799e72be")
How it ran

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

eval_per_session Not yet run
unverified (harvested, no recorded run)
TSuXinH/CalM/model/behavior_decoder/ft_eval.py
pointer only (licence: NONE) · get_code("8b7bdef23726abfa")
How it ran

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

load_head_ckpt Not yet run
unverified (harvested, no recorded run)
TSuXinH/CalM/model/behavior_decoder/ft_trainer.py
pointer only (licence: NONE) · get_code("54924c030b3c348a")
How it ran

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

load_npz_tokens_for_splits Not yet run
unverified (harvested, no recorded run)
TSuXinH/CalM/dataset/dt_dataset.py
pointer only (licence: NONE) · get_code("52a9712b44839b52")
How it ran

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

unwrap_ddp Not yet run
unverified (harvested, no recorded run)
TSuXinH/CalM/model/behavior_decoder/ft_eval.py
pointer only (licence: NONE) · get_code("968c41a3402d6a94")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TSuXinH/CalM 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 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 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 22 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-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

Recent work suggests that large-scale, multianimal modeling can significantly improve neural recording analysis. However, for functional calcium traces, existing approaches remain taskspecific, limiting transfer across common neuroscience objectives. To address this challenge, we propose CalM, a self-supervised neural foundation model trained solely on neuronal calcium traces and adaptable to multiple downstream tasks, including forecasting and decoding. Our key contribution is a pretraining framework, composed of a high-performance tokenizer mapping singleneuron traces into a shared discrete vocabulary, and a dual-axis autoregressive transformer modeling dependencies along both the neural and the temporal axis. We evaluate CalM on a large-scale, multi-animal, multi-session dataset. On the neural population dynamics forecasting task, CalM achieves competitive performance against strong specialized baselines after pretraining. With a task-specific head, CalM further adapts to the behavior decoding task and achieves superior results compared with supervised decoding models. Moreover, linear analyses of CalM representations reveal interpretable functional structures beyond predictive accuracy. Taken together, we propose a novel and effective self-supervised pretraining paradigm for foundation models based on calcium traces, paving the way for scalable pretraining and broad applications in functional neural analysis. Code is released at https: //github.com/TSuXinH/CalM.

For agents

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

get_harvested_code_for_paper("2604.04958")
get_code_for_paper("2604.04958")
have("2604.04958")

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

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

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

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

Connect an agent — have() is free.