SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.14330 · NeurIPS · 2022

A single-cell gene expression language model

Michael Keiser, William Connell, Umair Khan

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 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 2 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/2210.14330.json · badge: /api/ran/2210.14330.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
keiserlab/exceiver canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
FunctionStatusWhere it lives
CrossAttn Ran
ran on a synthesized input
keiserlab/exceiver/exceiver/models.py
code served (permissive licence) · get_code("6227ecaad01ba8aa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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 torch
from torch import nn

class CrossAttn(nn.Module):

    def __init__(self, query_dim, key_val_dim, num_heads=4, dropout=0.0):
        super().__init__()
        self.layernorm_kv = nn.LayerNorm(key_val_dim)
        self.layernorm_q = nn.LayerNorm(query_dim)
        self.cross_attn = nn.MultiheadAttention(query_dim, num_heads, dropout=dropout, kdim=key_val_dim, vdim=key_val_dim, batch_first=True)
        self.mlp = nn.Sequential(nn.LayerNorm(query_dim), nn.Linear(query_dim, query_dim), nn.GELU(), nn.LayerNorm(query_dim), nn.Linear(query_dim, query_dim))

    def forward(self, query, key_val, key_padding_mask=None, residual=True):
        norm_k = self.layernorm_kv(key_val)
        norm_v = self.layernorm_kv(key_val)
        norm_q = self.layernorm_q(query)
        latent, weights = self.cross_attn(norm_q, norm_k, norm_v, key_padding_mask)
        if residual:
            latent = latent + query
        latent = self.mlp(latent) + latent
        return (latent, weights)


INIT_ARGS = {
    'query_dim': 4,
    'key_val_dim': 6,
    'num_heads': 2,
    'dropout': 0.1,
}

ARGS = {
    'query': torch.randn(2, 3, 4),
    'key_val': torch.randn(2, 5, 6),
    'key_padding_mask': None,
    'residual': True,
}

if __name__ == '__main__':
    model = CrossAttn(**INIT_ARGS)
    output, weights = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Weights shape: {weights.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ProcessSelfAttn Ran
ran on a synthesized input
keiserlab/exceiver/exceiver/models.py
code served (permissive licence) · get_code("7aec4dd438b1cd50")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 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
from torch import nn

class ProcessSelfAttn(nn.Module):

    def __init__(self, embed_dim, num_layers, nhead, dim_feedforward=2048, dropout=0.2):
        super().__init__()
        self.encoder_layer = nn.TransformerEncoderLayer(embed_dim, nhead, dim_feedforward, dropout, activation='gelu', batch_first=True)
        self.transformer = nn.TransformerEncoder(self.encoder_layer, num_layers)

    def forward(self, latent):
        return self.transformer(latent)


INIT_ARGS = {
    'embed_dim': 4,
    'num_layers': 2,
    'nhead': 2,
    'dim_feedforward': 8,
    'dropout': 0.1,
}

ARGS = {
    'latent': torch.randn(2, 3, 4),
}

if __name__ == '__main__':
    model = ProcessSelfAttn(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: {ARGS['latent'].shape}")
    assert output.shape == ARGS['latent'].shape, "Output shape mismatch"
    print("Success!")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Exceiver Not yet run
unverified (harvested, no recorded run)
keiserlab/exceiver/exceiver/models.py
code served (permissive licence) · get_code("f548788e966d71e7")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

Gene regulation is a dynamic process that connects genotype and phenotype. Given the difficulty of physically mapping mammalian gene circuitry, we require new computational methods to learn regulatory rules. Natural language is a valuable analogy to the communication of regulatory control. Machine learning systems model natural language by explicitly learning context dependencies between words. We propose a similar system applied to single-cell RNA expression profiles to learn context dependencies between genes. Our model, Exceiver, is trained across a diversity of cell types using a self-supervised task formulated for discrete count data, accounting for feature sparsity. We found agreement between the similarity profiles of latent sample representations and learned gene embeddings with respect to biological annotations. We evaluated Exceiver on a new dataset and a downstream prediction task and found that pretraining supports transfer learning. Our work provides a framework to model gene regulation on a single-cell level and transfer knowledge to downstream tasks.

For agents

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

get_harvested_code_for_paper("2210.14330")
get_code_for_paper("2210.14330")
have("2210.14330")

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

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

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

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

Connect an agent — have() is free.