NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Spectral Adaptive Repositioning for Flow-Based Single-Cell Perturbation Modeling

Shourya Verma, Mengbo Wang, Simran Kadadi, Nadia Atallah Lanman, Shahin Mohammadi, Ananth GramaNeurIPS 2026

TL;DR

Transformers need a sense of "order" to work, which is great for words in a sentence, but terrible for genes inside a cell, which interact in complex, dynamic webs rather than straight lines. SPEAR solves this by giving genes continuous coordinates derived from their baseline interaction network, and then letting them dynamically shift those positions on the fly when a drug or genetic knockout hits the cell. The result is a generative model that predicts how cells respond to unseen biological interventions—and spontaneously uncovers real gene regulatory wiring along the way.

What Problem Does This Paper Address?

Imagine trying to test every possible combination of drug treatments or genetic knockouts in the lab. Because the number of combinations explodes exponentially, testing them all is physically impossible. We need machine learning models that can observe a few perturbations and accurately predict how a cell’s gene expression (its transcriptome) will respond to brand-new ones.

Recently, researchers have turned to Transformers and generative "flow-matching" models for this task. However, Transformers have an architectural quirk: without positional encodings, they treat all input tokens as an unordered bag, blind to how things relate. Words have a natural 1D sequence, so standard positional encodings work great for text. Genes don't have a meaningful 1D order—their relationships form a non-linear regulatory graph.

Existing biological Transformers either assign arbitrary integer orders to genes or use rigid, static "on-off" attention masks based on which genes co-express in healthy control cells. Neither approach captures a crucial biological reality: when you knock out a major hub gene or add a drug, the cell's internal network rewires itself.

Figure 1: (Left) SPEAR’s positional encoding mechanisms illustrated by G4’s knockout collapsing hub connections and reorganizing the positional structure of remaining genes. (Center) SPEAR maps initial unperturbed cell populations to perturbed cell states under both drug and genetic perturbation conditions via a learned flow. (Right) Evaluation metrics used to assess prediction quality.

Methods

SPEAR (SPEctral Adaptive Repositioning) pairs a standard conditional flow-matching backbone—specifically, a Differential Transformer that learns to transport unperturbed control cell states into perturbed ones—with a novel, two-part rotary positional encoding (RoPE) system:

  • Spectral Co-expression Encoding (SPE): Instead of arbitrary integers, SPEAR builds a co-expression graph from unperturbed training cells and computes the eigenvectors of its graph Laplacian. This gives every gene a continuous, multi-dimensional coordinate grounded in baseline network geometry. Learnable projections turn these coordinates into rotation angles, allowing attention heads to naturally focus on co-expressed gene communities at various scales.
  • Adaptive Repositioning (AR): Because static coordinates can't see how a perturbation breaks or forms new connections, AR computes a dynamic scalar position for each gene at every layer based on its current, perturbation-conditioned hidden state.
How Spectral Co-expression and Adaptive Repositioning combine to guide attention.

At every attention step, SPEAR simply adds the static spectral angle and the dynamic adaptive angle together into a single rotation. To make training trajectories smoother, the authors also introduce a lightweight "curved interpolant" network (discarded at inference) alongside a multi-scale Maximum Mean Discrepancy (MMD) loss to ensure the generated cell populations match the true biological distributions.

Datasets

No new datasets were introduced; the authors evaluated SPEAR on the top 1,000 highly variable genes across three established single-cell benchmarks spanning different perturbation types:

  • Norman: CRISPR-based genetic perturbations (single and double gene overexpressions) in K562 cells, tested on unseen combinations ("additive") and entirely unseen gene targets ("holdout").
  • ComboSciPlex: Chemical/drug combinations, testing pharmacological generalization.
  • Parse-PBMC: Cytokine-driven perturbations across peripheral blood mononuclear cells.

Key Insights and Ideas

  • A Two-Stage Learning Asymmetry: Ablation studies revealed a fascinating division of labor during training. The static spectral coordinates (SPE) do the heavy lifting early on, acting as a structural map that shrinks the optimizer's search space and speeds up convergence. Adaptive repositioning (AR) kicks in later in training, fine-tuning the geometry to account for perturbation-specific rewiring.
  • Unsupervised Discovery of Gene Regulation: Even though SPEAR is never explicitly taught which genes regulate which, the dynamic positions learned by AR reflect real biology. When the authors looked at which genes moved closest to known transcription factors in AR's latent space, SPEAR doubled the precision in recovering true biological targets (from the TRRUST database) compared to dense static co-expression masks, using orders of magnitude fewer edges.
  • Pointwise Error vs. Biological Signal: Using Classifier-Free Guidance (CFG) with a 5% dropout rate slightly worsened raw reconstruction errors (MSE/MAE), because a model can easily game MSE by conservatively predicting average background expression. However, 5% dropout noticeably boosted metrics that actually matter—like identifying the specific perturbation and capturing differentially expressed genes.

Key Results

SPEAR consistently outperformed latent-variable, graph-based, foundation, and flow-matching baselines—particularly on DE-Spearman-LFC, which measures how well a model predicts log-fold changes in the genes that actually change significantly:

  • Norman (Genetic): Achieved state-of-the-art DE-Spearman-LFC across all splits: 0.8119 on single holdouts (vs. 0.6957 for the closest flow-matching competitor, scDFM), 0.7651 on double holdouts (vs. 0.5676), and 0.8665 on additive combinations (vs. 0.5705).
  • ComboSciPlex (Drug): Swept every metric, pushing DE-Spearman-LFC to 0.8962 (vs. 0.8289 for scDFM) and Pearson-$\Delta$ to 0.9259.
  • Parse-PBMC (Cytokine): Led on MSE (0.0036), MAE (0.0258), and DE-Spearman-LFC (0.6777 vs. 0.6071 for STATE).
  • Pathway Recovery: Across perturbations, SPEAR recalled significantly more ground-truth biological pathways than scDFM (Enrichr $p = 0.004$, GSEA $p = 0.008$).

Limitations and Future Work

  • Fixed Vocabulary: Because spectral coordinates are precomputed from the training co-expression graph, SPEAR cannot handle new genes outside its training vocabulary without recomputing the graph.
  • Top-Down Feedback: Adaptive positions are calculated in a single forward pass, meaning earlier layers cannot use feedback from deeper layers to adjust their upstream gene rotations.
  • Scale: It remains an open question whether the spectral prior holds up when scaled from 1,000 highly variable genes to the noisier, full-transcriptome level.
  • Future Directions: The authors highlight extending SPEAR to multi-modal perturbation modeling (beyond just RNA) and predicting perturbed cellular phenotypes within spatial tissue contexts.

Summary updated

BibTeX
@inproceedings{verma2026spectral,
  author = {Shourya Verma and Mengbo Wang and Simran Kadadi and Nadia Atallah Lanman and Shahin Mohammadi and Ananth Grama},
  title = {{Spectral Adaptive Repositioning for Flow-Based Single-Cell Perturbation Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=VsHXKYG0Sq},
}
Figure