Paper | Online Demo | arXiv | Twitter
Authors: Ruofan Jin1, Mingyang Xu2, Fei Meng3,4, Guancheng Wan5, Qingran Cai6, Yize Jiang7, Jin Han8, Yuanyuan Chen9, Wanqing Lu9, Mengyang Wang10, Zhiqian Lan11, Yuxuan Jiang11, Junhong Liu7,✉, Dongyao Wang3,4,✉, Le Cong12,✉, and Zaixi Zhang1,✉
1Princeton University, 2University of Michigan, 3The First Affiliated Hospital, USTC, 4National Key Laboratory of Immune Response and Immunotherapy 5UCLA, 6Shanghai Jiao Tong University, 7Microcyto, 8Nanjing University, 9Tianjin University of Science and Technology 10Peking University, 11The University of Hong Kong, 12Stanford University ✉ [email protected], [email protected], [email protected], [email protected]
- Overview
- Demo Video
- Key Results
- Quick Start
- Repository Layout
- Installation
- Resource Download
- API Keys
- Tool Creation Benchmark
- Case Studies & Reproducibility
- Parameter-Level Self-Evolution
- STELLA-RSI: Qwen SFT + GRPO
- Citation
- Related Projects
- License
Overview of the STELLA framework. The framework consists of four main components: a manager agent, a dev agent, a critic agent, and a tool ocean. The template system provides structured workflows learned from successful runs.
| Component | Description |
|---|---|
| Manager Agent | Decomposes scientific objectives, retrieves relevant templates, orchestrates sub-agents |
| Dev Agent | Executes bioinformatics analyses, runs code, queries databases and literature |
| Critic Agent | Evaluates result quality, identifies gaps, recommends improvements |
| Tool Creation Agent | Dynamically creates new tools when existing ones are insufficient |
| Tool Ocean | 60+ predefined and self-evolving tools for literature search, databases, virtual screening |
| Template System | Retrieves, applies, and auto-creates structured workflow skills from successful runs |
All four agents use Claude 4 Sonnet (anthropic/claude-sonnet-4) by default, as reported in the paper. Models are configurable via OpenRouter — edit the model variables in stella/core.py to switch between Claude, GPT, Gemini, and other providers.
Try STELLA online at stella-agent.app — no installation required.
Click the thumbnail above to watch the STELLA demonstration video on Google Drive.
Key achievements:
- Best performance on built tool creation benchmark and public benchmark (LabBench, HLE)
- Identified BTN3A1 as a novel regulator in acute myeloid leukemia, verified through CRISPR studies across 4 cell lines
- Developed enzyme variants showing >2x improvement in catalytic activity
- Robotic laboratory automation with success rates improving from 17% to 82%
Option 1: Use the online version (recommended)
Visit stella-agent.app to use STELLA directly in your browser.
Option 2: Docker image
A pre-built Docker image package (including ablation variants) is available on Google Drive. See docker/README.md for download and usage instructions.
Option 3: Run locally (from source)
# Clone and install
git clone https://github.com/zaixizhang/STELLA.git
cd STELLA
pip install -e .
# Configure API key
echo "OPENROUTER_API_KEY=your_key_here" > .env
# Launch web UI
python -m stellaOpen http://localhost:7860 in your browser. A public Gradio link is also generated automatically.
| Mode | Command | Description |
|---|---|---|
| Web UI | python -m stella |
Full Gradio interface with skill retrieval (recommended) |
| No Skills | python -m stella --no_template |
Disable skill/template retrieval |
| Tool Creation | python -m stella --enable_tool_creation |
Enable dynamic tool creation agent |
| Custom Port | python -m stella --port 8080 |
Run on a different port |
| Web Launcher | python -m stella.ui.launcher |
Alternative launcher with preset config |
from stella.core import initialize_stella
manager_agent = initialize_stella(
use_template=True,
enable_tool_creation=True,
)
result = manager_agent.run("What genes are associated with breast cancer resistance?")STELLA/
├── stella/ # Installable application package
│ ├── core.py # Agent orchestration
│ ├── ui/ # Gradio interface and launcher
│ ├── skills/ # Workflow storage, retrieval and learning
│ ├── tools/ # Predefined tools, biomedical tools and governance
│ ├── self_evolve/ # Trajectories, verification, training and serving
│ └── resources/ # Bundled logo, prompts, skill templates and tool manifests
├── benchmarks/tool_creation/ # Simple/hard benchmark runners and results
├── examples/cases/ # Paper case-study scripts
├── stella-rsi/ # Qwen SFT + GRPO from user interaction trajectories
├── tests/ # Offline regression tests
├── docs/ # Guides and README images
├── docker/ # Docker image instructions
├── requirements/ # Optional training dependencies
└── data/ # Writable skills, generated tools and run database
Standard project files (README.md, LICENSE, pyproject.toml, requirements.txt,
MANIFEST.in, and Dockerfile) remain at the root.
Use python -m stella (or the installed stella command) to launch the app.
Python imports now use the stella namespace, for example
from stella.core import initialize_stella. See the
migration and development guide for old-to-new paths,
runtime data locations, and validation commands.
# Clone the repository
git clone https://github.com/zaixizhang/STELLA.git
cd STELLA
# Create conda environment
conda create -n stella python=3.12 -y
conda activate stella
# Install scientific packages via conda
conda install -c conda-forge numpy pandas scikit-learn matplotlib seaborn -y
# Install remaining dependencies via pip
pip install -e .pip install -e .A pre-built Docker image package is available. See docker/README.md for download and usage instructions.
# For biomedical analysis
pip install biopython rdkit-pypi
# For MCP tools integration
pip install mcp uvLarge Resource Files: Due to the size of biomedical datasets, additional resources are available for download:
# Download the resource package (optional for basic usage)
# Manual download from: https://drive.google.com/file/d/1n8I-gkM58wL1OZysdpYhr-Q9ZApd9yU4/view?usp=sharing
# File: resource_backup_20250719_055729.zip (2.0GB compressed)
# Create resource directory and extract
mkdir -p resource/
unzip resource_backup_20250719_055729.zip -d resource/Note: Resources are optional for basic STELLA functionality but enhance performance for complex biomedical tasks.
Don't have API keys? No worries — you can directly try our online version at stella-agent.app. No installation, no API keys needed — just one click and start using STELLA right away!
For local deployment, configure the following API keys:
| Key | Required | Purpose |
|---|---|---|
OPENROUTER_API_KEY |
Yes | Powers all LLM agents via OpenRouter |
SERPAPI_API_KEY |
No | Enhanced web search results |
PAPERQA_API_KEY |
No | Academic literature analysis |
# Create .env file with your API keys
echo "OPENROUTER_API_KEY=your_openrouter_api_key_here" > .env
echo "SERPAPI_API_KEY=your_serpapi_key_here" >> .envGet API Keys:
- OpenRouter: https://openrouter.ai/
- SERPAPI: https://serpapi.com/
The Tool Creation Benchmark evaluates biomedical AI agents across 117 tasks organized into two difficulty tiers. All benchmark files are in the benchmarks/tool_creation/ directory.
| Set | Categories | Tasks | Evaluation |
|---|---|---|---|
| Simple Set | Protocol/Design/Computation/Database/Web Retrieval | 99 tasks, 308 MCQs | Objective multiple-choice questions |
| Hard Set | Biology-Oriented ML | 18 tasks (8 ProteinGym + 10 TDC/Polaris) | Metric-based predictions graded against task-specific leaderboards |
cd benchmarks/tool_creation/simple_set
# Install dependencies
pip install requests pandas
# Set your API key
export OPENROUTER_API_KEY=<your_key>
# Run benchmark (edit config_example.json to select models)
python run_benchmark.py --config config_example.json
# Score results
python score_results.py \
--run_id my_run_001 \
--result_csv outputs/result.csv \
--ground_truth_csv mcq.csv \
--out_dir outputs/scoredSee benchmarks/tool_creation/README.md for full documentation, hard-set instructions, and pre-computed results.
STELLA's template and tool evolution operates on its context: experience is
stored as retrievable thinking templates and new tools, and must be re-retrieved on
every run. The stella/self_evolve/ module adds the complementary
mechanism — STELLA's own verified execution history is used to post-train an
open-weight policy (Qwen, DeepSeek) with SFT + GRPO, so experience is written
into model parameters and improves future tasks with no retrieval at inference.
| Stage | Module | What it does |
|---|---|---|
| Log | trajectory_logger.py |
capture full trajectories (model inputs/outputs, tool calls, observations) from the running agents |
| Verify | reward.py |
score each trajectory with an explicit verifier — the gate on all training data |
| Build | dataset_builder.py |
verified trajectories → SFT (step-level) + GRPO (task-level) sets, with best-of-n and decontamination |
| SFT | train_sft.py |
clone verified decisions into a LoRA policy |
| GRPO | train_grpo.py |
optimise against verifiable scientific outcomes |
| Transfer | transfer.py |
ScienceRSI: specialise domain experts → verify → transfer → reuse |
| Gate | evaluate.py, evolve.py |
held-out verifier-scored comparison; a round is promoted only if it improves |
| Serve | serve.py |
serve the evolved policy back into STELLA |
Three properties are enforced in code: nothing is learned from an unverified run, the held-out evaluation set is filtered out of the training data, and a round is promoted only if the held-out score improves — otherwise the checkpoint is recorded and discarded.
pip install -r requirements/self-evolve.txt
export STELLA_TRAJECTORY_LOGGING=1 # collect while running STELLA normally
python -m stella
python -m stella.self_evolve.evolve --round 1 \
--base_model Qwen/Qwen3-8B \
--heldout self_evolve_data/heldout_tasks.jsonl \
--references self_evolve_data/references.jsonEach round writes a manifest (round_<n>/round.json) with the data it used, the
checkpoints it produced, both evaluation reports and the promotion decision. The data
pipeline runs without a GPU; python -m tests.self_evolve.test_pipeline covers it in
69 checks. Full documentation: docs/self_evolution.md.
The examples/cases/ directory contains end-to-end scripts that demonstrate STELLA's autonomous discovery capabilities. Each case study is self-contained and can be reproduced with a single command.
Script: examples/cases/nk_aml_negative_regulators.py
Reproduces the NK-cell/AML target-discovery case from the paper (Fig. 3a-c). As in the paper, the run is initiated by a single prompt and nothing else:
Identify novel, previously unreported negative regulators of NK-cell function in the context of AML.
No candidate gene families, exclusion lists, scoring formulas or output schema are supplied. STELLA selects tools from the Tool Ocean, builds the candidate pool, searches the literature and ranks candidates on its own.
python examples/cases/nk_aml_negative_regulators.pyThe full agent output is saved to examples/cases/output/nk_aml_negative_regulators_raw.txt. The exact gene list can vary between runs (LLM stochasticity, literature index freshness, evolving templates and tools).
Script: examples/cases/strictosidine_synthase_round2.py
Reproduces the multi-round directed-evolution case from the paper (Fig. 4) for Rauvolfia serpentina strictosidine synthase (RsSTR, UniProt P68175). The task prompt is the one reported in the paper:
Optimize the catalytic activity of strictosidine synthase (UniProt ID: P68175) for its natural reaction involving tryptamine and secologanin.
For Round 2 the only additional input is the Round 1 wet-lab HPLC measurements, which STELLA uses as experimental feedback (fine-tuning its ESM2 activity predictor). No hot-spot hints, mandatory variants or position exclusions are supplied.
python examples/cases/strictosidine_synthase_round2.pyThe full agent output is saved to examples/cases/output/strictosidine_synthase_round2_raw.txt. Exact variants can vary between runs.
stella-rsi/ provides an independently installable recipe
for fine-tuning Qwen/Qwen3.8-27B from STELLA user interaction trajectories.
It includes opt-in trajectory collection, explicit review labels, session-based
train/validation/test splits, QLoRA SFT, GRPO that continues the SFT adapter,
verifiable rewards for newly sampled responses, and adapter export.
GRPO optimizes the next response or tool call given recorded context; it does not execute live tools. The examples are synthetic fixtures. See the STELLA-RSI README for installation, data schemas, training commands, and the scope of validation.
If you find our work useful, please consider citing our paper:
@article{jin2025stella,
title={STELLA: Towards a Biomedical World Model with Self-Evolving Multimodal Agents},
author={Jin, Ruofan and Xu, Mingyang and Meng, Fei and Wan, Guancheng and Cai, Qingran and Jiang, Yize and Han, Jin and Chen, Yuanyuan and Lu, Wanqing and Wang, Mengyang and Lan, Zhiqian and Jiang, Yuxuan and Liu, Junhong and Wang, Dongyao and Cong, Le and Zhang, Zaixi},
journal={bioRxiv},
year={2025},
doi={10.1101/2025.07.01.662467}
}- LabOS — The AI-XR co-scientist that builds upon STELLA for wet-lab integration
- stella-agent.app — Online web version of STELLA
Apache 2.0 — see LICENSE.


