TL;DR
VenusFactory2 is an autonomous, self-evolving multi-agent AI framework designed to automate complex protein discovery and directed evolution directly from single natural language prompts. By shifting from static tool execution to dynamic workflow synthesis, the system can autonomously write code, train new machine learning models, and orchestrate complex biological pipelines. It significantly outperforms state-of-the-art generalist LLMs and rigid domain-specific agents on long-horizon scientific tasks.
What Problem Does This Problem Address?
Modern protein science relies heavily on deep learning tools for tasks like structure prediction (e.g., AlphaFold) and functional annotation. However, these models are typically deployed as isolated, static command-line interfaces with incompatible data formats. This disconnection forces researchers to dedicate massive cognitive effort to low-level pipeline orchestration, data wrangling, and software dependency resolution, rather than high-level biological intuition.
Existing AI agent paradigms fall short of solving this. Generalist LLMs suffer from "context collapse" and performance degradation during long-horizon workflows. Conversely, existing domain-specific AI assistants suffer from architectural rigidity because they rely on hard-coded, inflexible pipelines that fail when facing open-ended scientific queries.
Methods
The authors introduce VenusFactory2, a multi-agent infrastructure that mimics a digital research laboratory. It divides labor among four specialized, role-playing AI agents:
- Principal Investigator (PI): Interprets the user's research intent, decomposes the objective into a Directed Acyclic Graph (DAG) of sub-tasks, and manages conversational and execution memory.
- Computational Biologist (CB): Queries external biological databases and orchestrates standard bioinformatics utilities (e.g., sequence alignment, structural folding).
- Machine Learning Specialist (MLS): Handles the lifecycle of predictive models, generating code, executing training/fine-tuning protocols, and running real-time automated debugging loops.
- Scientific Critic (SC): Acts as quality assurance, auditing intermediate results for biological plausibility and synthesizing the final report.
Self-Evolving Tool Creation
Crucially, VenusFactory2 features a closed-loop, self-evolving mechanism. When the PI agent identifies a methodological gap (a required capability missing from its library), the system doesn't fail. Instead, the CB and MLS collaborate to aggregate training data from the web, write optimized training scripts, fine-tune a foundational protein language model (using parameter-efficient methods like LoRA or DoRA), and automatically encapsulate the new model as a persistent, reusable tool via the Model Context Protocol (MCP).
Datasets
- Built-in Infrastructure: VenusFactory2 integrates over 100 computational utilities and connects programmatically to major repositories across literature (PubMed, arXiv), sequence/function (UniProt, NCBI, InterPro), structure (RCSB PDB, AlphaFold DB), and biochemical networks (BRENDA, ChEMBL, KEGG, STRING).
- VenusAgentEval Benchmark: To evaluate the framework, the authors established a new, expert-reviewed vertical benchmark containing 148 validated instances. The tasks are stratified by cognitive load into three tiers: Question-level (atomic retrieval), Task-level (multi-step workflows), and Project-level (long-horizon planning).
Key Insights and Ideas
- The Long-Horizon Collapse: Generalist models like DeepSeek-V3.1 are highly capable at atomic reasoning (scoring 67.2% at the Task-level) but suffer a catastrophic performance collapse (plummeting to 18.2% at the Project-level) under the weight of accumulating biological context.
- The Power of Explicit Roles: Separating planning, coding, data fetching, and criticism prevents the cognitive drift common in single-agent LLM workflows, allowing VenusFactory2 to maintain logical consistency across multi-step discovery campaigns.
- Input Validation as a Safeguard: VenusFactory2 can autonomously detect premise errors in user queries (such as conflicting residue positions in a provided sequence) and halt execution before wasting computational resources on flawed experimental designs.
Key Results
VenusFactory2 achieved a 78.8% weighted score at the Project-level on the VenusAgentEval benchmark, significantly outperforming generalist LLMs and domain-specific baselines. The authors validated the system through three real-world biological scenarios:
- De Novo Tool Synthesis: Given a prompt to evaluate modified food enzymes for allergenicity, the agent recognized it lacked a dedicated tool, built an 8:2 dataset split, fine-tuned an ESM2-8M model via LoRA, and deployed it to achieve an accuracy of 0.92 and an AUROC of 0.96.
- Adaptive Directed Evolution: Tasked with improving a VHH antibody's binding affinity, the agent bypassed a tool limitation (which only provided single-point fitness scores) by autonomously writing a Ridge Regression algorithm to successfully model and predict multi-site combinatorial epistatic effects.
- Precision Metagenomic Mining: Starting from a purely natural language functional description, the system successfully navigated billion-scale metagenomic spaces to discover a novel PET hydrolase (KbPETase). The discovered enzyme exhibited a melting temperature ($T_m$) of 80.1°C (exceeding standard IsPETase by 32°C) and a 97x increase in catalytic activity at 50°C.
Limitations and Future Work
- Linear Epistatic Assumptions: In the directed evolution case study, the autonomously generated Ridge Regression model relied on an additive linear approximation of mutation effects. The authors note that future iterations should explore advanced non-linear models (like gradient boosting) to better capture complex epistatic interactions.
- Seed Dependence: The protein discovery module remains dependent on having a reliable initial structure or literature profile to serve as an optimization seed.
- Downstream Wet-Lab Gap: While the system provides highly optimized, biophysically filtered shortlists, the final outputs still ultimately require physical wet-lab validation (e.g., IgE binding assays) to confirm clinical or regulatory safety.
Summary updated