CellSwarm: LLM-Driven Cell Agents Recapitulate Tumor Microenvironment Dynamics and Sense Indirect Genetic Perturbations

Read full text
Authors: Xuanlin Meng, Tengjiao Wang, Zhongyuan Dong, Xinhao Li, Xiuliang Cui, Lianghua Wang
Cited by: 0
References: 22

Abstract

Abstract Agent-based models of the tumor microenvironment (TME) traditionally rely on hand-coded rules that cannot generalize beyond their programmed logic. Here we present CELLSWARM, a framework that replaces rule-based cell decision-making with large language model (LLM)-driven autonomous agents. Each simulated cell maintains persistent state, 14 signal pathways, and a memory stream, with an LLM serving as its cognitive core. Using structured knowledge bases for cancer-specific context, CELLSWARM recapitulates TNBC microenvironment composition with fidelity comparable to hand-coded rules (Jensen–Shannon divergence 0.144 vs. 0.146; P=0.012 vs. random, Mann–Whitney U test). Beyond matching rule-based performance, LLM-driven agents demonstrate three capabilities absent from rule-based models: cross-cancer generalization by swapping knowledge base entries, treatment response prediction concordant with clinical data (anti-PD-1: 17.6% simulated vs. 21% clinical), and sensing of indirect genetic perturbations that propagate through intermediate signaling cascades (IFN-γ KO: Agent +15.7% vs. Rules +0.3%; P=0.005). CELLSWARM demonstrates that LLM-driven cell agents can recapitulate and extend TME simulation beyond the reach of hand-coded rules.

Fields of Study & Subjects

Mathematical Biology Tumor Growth Cancer Cells and Metastasis Cancer Genomics and Diagnostics

Publication details

Journal / source
bioRxiv (Cold Spring Harbor Laboratory)
Publication date
26 February 2026
Language
EN
Document type
Preprint