How Do Large Language Models Understand Genes and Cells

Chen Fang, Yidong Wang, Yunze Song, Qingqing Long, Wang Lu, Linghui Chen, Guihai Feng, Yuanchun Zhou, Xin Li

TL;DR

This paper evaluates how seven mainstream Large Language Models (LLMs) perform on fundamental biological tasks, ranging from predicting gene functions to identifying cell types. The researchers demonstrate that while general-purpose LLMs possess a surprising "latent" understanding of biology, their performance significantly improves when cell data is represented using a novel "cell sentence plus" format that adds functional context to gene names.

What Problem Does This Paper Address?

In the era of single-cell sequencing, we are drowning in transcriptomic data—essentially lists of which genes are "turned on" in a cell and by how much. While specialized deep learning models exist to analyze this data, they are often computationally expensive and require massive, curated datasets.

Large Language Models (LLMs) have revolutionized natural language processing, but their ability to "speak biology" is less understood. A major hurdle is representation: how do you turn a cell’s complex gene expression profile into a "sentence" that an LLM can understand? Previous attempts simply concatenated the names of the most highly expressed genes, but these "cell sentences" lack the linguistic structure and context that LLMs crave. This paper investigates whether general LLMs can bridge this gap and if better textual representations can unlock their potential in cell biology.

Methods

The authors selected seven generative LLMs (including GPT-2, BioGPT, ChatGLM, BLOOM, Mistral, and Llama-7b/13b) and fine-tuned them using LoRA (Low-Rank Adaptation) on a single A800 GPU.

The core innovation is the "cell sentence plus" method. Instead of just listing gene names (e.g., "MALAT1, EEF1A1..."), they appended a concise functional description (refined by GPT-3.5 to under 10 tokens) to each gene. This transforms a raw list into a descriptive paragraph, making the input more "natural" for the models.

The models were evaluated on three hierarchical levels:

  1. Individual Genes: Predicting traits like dosage sensitivity and chromatin structure.
  2. Gene Pairs: Predicting Gene-Gene Interactions (GGI).
  3. Cells: Performing cell type annotation (classification).

Datasets

The study utilized nine distinct datasets:

  • Gene-level: Six datasets encompassing dosage sensitivity, bivalent chromatin structures, and transcription factor ranges.
  • Gene-pair level: A large-scale Gene-Gene Interaction (GGI) dataset containing over 240,000 training samples.
  • Cell-level: The established Multiple Sclerosis (M.S.) dataset and a newly introduced hEmbryo dataset (human early embryo) produced in the authors' own lab, featuring over 100,000 samples across 61 cell types.

Key Insights and Ideas

  • Scaling Laws Apply to Biology: Larger models generally performed better. Llama-13b emerged as the top overall performer, suggesting that the broader world knowledge captured in larger LLMs aids in understanding specialized biological contexts.
  • Context is the "Secret Sauce": The "cell sentence plus" format significantly boosted performance for models with more than 6 billion parameters. By providing functional descriptions, the researchers allowed the LLMs to "reason" based on biological roles rather than just memorizing gene symbols.
  • Domain Specialization vs. General Power: BioGPT, which was pre-trained specifically on biomedical literature, dominated the Gene-Gene Interaction (GGI) task. However, it struggled with cell annotation because its older architecture couldn't handle the long token sequences required for "cell sentences."
  • Mistral’s Robustness: Mistral 7B showed exceptional performance on challenging edge cases (like identifying specific transcription factors), likely due to its massive pre-training corpus of 8 trillion tokens.

Key Results

  • Gene Identification: Llama-13b achieved the highest accuracy (0.784) across six gene-level tasks.
  • Gene-Gene Interaction: BioGPT was the clear winner with an accuracy of 0.835, outperforming the much larger Llama-13b (0.769).
  • Cell Annotation: On the complex hEmbryo dataset, Mistral achieved the highest accuracy (0.814), closely followed by Llama-13b and BLOOM.
  • Ablation Study: For Llama-13b, moving from a standard "cell sentence" to "cell sentence plus" improved accuracy on the M.S. dataset from 0.688 to 0.701, with even more significant gains in F1 scores.

Limitations and Future Work

The authors identify several critical hurdles:

  • Data Scarcity: Compared to the open internet, high-quality labeled biological data is scarce and expensive to produce.
  • Literature Bias: LLMs are trained on existing papers, which may contain biases or errors, leading the model to make "confident" but incorrect biological assertions.
  • Complexity of Regulation: Biological systems involve non-linear, multi-layered interactions that might be too complex to capture through text alone.

Future Directions: The researchers suggest building specialized "Bio-LLMs" using modern architectures (like Mistral or Llama 3) and pre-training them directly on "cell sentences" derived from the billions of transcriptomic data points currently available in public repositories.

Summary updated

BibTeX
@article{fang2025how,
  author = {Chen Fang and Yidong Wang and Yunze Song and Qingqing Long and Wang Lu and Linghui Chen and Guihai Feng and Yuanchun Zhou and Xin Li},
  title = {{How Do Large Language Models Understand Genes and Cells}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2025},
  doi = {10.1145/3702234},
}
Figure