How do Large Language Models understand Genes and Cells

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

Abstract

Researching genes and their interactions is crucial for deciphering the fundamental laws of biological activity, advancing disease treatment, and drug discovery. Large Language Models (LLMs), with their profound text comprehension and generation capabilities, have made significant strides across various natural science fields. However, their application in cell biology remains notably scarce. This paper selects seven mainstream LLMs and evaluates their performance across a range of biological scenarios. Our findings indicate that LLMs possess a certain level of understanding of genes and cells, holding potential for solving real-world problems. Moreover, we improved the textual representation of cells, enhancing the LLMs’ ability to tackle cell annotation tasks.

Introduction

In the era of single-cell sequencing, transcriptomic data—lists of gene expression levels within individual cells—is abundant. While specialized deep learning models exist for this data, they are often computationally expensive and require massive, curated datasets. LLMs have revolutionized natural language processing, but their ability to "speak biology" is less understood. A major hurdle is representation: how to turn a cell’s complex gene expression profile into a "sentence" that an LLM can process. Previous attempts simply concatenated highly expressed gene names, but these "cell sentences" lack the linguistic structure and context LLMs require. This study investigates whether general LLMs can bridge this gap and if better textual representations can unlock their potential in cell biology.

Overview of the evaluation framework across gene identification, gene-gene interaction, and cell annotation tasks.

Methodology

The authors evaluated seven generative LLMs: GPT-2, BioGPT, ChatGLM, BLOOM, Mistral, Llama-7b, and Llama-13b. These models were fine-tuned using Low-Rank Adaptation (LoRA) on a single A800 GPU.

The core innovation is the "cell sentence plus" method. Instead of raw gene lists (e.g., "MALAT1, EEF1A1..."), the researchers appended concise functional descriptions (refined by GPT-3.5 to under 10 tokens) to each gene. This transforms a list into a descriptive paragraph, making the input more "natural" for the models. The evaluation spanned 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 covering dosage sensitivity, bivalent chromatin structures, and transcription factor ranges.
  • Gene-pair level: A large-scale GGI dataset with over 240,000 training samples.
  • Cell-level: The Multiple Sclerosis (M.S.) dataset and a new hEmbryo dataset (human early embryo) featuring over 100,000 samples across 61 cell types.

Results and Discussion

The evaluation revealed several key insights into how LLMs handle biological data:

  • Scaling and Performance: Larger models generally performed better. Llama-13b emerged as the top overall performer, suggesting that the broader world knowledge in larger LLMs aids in specialized biological contexts.
  • Contextual Enhancement: The "cell sentence plus" format significantly boosted performance for models with more than 6 billion parameters. By providing functional descriptions, LLMs could "reason" based on biological roles rather than just memorizing symbols.
  • Domain Specialization: BioGPT, pre-trained on biomedical literature, dominated the GGI task but struggled with cell annotation due to architecture-related sequence length limits.
  • Mistral’s Robustness: Mistral 7B showed exceptional performance on challenging edge cases, likely due to its massive 8-trillion-token pre-training corpus.
Comparison of evaluated LLMs including parameter counts, pre-training data size, and final performance rankings.

Llama-13b achieved the highest accuracy (0.784) on gene-level tasks, while BioGPT led the GGI task with an accuracy of 0.835. On the complex hEmbryo dataset, Mistral achieved the highest accuracy (0.814). Ablation studies confirmed that moving from "cell sentence" to "cell sentence plus" improved Llama-13b's accuracy and F1 scores on the M.S. dataset.

Conclusion

While LLMs show promise, challenges remain, including high-quality labeled data scarcity, potential literature bias in training sets, and the inherent complexity of biological regulation. Future work should focus on building specialized "Bio-LLMs" using modern architectures (like Mistral or Llama 3) pre-trained directly on transcriptomic "cell sentences."

The code and data are available at: https://github.com/epang-ucas/Evaluate_LLMs_to_Genes

Summary updated

BibTeX
@article{fang2025how,
  author = {Chen Fang and Yidong Wang and Yunze Song and Qingqing Long and Lu Wang and L. Chen and Pengfei Wang 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