Abstract
Cellular image segmentation is a cornerstone of quantitative biology, yet it faces significant challenges due to image heterogeneity and morphological variability. Traditional "specialist" models often fail when applied to novel imaging conditions or organelles. We present GenCellAgent, a training-free, multi-agent framework that utilizes Large Language Models (LLMs) to orchestrate specialized and generalist vision models. By employing a Planner–Executor–Evaluator loop combined with style-aware routing and in-context learning, GenCellAgent achieves substantial performance improvements—including a 37.6% IoU gain on out-of-distribution organelle datasets—without requiring any model retraining.
Introduction
Quantitative biology relies heavily on accurate cellular image segmentation. However, the field is plagued by three primary issues: extreme heterogeneity across imaging modalities (e.g., phase-contrast vs. electron microscopy), high morphological variability in cells and organelles, and the "specialist trap," where models trained on specific datasets fail to generalize. Currently, adapting to new conditions often requires labor-intensive manual annotation and model retraining. GenCellAgent addresses these bottlenecks by shifting the paradigm from training individual models to intelligently coordinating existing ones.
Methodology: The Multi-Agent Interaction Loop
GenCellAgent moves away from monolithic architectures in favor of a modular, multi-agent system. The framework operates through a continuous interaction loop involving several specialized agents:
- Planning Agent: This agent parses user queries, retrieves relevant prior knowledge from a long-term memory module, and designs a multi-step execution workflow.
- Execution Agent: Acting as the primary worker, it invokes specialized tools like Cellpose or μSAM for known domains, or generalist Vision-Language Models (VLMs) like LISA for novel, text-guided tasks.
- Evaluation Agent: An LVLM-based component that assesses segmentation quality against predefined criteria (accuracy, localization, completeness, boundary) and provides natural language feedback for iterative refinement.
To optimize tool selection, the system employs Style-Aware Routing, comparing input image styles via Gram matrices against a reference library. Furthermore, In-Context Learning (ICL) allows the system to perform few-shot segmentation using SegGPT when specialists fail, leveraging human-corrected reference masks stored in memory to guide the model.
Experimental Evaluation and Results
The framework was benchmarked across diverse datasets, including LIVECell, TissueNet, PlantSeg, and Lizard for cells/nuclei, and the CellMap Challenge and CEM-MitoLab for organelles.
Key results include:
- Robustness to Domain Shift: GenCellAgent significantly outperformed specialist baselines on out-of-distribution (OOD) datasets. For endoplasmic reticulum (ER) and mitochondria segmentation, it achieved an average Intersection over Union (IoU) improvement of 37.6%.
- Zero-Shot Discovery: The system successfully segmented the Golgi apparatus—an organelle for which no specialist tool was provided—by iteratively refining text prompts based on Evaluator feedback.
- Routing Accuracy: The style-aware routing mechanism achieved 100% tool-selection accuracy on test sets.
Discussion and Conclusion
GenCellAgent demonstrates that intelligent orchestration of existing vision models can be more effective than training new ones from scratch. A critical insight from the study is the value of "good enough" human-corrected references for in-context learning, which often provide clearer signals than perfect ground-truth masks.
While the system shows great promise, limitations remain, particularly regarding the domain gap for VLMs trained on natural images and the sensitivity of LLM-based evaluation to prompt phrasing. Future work will focus on extending the framework to 3D/4D temporal data and integrating bio-specialized VLMs to further enhance performance in complex subcellular environments.
Summary updated