SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.03293 · 2025

Learning to cluster neuronal function

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 1 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/2506.03293.json · badge: /api/ran/2506.03293.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
nisone2000/sensorium canonical (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
FunctionStatusWhere it lives
get_df_for_scores Ran
ran on a synthesized input
nisone2000/sensorium/sensorium/utility/measure_helpers.py
code served (permissive licence) · get_code("017b80ebb4fecbee")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a session_dict with various data structures
session_dict = {
    'dataset_a': [0.85, 0.90, 0.88],
    'dataset_b': [0.75, 0.80],
    'dataset_c': [0.95, 0.92, 0.89, 0.91]
}

ARGS = {
    'session_dict': session_dict,
    'measure_attribute': 'score'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
lerp Ran
ran on a synthesized input
nisone2000/sensorium/sensorium/utility/measure_helpers.py
code served (permissive licence) · get_code("0583d3a4035ee91a")
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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# def lerp(x, a, b):
#     return a + x * (b - a)
# 
# This is a linear interpolation function that takes three arguments.
# x: interpolation factor (scalar or tensor)
# a: start value (scalar or tensor)
# b: end value (scalar or tensor)
# The function performs element-wise operations, so all can be scalars or tensors.

# Create small tensors for testing
x = torch.tensor(0.5)  # scalar interpolation factor
a = torch.randn(2, 4)  # small tensor for start value
b = torch.randn(2, 4)  # small tensor for end value

ARGS = {
    "x": x,
    "a": a,
    "b": b
}
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 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
prepare_grid Ran
ran on a synthesized input
nisone2000/sensorium/sensorium/models/utility.py
code served (permissive licence) · get_code("e3e59ee75115bd54")
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 copy

torch.manual_seed(0)

# Create a minimal Dataset class with neurons attribute
class MinimalDataset:
    def __init__(self, num_neurons=5, input_dim=2):
        # cell_motor_coordinates: [num_neurons, 2] tensor
        self.neurons = type('obj', (object,), {
            'cell_motor_coordinates': torch.randn(num_neurons, input_dim)
        })()

# Create a minimal DataLoader-like object
class MinimalDataLoader:
    def __init__(self, num_neurons=5, input_dim=2):
        self.dataset = MinimalDataset(num_neurons, input_dim)
    
    def __iter__(self):
        return iter([])

# Construct grid_mean_predictor config dict
grid_mean_predictor_config = {
    'type': 'cortex',
    'input_dimensions': 2,
    'hidden_layers': 1,
    'hidden_features': 30,
    'final_tanh': True
}

# Construct dataloaders dict with multiple sessions
dataloaders = {
    'session_1': MinimalDataLoader(num_neurons=5, input_dim=2),
    'session_2': MinimalDataLoader(num_neurons=4, input_dim=2),
}

ARGS = {
    'grid_mean_predictor': grid_mean_predictor_config,
    'dataloaders': dataloaders,
}
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
serp Ran
ran on a synthesized input
nisone2000/sensorium/sensorium/utility/measure_helpers.py
code served (permissive licence) · get_code("3fe943ac6bc777af")
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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# def serp(x, a, b):
#     return a + (3 * x ** 2 - 2 * x ** 3) * (b - a)
#
# Parameters:
# - x: used in arithmetic operations (**, *, +), needs to be numeric tensor or array
# - a: used in arithmetic operations (+, -, *), needs to be numeric tensor or array
# - b: used in arithmetic operations (-, *), needs to be numeric tensor or array
#
# All three parameters are used in standard arithmetic, so they should be tensors or arrays

# Create small tensors for x, a, b
x = torch.randn(2, 4)  # batch size 2, dimension 4
a = torch.randn(2, 4)  # same shape as x
b = torch.randn(2, 4)  # same shape as x

ARGS = {
    "x": x,
    "a": a,
    "b": b,
}
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 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
split_images Ran
ran on a synthesized input
nisone2000/sensorium/sensorium/utility/scores.py
code served (permissive licence) · get_code("c6975dd95d700661")
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 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 numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Create small test data
n_trials = 6
n_neurons = 4
n_images = 3

# responses: shape (n_trials, n_neurons)
# Each trial has neural responses from n_neurons neurons
responses = np.random.randn(n_trials, n_neurons)

# image_ids: shape (n_trials,)
# Maps each trial to an image id
# We have 3 images, each presented twice (6 trials total)
image_ids = np.array([0, 0, 1, 1, 2, 2])

ARGS = {
    "responses": responses,
    "image_ids": image_ids,
}
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 list, ndim 3, 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
get_data_hub_loader Not yet run
unverified (harvested, no recorded run)
nisone2000/sensorium/sensorium/utility/submission.py
code served (permissive licence) · get_code("4ad7bca6e6e20cc9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 0 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_data_hub_loader 1 other paper
1 dated earlier
2206.08666 (2022-06)
The Sensorium competition on predicting large-scale mouse primary visual cortex activity
get_df_for_scores 1 other paper
1 dated earlier
2206.08666 (2022-06)
The Sensorium competition on predicting large-scale mouse primary visual cortex activity
lerp 1 other paper
1 dated earlier
2206.08666 (2022-06)
The Sensorium competition on predicting large-scale mouse primary visual cortex activity
prepare_grid 1 other paper
1 dated earlier
2206.08666 (2022-06)
The Sensorium competition on predicting large-scale mouse primary visual cortex activity
serp 1 other paper
1 dated earlier
2206.08666 (2022-06)
The Sensorium competition on predicting large-scale mouse primary visual cortex activity
split_images 1 other paper
1 dated earlier
2206.08666 (2022-06)
The Sensorium competition on predicting large-scale mouse primary visual cortex activity

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

Deep neural networks trained to predict neural activity from visual input and behaviour have shown great potential to serve as digital twins of the visual cortex. Per-neuron embeddings derived from these models could potentially be used to map the functional landscape or identify cell types. However, state-of-the-art predictive models of mouse V1 do not generate functional embeddings that exhibit clear clustering patterns which would correspond to cell types. This raises the question whether the lack of clustered structure is due to limitations of current models or a true feature of the functional organization of mouse V1. In this work, we introduce DECEMber -- Deep Embedding Clustering via Expectation Maximization-based refinement -- an explicit inductive bias into predictive models that enhances clustering by adding an auxiliary $t$-distribution-inspired loss function that enforces structured organization among per-neuron embeddings. We jointly optimize both neuronal feature embeddings and clustering parameters, updating cluster centers and scale matrices using the EM-algorithm. We demonstrate that these modifications improve cluster consistency while preserving high predictive performance and surpassing standard clustering methods in terms of stability. Moreover, DECEMber generalizes well across species (mice, primates) and visual areas (retina, V1, V4). The code is available at https://github.com/Nisone2000/sensorium/tree/neuroips_version.

For agents

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

get_harvested_code_for_paper("2506.03293")
get_code_for_paper("2506.03293")
have("2506.03293")

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

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

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

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

Connect an agent — have() is free.