arXiv:2611.02335cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02335

Attribution-based diagnostics for single-cell foundation models

Farnoush Rezaei Jafari, Tristan Lazard, Kenza Bouzid, Shruthi Bannur, Jeremiah Wander, Ashley Mae Conard, Stephanie Hyland, Lorin Crawford, Daniel Coelho de Castro

Farnoush Rezaei Jafari* Technical University of Berlin BIFOLD†

Tristan Lazard Microsoft Research

Kenza Bouzid Microsoft Research

Shruthi Bannur Microsoft Research

Jeremiah Wander Microsoft Research

Ashley Mae Conard Microsoft Research

Stephanie Hyland Microsoft Research

Lorin Crawford Microsoft Research

Daniel Coelho de Castro‡ Microsoft Research

ABSTRACT

Single-cell RNA foundation models (scFMs) are increasingly used for in-silico biological discovery, yet predictive performance alone does not reveal whether their decisions rely on biologically meaningful signals or model-specific shortcuts. We systematically investigate post-hoc attribution of downstream predictions across two tasks: cell-type annotation using pretrained Cell2Sentence and scGPT models, and perturbation prediction using scGPT+STATE in a controlled setting. For cell annotation, we use attribution to assess whether predictions rely on established marker genes and how their relevance varies with model architecture, expression rank, and the surrounding cellular context. For perturbation prediction, we compare attribution patterns with known regulatory ground-truth in a synthetic setting to assess what they reveal about the model's learned computations. Across these tasks, attribution reveals biological feature use, contextual interactions, contributions from different input pathways, learning progression, associations with prediction quality, and potential pitfalls that are not fully captured by standard performance metrics. Experiments with complete and limited regulatory knowledge further demonstrate that conclusions drawn from attribution depend strongly on the choice of biological reference, baseline, and null model. Together, these findings highlight the value of attribution as a flexible post-hoc diagnostic for understanding model behavior, identifying potential issues, and informing the development of scFMs.

1 INTRODUCTION

The development of single-cell foundation models (scFMs) is transforming biological research, with the promise of accelerating discovery through in silico experimentation (Jiang et al., 2026). However, extrapolation remains challenging. Generalizing beyond the training distribution requires models to capture biological mechanisms that remain stable across changing conditions rather than relying on spurious correlations (Tejada-Lapuerta et al., 2025). This motivates methods for assessing whether the internal computations underlying scFM predictions are biologically plausible, both to better understand model failures and to evaluate whether successful predictions arise for biologically meaningful reasons (Tejada-Lapuerta et al., 2025; Dimitrov et al., 2026).

Interpretability provides a natural framework for such analysis. Beyond supporting model debugging and trust (Räuker et al., 2023), inspecting learned representations and computations can provide evidence for learned internal models of the underlying domain (Li et al., 2025) and may itself serve

*Work done during an internship at Microsoft Research. †Berlin Institute for the Foundations of Learning and Data, Berlin, Germany. ‡Corresponding author: dacoelh@microsoft.com as a tool for scientific discovery (Freiesleben et al., 2024). Existing interpretability studies of scFMs have primarily analyzed intermediate representation spaces, identifying biological information encoded in cell or gene embeddings (see Section 2). However, the presence of biological information in a representation does not reveal which input features support that information or how it is used by downstream predictors built on top of the representation. A more direct analysis therefore requires linking downstream predictions back to biologically meaningful input features.

In this work, we use attribution-based explainability to assess whether downstream predictors built on scFM representations rely on biologically meaningful signals consistent with established biological knowledge, as illustrated in Fig. 1. We study two common applications of increasing complexity. For cell type annotation, we assess whether predictions rely on established cell-type marker genes beyond confounding factors such as expression rank, and use symbolic explanations to examine how the relevance of marker genes shared by closely related cell subtypes changes in different contextual settings. For perturbation prediction, we assess how closely attribution patterns align with the underlying gene regulatory network, providing a diagnostic of what the model has learned. Because reliable regulatory ground-truth is generally unavailable in real perturbation datasets, we construct a synthetic setting with a fully specified causal regulatory system, enabling direct comparison between model explanations and the mechanisms used to generate the data. Our contributions are threefold:

(1) We provide the first systematic study of post-hoc scFM explainability that focuses on dissecting downstream task predictions rather than only analyzing information encoded in intermediate representations or attention patterns.

(2) We develop attribution-based analyses that connect downstream predictions to established biological knowledge at both the level of individual genes and higher-order contextual interactions (Section 3).

(3) We demonstrate that attribution-based explainability can serve as a practical tool for analyzing gene regulatory structure learned by scFMs, enabling direct evaluation of whether model attributions recover known regulatory relationships in a controlled perturbation setting (Section 4).

References (92)