Source-linked AI summary

DrugAgent: Automating AI-aided Drug Discovery Programming through LLM Multi-Agent Collaboration

Sizhe Liu, Yizhou Lu, Siyu Chen, Xiyang Hu, Jieyu Zhao, Yingzhou Lu, Yue Zhao

arXiv:2411.15692v2cs.LG

TL;DR

Drug-discovery ML programming requires specialized expertise, which general-purpose agent frameworks lack. DrugAgent pairs an idea-planning LLM with an instructor that integrates domain knowledge during implementation. Across three case studies, it outperforms general-purpose frameworks, including a 4.92% relative ROC-AUC improvement over ReAct for DTI.

  • Problem

    General-purpose ML agents lack expert knowledge of drug-discovery workflows, where specialized tasks such as data handling and library choice can be difficult to implement and debug.

    Source: §1 · p. 1
  • Method

    DrugAgent pairs a Planner that generates and refines solution ideas with an Instructor that implements them using drug-discovery domain knowledge.

    Source: §2 · p. 2, §1 · p. 2
  • Results

    DrugAgent improves on general-purpose agent frameworks across three case studies, including a 4.92% relative ROC-AUC improvement over ReAct on DTI.

    Source: §4 · p. 4, §3.2 · p. 4
  • Takeaways & Limitations

    The authors attribute DrugAgent’s improvements largely to idea search by the Planner and reliable, tool-supported implementation by the Instructor.

    Source: §4 · p. 4

    Evaluation covers only three case-study tasks, and the authors state that DrugAgent is not yet ready for direct deployment in drug-discovery pipelines because of challenges such as hallucination.

    Source: Limitations · p. 5, Ethics Statement · p. 5

Abstract

from arXiv · show

Recent progress in Large Language Models (LLMs) has drawn attention to their potential for accelerating drug discovery. However, a central problem remains: translating theoretical ideas into robust implementations in the highly specialized context of pharmaceutical research. This limitation prevents practitioners from making full use of the latest AI developments in drug discovery. To address this challenge, we introduce DrugAgent, a multi-agent framework that automates machine learning (ML) programming for drug discovery tasks. DrugAgent employs an LLM Planner that formulates high-level ideas and an LLM Instructor that identifies and integrates domain knowledge when implementing those ideas. We present case studies on three representative drug discovery tasks. Our results show that DrugAgent consistently outperforms leading baselines, including a relative improvement of 4.92% in ROC-AUC compared to ReAct for drug-target interaction (DTI). DrugAgent is publicly available at https://anonymous.4open.science/r/drugagent-5C42/.

1 Introduction and Related Work

Drug discovery ML programming requires expertise across biology, chemistry, pharmaceutical science, and computer science, while general-purpose ML agents lack drug-discovery workflow knowledge. DrugAgent combines domain-aware implementation with iterative idea planning to address this gap.

1 Introduction and Related Work

  • Drug-discovery ML pipelines span several specialized fields, and general-purpose ML agents lack expert workflow knowledge while chemistry-focused tools offer limited support for large-scale ML.Small mistakes such as choosing the wrong library or misinterpreting biological data types can be difficult to debug.Source: §1 · p. 1
  • DrugAgent distinguishes itself through environment interaction, ML-programming specialization, drug-discovery domain knowledge, and idea-space planning.Its stated contributions include systematic domain-knowledge integration, planning guided by experimental observations, and specialized tools and documentation.Source: Table 1 · p. 2, §1 · p. 2
  • DrugAgent’s iterative search starts from a natural-language drug-discovery task and combines Planner and Instructor work toward actionable, high-performing solutions.The overview illustrates the input with an Absorption prediction task using the PAMPA dataset.Source: Figure 1 · p. 2

2 Methodology

DrugAgent uses a Planner to generate and refine ML solution ideas and an Instructor to implement them with drug-discovery domain knowledge. The workflow iterates over candidates using experimental feedback and curated domain resources.

2 Methodology

  • An ML programming task comprises a natural-language Task Description, Starter Files such as datasets or code templates, and an Evaluator that assesses output quality with a performance metric.The Evaluator is the metric function used to assess the output.Source: §2 · p. 2
  • The Planner generates multiple ideas, explores them through Instructor evaluation, revises the set using success or failure reports, and submits the highest-performing idea after a maximum number of iterations.Underperformance or infeasibility can lead to an idea being discarded.Source: §2 · p. 2
  • The Instructor incorporates domain knowledge throughout coding, executes standard ML actions, and uses targeted documentation to build or refine specialized tools.Its performance report can instead be a failure report when critical functionalities are absent.Source: §2 · p. 3
  • The curated resources cover biological data acquisition, molecule and protein featurization, and domain-specific models including ChemBERTa and ESM.The framework aims to reduce errors from incomplete or incorrect handling of drug-discovery subtleties.Source: §2 · p. 3

3 Experiment

Across three drug-discovery tasks, DrugAgent achieves the highest ROC-AUC and Valid Rate among AI-based methods and performs comparably to human-selected baselines. The case study attributes its lower error rate to handling domain-knowledge operations more reliably.

3.1 Experimental Setup

  • The experiments cover ADMET prediction, high-throughput screening, and drug-target interaction prediction, using PAMPA, HIV, and DAVIS datasets, respectively.Each task is a binary classification problem; the study conducts eight independent runs for each AI-based method and reports average ROC-AUC over valid submissions.Source: §3.1 · p. 3

3.2 Quantitative Results

  • DrugAgent achieves the highest ROC-AUC and Valid Rate among AI-based methods across PAMPA, HIV, and DAVIS, performing comparably to human-selected baselines.The reported relative ROC-AUC improvement over ReAct on DTI is 4.92%.Source: §3.2 · pp. 3–4, Table 2 · p. 4
  • The DAVIS ablation table examines how removing the Planner or Instructor affects ROC-AUC and Valid Rate, with results averaged across runs.The supplied passage identifies the comparison but does not provide its values.Source: Table 3 · p. 4
  • Both the Planner and Instructor contribute significantly to overall performance, and DrugAgent’s case study highlights idea diversification, domain-knowledge integration, and learning from failures.The framework also reports that considering multiple submissions can mitigate suboptimal selection from validation results.Source: §3.2 · p. 4, §3.3 · p. 4

3.3 Case Study

  • The case study compares DrugAgent with ReAct and reports that DrugAgent has no errors from incorrect operations requiring domain knowledge and the lowest overall error rate.The analysis examines DTI run traces and categorizes the four most common error types.Source: §3.3 · p. 4, Figure 2 · p. 4

4 Conclusion

DrugAgent combines an idea-searching Planner with an Instructor that integrates a specialized toolset for implementation. In case studies across three drug-discovery tasks, it improves on general-purpose agent frameworks such as ReAct and ResearchAgent.

4 Conclusion

  • DrugAgent is a multi-agent framework for automating critical aspects of drug discovery, with case studies spanning three tasks.The conclusion describes the framework as addressing pharmaceutical research’s nuanced demands.Source: §4 · p. 4
  • The Planner searches for ideas, while the Instructor supports reliable implementation by integrating a specialized toolset.The authors attribute the framework’s improvements largely to these two agent roles.Source: §4 · p. 4
  • The paper reports improvements over general-purpose frameworks including ReAct and ResearchAgent across its three drug-discovery case studies.Source: §4 · p. 4

Limitations

DrugAgent’s evaluation and supporting resources remain limited in scope, and the authors identify broader evaluation and documentation as future needs.

  • Evaluation covers only three case-study tasks, which the authors say are insufficient for a comprehensive assessment of drug-discovery ML programming.They call for more extensive benchmarks in drug-discovery settings.Source: Limitations · p. 5
  • DrugAgent is compared with classic state-of-the-art baselines rather than the latest cutting-edge methods.The authors say advancing agent capabilities will require significant research efforts.Source: Limitations · p. 5
  • The current DrugAgent documentation is relatively basic and could be expanded to cover more of the drug-discovery process.Source: Limitations · p. 5
  • The framework could incorporate a human-in-the-loop approach to improve usability for scientists working on real-world drug discovery.Source: Limitations · p. 5

Ethics Statement

The paper situates its approach among LLM agents and biomedical discovery systems, outlines the instructor’s available actions, and describes domain-specific documentation. It also cautions that hallucinations and fabricated results make DrugAgent unsuitable for direct pipeline deployment without further safety checks and human oversight.

Ethics Statement

  • Hallucinated or fabricated results could waste wet-lab verification resources or misguide drug-discovery directions, so the current framework is not ready for direct pipeline deployment.The authors say further safety checks and human oversight are essential.Source: Ethics Statement · p. 5

A Related Work

  • Existing ML-programming agents cannot handle domain-specific drug-discovery tasks, while biomedical agents generally lack ML-specific expertise for end-to-end programming.Source: A Related Work · p. 8

B Action

  • The instructor can list, read, write, append, copy, inspect, undo, execute, understand, and edit files or scripts, including script segments.The paper recommends MLAgentBench for detailed explanations of these commonly used ML-agent actions.Source: B Action · p. 8

C Documentation

  • Documentation covers 66 AI/ML-ready datasets, drug and protein preprocessing methods, and ChemBERTa and ESM models.It draws on TDC, DGL-LifeSci, RDKit, PyBioMed, and Transformers resources, and the authors say it can be extended for specific needs and available resources.Source: C Documentation · p. 8

D Dataset Description

The dataset description reports sample counts and split strategies for DAVIS, PAMPA, and HIV.

  • DAVIS contains 68 drugs and 379 proteins, with 2,086 training, 3,006 validation, and 6,011 test samples.The passage points to MolTrans for dataset and preprocessing details.Source: D Dataset Description · p. 8
  • PAMPA has 1,424 training, 203 validation, and 407 test samples, split using the TDC random split strategy.Source: D Dataset Description · p. 8
  • HIV has 28,789 training, 4,113 validation, and 8,225 test samples, split using the TDC random split strategy.Source: D Dataset Description · p. 8

E Human Baseline

The paper selects task-specific human baselines and caps agent frameworks at 100 actions, with additional ResearchAgent settings.

E Human Baseline

  • The task overview focuses on small-molecule drugs, which the paper says constitute over 90% of approved drugs, represented as SMILES strings.Source: Table 4 · p. 9
  • For ADMET and HTS, the human baseline is a random forest with Morgan fingerprinting, chosen because tree-based models consistently outperform several alternatives on those tasks.Source: E Human Baseline · pp. 8–9
  • DeepDTA, which uses two CNN encoders for drug and protein representations, serves as the human baseline for DTI.The paper describes it as a well-established, widely adopted state-of-the-art baseline for DTI studies.Source: E Human Baseline · p. 9

F Settings

  • All agent frameworks are limited to 100 actions; ResearchAgent processes only the first three blocks when understanding a file and receives error messages to aid debugging.Source: F Settings · p. 9

G Ablation Study

Without the Instructor, exploring multiple ideas improved performance over ReAct but results remained unsatisfactory because of ineffective molecule encoding. Without the Planner, iterative prompts still produced insufficiently diverse approaches.

G.1 Without Instructor

  • Without the Instructor, exploring multiple ideas improved overall performance over ReAct, but results remained unsatisfactory because molecules were sometimes encoded ineffectively.Source: §G.1 · p. 9
  • In the example, ReAct encodes a protein as a fixed 1024-feature vector containing each sequence character's ordinal value.Source: §G.1 · p. 9

G.2 Without Planner

  • Without the Planner, iterative model experiments often stayed within similar ideas, limiting exploration of more optimal approaches.Source: §G.2 · p. 9

H Comparing DrugAgent with ReAct

In the DTI comparison, DrugAgent combines broader idea selection, domain-aware implementation, and learning from observations, while the sample code shows a feature-based training and prediction workflow.

H Comparing DrugAgent with ReAct

  • DrugAgent diversifies solution ideas, integrates domain-specific methods, and uses observations to guide future choices, whereas ReAct focuses on refining a single approach and struggles to recover from poor planning.In the case study, DrugAgent avoids further exploration of graph-based protein encoding after identifying its limitations.Source: H Comparing DrugAgent with ReAct · pp. 10–11
  • DrugAgent identifies protein preprocessing needs and uses fingerprint-based biological-data encoding, producing a bug-free model on its first attempt.ReAct misses early protein preprocessing, leading to debugging time and suboptimal molecular-data encoding choices.Source: H Comparing DrugAgent with ReAct · p. 10

H.1 Sample Code by DrugAgent

  • The sample code loads train, validation, and test CSVs, extracts drug and protein features, computes ROC-AUC scores, and predicts test-set probabilities.The code uses ECFP4 for drug features and calls a protein featurizer for training and validation data.Source: §H.1 · p. 11

I Error Type

The error taxonomy distinguishes fabricated progress, unresolved code problems, domain-knowledge mistakes, and submission-format violations.

  • Hallucination means fabricating results or falsely claiming progress, such as reporting a submission without editing the training script.Source: I Error Type · p. 11
  • Debugging errors occur when the agent cannot resolve code-modification issues, such as mismatched tensor shapes.Source: I Error Type · p. 11
  • Domain errors are poor performance caused by incorrect operations requiring domain knowledge, including improper drug or protein fingerprinting.Source: I Error Type · pp. 11–12
  • Format errors occur when the agent changes the submission format so the evaluator cannot recognize it.Source: I Error Type · p. 12
Loading 2411.15692v2…