Abstract
Despite the inherent limitations of existing Large Language Models (LLMs) in directly reading and interpreting single-cell omics data, they demonstrate significant potential and flexibility as foundation models. This research introduces scInterpreter, a framework designed to train and adapt LLMs to interpret and distinguish cell types in single-cell RNA sequencing (scRNA-seq) data. Our preliminary results indicate that these foundational models excel in accurately categorizing known cell types, demonstrating the potential of LLMs as effective tools for uncovering new biological insights.
Introduction
Single-cell RNA sequencing (scRNA-seq) provides a high-resolution map of biological processes by revealing gene expression at the individual cell level. However, identifying the specific cell type of a sample—a process known as cell-type annotation—remains a significant challenge. While recent biological foundation models have been trained on massive raw expression datasets, they often lack the rich context found in human-written biological literature. Conversely, general-purpose LLMs like Llama or GPT excel at processing text but cannot directly interpret raw numerical gene expression matrices.
scInterpreter bridges this gap by leveraging the vast biological knowledge embedded in LLMs to act as "interpreters" for complex omics data, significantly outperforming existing methods in categorizing known cell types.
Methodology
The scInterpreter pipeline transforms numerical sequencing data into a format that a frozen LLM can process through three distinct stages:
- Gene-level Embedding Initialization: To provide the model with a semantic understanding of biological functions, the researchers used GPT-3.5 (
text-embedding-ada-002) to generate embeddings for genes based on their descriptive text from the NCBI database. This ensures the model starts with a "biological vocabulary" rather than treating genes as abstract identifiers. - LLMs as the Gene Interpreter: For each cell, the top-2048 expressed genes are selected. Their embeddings are projected through a Multi-Layer Perceptron (MLP) to create a "cell embedding," which is then fed into a frozen Llama-13b model.
- Instruction-Based Annotation: The system uses a prompt-based approach, providing the LLM with a task prompt (e.g., "what is the cell type of this given embedding?") alongside the cell embedding and a special
<class-token>.
By keeping the Llama-13b model frozen and only training the projection layer and classification head, the framework leverages the LLM's pre-existing knowledge of scientific relationships to organize and interpret the data.
Datasets and Evaluation
The framework was evaluated on two primary datasets:
- HUMAN-10k: 10,000 records across 61 cell types, involving over 23,000 genes.
- MOUSE-13k: 13,000 records across 37 cell types, involving over 27,000 genes.
Key Results
The researchers compared scInterpreter against GenePT, a prominent baseline. scInterpreter demonstrated a substantial performance advantage across all evaluated metrics: Accuracy, Precision, Recall, and F1 score.
Beyond numerical metrics, scInterpreter showed superior data organization. Visualizations using UMAP (Uniform Manifold Approximation and Projection) revealed that scInterpreter creates much tighter and more distinct clusters of cell types compared to GenePT. While GenePT's visualizations often showed interspersed cell types, scInterpreter's clusters were clearly separated, indicating high intra-class similarity and effective inter-class divergence.
Discussion and Future Work
The success of scInterpreter highlights that biological text descriptions are a highly effective way to initialize gene representations. The "common knowledge" within Llama-13b—likely acquired from scientific literature during its pre-training—provides a superior supervisory signal for interpreting scRNA-seq matrices.
Future research directions include:
- Scaling and Fine-tuning: Exploring the impact of larger models (e.g., Llama-3, GPT-4) or parameter-efficient fine-tuning techniques like LoRA.
- Expanding Task Scope: Applying the "interpreter" approach to other downstream tasks, such as drug response prediction or gene regulatory network identification.
- Gene Selection Optimization: Investigating how the model handles lowly expressed but biologically significant genes beyond the current top-2048 selection.
Summary updated