Large Language Model Agent for Modular Task Execution in Drug Discovery

Janghoon Ock, Radheesh Sharma Meda, Srivathsan Badrinarayanan, Neha S. Aluru, Achuth Chandrasekhar, Amir Barati Farimani · DOI

Abstract

AgentD is a modular, LLM-powered framework designed to automate the early stages of computational drug discovery. By acting as an intelligent orchestrator for specialized bioinformatics and chemistry tools, it seamlessly handles everything from retrieving protein sequences and answering literature-grounded questions to generating, refining, and evaluating 3D structures of new drug candidates.

Introduction

Discovering new drugs is a notoriously slow and expensive process, often spanning 10-15 years and costing billions of dollars. Computational tools—such as molecular docking, property prediction algorithms, and generative AI—are essential for screening candidates before laboratory testing. However, these tools are often fragmented, requiring human experts to manually transfer data between disparate systems. AgentD addresses this bottleneck by serving as an autonomous "agentic" workflow, utilizing a Large Language Model (LLM) as a unified controller to coordinate these tasks while making informed, chemistry-aware decisions.

Methodology and System Architecture

AgentD is primarily powered by GPT-4o (with support for Claude-3.7-Sonnet and DeepSeek-Chat) and functions as the central "brain" of the drug discovery pipeline. The framework orchestrates six specialized modules to execute a comprehensive workflow.

The pipeline consists of the following stages:

  1. Data Extraction: Retrieves target protein sequences from UniProt, known drug structures (SMILES) from ChEMBL, and relevant literature via Semantic Scholar.
  2. Question Answering: Employs Retrieval-Augmented Generation (RAG) to provide literature-grounded answers to biological queries.
  3. Molecule Generation: Designs new molecules (de novo) or generates structural analogs.
  4. Property Prediction: Evaluates 75 distinct properties, including toxicity, absorption, and binding affinity.
  5. Property-Aware Refinement: The LLM analyzes predicted weaknesses (e.g., poor permeability) and suggests structural edits to the SMILES strings based on its internal chemistry knowledge.
  6. Structure Generation: Predicts 3D protein-ligand complexes and estimates inhibitory metrics.

To achieve these tasks, AgentD integrates several industry-standard bioinformatics and chemistry tools as primary components within its modules.

Experimental Setup

The framework was evaluated using three therapeutic targets: BCL-2 (lymphocytic leukemia), JAK-2 (myelofibrosis), and Thrombin (thrombosis). Generated molecules were benchmarked against standard drug-likeness filters, including the Quantitative Estimate of Drug-likeness (QED), Lipinski’s Rule of Five, Veber’s rule, and the Ghose filter.

Results and Discussion

Performance in Molecule Optimization

AgentD demonstrated significant improvements in molecule quality through LLM-driven refinement. Across two rounds of optimization on 100 seed molecules, the number of highly "drug-like" candidates (QED > 0.6) increased from 34 to 55. Compliance with the strict Ghose filter saw a 72% increase. Furthermore, when specifically targeting poor permeability, 52% of molecules showed quantitative improvement by the second round.

Enhanced Question Answering

The integration of RAG significantly improved the contextual accuracy of the agent. BERTScore F1 metrics rose from 0.63 (vanilla GPT-4o) to 0.70, effectively reducing generic hallucinations and providing more precise mechanistic explanations for drug resistance pathways.

Efficiency and Scalability

AgentD is highly cost-effective, costing approximately $0.022 per sample and utilizing roughly 9,000 tokens. This makes it significantly more scalable than comparable LLM-based optimization loops, such as dZiner, which was found to be nearly 24 times more expensive in comparative tests.

Conclusion

AgentD represents a significant step forward in autonomous drug discovery, proving that LLMs can act as effective scientific orchestrators. By using "weakness-aware" prompting, the agent can make targeted pharmacological edits without requiring complex, dedicated optimization algorithms.

However, challenges remain. The system is susceptible to cascading errors if external predictors provide inaccurate data. Additionally, the non-deterministic nature of LLM refinement can make exact reproducibility difficult. Future work will focus on integrating uncertainty-aware predictions, multi-objective optimization, and Molecular Dynamics (MD) simulations for physical validation of generated 3D structures.

Summary updated

BibTeX
@misc{ock2025large,
  author = {Janghoon Ock and Radheesh Sharma Meda and Srivathsan Badrinarayanan and Neha S. Aluru and Achuth Chandrasekhar and Amir Barati Farimani},
  title = {{Large Language Model Agent for Modular Task Execution in Drug Discovery}},
  year = {2025},
  eprint = {2507.02925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.02925},
}
Figure