CellAgent: LLM-Driven Multi-Agent Framework for Natural Language-Based Single-Cell Analysis

Yihang Xiao, Jinyi Liu, Yan Zheng, Shaoqing Jiao, Jianye Hao, Xiaohan Xie, Mingzhi Li, Ruitao Wang, Fei Ni, Yuxiao Li, Zhen Wang, Xuequn Shang, Zhijie Bao, Changlin Yang, Jiajie Peng

TL;DR

This paper introduces CellAgent, a novel LLM-driven multi-agent framework that automates complex single-cell RNA sequencing (scRNA-seq) and spatial transcriptomics (ST) data analysis using natural language commands. CellAgent significantly reduces the need for manual coding and biological expertise, making advanced analyses more accessible and efficient.

What Problem Does This Paper Address?

Analyzing single-cell RNA sequencing (scRNA-seq) and spatial transcriptomics (ST) data is crucial for understanding cellular heterogeneity and advancing biological research. However, current methods are hindered by the need for extensive manual programming, complex tool manipulation, and deep biological and computational expertise. This creates a significant barrier for researchers, slowing down discovery. The authors aim to bridge this gap by creating an autonomous system that can perform these analyses end-to-end through simple natural language interactions.

Methods

CellAgent employs a sophisticated multi-agent hierarchical decision-making framework. At its core are three LLM-driven agents:

  • Planner: This agent interprets natural language requests and decomposes complex tasks into a series of manageable sub-tasks. It leverages expert-curated prompts to enhance its understanding of biological nuances.
  • Executor: This agent is responsible for carrying out the sub-tasks. It intelligently selects appropriate tools from the curated sc-Omni toolkit, generates the necessary code, and executes it.
  • Evaluator: This agent provides a crucial self-reflective optimization mechanism. It rigorously assesses the outcomes of each step, identifies potential errors, and proposes strategies for refinement, effectively replacing traditional manual assessments.

The sc-Omni toolkit is a key component, consolidating essential tools for scRNA-seq and ST analysis, including statistical methods, deep learning approaches, and foundation models.

Datasets

The paper evaluates CellAgent on a wide range of datasets for various tasks:

  • Batch Correction: Five datasets from different tissues and organs (lung, pancreas, perirhinal cortex, immune).
  • Cell Type Annotation: PBMC, pancreas, immune, and liver datasets.
  • Trajectory Inference: Eight benchmark datasets with gold-standard trajectories.
  • Spatial Domain Identification: Twelve slice datasets from the dorsolateral prefrontal cortex (DLPFC).
  • Spatial Transcriptomics Imputation: Seven datasets from various platforms (10X Visium, SlideseqV2, seqFISH).

The authors also mention a benchmark consisting of eight major tasks of scRNA-seq and spatial transcriptomics analyses, utilizing over 60 datasets covering diverse sequencing technologies, tissues, and cell counts.

Key Insights and Ideas

  • Natural Language as the Interface: The most significant insight is the successful translation of natural language commands into complex, multi-step biological data analysis workflows. This dramatically lowers the barrier to entry for researchers.
  • "Deep-Thinking" Workflow: The hierarchical multi-agent system, with its planning, execution, and evaluation loops, effectively simulates a human-like analytical process, ensuring consistency and accuracy.
  • Self-Reflective Optimization: The Evaluator agent's ability to critically assess and refine results is a game-changer, enabling automated improvement and reducing reliance on human oversight.
  • Curated Toolkit (sc-Omni): The integration of a comprehensive, expert-curated toolkit is essential for the Executor's success, providing the necessary tools for diverse analyses.

Key Results

  • Efficiency: CellAgent achieved approximately 60% improvement in efficiency compared to human experts, with an average time cost of 8 minutes versus 13 minutes for human experts across eight tasks.
  • Accuracy: CellAgent maintained performance comparable to existing approaches while preserving natural language interactions. For cell type annotation, it achieved an average of 85% full or partial matches with manual annotations. For spatial domain identification, it achieved the highest Adjusted Rand Index (ARI) score of 0.47. For imputation, it achieved an Accuracy Score (AS) of 0.88, outperforming the next best method by 17%.
  • Success Rate: CellAgent@3 (with self-debugging) achieved an average success rate of 96%, significantly outperforming GPT-4 (23.875%) on automated task execution.
  • Usability: 75% of participants found CellAgent highly facilitative, surpassing GPT-4 (60%) and online web servers (30%).

Limitations and Future Work

  • LLM Limitations: The paper acknowledges that most LLMs lack the depth and accuracy required to fully understand scRNA-seq and spatial transcriptomics data analysis and related algorithms, necessitating the incorporation of expert-curated prompts.
  • Scalability and Generalizability: While CellAgent demonstrates strong performance across numerous datasets and tasks, further validation on even more diverse and complex biological scenarios would be beneficial.
  • Future Directions: The authors suggest that this framework has the potential to usher in an era of "AI Agents for Science," implying future work could focus on expanding its capabilities to other scientific domains and further refining its autonomous decision-making processes. They have also open-sourced the sc-Omni toolkit and provided an interactive online platform for CellAgent to encourage broader community integration.

Summary updated

BibTeX
@inproceedings{xiao2026cellagent,
  author = {Yihang Xiao and Jinyi Liu and Yan Zheng and Shaoqing Jiao and Jianye Hao and Xiaohan Xie and Mingzhi Li and Ruitao Wang and Fei Ni and Yuxiao Li and Zhen Wang and Xuequn Shang and Zhijie Bao and Changlin Yang and Jiajie Peng},
  title = {{CellAgent: LLM-Driven Multi-Agent Framework for Natural Language-Based Single-Cell Analysis}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=BsA2GNkJhz},
}
Figure