Abstract
Identifying cell types in single-cell RNA sequencing (scRNA-seq) data is a cornerstone of biological research, yet it remains a significant manual bottleneck. While recent foundation models offer zero-shot annotation capabilities, their predictions often lack local consistency and fail to leverage the inherent geometric structure of the data. We introduce GRIT (Graph-Regularized Logit Refinement), a training-free, inference-time framework that enhances zero-shot cell type annotation by smoothing model predictions over a cell-similarity graph. Evaluated on over 200,000 single cells across 14 datasets, GRIT consistently improves annotation accuracy, with gains of up to 10.03% over baseline models.
Introduction
Cell type annotation is the process of assigning biological identities to individual cells based on their gene expression profiles. Traditional methods rely on expert-driven manual inspection of clusters, which is labor-intensive and difficult to scale. Deep learning-based foundation models, such as LangCell, have emerged as a promising alternative, enabling zero-shot annotation by mapping gene expression to natural language descriptions. However, these models often produce "noisy" predictions, where biologically similar cells are assigned different labels due to a lack of explicit structural constraints—a structure that human experts rely on heavily.
Methodology: The GRIT Framework
GRIT addresses these limitations through a three-stage post-processing framework designed to formalize expert intuition into a mathematical constraint. The process acts as a "plug-in" for any model that produces prediction logits:
- Initial Prediction: A pre-trained foundation model generates initial prediction "logits" (probability-like scores) for each cell.
- Graph Construction: A $k$-nearest neighbor ($k$-NN) graph is constructed based on the dataset's Principal Component Analysis (PCA), representing biological similarities between cells.
- Refinement via Optimization: GRIT solves a graph-regularized optimization problem to find new prediction scores $P$ that minimize a cost function balancing fidelity to the original model and smoothness across the graph. This results in a convex quadratic problem with an efficient closed-form solution.
Experimental Evaluation
The performance of GRIT was evaluated on a massive scale using the Tabula Sapiens dataset, comprising 11 organ-specific human datasets (including Heart, Liver, Kidney, and Muscle) with 76 cell types and over 171,000 cells. Additional benchmarks included peripheral blood mononuclear cell (PBMC) and peripheral cortex datasets, totaling over 200,000 single cells across 14 annotated datasets.
Results and Discussion
GRIT achieved consistent performance improvements across all tested datasets. Notably, the method yielded accuracy gains of up to 10.03% in the Muscle dataset and significantly improved Macro F1 scores, indicating better performance on rare cell types.
Beyond quantitative metrics, UMAP visualizations demonstrate that GRIT effectively eliminates "speckles" of mislabeled cells within uniform clusters, resulting in more biologically plausible annotation maps. The method is highly efficient; even on datasets with over 30,000 cells, the refinement process finishes in roughly 10–16 minutes on standard hardware without requiring GPU-intensive retraining.
Conclusion and Future Work
GRIT provides a robust, training-free tool for enhancing zero-shot cell type annotation. By integrating the geometric structure of scRNA-seq data, it aligns automated predictions with the structural intuition of human experts. Future research will focus on developing adaptive regularization strength ($\lambda$) selection to automatically tune refinement for different levels of data noise and extending the framework to multi-omics data, such as protein levels and chromatin accessibility.
Summary updated