Skip to content

Menu

WorksAgricultural and Biological Sciences

Rethinking One Gene, One Token: Transcriptome-Aware Tokenization for Single-Cell Foundation Models

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_nm85jz8j. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Single-cell foundation models typically treat each gene as a token, which is both costly and wasteful. A cell can express thousands of genes, so one token per gene makes self-attention expensive, yet many of these genes are detected at low levels and carry too little signal to deserve a token of their own. Genes that are expressed together could instead share a token, leaving separate tokens for genes that stand out. We introduce scTAT (Transcriptome-Aware Tokenization), which pairs a gene-set vocabulary with a per-cell tokenizer. The vocabulary holds overlapping gene sets that recur with stable relative expression across the pretraining corpus. Using these sets raises two difficulties. First, which genes should share a token depends on the cell, whereas existing multi-gene tokens fix the grouping in advance. Second, gene sets of different sizes must be compared with single genes on a common scale. The tokenizer therefore decides per cell, letting gene sets and single genes compete for token positions under an expression score normalized by the square root of set size. Training still reconstructs individual genes, so predictions stay at gene resolution. In frozen-embedding cell-type annotation, scTAT matches the strongest one-gene-per-token model with half the token budget. Its advantage over one-gene-per-token models at the same budget grows as the budget shrinks and the tokenizer assigns more positions to gene sets. Encoding the same genes with gene-set tokens also nearly halves the Transformer's matrix-multiplication cost. These results show that a token need not hold exactly one gene: when the tokenizer decides per cell which genes share a token, a fixed budget covers more of each transcriptome at no cost in annotation accuracy.

Introduction

Single-cell foundation models are pretrained on tens of millions of cells ([7, 10]) and learn cell and gene representations that transfer to cell-type annotation, data integration, and perturbation analysis ([7, 26, 22]). Expression modeling also supports gene regulatory network inference ([11, 13, 32]). Most single-cell foundation models adopt the recipe of language models: a cell is written as a sequence of gene tokens, and a Transformer learns from masked or ranked expression ([26, 7] (Yang et al. 2022)). Under this recipe, the token determines both what the model sees of a cell and how much each cell costs to encode.

Figure 1. (a) With one gene per token, NN genes take NN tokens and O(N2)O(N^{2}) attention. (b) With gene-set tokens, scTAT fits the same genes into L≪NL \ll N tokens.

However, these two roles pull in opposite directions when each token holds one gene. A cell expresses thousands of genes, so showing the model more of them means a longer input, yet the cost of self-attention grows quadratically with input length ([28]). Models that give each gene its own token, such as Geneformer and scGPT ([26, 7]), therefore keep only a subset of each cell’s genes. Many of the remaining genes are detected at low levels and carry little signal on their own, yet each still occupies a full position. Expression-weighted sampling favors highly expressed genes when drawing this subset (Qi et al., 2025; Xiong et al., 2026), but with one gene per position, the token budget still caps how many genes the model sees.

A direct way to lift this cap is to let one token carry several genes, so the same budget reaches more of each transcriptome. Several single-cell models take this route, grouping genes by curated pathways or regulons in TOSICA ([5]), learned gene-module projections in Stack ([8]), or protein-informed soft assignment in scREBOUND (Zhang et al., 2026). Each grouping is fixed before any cell is seen, which causes two problems. First, relationships the grouping does not encode are lost at the input: genes outside curated pathways never enter a pathway token, and co-varying genes in different groups never share a token. Second, which genes belong together depends on the cell’s type and state. Gene–gene co-expression differs across cell types (Su et al., 2023): cell-cycle genes rise together in dividing cells ([27]), and interferon-stimulated genes during viral infection ([23]). Conversely, some identities rest on a single highly expressed gene, such as insulin in beta cells. A fixed grouping spends positions on programs a cell does not run and blurs such markers.

To address these two problems, we introduce scTAT (Transcriptome-Aware Tokenization), which pairs a corpus-mined vocabulary of overlapping gene sets with a per-cell tokenizer. The vocabulary is built along a gene-association graph, which keeps the combinatorial search tractable. It admits sets whose members co-occur often and keep stable relative levels, using a compression-based score inspired by the minimum description length (MDL) principle ([20, 29]). The tokenizer lets gene sets and single genes compete for each cell’s positions under a size-normalized expression score that balances coverage against per-gene signal. Reconstruction targets remain individual genes, so predictions stay at gene resolution.

The vocabulary and the tokenizer address these two problems in turn. Mined from co-occurrence in the pretraining corpus, the vocabulary can group co-varying genes whether or not they share a curated pathway, and because its sets overlap, no gene is locked into a single group. The tokenizer selects a gene set only when its members are jointly expressed in the cell, while a gene that dominates its set, such as insulin in a beta cell, keeps a token of its own; as positions become scarce, it assigns more of them to gene sets, which lifts the budget cap. In frozen-embedding annotation on ten datasets, the advantage of scTAT over one-gene-per-token models trained on the same corpus grows as the budget shrinks, its gene sets are enriched for known pathways and physical associations, and its frozen encoder remains competitive on gene-level tasks.

Our main contributions are as follows:

  • We identify the token as a bottleneck: one gene per token caps how many genes a model sees, while existing multi-gene tokens fix their grouping in advance, losing relationships outside their groups and ignoring cell-dependent co-expression.

  • We construct a gene-set vocabulary and design a per-cell tokenizer: graph-constrained search and an MDL-inspired score admit overlapping gene sets that recur with stable relative expression, and the tokenizer lets these sets compete with single genes for each cell’s token positions, so which genes share a token follows each cell’s expression.

  • We conduct a comprehensive evaluation on ten cell-type annotation datasets and two gene-level tasks, with efficiency, ablation, and pathway analyses. scTAT matches the strongest one-gene-per-token model with half the token budget and nearly halves the Transformer FLOPs needed to encode the same genes.

Related Work

What a token holds in single-cell Transformers. Most single-cell foundation models give each token one gene. The token may combine gene identity with an expression value, as in scBERT (Yang et al., 2022) and scGPT ([7]), or encode expression through the gene’s rank position, as in Geneformer (Theodoris et al. [26]) and tGPT (Shen et al. [24]); scMulan adds metadata and task tokens (Bian et al. [3]). Biological knowledge typically enriches the gene embedding itself: GeneCompass injects regulatory and functional priors (Yang et al. (2024)), and UCE uses protein-language-model embeddings (Rosen et al. [22]). scTAT instead lets a gene-association graph restrict which genes may share a token and corpus statistics decide which sets are admitted.

Tokenizers in biological foundation models. Genomic models vary in their input representations: DNABERT uses fixed kk-mers and DNABERT-2 learns byte-pair-encoding merges (Ji et al. (2021); Zhou et al. (2023)). MutBERT represents each nucleotide position as a probability distribution derived from population allele frequencies (Long et al. [14]). Expression profiles have no gene order, so single-cell models that group genes into tokens take membership from other sources. TOSICA uses curated pathways or regulons, masking a trainable projection so that each token reads a specified gene set (Chen et al. [5]); Stack learns gene-module projections jointly with an encoder that attends across genes and cells (Dong et al. [8]); scREBOUND learns a protein-informed soft assignment that pools genes into meta-genes (Zhang et al. (2026)). scConcept samples disjoint gene panels to form two views of each cell and learns cell representations through contrastive pretraining (Bahrami et al. [1]). Whereas TOSICA, Stack, and scREBOUND fix their grouping before any cell is seen, scTAT selects per cell which gene sets and single genes enter the input. Its gene sets are mined from the training corpus with a candidate-local variant of compression-based itemset mining (Vreeken et al. [29]) that adds expression-consistency and graph terms.

Efficient single-cell encoders. Other work reduces cost elsewhere in the model. Performer approximates softmax attention (Choromanski et al. [6]); xTrimoGene exploits expression sparsity with an asymmetric encoder–decoder (Gong et al. [9]); scBenchmark evaluates expression-weighted sampling and alternative encoders (Qi et al. (2025)); CellPLM treats whole cells as tokens and attends across cells (Wen et al. [30]). In vision Transformers, token merging and pruning shorten the sequence inside the network by combining similar tokens or dropping uninformative ones (Bolya et al. [4]; Rao et al. [19]). scTAT instead decides before encoding which genes may share a token, from corpus statistics, so every token keeps an explicit gene membership. Shortening the gene sequence this way is complementary to efficient attention and to gene sampling.

Method

Overview

scTAT builds a gene-set vocabulary offline (§ 3.2), selects gene sets and single genes for each cell (§ 3.3), and trains a Transformer to reconstruct masked genes (§ 3.4; Figure 2).

Figure 2. Overview of scTAT. (a) A gene graph proposes candidate gene sets, and an MDL-inspired score admits those that recur with stable relative expression. (b) For each cell, gene sets and single genes compete for token positions. (c) A Transformer encodes the tokens and reconstructs masked genes from the tokens (MLM) and from CLS (MVC).

Let G\mathcal{G} be the gene universe and x∈R≥0∣G∣x \in\mathbb{R}_{\ge0}^{|\mathcal{G}|} a cell’s processed expression profile; a zero means the gene was not detected. The active genes are A(x)={g:xg>0}A(x) = \{g : x_g > 0\}. The vocabulary V\mathcal{V} contains two kinds of entries, each an explicit set of gene identities: gene sets (multi-gene entries) and single genes (singletons, one per gene in G\mathcal{G}). Entries may overlap. An entry is shared across cells, whereas a token is the entry’s instance in one cell, carrying that cell’s expression. For each cell, tokenization selects at most KK entries T(x)⊆V\mathcal{T}(x) \subseteq\mathcal{V} and adds a CLS token for the cell readout; when KK is small, some active genes remain unrepresented.

Vocabulary construction

Proposing candidates on a gene graph. The number of possible gene sets grows combinatorially, so we search only within neighborhoods of a gene graph. We build a mutual kk-nearest-neighbor graph from the normalized gene embeddings of pretrained scGPT: two genes are connected when each ranks among the other’s top-kk neighbors by cosine similarity, and the similarity is the edge weight. Its edge weights also enter the coherence term of the admission score below; only the graph comes from scGPT, and no scGPT weights initialize scTAT.

Admitting gene sets by compression. A gene set deserves a token when it recurs across many cells and its members keep similar relative expression, since one token then summarizes them with little loss. We measure both properties on a discovery sample of 50,000 training cells, split into two disjoint subsets that must each support the candidate; no evaluation cells are used. We combine them into a score following the minimum description length (MDL) principle [20], as in Krimp itemset mining [29]: a gene set is worth adding when encoding its members as one unit in the cells that contain all of them, plus the cost of describing the set, is shorter than encoding the members separately. For a candidate SS, let IS={i:S⊆A(xi)}I_S = \{i : S \subseteq A(x_i)\} be its supporting cells and nS=∣IS∣n_S = |I_S|; let ℓg\ell_g and ℓS\ell_S be the negative log smoothed occurrence frequencies of gene gg and of SS, and let Ldesc(S)L_{\mathrm{desc}}(S) be the cost of describing the size and members of SS. The admission score is

F(S)=nS(∑g∈Sℓg−ℓS)−Ldesc(S)−nSR(S).(1)F(S) = n_S\left(\sum_{g\in S}\ell_g-\ell_S\right)-L_{\mathrm{desc}}(S)-n_SR(S). \tag*{(1)}

The first term is the code length saved by encoding SS as one unit in its nSn_S supporting cells; it is large when the members co-occur more often than their individual frequencies predict. The second term charges for adding SS to the vocabulary. The third term goes beyond a strict code length and penalizes unstable or weakly connected sets: each supporting cell pays R(S)=D(S)+(1−H(S))/2R(S) = D(S) + (1-H(S))/2, where D(S)D(S) is the mean base-two Jensen–Shannon divergence of the cells’ within-set expression proportions from their mean, and H(S)H(S) is the mean edge weight of a maximum spanning tree on SS. A set therefore scores highly when its members co-occur, keep stable proportions, and are tightly connected in the graph; Appendix § 11 gives the full definitions.

Searching for gene sets. Starting from each gene as an anchor aa, we greedily extend a candidate with genes from the anchor’s neighbor set N(a)\mathcal{N}(a) while the admission score improves and the support constraint holds, so every candidate lies in {a}∪N(a)\{a\}\cup\mathcal{N}(a) (Algorithm 1). Adding all single genes to the admitted sets completes the vocabulary V\mathcal{V}, which contains 79,536 gene sets of 2–32 genes (median 4) and 60,694 single genes (Appendix Figure 5).

Transcriptome-aware tokenization

Selecting vocabulary entries. A gene set is eligible for a cell only when all of its members are active, S⊆A(x)S \subseteq A(x); every active gene is also eligible as a single gene. Let CC be the union of genes already represented, initially empty. An eligible entry would add the expression

Δx(S∣C)=∑g∈S∖Cxg(2)\Delta_x(S \mid C) = \sum_{g\in S\setminus C} x_g \tag*{(2)}

carried by its nC(S)=∣S∖C∣n_C(S)=|S\setminus C| newly represented genes. scTAT places gene sets and single genes in one candidate pool and scores each by

s(S∣C)=Δx(S∣C)nC(S).(3)s(S\mid C)=\frac{\Delta_x(S\mid C)}{\sqrt{n_C(S)}}. \tag*{(3)}

At each step, the tokenizer selects the highest-scoring entry, adds its genes to CC, and recomputes scores; entries adding no new gene are skipped, and ties favor single genes. Selection stops when the budget is filled or every active gene is represented. This rule is the scTAT tokenizer.

Why the square root. Normalizing by nC(S)\sqrt{n_C(S)} balances coverage against per-gene signal. Without normalization, the new expression Δx\Delta_x grows with every added member, so the score favors large gene sets. Dividing by nC(S)n_C(S) instead scores the mean expression of the new members, which never exceeds the score of the most highly expressed member as a single gene, so no gene set would ever be selected. The square root lies between these extremes: a gene set wins when its new members are jointly well expressed, and a single gene wins when it dominates, so the mix of gene sets and single genes depends on each cell’s profile. For example, two new genes with expression 3 each score 6/2≈4.26/\sqrt{2}\approx4.2 as a set and beat either gene alone, whereas a gene with expression 10 and a partner with expression 1 score 11/2≈7.811/\sqrt{2}\approx7.8 as a set and lose to the first gene alone.

Encoding token instances. Each selected entry SS becomes one token with features

tS=Normalize⁡(bS+ϕ(vS)+cS),bS=1∣S∣∑g∈Seg,vS=1∣VS∣∑g∈VSxg,(4)t_S=\operatorname{Normalize}(b_S+\phi(v_S)+c_S),\qquad b_S=\frac{1}{|S|}\sum_{g\in S}e_g,\qquad v_S=\frac{1}{|V_S|}\sum_{g\in V_S}x_g, \tag*{(4)}

where ege_g is a trainable gene embedding, VSV_S the members whose values are not masked, ϕ\phi a bounded scalar-expression encoder, and cSc_S a learned embedding of the masked-member fraction and entry size. Masking is shared across all occurrences of a gene, and an entry with no visible members receives a mask indicator in place of ϕ(vS)\phi(v_S). A Transformer, trained from scratch, encodes the tokens together with CLS into token outputs hSh_S and a cell embedding zz.

Reconstruction in the original gene space

Although inputs may bundle several genes into one token, every prediction target is a single gene. Let MM be the masked active genes and Jg={S∈T(x):g∈S}J_g=\{S\in\mathcal{T}(x):g\in S\} the selected entries containing gene gg. The covered targets are MC={g∈M:Jg≠∅}M_C=\{g\in M:J_g\ne\varnothing\}. For g∈MCg\in M_C, we form a reconstruction context from the corresponding token outputs:

rg=∣Jg∣−1∑S∈JgWhS.(5)r_g=|J_g|^{-1}\sum_{S\in J_g}Wh_S. \tag*{(5)}

Here WW is a learned projection. A token-based decoder combines rgr_g with a learned gene query to predict the masked value, yielding the masked-expression objective (MLM) on MCM_C. A cell-based decoder uses zz and a gene-specific query to predict every target in MM, yielding the masked-value reconstruction objective (MVC). Uncovered masked genes contribute only to MVC. Both squared-error objectives are optimized jointly; downstream evaluation uses the frozen CLS embedding.

Pretraining. We pretrain on 1.8 million human cells, with 13,780 cells held out for validation, from the scBenchmark corpus ((Qi et al., 2025)), which assembles 54.6 million CELLxGENE cells following scGPT ([7]). The main scTAT models are trained from scratch for 10 epochs at 64, 128, 256, and 512 tokens with the scTAT tokenizer; Appendix Table 9 lists all settings.

SettingValueSettingValue
Gene graphmutual 32-NN on scGPT genesGraph size60,694 genes, 202,582 edges
Discovery sample2×25,0002 \times25{,}000 cellsMin. support τ\tau50 cells per subset
Maximum set size mmax⁡m_{\max}32 genesPseudocount κ\kappa0.5
Vocabulary79,536 gene sets, 60,694 genesParameters22.2M
Encoder6 layers, width 256, 8 headsFFN; dropout256; 0.15
Pretraining data1.8M cells, 10 epochsBatch; updates256 cells; 70,320
ObjectiveMLM + MVC, equal weightsMask ratio0.4
OptimizerAdam, lr 2×10−42 \times10^{-4}, clip 1.0Schedule10k-update warmup, constant
PrecisionBF16, FP32 lossSeed42

Table 9. Settings of the vocabulary and the main scTAT models.

Experiments

Experimental Setup

Datasets and splits. Cell-type annotation follows scBenchmark ((Qi et al., 2025)): frozen CLS embeddings are evaluated by kNN and a linear probe on its ten datasets (Multiple Sclerosis, MS; Myeloid, Myel.; Pancreas, Panc.; Lupus, Dengue, Deng.; irColitis, irCol.; Leptomeningeal, Lepto.;

Myasthenia, Myas.; Scanorama, Scan.; and scFoundation, scF.), none of them in the pretraining corpus, and we report macro accuracy averaged over five cell-level splits (Appendix § 8). Gene-network ranking follows the Han hESC task of scPRINT (Kalfon et al., [13]) (Appendix § 9), and perturbation prediction the Norman_1 task of PertEval-scFM (Wenteler et al., [31]) (Appendix § 10).

Baselines. We compare with scGPT (Cui et al., [7]), Geneformer V2 (Theodoris et al., [26]), the Transformer released with scBenchmark (hereafter scBenchmark) (Qi et al., 2025), and CoCoS (Xiong et al., 2026). scBenchmark and CoCoS share the pretraining data, the number of epochs, and the six-layer, 256-dimensional Transformer backbone of scTAT. Each baseline receives up to 512 genes, sampled without replacement uniformly (Uniform) or in proportion to expression (Weighted); TAT denotes the scTAT tokenizer. To isolate the effect of the token, we also pretrain the scTAT architecture with single-gene tokens only at different budget, sampling expressed genes in proportion to expression as in weighted scBenchmark.

Results and Analysis

Q1. How does annotation accuracy change with the token budget? Tables 1 and 2 compare frozen embeddings from scTAT at 64 to 512 tokens with four pretrained baselines, each given 512 genes by uniform or expression-weighted sampling. With 256 tokens, half the baselines’ budget, scTAT matches the strongest baseline, expression-weighted scBenchmark (79.92% versus 79.83% KNN and 81.21% versus 81.07% linear-probe accuracy), and with 128 or 64 tokens it remains above every uniformly sampled 512-token baseline. Against models pretrained with one gene per token at the same budget (Figure 3a,Figure 3b), its margin widens from 0.3 to 8.0 KNN points and from 0.4 to 6.4 linear-probe points as the budget falls from 512 to 64 tokens, so gene-set tokens matter most when positions are scarce. At 512 tokens, scTAT is also the highest under both probes, 0.29 and 0.38 points above expression-weighted scBenchmark (paired over five splits: 0.29 ± 0.14 and 0.38 ± 0.20; Appendix § 8).

Figure 3. scTAT across token budgets. a,b, Annotation accuracy of scTAT and of models with one gene per token; numbers give the margin of scTAT. c, Selected tokens by gene-set size on validation cells; numbers above the bars give mean coverage of expressed genes and covered genes per token.

Q2. How does token granularity change with the token budget? Because gene sets and single genes compete for positions, the tokenizer’s granularity is an outcome rather than a fixed design (Figure 3c). On validation cells, gene sets fill 74.9%, 66.2%, 54.4%, and 41.3% of the selected positions at 64, 128, 256, and 512 tokens, and each token covers 5.2 to 2.1 genes on average, and the selected tokens reach 20% to 65% of a cell’s expressed genes. At 64 tokens, half of the positions hold sets of at least five genes, against 15% at 512 tokens. About two-thirds of the first 128 positions go to jointly expressed gene sets, but only about one in three of the positions added between 128 and 512 tokens; because the greedy order does not depend on the budget, the sets chosen early are kept.

Q3. How much encoder computation do gene-set tokens save? If a token carries several genes, fewer tokens should suffice to represent a given set of genes. We test this with the main models at 64, 128, 256, and 512 tokens: each cell’s selected gene union is expanded into single-gene inputs for a fixed scBenchmark checkpoint, and both encoders process the same 10,000 cells (Table 3).

scTAT budgetTokensLen.↓GFLOPs↓GiB↓ms↓
64Single gene2111.350.430.26
scTAT650.330.200.17
128Single gene3022.140.580.40
scTAT1240.680.220.30
256Single gene4343.530.810.64
scTAT2311.440.290.53
512Single gene6125.971.201.12
scTAT4063.080.431.00

Table 3. Cost of encoding the same genes on 10,000 cells, per cell except peak memory (GiB, per batch of 64); bold marks the lower cost.

At 512 tokens, encoding the selected genes as gene-set tokens rather than single-gene tokens lowers Transformer matrix-multiplication cost by 48.5% and peak GPU memory by 63.8%; at 64 tokens, it lowers them by 75.5% and 53.9%, and GPU encoding time by 34.5%. The FLOPs savings grow as the budget shrinks because each token then covers more genes (Figure 3c). Fewer tokens also mean less computation for the same accuracy: at full budget, scTAT at 256 tokens matches one gene per token at 512 tokens (Figure 3a,Figure 3b) with 40% of the GFLOPs per cell (1.6 versus 4.0), whereas scGPT and Geneformer need 26 and 97 GFLOPs per cell at 512 tokens.

Q4. Which design choices matter? Selection. Table 4a compares the scTAT tokenizer, which scores gene sets and single genes in one pool, with four rules that rank gene sets by a fixed priority, select them before any single gene, and fill the remaining positions by expression-weighted sampling; each rule is used for both pretraining and evaluation at 512 tokens. The scTAT tokenizer is best, 0.50 KNN and 0.20 linear-probe points above the strongest alternative, ranking by newly expressed (the Expression-first rule), and the gap grows to 1.97 and 1.35 points at 128 tokens. Among the gene-set-first rules, ranking by newly covered expression (Equation (2)) beats ranking by newly covered gene count or set size. Ranking by the offline admission score does worst, which suggests that how reusable a set is across the corpus says little about whether it is informative in a given cell.

VariantKNNLinear
(a) Gene sets first, ranked by
New expression79.62 ±0.1281.25 ±0.16
New gene count79.37 ±0.1680.92 ±0.20
Set size78.65 ±0.1280.55 ±0.21
Admission score78.11 ±0.1880.02 ±0.18
(b) Vocabulary
w/o MDL79.43 ±0.1580.67 ±0.15
w/o gene content78.86 ±0.1280.64 ±0.22
scTAT (ours)80.12 ±0.1181.45 ±0.16

Table 4. Ablations at 512 tokens (macro accuracy, %).

Vocabulary. Two control vocabularies change only which gene sets are admitted (Table 4b; Appendix § 11). w/o MDL keeps the graph, the support requirement, and nearly the same size distribution but admits the most graph-coherent sets instead of scoring them; the admission score adds 0.69 KNN and 0.78 linear-probe points. w/o gene content permutes gene labels within detection-frequency strata, preserving the number, sizes, and overlaps of entries. Under the same Expression-first selection, its tokens cover 1.77 instead of 2.24 genes each, coverage falls from 66.5% to 55.4% because a set enters only when all its members are expressed and permuted sets less often are, and accuracy drops by 0.76 and 0.61 points.

Supplementary gene-level tasks. We also test two gene-level uses of the frozen encoder (Table 5). In Han hESC network ranking (a), scTAT ranks regulatory edges at 1.17 times the random baseline against the Full reference and 1.27 times against KO, second-best on Full and best on KO. In Norman_1 perturbation prediction (b), scTAT performs close to scGPT and Geneformer, and the same holds on three further PertEval-scFM tasks (Appendix Table 8).

(a) Network ranking (Han hESC)(b) Perturbation prediction (Norman)
ModelFull↑ChIP↑KO↑ModelMSE–ss area (×10−2\times10^{-2})↓
Random0.02740.25360.0761Mean4.705 ±0.071
GENIE3 (Huynh-Thu et al., [11])0.02950.27830.0708Raw-expr. MLP4.683 ±0.050
scGPT (Cui et al., [7])0.02270.23600.0675Geneformer (6L)4.649 ±0.053
Geneformer (Theodoris et al., [26])0.03700.31880.0619scFoundation4.800 ±0.099
scPRINT (Kalfon et al., [13])0.0286<u>0.2865</u><u>0.0728</u>scGPT4.650 ±0.053
scTAT<u>0.0319</u>0.22570.0965scTAT4.650 ±0.055

Table 5. Gene-level evaluation with frozen encoders. (a) Han hESC network AUPRC against three references, without head selection; Random is the positive-edge prevalence, and bold and <u>underlined</u> values mark the best and second-best model. (b) Norman single-gene perturbation prediction, area under the test-MSE curve for s∈[0,0.7]s \in[0, 0.7] (mean ± SD over three repetitions).

Biological support for the vocabulary

External biological support. The admitted gene sets are enriched for known pathways and physical associations. On a prespecified panel of 1,000 gene sets, 20.10% have a significant Reactome pathway hit (Milacic et al., [15]), against 3.87–4.83% for stratified gene-label permutations; BioGRID physical associations (Oughtred et al., [17]) show the same pattern. Random sets from the same graph neighborhoods reach 17.05%, and corpus-based admission adds a further 1.18-fold for pathways and 1.38-fold for physical associations (Appendix § 7). Figure 4 shows six frequently selected gene sets: three translation programs whose members almost all belong to the named Reactome pathways, two mitochondrial RNA-processing sets that share complex IV subunits, and an endosomal set containing the HLA-E/B2M complex. These sets group co-regulated or co-assembled genes: ribosomal proteins, mitochondrial transcripts processed by FASTK-family proteins (Ohkubo et al., [16]), and MHC class I chains with B2M. Appendix § 7 describes each set.

Figure 4. Six frequently selected scTAT gene sets: a,b, peptide chain elongation; c, eukaryotic translation elongation; d,e, mitochondrial RNA processing and stability; f, endosomal/vacuolar pathway. Rings mark Reactome pathway (outer) and Complex Portal complex (inner) membership, and chords mark BioGRID physical associations ([15, 2, 17]).

Conclusion

scTAT replaces the one-gene token with a choice made for each cell. A vocabulary mined from the pretraining corpus supplies overlapping gene sets whose members co-occur with stable relative expression, and a size-normalized expression score lets these sets compete with single genes for every position, while reconstruction targets remain individual genes. With frozen embeddings, scTAT matches the strongest one-gene-per-token model with half the tokens and exceeds one-gene-per-token models at every budget from 64 to 512 tokens, by the widest margin when tokens are scarce and the tokenizer assigns most positions to gene sets. It encodes the same genes with nearly half the Transformer FLOPs and less GPU memory, its gene sets are enriched for known pathways and physical associations, and its frozen encoder remains competitive on gene-level tasks.

These results show that what a token holds is a design choice rather than a fixed convention. Deciding per cell which genes share a token lets a fixed budget cover more of each transcriptome, with the largest benefit under tight budgets, where one gene per token must leave most of each transcriptome out. Because it shortens the input before encoding, this choice is complementary to efficient attention and to gene sampling. Natural next steps are combinatorial perturbation prediction as in GEARS (Roohani et al., [21]), refining the vocabulary jointly with encoder training, and vocabularies for other species and modalities, such as chromatin accessibility or spatial transcriptomics.

References

Vocabulary analyses

Vocabulary overview. The vocabulary holds 60,694 single genes, 79,536 gene sets, and 3 special tokens (140,233 entries); 19,408 of the 47,495 detectable genes (40.9%) belong to at least one gene set. Figure 5 summarizes the gene sets and their use. Most sets are small (median 4 genes; panel a), yet they overlap heavily: 79.5% of the genes in any set belong to at least two (panel b). Support increases with set size but stays above the admission threshold (panel c), and admitted sets combine low proportion instability with moderate graph cohesion (panel d). On 10,000 annotation cells, the selected tokens cover a median of 29%, 42%, 64%, and 100% of each cell’s expressed genes at 64, 128, 256, and 512 tokens, against a median upper bound of 10%, 21%, 42%, and 84% with one gene per token (panel e); each token then carries a median of 2.98, 2.09, 1.57, and 1.37 genes (panel f). These medians describe the downstream annotation cells, which express fewer genes than the pretraining validation cells summarized by means in Figure 3c (median 612.5 and mean 1,507 expressed genes per cell, against a mean of 1,922), so the same budget covers a larger share of each annotation cell.

Figure 5. Vocabulary statistics (a–d) and per-cell use on 10,000 annotation cells (e–f). a, Gene-set sizes. b, Gene sets containing each gene. c, Support by set size (median and IQR; dashed: admission threshold). d, Proportion instability D(S)D(S) versus graph cohesion H(S)H(S). e, Expressed genes covered, against the one-gene-per-token bound min⁡(K,n)/n\min(K,n)/n. f, Covered genes per token.

Enrichment and physical-association definitions. We audit the multi-gene entries against pathway membership, curated complexes, and physical associations, independently of the annotation probes. The background comprises 47,495 detectable genes matched by exact symbols, a subset of the full gene vocabulary. Reactome supplies 2,135 eligible pathways [15]; Complex Portal supplies 919 eligible complexes with experimental support [2]. Enrichment is assessed using upper-tail hypergeometric tests, Bonferroni correction over eligible terms within each entry, and Benjamini–Yekutieli correction across all entries separately for each database, at the prespecified significance level. BioGRID release 5.0.261 supplies 113,621 unique human physical-association pairs supported by at least two distinct PubMed publications [17]. For an entry of size mm, association density divides its supported pair count by (m2)\binom{m}{2}; unmapped members remain in the denominator.

Across all 79,536 multi-gene entries, 10,546 entries (13.26%) show Reactome enrichment and 2,832 (3.56%) show enrichment for experimentally supported Complex Portal complexes after within-entry Bonferroni and vocabulary-wide Benjamini–Yekutieli correction.

Null-control construction and testing. To reduce redundant entries in the null comparison, we greedily prune entries in descending MDL-score order using a Jaccard-overlap criterion, retaining 55,137 representatives, and uniformly sample a fixed panel of 1,000. The two prespecified endpoints are the fraction of entries with a within-entry Bonferroni-adjusted Reactome hit at the prespecified significance level and the mean multi-publication association density. Three controls globally permute gene labels within strata, preserving entry sizes and all overlaps. The first conditions on detection frequency and annotation availability; the others additionally condition on prior-graph degree, then experimental-network degree. A fourth control draws random stars from the prior graph with the same inferred anchor and size as each entry. The inferred anchor is a deterministically chosen member adjacent to all other members.

Each control uses repeated random draws. One-sided Monte Carlo PP values use the plus-one correction; Bonferroni adjustment covers the eight primary comparisons (four controls, two endpoints).

For the fixed panel of 1,000 entries sampled after overlap pruning, the Reactome hit rate is 20.10% and mean density of physical associations supported by at least two publications is 2.460%. Here, a pathway hit uses within-entry correction, whereas the vocabulary-wide counts above additionally control across entries. The three stratified permutation controls yield null means of 3.87–4.83% for pathway hits and 0.153–0.193% for physical-association density. Conditioning on the same prior-graph anchor and entry size gives higher null means of 17.05% and 1.778%, leaving differences of 3.05 and 0.682 percentage points (1.18-fold and 1.38-fold). All eight prespecified one-sided comparisons have Monte Carlo P=0.005P = 0.005 and Bonferroni-adjusted P=0.04P = 0.04; 0.005 is the resolution limit of the permutation test.

Pathway and complex-supported case studies. Figure 4 in § 4.3 shows every member of six gene sets. They are the sets selected by the most cells among 2,000 training cells that were not used for vocabulary construction, tokenized at 512 tokens. The three translation-related sets contain 32, 31, and 25 genes, of which 32, 31, and 20 belong to the named Reactome pathways. The two mitochondrial sets contain 11 and 13 genes, of which 11 and 10 map to mitochondrial RNA processing and stability, and both include the MT-CO1/2/3 subunits of complex IV. Their shared annotation reflects regulation of mitochondrial transcripts by FASTK-family proteins (Okhubo et al., 2021). The sixth set contains 17 genes, including five endosomal/vacuolar pathway members and the HLA-E/B2M complex. The rings separate curated memberships from experimentally recorded physical associations ([15, 2, 17]).

Annotation results with variability

Probes and metrics. The ten annotation datasets contain 6,595–50,000 cells and 8–25 cell types each, 287,229 cells in total, and are used with their provided labels; vocabulary construction uses only pretraining cells. For annotation, scTAT and the four paired baselines use frozen CLS features, normalized per cell and reused across the five shared train–test splits. Model-specific adapters retain the processed expression values and available gene mappings, so the comparison covers each whole system with its own input adapter. Splits are non-stratified and made at the cell level. KNN uses Euclidean distance and uniform voting. The linear classifier uses shared training settings and the native embedding dimension, and is evaluated once on held-out cells after the prescribed training. Accuracy on a dataset is the fraction of correctly labeled test cells; macro accuracy, the unweighted mean of the ten dataset accuracies, is computed within each split repetition and then averaged.

Variability. Tables 6 and 7 provide the full mean ±\pm sample standard deviation versions of the main annotation tables. They use the same checkpoints, fixed features, input settings, and five shared evaluation splits. For each macro result, the ten datasets are first averaged equally within each repetition; its standard deviation is then computed across the five repetition-wise averages. This variation reflects evaluation splits and, for the linear probe, head initialization, with pretrained weights and features fixed.

For the paired 512-token comparison with expression-weighted scBenchmark, we subtract its macro accuracy from scTAT within each of the five evaluation splits. The mean ±\pm sample SD of these differences is 0.286 ±\pm 0.138 percentage points for KNN and 0.376 ±\pm 0.203 for the linear probe. Pairing uses the same deterministic split rule on original cell-row order, with matching archived input identities and cell counts.

ModelInputBudgetMSMyel.Panc.LupusDeng.irCol.Lepto.Myas.Scan.scF.Avg
scBenchmarkUniform51285.47 ±\pm 0.4170.35 ±\pm 0.4896.56 ±\pm 0.2064.93 ±\pm 0.1682.99 ±\pm 0.3253.27 ±\pm 0.1959.54 ±\pm 0.4680.78 ±\pm 0.2192.34 ±\pm 0.2464.46 ±\pm 0.4975.07 ±\pm 0.17
Weighted85.61 ±\pm 0.3871.70 ±\pm 0.4097.00 ±\pm 0.2164.93 ±\pm 0.1685.15 ±\pm 0.2959.16 ±\pm 0.5390.81 ±\pm 0.3384.33 ±\pm 0.2694.80 ±\pm 0.1164.81 ±\pm 1.0079.83 ±\pm 0.16
CoCoSUniform51281.91 ±\pm 0.4466.69 ±\pm 0.2092.61 ±\pm 0.3472.55 ±\pm 0.0782.68 ±\pm 0.1652.48 ±\pm 0.4461.47 ±\pm 1.1280.63 ±\pm 0.2890.40 ±\pm 0.3766.48 ±\pm 1.0174.79 ±\pm 0.14
Weighted82.15 ±\pm 0.4367.77 ±\pm 0.2193.04 ±\pm 0.4972.55 ±\pm 0.0784.53 ±\pm 0.2456.18 ±\pm 0.3289.37 ±\pm 0.4683.65 ±\pm 0.2293.34 ±\pm 0.2766.83 ±\pm 1.1778.94 ±\pm 0.07
scGPTUniform51275.42 ±\pm 0.3367.66 ±\pm 0.4591.96 ±\pm 0.3866.49 ±\pm 0.3681.05 ±\pm 0.5249.30 ±\pm 0.2344.67 ±\pm 0.5078.34 ±\pm 0.3890.30 ±\pm 0.3062.99 ±\pm 0.9570.82 ±\pm 0.10
Weighted75.46 ±\pm 0.3868.82 ±\pm 0.2492.71 ±\pm 0.4066.49 ±\pm 0.3684.23 ±\pm 0.3255.51 ±\pm 0.4887.13 ±\pm 0.5483.41 ±\pm 0.2093.71 ±\pm 0.2863.39 ±\pm 1.3377.09 ±\pm 0.17
Geneformer V2Uniform51270.71 ±\pm 0.4162.90 ±\pm 0.3489.49 ±\pm 0.2871.98 ±\pm 0.2676.98 ±\pm 0.3646.58 ±\pm 0.4344.37 ±\pm 0.7774.31 ±\pm 0.2379.66 ±\pm 0.3659.40 ±\pm 1.0367.67 ±\pm 0.09
Weighted71.28 ±\pm 0.3465.35 ±\pm 0.4390.16 ±\pm 0.2071.98 ±\pm 0.2678.82 ±\pm 0.4750.91 ±\pm 0.5172.37 ±\pm 0.7878.28 ±\pm 0.2287.12 ±\pm 0.4160.76 ±\pm 0.8572.70 ±\pm 0.11
scTATTAT6471.89 ±\pm 0.8869.56 ±\pm 0.3897.57 ±\pm 0.1766.96 ±\pm 0.3383.49 ±\pm 0.3655.22 ±\pm 0.1792.23 ±\pm 0.4582.46 ±\pm 0.2193.72 ±\pm 0.2962.97 ±\pm 1.1077.61 ±\pm 0.12
12876.55 ±\pm 0.6071.86 ±\pm 0.3097.68 ±\pm 0.2968.01 ±\pm 0.1584.17 ±\pm 0.2955.86 ±\pm 0.5193.04 ±\pm 0.3383.47 ±\pm 0.1494.36 ±\pm 0.2564.86 ±\pm 1.4778.99 ±\pm 0.17
25680.63 ±\pm 0.6472.80 ±\pm 0.4797.23 ±\pm 0.3668.37 ±\pm 0.18<u>84.93</u> ±\pm 0.4956.76 ±\pm 0.0593.27 ±\pm 0.4784.32 ±\pm 0.24<u>94.97</u> ±\pm 0.2465.89 ±\pm 0.48<u>79.92</u> ±\pm 0.08
51281.71 ±\pm 0.49<u>72.75</u> ±\pm 0.2997.52 ±\pm 0.1968.80 ±\pm 0.2884.90 ±\pm 0.22<u>57.23</u> ±\pm 0.23<u>93.09</u> ±\pm 0.4684.37 ±\pm 0.1695.25 ±\pm 0.2765.52 ±\pm 0.6880.12 ±\pm 0.11

Table 6. Frozen KNN annotation accuracy (%), mean ±\pm SD over five splits (full version of Table 1).

ModelInputBudgetMSMyel.Panc.LupusDeng.irCol.Lepto.Myas.Scan.scF.Avg
scBenchmarkUniform51287.18±0.5287.18 \pm0.5269.74±0.4469.74 \pm0.4496.07±0.2096.07 \pm0.2076.67±0.1976.67 \pm0.1982.44±0.4582.44 \pm0.4552.29±0.7052.29 \pm0.7066.47±0.5866.47 \pm0.5881.96±0.2481.96 \pm0.2492.98±0.3692.98 \pm0.3667.31±1.5067.31 \pm1.5077.31±0.2477.31 \pm0.24
scBenchmarkWeighted87.09±0.5687.09 \pm0.5670.58±0.5570.58 \pm0.5596.74±0.1896.74 \pm0.1876.67±0.1976.67 \pm0.1984.70±0.5284.70 \pm0.5256.16±0.4756.16 \pm0.4791.63±0.3891.63 \pm0.3885.00±0.3185.00 \pm0.3194.60±0.4094.60 \pm0.4067.55±1.5367.55 \pm1.5381.07±0.2681.07 \pm0.26
CoCoSUniform51286.12±0.4786.12 \pm0.4768.28±0.6168.28 \pm0.6195.00±0.1595.00 \pm0.1578.03±0.1578.03 \pm0.1583.63±0.4883.63 \pm0.4853.02±0.5153.02 \pm0.5168.96±0.4568.96 \pm0.4581.96±0.2881.96 \pm0.2892.40±0.4592.40 \pm0.4569.38±1.0269.38 \pm1.0277.68±0.1577.68 \pm0.15
CoCoSWeighted86.10±0.4186.10 \pm0.4168.65±0.7568.65 \pm0.7595.45±0.2395.45 \pm0.2378.03±0.1578.03 \pm0.1585.53±0.5285.53 \pm0.5256.22±0.3056.22 \pm0.3091.13±0.1891.13 \pm0.1884.82±0.2284.82 \pm0.2294.27±0.1794.27 \pm0.1769.29±0.9269.29 \pm0.9280.95±0.1180.95 \pm0.11
scGPTUniform51281.71±0.1681.71 \pm0.1670.28±0.4770.28 \pm0.4793.78±0.2093.78 \pm0.2076.66±0.1276.66 \pm0.1283.80±0.5083.80 \pm0.5052.39±0.5652.39 \pm0.5656.43±0.4856.43 \pm0.4881.92±0.3081.92 \pm0.3092.38±0.2992.38 \pm0.2968.52±1.1768.52 \pm1.1775.79±0.1575.79 \pm0.15
scGPTWeighted81.55±0.2181.55 \pm0.2171.24±0.5671.24 \pm0.5694.39±0.1394.39 \pm0.1376.66±0.1276.66 \pm0.1286.13±0.5486.13 \pm0.5457.33±0.5257.33 \pm0.5290.46±0.3590.46 \pm0.3585.60±0.2485.60 \pm0.2495.23±0.2395.23 \pm0.2368.52±1.1168.52 \pm1.1180.71±0.1280.71 \pm0.12
Geneformer V2Uniform51280.81±0.5180.81 \pm0.5165.90±0.6365.90 \pm0.6392.87±0.2792.87 \pm0.2780.02±0.2280.02 \pm0.2280.30±0.4080.30 \pm0.4050.72±0.5950.72 \pm0.5950.32±0.8150.32 \pm0.8179.95±0.4479.95 \pm0.4490.92±0.4190.92 \pm0.4163.79±1.1763.79 \pm1.1773.56±0.2173.56 \pm0.21
Geneformer V2Weighted81.29±0.3881.29 \pm0.3867.03±0.8167.03 \pm0.8194.00±0.2294.00 \pm0.2280.02±0.2280.02 \pm0.2281.65±0.6181.65 \pm0.6154.04±0.6354.04 \pm0.6383.12±0.6983.12 \pm0.6982.65±0.3182.65 \pm0.3193.98±0.3093.98 \pm0.3064.16±1.1564.16 \pm1.1578.19±0.1878.19 \pm0.18
scTATTAT6478.76±0.4678.76 \pm0.4669.47±0.7469.47 \pm0.7497.54±0.2097.54 \pm0.2076.64±0.2776.64 \pm0.2783.00±0.5083.00 \pm0.5054.20±0.5754.20 \pm0.5792.50±0.3292.50 \pm0.3283.94±0.3383.94 \pm0.3394.23±0.2794.23 \pm0.2766.93±0.7566.93 \pm0.7579.72±0.1279.72 \pm0.12
scTATTAT12881.67±0.5581.67 \pm0.5570.82±0.4170.82 \pm0.4197.33±0.2897.33 \pm0.2877.08±0.1577.08 \pm0.1584.07±0.4284.07 \pm0.4254.54±0.6654.54 \pm0.6692.87±0.1692.87 \pm0.1684.77±0.2984.77 \pm0.2994.62±0.2194.62 \pm0.2167.50±0.9767.50 \pm0.9780.53±0.1980.53 \pm0.19
scTATTAT25685.13±0.4585.13 \pm0.4571.56±0.2471.56 \pm0.2496.96±0.3896.96 \pm0.3877.59±0.3277.59 \pm0.3284.43±0.5184.43 \pm0.5154.84±0.7454.84 \pm0.7493.07±0.2693.07 \pm0.2685.25±0.3385.25 \pm0.3394.93±0.3394.93 \pm0.3368.37±1.4568.37 \pm1.4581.21±0.2881.21 \pm0.28
scTATTAT51285.74±0.3285.74 \pm0.3271.31±0.2471.31 \pm0.2497.43±0.2897.43 \pm0.2878.11±0.2078.11 \pm0.2084.18±0.3984.18 \pm0.3955.28±0.5655.28 \pm0.5693.25±0.4193.25 \pm0.4185.26±0.1885.26 \pm0.1895.28±0.3495.28 \pm0.3468.65±1.1368.65 \pm1.1381.45±0.1681.45 \pm0.16

Table 7. Frozen linear-probe annotation accuracy (%), mean ± SD over five splits (full version of Table 2).

ModelInputBudgetMSMyel.Panc.LupusDeng.irCol.Lepto.Myas.Scan.scF.Avg
scBenchmarkUniform51287.1869.7496.0776.6782.4452.2966.4781.9692.9867.3177.31
Weighted<u>87.09</u>70.5896.7476.6784.7056.1691.6385.0094.6067.5581.07
CoCoSUniform51286.1268.2895.0078.0383.6353.0268.9681.9692.4069.3877.68
Weighted86.1068.6595.4578.0385.53<u>56.22</u>91.1384.8294.27<u>69.29</u>80.95
scGPTUniform51281.7170.2893.7876.6683.8052.3956.4381.9292.3868.5275.79
Weighted81.5571.2494.3976.6686.1357.3390.4685.60<u>95.23</u>68.5280.71
Geneformer V2Uniform51280.8165.9092.8780.0280.3050.7250.3279.9590.9263.7973.56
Weighted81.2967.0394.0080.0281.6554.0483.1282.6593.9864.1678.19
scTATTAT6478.7669.4797.5476.6483.0054.2092.5083.9494.2366.9379.72
12881.6770.8297.3377.0884.0754.5492.8784.7794.6267.5080.53
25685.13<u>71.56</u>96.9677.5984.4354.84<u>93.07</u>85.2594.9368.37<u>81.21</u>
51285.74<u>71.31</u><u>97.43</u><u>78.11</u>84.1855.2893.25<u>85.26</u>95.2868.6581.45

Table 2. Frozen linear-probe annotation accuracy (%); settings as in Table 1.

ModelInputBudgetMSMyel.Panc.LupusDeng.irCol.Lepto.Myas.Scan.scF.Avg
scBenchmarkUniform512<u>85.47</u>70.3596.5664.9382.9953.2759.5480.7892.3464.4675.07
Weighted85.6171.7097.0064.9385.1559.1690.8184.3394.8064.8179.83
CoCoSUniform51281.9166.6992.6172.5582.6852.4861.4780.6390.40<u>66.48</u>74.79
Weighted82.1567.7793.0472.5584.5356.1889.3783.6593.3466.8378.94
scGPTUniform51275.4267.6691.9666.4981.0549.3044.6778.3490.3062.9970.82
Weighted75.4668.8292.7166.4984.2355.5187.1383.4193.7163.3977.09
Geneformer V2Uniform51270.7162.9089.49<u>71.98</u>76.9846.5844.3774.3179.6659.4067.64
Weighted71.2865.3590.16<u>71.98</u>78.8250.9172.3778.2887.1260.7672.70
scTATTAT6471.8969.56<u>97.57</u>66.9683.4955.2292.2382.4693.7262.9777.61
12876.5571.8697.6868.0184.1755.8693.0483.4794.3664.8678.99
25680.6372.8097.2368.37<u>84.93</u>56.7693.2784.32<u>94.97</u>65.89<u>79.92</u>
51281.71<u>72.75</u>97.5268.8084.90<u>57.23</u><u>93.09</u>84.3795.2565.5280.12

Table 1. Frozen KNN annotation accuracy (%), averaged over five splits. Bold and <u>underlined</u> values are the best and second-best mean in each column.

Gene-Network Evaluation Details

Input and scoring. Following the Han hESC workflow of scPRINT (Kalfon et al., [13]), all models start from the same panel: the first 1,024 Han hESC cells and 5,000 highly variable genes. Each model keeps its native tokenizer, preprocessing, and vocabulary filtering, which leaves 4,984–5,000 scorable genes. BenGRN 1.2.4 scores all candidate edges against the Full, ChIP, and KO references (22, 41, and 112–113 transcription factors), and we report trapezoidal AUPRC without a held-out edge split or label-based head selection. The random baseline is the positive-edge prevalence of each reference, which varies by less than 0.001 across models; Table 5 reports its mean.

Models and extraction. GENEI3 is fitted on the expression panel; all pretrained encoders are frozen. scGPT (Cui et al., [7]) uses its whole-human checkpoint and the reference workflow’s last-layer, eight-head mean. Geneformer (Theodoris et al., [26]) uses the 12L–30M checkpoint with its native ranked input and the mean over all layers and heads. scPRINT uses the arithmetic mean of its 128 heads. scTAT (the main 512-token model) averages its 48 heads and pools gene-level query/key representations from its native input, with zero scores for genes it does not cover. Query–key scores are transposed once to the scorer’s source–target orientation.

Perturbation Evaluation Details

Shared data and splits. We follow the Norman_1 workflow in PertEval-scFM (Wenteler et al., [31]), starting from its original Norman raw-data source. After eligibility filtering, the task contains 11,855 control cells, 56,147 treated cells, 101 perturbation conditions, and 2,060 target genes. Eligibility requires usable controls expressing the perturbed gene. One condition without such controls is excluded under the upstream rule. All methods in Table 5(b) use the same 101 retained conditions, 2,060 target genes, test cells, saved SPECTRA splits, and control-pooling draws. Gene identities are resolved without summing duplicate-symbol counts; encoder-input name mapping preserves the original target columns and perturbation labels. We use the official split generator.

Control-derived features. For pretrained models, basal features average embeddings over shared draws of control cells. A condition feature averages embeddings of eligible controls after removing or nullifying the perturbed gene. The predictor receives the concatenated basal and condition features. Observed treated expression supplies supervised targets and SPECTRA split construction, but never encoder features.

scTAT uses frozen, unnormalized CLS embeddings from the main 512-token model, which also tokenizes its inputs. Its benchmark adapter normalizes and log-transforms control expression before nullifying the target gene. Geneformer uses the six-layer, 256-dimensional 6L–30M checkpoint specified by PertEval-scFM, whereas annotation uses its V2 checkpoint. It tokenizes raw controls by median-normalized rank, removes the target gene, and averages the non-padding final-layer embeddings. The scFoundation model ([10]) uses its native single-cell adapter with the target count zeroed before normalization, and concatenates its two special-token readouts with maximum and mean gene embeddings. scGPT uses the whole-human checkpoint, native positive-gene binning and sampling, and per-cell L2-normalized CLS embeddings before control pooling. No additional L2 normalization is applied after pooling. Each model thus uses its own adapter and readout.

The raw-expression MLP uses control-derived expression pseudo-bulks and condition features given by the perturbed gene’s Pearson correlations with target genes, following the upstream reference. “Raw-expression” here denotes the absence of a pretrained encoder, not unprocessed sequencing counts. The Mean baseline preserves the upstream batch-dependent rule: it predicts each test batch’s mean basal expression minus the corresponding basal vector, with no learned predictor.

Targets, fitting, and scoring. Normalization, target-gene selection, and SPECTRA split construction follow the upstream transductive preparation using all retained data. Targets measure expression changes in normalized/log space, retaining the upstream subset-local basal subtraction. Test conditions are held out from predictor fitting, while validation cells are drawn from training conditions. MLPs share the predictor recipe, with widths adapted to the representation dimension, and are selected by validation MSE before one final test evaluation.

Test MSE weights all retained cell–gene elements equally. Table 5(b) reports means and sample standard deviations across three paired split/predictor repetitions with fixed encoder weights. Each integrated score is computed within a repetition by trapezoidal integration over the stated ϵ\epsilon interval and is not normalized by interval length.

Additional tasks. Table 8 extends the comparison to the Norman double-gene, Replogle K562, and Replogle RPE1 tasks of PertEval-scFM, using the same features and predictor for scTAT. scTAT is comparable to the other pretrained encoders on all three.

ModelNorman doubleReplogle K562Replogle RPE1
Mean4.26±0.074.26 \pm0.0713.86±0.7613.86 \pm0.7613.41±0.3513.41 \pm0.35
Raw-expr. MLP4.25±0.074.25 \pm0.0714.20±0.7714.20 \pm0.7712.52±0.2412.52 \pm0.24
Geneformer4.50±0.084.50 \pm0.0814.75±0.5614.75 \pm0.5612.51±0.2312.51 \pm0.23
scBERT4.53±0.084.53 \pm0.0812.28±0.1612.28 \pm0.1612.58±0.2712.58 \pm0.27
scFoundation4.43±0.474.43 \pm0.4715.56±1.1315.56 \pm1.1312.53±0.2312.53 \pm0.23
scGPT5.18±0.135.18 \pm0.1313.84±0.8013.84 \pm0.8012.53±0.2312.53 \pm0.23
UCE4.44±0.084.44 \pm0.0813.84±0.8013.84 \pm0.8012.53±0.2412.53 \pm0.24
scTAT4.41±0.404.41 \pm0.4013.84±0.5513.84 \pm0.5512.55±0.0212.55 \pm0.02

Table 8. Additional PertEval-scFM tasks: area under the test-MSE curve (×10−2\times10^{-2}, lower is better) over s∈[0,0.7]s \in[0, 0.7] for Norman and s∈[0.1,0.7]s \in[0.1, 0.7] for Replogle. Baseline values are as reported in PertEval-scFM ([31]); scTAT is evaluated here (mean ±\pm SD over three repetitions).

Vocabulary Construction and Settings

Occurrence costs. Let NN be the number of discovery cells, G=∣G∣G = \lvert G\rvert, ngn_g the number of cells in which gene gg is active, and nSn_S the number in which every member of SS is active. For the fixed positive pseudocount κ\kappa, the score uses

p~g=ng+κN+2κ,p~S=nS+κN+2κ,ℓg=−log⁡2p~g,ℓS=−log⁡2p~S.(6)\tilde{p}_g = \frac{n_g+\kappa}{N+2\kappa}, \qquad\tilde{p}_S = \frac{n_S+\kappa}{N+2\kappa}, \qquad\ell_g=-\log_2\tilde{p}_g,\quad\ell_S=-\log_2\tilde{p}_S. \tag*{(6)}

These are smoothed probabilities of separate presence events (κ=0.5\kappa= 0.5), held fixed during search and not normalized across genes or entries. Let BsizeB_{\mathrm{size}} be the number of size codes in the fixed multi-gene cardinality codebook. The description penalty is

Ldesc(S)=log⁡2Bsize+log⁡2(G∣S∣).(7)L_{\mathrm{desc}}(S)=\log_2 B_{\mathrm{size}}+\log_2\binom{G}{\lvert S\rvert}. \tag*{(7)}

It charges for entry size and its unordered member set. This comparison follows description-length pattern selection (Vreeken et al., [29]) and is applied to each candidate separately.

Expression and prior penalties. For each supporting cell, define pig=xig/∑h∈Sxihp_{ig}=x_{ig}/\sum_{h\in S}x_{ih} for g∈Sg\in S, and pˉS=nS−1∑i∈ISpi\bar{p}_S=n_S^{-1}\sum_{i\in I_S}p_i. The expression penalty is

D(S)=1nS∑i∈ISJSD⁡2(pi,pˉS),JSD⁡2(p,q)=12KL⁡2(p∥m)+12KL⁡2(q∥m),m=12(p+q).(8)D(S)=\frac{1}{n_S}\sum_{i\in I_S}\operatorname{JSD}_2(p_i,\bar{p}_S),\qquad\operatorname{JSD}_2(p,q)=\frac{1}{2}\operatorname{KL}_2(p\Vert m)+\frac{1}{2}\operatorname{KL}_2(q\Vert m),\qquad m=\frac{1}{2}(p+q). \tag*{(8)}

For a maximum spanning tree TST_S of the prior subgraph on SS, let

H(S)=1∣S∣−1∑(g,h)∈TSwgh,R(S)=D(S)+1−H(S)2.(9)H(S)=\frac{1}{\lvert S\rvert-1}\sum_{(g,h)\in T_S}w_{gh},\qquad R(S)=D(S)+\frac{1-H(S)}{2}. \tag*{(9)}

Base-two Jensen–Shannon divergence lies in [0,1][0,1], and cosine edge weights lie in [−1,1][-1,1]. The two penalty components thus have the same bounded range and are added with unit coefficients before multiplication by support. This scaling defines the admission heuristic.

Search procedure. Algorithm 1 gives the offline search with the admission score FF of Equation (1), minimum support τ\tau in each of two disjoint discovery subsets, and maximum set size mmax⁡m_{\max}. Ties are broken by set size, graph coherence, and then a fixed lexicographic order. An upper bound obtained by omitting the nonnegative expression and prior penalties prunes extensions without changing the selected increment. Because the same observation may support several overlapping entries, the scores of different entries are not additive. The vocabulary is frozen before encoder training.

Algorithm 1: Vocabulary construction (offline)

Input: graph neighbors N(a)\mathcal{N}(a); discovery subsets D1,D2D_1,D_2; support τ\tau; maximum size mmax⁡m_{\max}

  1. C←∅\mathcal{C}\leftarrow\varnothing

  2. for each anchor gene a∈Ga\in G do

  3. S←{a}S\leftarrow\{a\}; f←0f\leftarrow0

  4. while ∣S∣<mmax⁡\lvert S\rvert<m_{\max} do

  5. E←{S∪{g}:g∈N(a)∖S}\mathcal{E}\leftarrow\{S\cup\{g\}:g\in\mathcal{N}(a)\setminus S\}, keeping sets active in at least τ\tau cells of both D1D_1 and D2D_2

  6. if E=∅\mathcal{E}=\varnothing or max⁡S′∈EF(S′)≤f\max_{S'\in\mathcal{E}}F(S')\le f then break

  7. S←arg⁡max⁡S′∈EF(S′)S\leftarrow\arg\max_{S'\in\mathcal{E}}F(S')

  8. f←F(S)f\leftarrow F(S); C←C∪{S}\mathcal{C}\leftarrow\mathcal{C}\cup\{S\}

  9. Drop duplicates and strict subsets with the same supporting cells

  10. return V=C∪{{g}:g∈G}\mathcal{V}=\mathcal{C}\cup\{\{g\}:g\in G\}

Control vocabularies. The w/o MDL vocabulary (Table 4b) keeps the graph and the support requirement but drops the admission score. Each candidate grows from an anchor gene by adding its most similar graph neighbors while the set remains co-detected in at least 50 cells in each of the two discovery subsets; for each set size, we keep, where available, as many of the most graph-coherent candidates as the main vocabulary contains. Only 2,031 two-gene sets could not be matched, giving 77,505 gene sets against 79,536. The two vocabularies thus share the graph, the support requirement, and nearly the same size distribution, and differ only in whether the admission score decides which sets are kept. The w/o gene content vocabulary permutes gene labels within 32 detection-frequency strata, preserving the number, sizes, and overlaps of entries while discarding their gene content. Both controls are pretrained at 512 tokens, w/o MDL with the scTAT tokenizer and w/o gene content with Expression-first selection.

Settings. Table 9 lists the settings of the vocabulary and of the main scTAT models; the control vocabularies reuse the pretraining settings.

References

  1. [1]M. Bahrami, A. Tejada-Lapuerta, S. Becker, F. S. Hashemi G., and F. J. Theis. scConcept: Contrastive pretraining for technology-agnostic single-cell representations beyond reconstruction. bioRxiv preprint, 2025. doi:10.1101/2025.10.14.682419.DOI
  2. [2]S. Balu, S. Huget, J. J. Medina Reyes, et al. Complex portal 2025: predicted human complexes and enhanced visualisation tools for the comparison of orthologous and paralogous complexes. Nucleic Acids Research, 53(D1):D644–D650, 2025. doi:10.1093/nar/gkae1085. Data and evidence documentation accessed September 13, 2026, at https://www.ebi.ac.uk/complexportal/documentation.DOI
  3. [3]H. Bian, Y. Chen, X. Dong, C. Li, M. Hao, S. Chen, J. Hu, M. Sun, L. Wei, and X. Zhang. scMulan: A Multitask Generative Pre-Trained Language Model for Single-Cell Analysis. Research in Computational Molecular Biology, LNCS 14758, pp. 479–482, 2024. doi:10.1007/978-1-0716-3989-4_57.DOI
  4. [4]D. Bolya, C.-Y. Fu, X. Dai, P. Zhang, C. Feichtenhofer, and J. Hoffman. Token Merging: Your ViT But Faster. International Conference on Learning Representations, 2023. https://arxiv.org/abs/2210.09461.
  5. [5]J. Chen, H. Xu, W. Tao, et al. Transformer for one stop interpretable cell type annotation. Nature Communications, 14:223, 2023. doi:10.1038/s41467-023-35923-4.DOI
  6. [6]K. Choromanski, V. Likhosherstov, D. Dohan, et al. Rethinking Attention with Performers. International Conference on Learning Representations, 2021. https://arxiv.org/abs/2009.14794.
  7. [7]H. Cui, C. Wang, H. Maan, K. Pang, F. Luo, N. Duan, and B. Wang. scGPT: toward building a foundation model for single-cell multi-omics using generative AI. Nature Methods, 21:1470–1480, 2024. doi:10.1038/s41592-024-02201-0.DOI
  8. [8]M. Dong, A. Adduri, D. Gautam, et al. Stack: In-Context Learning of Single-Cell Biology. bioRxiv preprint, version 1, 2026. doi:10.64898/2026.01.09.698608.DOI
  9. [9]J. Gong, M. Hao, X. Cheng, X. Zeng, C. Liu, J. Ma, X. Zhang, T. Wang, and L. Song. xTrimoGene: An Efficient and Scalable Representation Learner for Single-Cell RNA-Seq Data. Advances in Neural Information Processing Systems, 36, 2023.arxiv.org/abs/2311.15156
  10. [10]M. Hao, J. Gong, X. Zeng, et al. Large-scale foundation model on single-cell transcriptomics. Nature Methods, 21:1481–1491, 2024. doi:10.1038/s41592-024-02305-7.DOI
  11. [11]V. A. Huynh-Thu, A. Irrthum, L. Wehenkel, and P. Geurts. Inferring regulatory networks from expression data using tree-based methods. PLOS ONE, 5(9):e12776, 2010. doi:10.1371/journal.pone.0012776.
  12. [13]J. Kalfon, J. Samaran, G. Peyré, and L. Cantini. scPRINT: pre-training on 50 million cells allows robust gene network predictions. Nature Communications, 16:3607, 2025. doi:10.1038/s41467-025-58699-1.DOI
  13. [14]W. Long, H. Su, J. Xiong, and Y. Zhang. MutBERT: probabilistic genome representation improves genomics foundation models. Bioinformatics, 41(Supplement 1):i294–i303, 2025. doi:10.1093/bioinformatics/btaf229.DOI
  14. [15]M. Milacic, D. Beavers, P. Conley, et al. The Reactome Pathway Knowledgebase 2024. Nucleic Acids Research, 52(D1):D672–D678, 2024. doi:10.1093/nar/gkad1025. Pathway data accessed September 13, 2026, at https://reactome.org/download/current/.DOI
  15. [16]A. Ohkubo, L. Van Haute, D. L. Rudler, et al. The FASTK family proteins fine-tune mitochondrial RNA processing. PLOS Genetics, 17(11):e1009873, 2021. doi:10.1371/journal.pgen.1009873.DOI
  16. [17]R. Oughtred, J. Rust, C. Chang, et al. The BioGRID database: A comprehensive biomedical resource of curated protein, genetic, and chemical interactions. Protein Science, 30(1):187–200, 2021. doi:10.1002/pro.3978. Release 5.0.261 accessed September 13, 2026, at https://downloads.thebiogrid.org/BioGRID/Release-Archive/BIOGRID-5.0.261/.DOI
  17. [19]Y. Rao, W. Zhao, B. Liu, J. Lu, J. Zhou, and C.-J. Hsieh. DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsification. Advances in Neural Information Processing Systems, 2021. https://arxiv.org/abs/2106.02034.
  18. [20]J. Rissanen. Modeling by shortest data description. Automatica, 14(5):465–471, 1978. doi:10.1016/0005-1098(78)90005-5.DOI
  19. [21]Y. Roohani, K. Huang, and J. Leskovec. Predicting transcriptional outcomes of novel multigene perturbations with GEARS. Nature Biotechnology, 42:927–935, 2024. doi:10.1038/s41587-023-01905-6.DOI
  20. [22]Y. Rosen, Y. Roohani, A. Agrawal, L. Samotorcan, Tabula Sapiens Consortium, S. R. Quake, and J. Leskovec. Universal cell embedding provides a foundation model for cell biology. Nature, 656:183–191, 2026. doi:10.1038/s41586-026-10689-z.DOI
  21. [23]W. M. Schneider, M. D. Chevillotte, and C. M. Rice. Interferon-stimulated genes: a complex web of host defenses. Annual Review of Immunology, 32:513–545, 2014. doi:10.1146/annurev-immunol-032713-120231.DOI
  22. [24]H. Shen, J. Liu, J. Hu, et al. Generative pretraining from large-scale transcriptomes for single-cell deciphering. iScience, 26(5):106536, 2023. doi:10.1016/j.isci.2023.106536.DOI
  23. [26]C. V. Theodoris, L. Xiao, A. Chopra, et al. Transfer learning enables predictions in network biology. Nature, 618:616–624, 2023. doi:10.1038/s41586-023-06139-9.DOI
  24. [27]I. Tirosh, B. Izar, S. M. Prakadan, et al. Dissecting the multicellular ecosystem of metastatic melanoma by single-cell RNA-seq. Science, 352(6282):189–196, 2016. doi:10.1126/science.aad0501.DOI
  25. [28]A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin. Attention is all you need. Advances in Neural Information Processing Systems, 30, 2017. https://arxiv.org/abs/1706.03762.
  26. [29]J. Vreeken, M. van Leeuwen, and A. Siebes. Krimp: mining itemsets that compress. Data Mining and Knowledge Discovery, 23:169–214, 2011. doi:10.1007/s10618-010-0202-x.DOI
  27. [30]H. Wen, W. Tang, X. Dai, J. Ding, W. Jin, Y. Xie, and J. Tang. CellPLM: Pre-training of Cell Language Model Beyond Single Cells. International Conference on Learning Representations, 2024.DOI
  28. [31]A. Wenteler, M. Occhetta, N. Branson, et al. PertEval-scFM: Benchmarking Single-Cell Foundation Models for Perturbation Effect Prediction. Proceedings of the 42nd International Conference on Machine Learning, 267:66633–66677, 2025. https://proceedings.mlr.press/v267/wenteler25a.html.DOI
  29. [32]J. Xiong, N. Yin, S. Liang, H. Li, Y. Wang, D. Ai, and J. Wang. Cross-attention graph neural networks for inferring gene regulatory networks with skewed degree distribution. BMC Bioinformatics, 26:179, 2025. doi:10.1186/s12859-025-06186-1.DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type