Abstract
Single-cell foundation models (FMs) pretrained on massive unlabeled scRNA-seq data show strong potential in predicting transcriptional responses to unseen genetic perturbations. However, existing approaches insufficiently transfer pretrained knowledge and overlook the imbalance between perturbation-sensitive and insensitive genes, yielding only marginal improvements over nonpretrained baselines. To address these limitations, we introduce PertAdapt, a framework that unlocks FMs to accurately predict genetic perturbation effects via integrating a plug-in perturbation adapter and an adaptive loss. The adapter employs a gene-similarity-masked attention mechanism to jointly encode perturbation conditions and contextualized representations of unperturbed cells, enabling more effective knowledge transfer. To better capture differential expression patterns, the adaptive loss dynamically reweights perturbation-sensitive genes relative to global transcriptomic signals. Extensive experiments across seven perturbation datasets, including both single- and double-gene settings, demonstrate that PertAdapt consistently outperforms non-pretrained and FM baselines. Moreover, PertAdapt demonstrates strong capacity for modeling multiplexed gene interactions, generalizing in limited-data regimes, and maintaining robustness across backbone sizes.
Introduction
Predicting how a cell’s gene expression shifts after a genetic perturbation—such as a CRISPR knockout—is a central goal in computational biology. While large-scale single-cell RNA sequencing (scRNA-seq) datasets are increasingly available, experimental screens like Perturb-seq remain expensive and cannot scale to the millions of possible multi-gene combinations.
Recently, Single-Cell Foundation Models (FMs) have emerged as a promising solution. However, they face two major hurdles:
- Inefficient Knowledge Transfer: Standard fine-tuning often fails to leverage the deep biological patterns learned during pretraining.
- The Signal-to-Noise Problem: In a typical cell, only a tiny fraction of the ~20,000 genes respond significantly to a specific perturbation. Standard training treats all genes equally, allowing the signal from these few "differentially expressed" (DE) genes to be drowned out by the thousands of stagnant background genes.
Methods
PertAdapt addresses these challenges by introducing a framework that plugs into existing frozen FMs (e.g., scFoundation). It consists of two primary architectural innovations: a condition-sensitive adapter and an adaptive loss function.
Condition-Sensitive Adapter
Instead of a simple linear output layer, PertAdapt utilizes a "plug-in" adapter with a gene-similarity-masked attention mechanism. This mask is constructed using Gene Ontology (GO) data, forcing the model to prioritize interactions between genes known to share biological functions. This provides a strong inductive bias that mirrors real biological pathways, facilitating more efficient knowledge transfer from the pretrained backbone.
Adaptive Loss Function
To solve the gene imbalance problem, PertAdapt employs an adaptive loss function that dynamically reweights genes during training. It calculates the error for all genes ($\mathcal{L}_{all}$) and specifically for the top $k$ differentially expressed genes ($\mathcal{L}_{DE}$). Using a "stop-gradient" weighting strategy, the model automatically shifts its focus toward the genes that are actually responding to the perturbation.
Results
PertAdapt was evaluated across seven diverse perturbation datasets, including the Norman dataset (combinatorial perturbations) and large-scale screens like Replogle and Nadig.
- State-of-the-Art Performance: PertAdapt consistently outperformed specialized models like GEARS and native FM fine-tuning. On the Norman dataset, PertAdapt reduced the Mean Squared Error (MSE) by 42.6% compared to standard scFoundation fine-tuning.
- Superior Generalization: In "Out-of-Distribution" (OOD) tests—predicting effects for genes never seen perturbed during training—PertAdapt showed an ~11% improvement over existing methods.
- Robustness and Efficiency: One notable finding was that PertAdapt allows smaller models (e.g., 3M parameters) to perform nearly as well as much larger ones (100M), suggesting it effectively unlocks the latent knowledge already present in the FM backbones.
- Capturing Complex Interactions: The model excels at predicting non-linear effects like synergy and neomorphism, which are notoriously difficult for simpler linear models.
Conclusion
PertAdapt represents a significant step forward in making single-cell foundation models practical for genetic research. By combining biological priors with a focus on differentially expressed genes, it overcomes the primary limitations of standard fine-tuning. Future work will focus on expanding this framework to include other modalities such as proteomics, epigenetics, and drug-induced perturbations.
Availability: Code and data are available at https://github.com/BaiDing1234/PertAdapt.
Summary updated