Gene-Aware Shrinkage for Small-Sample Differential Expression

Differential expression analysis asks which genes change their activity between two conditions, such as tumor versus normal tissue. With three to ten patients per group, which is common in clinical pilot studies, it is unreliable. The standard tools fit a count model to each gene and stabilize its noisy variance estimate by borrowing from other genes. They choose which genes to borrow from using only one property: how highly each gene is expressed. A transcription factor and a ribosomal protein with the same average read count are treated as interchangeable, even though one is tightly regulated and the other fluctuates freely.

This note proposes replacing that "same average count" assumption with a learned, gene-aware prior. A small model is trained across many large public cohorts. It reads a gene's learned representation (a vector summarizing its coding sequence, codon usage, or known function) and predicts two things: how noisy that gene typically is, and how large its changes typically are. That prediction then becomes the prior inside an otherwise standard count model. The test is not benchmark accuracy. The question is whether gene lists from tiny cohorts more often survive the checks that matter: replication in an independent cohort, agreement with the full-size cohort they were subsampled from, and a targeted laboratory assay aimed at the genes where the methods disagree.

Core Claim

In small-sample differential expression, most errors come from badly estimated per-gene variability and effect size. Much of a gene's variability is a stable property of the gene itself, partly written into its sequence. Codon composition governs mRNA stability and translation kinetics, as Codon language embeddings provide strong signals for use in protein engineering argues, and these vary widely between genes of identical mean expression. A prior that conditions on gene identity should therefore reduce false discoveries and recover more replicable genes at $n \le 10$ per group.

We make a sharper secondary claim, and it is the one that justifies sequence embeddings at all. When a well-measured reference exists, a per-gene lookup of variability from that large cohort may capture most of the gain. Embeddings should add value only where such a lookup is unavailable or stale. Three such settings matter: genes poorly covered in reference data, tissues or diseases absent from it, and non-model organisms whose genes come from fresh assembly. The proposal is built to tell these two claims apart, not to assume the second.

Research Program

The model keeps the negative binomial count model used by DESeq-style tools. Read count $Y_{gj}$ for gene $g$ in sample $j$ has mean $\mu_{gj}$ and dispersion $\alpha_g$, with $\mathrm{Var}(Y) = \mu + \alpha\mu^2$. The log fold change between conditions is $\beta_g$. Standard practice places a prior on $\log\alpha_g$ centered on a smooth function of mean abundance. We add a gene-specific term and a gene-specific effect-size scale:

$$\log \alpha_g \sim \mathcal{N}\big(m(\bar{\mu}_g) + h_\theta(e_g),\ \sigma^2\big), \qquad \beta_g \sim \mathcal{N}\big(0,\ \tau_\phi(e_g)^2\big),$$

The symbols are defined as follows:

  • $\bar{\mu}_g$ is the gene's mean normalized count.
  • $m$ is the usual mean-dispersion trend fitted on the study at hand.
  • $e_g$ is a fixed gene representation.
  • $h_\theta$ and $\tau_\phi$ are small networks pretrained across reference cohorts.
  • $\sigma^2$ is re-estimated per study, so a misleading prior is automatically down-weighted.

Testing proceeds as usual on the posterior, followed by Benjamini-Hochberg false-discovery control.

We compare three sources for $e_g$, because they fail in different ways:

  • Codon-level representation (CaLM). We use the CaLM model from the codon paper above, pooled over each gene's coding sequence. It needs no annotation and therefore does not inherit the literature bias toward well-studied genes that the research file flags.
  • Knowledge-graph representation (OntoProtein). OntoProtein injects Gene Ontology relations into a protein language model. It encodes functional class, for example "transcription factor", which plausibly predicts small but real fold changes. That paper also reports weaker gains on continuous regression targets, which is a direct warning for our dispersion-regression head.
  • Text representation. We embed gene descriptions as in Virtual CRISPR, whose embedding-based classifier predicted wet-lab screen outcomes far better than direct prompting.

The priors are trained on GTEx Release 8 tissues, the 30-tissue resource used by IsoFormer. Per-gene dispersions and between-tissue effect distributions are estimated there at large $n$. Any tissue or disease used for evaluation is held out of training.

This builds on two lines of prior work in different roles.

The closest existing work that combines learned gene representations with differential expression is BADGER. It predicts drug-induced expression rankings for 978 landmark genes from 23,409 LINCS L1000 instances. It replaces testing with prediction, and it operates only at large screening scale. We do the reverse: representations serve only as a prior inside a statistical test that still answers to the observed counts in a small cohort.

Baselines

Naive reference. Log fold change with a two-sample t-test and Benjamini-Hochberg correction. It shows how bad things are without any borrowing across genes.

Strongest existing method. Standard negative-binomial testing with empirical Bayes shrinkage toward the mean-dispersion trend, as in DESeq, the tool used in the Osmanthus fragrans transcriptome study. It is the strongest competitor because it already borrows information across genes and is what essentially every small cohort in the file relies on. We found no reported result on Lacuna for DESeq's replication rate or false-discovery rate under subsampled small-n designs. The baseline numbers will therefore be produced here, on identical subsamples, with the same normalization and the same false-discovery threshold. The only anchor in the file is the Osmanthus study's qRT-PCR concordance with DESeq-based RNA-seq trends, $R^2 = 0.775$ from nine libraries. We will treat matching or exceeding that concordance on re-analysis as a minimum bar, not as a target to beat by a claimed margin.

Reference-lookup ablation. Each gene's log dispersion and effect scale are estimated directly from the GTEx training tissues, with no embedding at all. This isolates the key ingredient. If it matches the embedding prior wherever reference data exist, the embedding is justified only in the reference-poor settings.

Embedding-only ablation. Same as the full model with the study-specific trend $m$ removed, to check that the embedding is not simply re-learning mean abundance.

Shuffled-embedding control. Embeddings permuted across genes, which preserves their marginal distribution but destroys gene identity.

Beating DESeq means a higher fraction of called genes that replicate in an independent cohort at matched false-discovery control. It also means no inflation of the empirical false-discovery rate under null splits. Both must hold across at least two of the three evaluation cohorts and at $n \in \{3, 5, 10\}$ per group. All methods receive the same tuning budget, with prior networks frozen before evaluation.

Why not just…?

Why not just trust the existing empirical Bayes shrinkage? It is the right default, and our model collapses back to it when $\sigma^2$ grows large. Its weakness is structural: two genes with the same mean are given the same prior variance regardless of what they are. The shuffled-embedding control and the comparison against DESeq directly measure whether gene identity carries recoverable information about variability. If it does not, the proposal fails cleanly.

Why not just look up each gene's dispersion in a large reference cohort? This is the real threat, and we expect it to win or tie in well-covered human tissues. That is why it is a first-class ablation rather than a straw man. The embedding prior earns its place only if it beats the lookup in three places: held-out tissues, low-coverage genes, and the non-model-organism setting described below, where no lookup exists. If the lookup wins everywhere, we will report that the useful contribution is "gene-identity priors" and drop the representation-learning claim.

Why not just add stronger downstream selection, such as LASSO or SVM elimination, as the APOC1 and prostate pipelines do? Those steps select among genes the screen already passed. They cannot recover a gene the screen missed, and with $p \gg n$ they overfit cohort artifacts. Indeed, the prostate study's four-gene signature reached only 72% accuracy on 167 samples. We will run the APOC1-style funnel on top of each screen and measure whether the downstream panel replicates better when the upstream screen is gene-aware.

Proposed Experiments

Subsampling with independent replication. We use the multicenter COPD cohorts from MONSTER:

  1. Draw repeated case-control subsamples of 3, 5, and 10 per group from ECLIPSE.
  2. Score calls against differential-expression results from the full COPDGene cohort.

Because COPDGene is collected separately, this tests replication rather than self-consistency. The MONSTER paper warns that individual network edges from these cohorts reproduce with $R^2 < 0.01$. Per-gene marginal effects are a simpler target, but this reminds us to report replication with uncertainty over many subsample draws.

Recovery of full-cohort results. We repeat the subsampling on TCGA-BRCA (503 samples, five subtypes, as used by the invariant causal prediction study) and GSE6919 (167 samples). The score is recovery of each full cohort's own differential-expression calls. Results are stratified by annotation depth to test whether knowledge-graph priors favor well-studied genes, as the file's discussion of biased priors predicts. Null splits that permute labels within one condition give the empirical false-discovery rate.

Reference-free setting. We re-analyze the Osmanthus fragrans data (SRP143423: 136,611 de novo assembled genes, three replicates per stage), where no GTEx-style lookup exists. CaLM embeddings of the assembled coding regions are the only gene-identity signal. The check is concordance with the study's published qRT-PCR on four transcription factors, against the $R^2 = 0.775$ reference. Four genes is too few to be decisive, which motivates the final experiment.

Disagreement-targeted wet-lab validation. This is the decisive check and where the validation gap is addressed directly. In one small cohort, we take the genes on which DESeq and the gene-aware prior disagree:

  1. Called only by our method. These test sensitivity.
  2. Called only by DESeq. These test false discoveries.
  3. Called by both. These serve as controls.

We will assay roughly 20 genes from each group by qRT-PCR in independent biological replicates. Testing disagreements rather than top hits is what turns the laboratory budget into a test of the method instead of a confirmation of shared calls. The proposal succeeds if group 1 validates at a rate close to group 3 and well above group 2, and if the subsampling experiments show higher replication with no false-discovery inflation.