Does your model understand genes? A benchmark of gene properties for biological and text models

Yoav Kan‐Tor, Michael M. Danziger, E. Zohar, Matan Ninio, Yishai Shimoni · DOI

Abstract

The application of deep learning methods, particularly foundation models, in biological research has surged in recent years. These models can be text-based or trained on underlying biological data, especially omics data of various types. However, comparing the performance of these models consistently has proven to be a challenge due to differences in training data and downstream tasks. To tackle this problem, we developed an architecture-agnostic benchmarking approach that, instead of evaluating the models directly, leverages entity representation vectors from each model and trains simple predictive models for each benchmarking task. This ensures that all types of models are evaluated using the same input and output types. Here we focus on gene properties collected from professionally curated bioinformatics databases. These gene properties are categorized into five major groups: genomic properties, regulatory functions, localization, biological processes, and protein properties. Overall, we define hundreds of tasks based on these databases, which include binary, multi-label, and multi-class classification tasks. We apply these benchmark tasks to evaluate expression-based models, large language models, protein language models, DNA-based models, and traditional baselines. Our findings suggest that text-based models and protein language models generally outperform expression-based models in genomic properties and regulatory functions tasks, whereas expression-based models demonstrate superior performance in localization tasks. These results should aid in the development of more informed artificial intelligence strategies for biological understanding and therapeutic discovery.

Introduction

In recent years, the "foundation model" craze has hit biology hard. We now have models trained on DNA sequences, protein structures, single-cell RNA sequencing (scRNA-seq) data, and the massive corpus of biological literature (LLMs). However, comparing these models is an "apples-to-oranges" challenge. A DNA model processes base pairs, an scRNA model processes expression counts, and an LLM processes text descriptions. Because they use different inputs and are often evaluated on niche downstream tasks, a unified framework has been missing to determine which of these models actually understands the fundamental properties of a gene. This research addresses this gap by creating a standardized benchmarking suite for gene representation.

Methods

The researchers proposed a clever, two-step evaluation pipeline that works regardless of a model's internal architecture:

  1. Embedding Extraction: For any given model, the researchers extract a "gene embedding"—a high-dimensional vector representing the model's internal concept of a specific gene. For LLMs, this is derived from text descriptions; for DNA models, from the gene's sequence; and for expression models, from its behavior across cells.
  2. Linear Probing: Instead of expensive fine-tuning, simple, shallow predictive models (such as logistic or linear regression) are trained using these embeddings as inputs.
The architecture-agnostic benchmarking pipeline extracts gene embeddings from various model types to train simple predictive probes for standardized evaluation.

If a simple linear model can accurately predict a gene's function using only the embedding, it demonstrates that the foundation model successfully captured that biological information during its original training phase.

Benchmark Datasets

The benchmark consists of 312 gene properties (distilled into 71 primary tasks) sourced from gold-standard databases like Reactome, the Human Protein Atlas, UniProt, and Open Targets. These tasks are grouped into five families:

  • Genomic properties: e.g., DNA methylation status.
  • Regulatory functions: e.g., identifying transcription factors.
  • Localization: Where a gene is expressed in the body or cell.
  • Biological processes: Pathway involvement.
  • Protein properties: Functional domains and characteristics.

The study evaluated 11 models, including LLMs (Mistral/MTEB), scRNA-seq models (Geneformer, scGPT), DNA models (DNABERT-2), and protein models (ESM-2).

Key Results and Insights

The "Knowledge vs. Observation" Trade-off

A clear divide in performance emerged across model modalities. Text-based models (LLMs) and protein models are superior at predicting regulatory and genomic properties. Conversely, expression-based models (trained on scRNA-seq) are significantly better at localization tasks. This suggests that LLMs capture the "theoretical knowledge" of a gene from literature, while expression models capture the "observed behavior" of where it actually appears in biological systems.

Heatmap of ROC AUC scores showing the performance trade-off: expression-based models excel in localization, while text and protein models lead in regulatory and genomic properties.

Performance Highlights

  • Localization Dominance: Expression-based models like scGPT-H and CellPLM achieved the highest scores in localization (Average AUC ~0.84-0.86), far outstripping text models (~0.67-0.72).
  • Regulatory/Genomic Leaders: Text models and the protein model (ESM-2) led these categories, with ESM-2 particularly excelling in protein-specific properties (AUC 0.84).
  • The "Bag-of-Words" Surprise: A simple Bag-of-Words baseline performed nearly as well as sophisticated LLMs on many tasks, suggesting that keyword associations in literature carry significant predictive power.
  • DNA Model Challenges: The DNA-based model (DNABERT-2) generally performed worse than other families across most tasks, except for basic genomic properties, suggesting that sequence alone is a difficult modality for deriving high-level functional understanding.

Discussion and Limitations

A significant factor in these results is "literature bias." The 10% most popular genes account for over 60% of all publications. Consequently, LLMs might appear more capable simply because they have processed more data about certain genes, while the "dark matter" of the genome remains poorly represented.

Future work aims to expand the benchmark to include non-coding regions and to explore non-linear probes to determine if more complex biological information is hidden within the embeddings that simple linear models cannot currently decode. This benchmark provides a foundation for more informed AI strategies in biological understanding and therapeutic discovery.

Source: Does your model understand genes? A benchmark of gene properties for biological and text models. (2024). Code available at: github.com/BiomedSciAI/gene-benchmark

Summary updated

BibTeX
@misc{kantor2024does,
  author = {Yoav Kan‐Tor and Michael M. Danziger and E. Zohar and Matan Ninio and Yishai Shimoni},
  title = {{Does your model understand genes? A benchmark of gene properties for biological and text models}},
  year = {2024},
  eprint = {2412.04075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.04075},
}
Figure