TL;DR
HypoGeneAgent is a novel, LLM-driven framework that automates both cell cluster annotation and hyperparameter tuning for single-cell and Perturb-seq data. By evaluating the semantic consistency and distinctiveness of LLM-generated biological hypotheses, it introduces a data-driven "Resolution Score" that optimizes clustering granularity based on actual biology rather than pure geometry.
What Problem Does This Paper Address?
In single-cell RNA-sequencing (scRNA-seq) and Perturb-seq workflows, a critical first step is clustering cells into groups that represent distinct cell types, states, or genetic perturbations. This is typically done using graph-based algorithms (like Leiden or Louvain), which rely heavily on a user-defined resolution parameter. Low resolution yields a few coarse clusters; high resolution creates a fine-grained mosaic.
Currently, choosing the "right" resolution is highly subjective. Researchers usually eyeball marker-gene heatmaps, tweak parameters until the clusters "look clean," and manually assign Gene Ontology (GO) terms. Traditional statistical metrics like Silhouette scores or Modularity indices help, but they are entirely blind to biological meaning—they only measure the geometric or graph-theoretic properties of the data space.
Methods
HypoGeneAgent bridges unsupervised clustering and automated functional annotation by putting a Large Language Model (LLM) in the loop to drive the hyperparameter search.
The workflow operates as follows:
- Multi-resolution Clustering: The data is clustered across a grid of resolution parameters (e.g., 10 granularities from $r=0.1$ to $r=1.0$).
- Hypothesis Generation: For each cluster at each resolution, the top over-expressed genes are fed to an autonomous LLM agent (the authors found that "thinking" models like GPT-o3 performed best). The agent retrieves evidence from GO, KEGG, and PubMed, then proposes up to five ranked biological hypotheses alongside calibrated confidence scores.
- Semantic Scoring: The text descriptions are converted into vectors using a sentence-embedding model. HypoGeneAgent then calculates two key metrics:
- Intra-cluster agreement (ICS): How consistently the top hypothesis aligns with the lower-ranked hypotheses for the same cluster.
- Inter-cluster distinctiveness (ICD): How semantically distinct a cluster's top hypothesis is from all other clusters' top hypotheses.
- Resolution Selection: These metrics are combined into a single Resolution Score. The optimal resolution is selected by maximizing this score, ensuring clusters are both internally coherent and mutually exclusive in function.
The specific mathematical formulations for these agent-derived metrics are detailed below:
Datasets
The authors evaluated HypoGeneAgent using two primary resources:
- Curated GOBP Reference Sets: A benchmark of 100 non-redundant Gene Ontology Biological Process (GOBP) gene sets used to test the LLM's baseline annotation accuracy and compare prompt designs.
- K562 CRISPRi Perturb-seq Dataset: A public dataset from Replogle et al. (2022) containing essential gene screens in human K562 cells. After quality control, the dataset consisted of 25,161 high-quality cells and 3,000 highly-variable genes.
Key Insights and Ideas
- Closing the Hyperparameter Loop: Unlike existing LLM tools that only annotate clusters after they are fixed, HypoGeneAgent uses functional biological feedback to actively guide the upstream clustering hyperparameter selection.
- "Thinking" Models Excel at Biology: The authors noted a stark performance gap between models. Reasoning-focused LLMs (like GPT-o3 and Gemini-2.5-pro) demonstrated significantly better and more stable performance in generating structured, accurate biological hypotheses compared to standard "non-thinking" models (like GPT-4o).
- Prompt Structure Matters: Moving from a general free-text prompt to a structured "hypothesis prompt" that forces the model to output multiple ranked candidates with confidence scores drastically improved the utility of the framework for quantitative optimization.
Key Results
- Optimal Resolution Discovery: When applied to the K562 Perturb-seq dataset at the gene-expression (GEX) level, HypoGeneAgent identified $r=0.4$ (yielding 9 clusters) as the optimal resolution. At the perturbation level, it selected $r=0.5$ (10 clusters). Both selections strongly aligned with known downstream pathway biology.
- Outperforming Traditional Metrics: Traditional metrics fell short or disagreed: the geometric Silhouette score suggested a resolution of 0.5 or 0.6, while the graph-based Modularity curve peaked at 0.7. HypoGeneAgent's biologically-grounded choice recovered known perturbation effects more cleanly.
- Massive Speedups: In addition to selecting the resolution, the pipeline simultaneously generated unbiased, high-quality GO annotations for every single cluster in minutes—a task that normally takes human experts hours or days of manual curation.
Limitations and Future Work
While promising, the authors highlight several areas for development:
- Scalability: The framework has only been tested on relatively small datasets. Evaluating its performance on massive atlases (like the Human Cell Atlas, which contains millions of cells) or whole-genome CRISPR screens is a necessary next step.
- Ontology and Modality Expansion: The current implementation relies heavily on GOBP. Future work will need to extend the agent's capabilities to handle other ontologies and multi-omics modalities.
- Cost and Sensitivity: The framework is dependent on commercial LLM APIs, making cost, prompt sensitivity, and API stability ongoing practical considerations for widespread adoption.
Summary updated