Source-linked AI summary
BioAgents: Democratizing Bioinformatics Analysis with Multi-Agent Systems
Nikita Mehandru, Amanda K. Hall, Olesya Melnichenko, Yulia Dubinina, Daniel Tsirulnikov, David Bamman, Ahmed Alaa, Scott Saponas, Venkat S. Malladi
TL;DR
Bioinformatics workflows require broad expertise, while LLMs struggle with complex real-world tasks. BioAgents combines workflow-linked support and transparent reasoning; it performs comparably to experts on conceptual genomics, though complex code generation remains limited.
Problem
LLMs can assist with introductory bioinformatics questions but struggle with complex real-world programming, analysis, and research tasks that require knowledge of multiple tools and techniques.
Source: §1 · p. 1Method
BioAgents provides source-linked workflow support and natural-language explanations while identifying supplementary information users can provide to tailor results.
Source: §3 · pp. 9–10Results
BioAgents performed comparably to human experts on conceptual genomics tasks, while code generation remained an area for improvement.
Source: §3 · p. 9Takeaways & Limitations
Transparent, source-linked guidance can support researcher learning and help users refine workflows for their specific analyses.
Source: §3 · pp. 9–10For the most complex workflows, BioAgents offered step outlines rather than starter code, attributed to indexed-workflow gaps and limited tool and language diversity.
Source: §2.1.2 · p. 7
Abstract
from arXiv · showhide
Creating end-to-end bioinformatics workflows requires diverse domain expertise, which poses challenges for both junior and senior researchers as it demands a deep understanding of both genomics concepts and computational techniques. While large language models (LLMs) provide some assistance, they often fall short in providing the nuanced guidance needed to execute complex bioinformatics tasks, and require expensive computing resources to achieve high performance. We thus propose a multi-agent system built on small language models, fine-tuned on bioinformatics data, and enhanced with retrieval augmented generation (RAG). Our system, BioAgents, enables local operation and personalization using proprietary data. We observe performance comparable to human experts on conceptual genomics tasks, and suggest next steps to enhance code generation capabilities.
1 Main
Complex bioinformatics workflows demand expertise across domains, and LLMs struggle with intricate real-world research and programming tasks. BioAgents addresses this need with specialized agents built around a smaller model and documentation-based customization.
1 Main
- LLMs struggle with complex real-world bioinformatics tasks, while end-to-end workflows demand expertise across domains and involve many interdependent steps.The challenge affects both newcomers and experts seeking current techniques and software versions.Source: §1 · pp. 1–3
- Analysis of 68,000 Biostars question-answer pairs informed specialized agents for tool selection, workflow generation, and error troubleshooting.The most frequent questions concerned tools and analysis, including pipeline-related queries.Source: §1 · pp. 3–4
- BioAgents uses the smaller Phi-3 model to reduce computational-resource and infrastructure demands, supporting local use and real-time applications.The paper positions this as an alternative to multi-agent systems relying primarily on larger language models.Source: §1 · p. 4
- BioAgents uses specialized agents for conceptual genomics and workflow documentation, with a reasoning agent combining their outputs into a final response.One specialist is fine-tuned on bioinformatics tools documentation; the other uses RAG on workflow documentation.Source: Figure 2 · p. 3, §1 · p. 4
2 Results
Across the evaluated workflows, BioAgents performed comparably to experts on conceptual genomics but struggled to generate complete code for more complex tasks. The study also examines self-evaluation and transparent reasoning, finding that iterative refinement could reduce output quality while the system could identify useful missing information.
2.1 Evaluation across several use cases
- Three workflows of varying difficulty tested conceptual genomics and code generation against expert responses, with accuracy and completeness assessed by a bioinformatician.Accuracy measured how well the query was answered; completeness measured coverage of relevant information.Source: §2.1 · pp. 4–5
- BioAgents matched human experts on conceptual genomics but declined on medium and hard code-generation tasks, especially when starter code was required.For the hardest workflows, it offered step outlines instead of starter code; authors attributed this to indexed-workflow gaps and limited tool and language diversity.Source: Figure 3 · p. 5, §2.1.1 · pp. 5–6, §2.1.2 · pp. 6–7
2.1.1 Conceptual Genomics Tasks
- For the hard SARS-CoV-2 workflow, BioAgents outlined steps from sequencing-data quality control through variant analysis and phylogeny, but sometimes omitted steps.Human experts proposed robust pipelines but lacked rationales for tool recommendations.Source: §2.1.1 · p. 6
2.1.2 Code Generation Tasks
- As code-generation workflows grew more complex, BioAgents struggled to produce complete medium-task outputs and failed to generate starter code for the hardest workflows.The paper attributes the hardest-task limitation to gaps in indexed workflows and a lack of tool and language diversity in the training dataset.Source: §2.1.2 · pp. 6–7
2.2 Reliability and Transparency
- The study treats reliability and transparency as necessary for specialized-domain agents, assessing whether outputs explain reasoning and identify additional information needed.The assessment drew on reasoning frameworks including chain-of-thought and ReAct.Source: §2.2 · p. 7, §2.2.2 · p. 8
2.2.1 Self-Reflection in Agent Systems
- BioAgents reprocessed responses below a quality threshold, but repeated refinements could negatively affect output quality rather than improve it.The paper describes these diminishing returns as a limitation of the iterative process.Source: §2.2.1 · p. 7, Figure 5 · p. 7
2.2.2 Collaborative Reasoning and Transparent Guidance
- BioAgents explained RNA-seq alignment-tool choices and identified missing task information even when its hard-task code was weaker than experts’ responses.It named raw-data, reference-genome, software-version, resource, and user-experience details as useful inputs; experts often struggled to articulate information gaps.Source: §2.2.2 · p. 8
3 Discussion
BioAgents is presented as a locally accessible system for synthesizing workflows to support reproducibility, transparency, and user learning. The discussion reports expert-comparable performance on conceptual genomics tasks while identifying code generation and workflow diversity as areas for improvement.
- BioAgents is proposed as a way to synthesize workflows from research publications to support experiment replication, result validation, and adaptation to researchers’ datasets.The discussion frames this as a potential response to reproducibility challenges associated with complex computational workflows.Source: §3 · p. 9
- The authors report that BioAgents identifies information gaps, explains decisions, and can outline additional data that could improve results despite accuracy struggles on complex tasks.Examples include tool versions, user experience, and, for a hard code-generation task, sequencing data, reference genomes, and computational resources.Source: §3 · p. 9
- BioAgents performed comparably to human experts on conceptual genomics tasks, but the discussion identifies code generation as an area for improvement.The authors also identify limited workflow diversity, retrieval methods, and reasoning capabilities as targets for enhancement.Source: §3 · pp. 9–10
- The authors identify limited reliance on nf-core workflows, retrieval of only top-ranked matches, and the need for stronger tool-version and executability checks as improvement targets.They also propose linking steps to source documentation to increase transparency and trust.Source: §3 · pp. 9–10
- By providing supporting information and reasoning, BioAgents is presented as helping researchers understand, modify, and learn to reproduce workflow decisions.The discussion contrasts this with static question-answer forums that can provide answers without explaining respondents’ reasoning.Source: §3 · pp. 9–10
- BioAgents is described as lowering compute barriers through local operation, with a framework that could be trained on proprietary or domain-specific code and documentation.The authors suggest that the framework may extend to other domains facing reproducibility challenges.Source: §3 · p. 10
4.1 Datasets
The datasets combine Biostars questions and answers, documentation for frequently used BioContainers tools, and ontology descriptions of software and assays.
4.1.1 Biostars
- The Biostars dataset contains 68,000 publicly available question-answer pairs through May 1, 2024, retaining answers with at least one upvote and categorizing question tags into five groups.The categories cover tools, analysis, data formats, programming, and other questions.Source: §4.1.1 · pp. 10–11
4.1.2 Biocontainers
- The BioContainers dataset includes versions and command-line help documentation for the top 50 bioinformatics tools, selected using download-frequency statistics.The team obtained available Docker versions and downloaded each container to retrieve its help documentation.Source: §4.1.2 · p. 11
4.1.3 Ontologies
- The ontology data comprise software and assay descriptions converted from JSON or OBO formats into JSON-LD using names and descriptions or definitions.The authors identify the Software and EDAM Ontologies as sources.Source: §4.1.3 · p. 11
4.2 Models
BioAgents combines parameter-efficient fine-tuning of Phi-3 with retrieval augmented generation to balance computational efficiency, domain specificity, and accessibility.
- The authors fine-tuned Phi-3-mini-128-instruct with QLoRA on a single A100 GPU, using quantization and low-rank adapters to reduce computational overhead.The approach is described as retaining performance while reducing resource requirements.Source: §4.2 · p. 11
- Fine-tuning used documentation for the top 50 BioContainers tools and Software Ontology data, with a 1,000-token generation limit and temperature of 0.1.The training was conducted on Azure Machine Learning.Source: §4.2 · p. 11
- The RAG system uses text-embedding-ada-002 and Azure AI Search to retrieve nf-core modules and Sequence Ontology information about assays and their purposes.The authors describe the combined fine-tuning and RAG system as balancing computational efficiency, domain specificity, and accessibility.Source: §4.2 · p. 11
4.3 Expert Survey
The expert survey compared BioAgents outputs with experienced bioinformaticians’ workflow reasoning and code. Responses indicated that more complex tasks required more reasoning and additional information.
4.3 Expert Survey
- The survey elicited expert answers and reasoning on workflow questions informed by Biostars data, then compared those responses with BioAgents outputs.The survey covered conceptual genomics and code-generation tasks.Source: §4.3 · p. 12
4.3.1 Survey Design
- The 27-question survey included eight demographic questions and easy, medium, and hard tasks, each asking for an answer with reasoning and, separately, code with reasoning.Respondents imagined advising an undergraduate student and could note additional information needed.Source: §4.3.1 · p. 12
4.3.2 Recruitment and Informed Consent
- Five experts responded; eligibility required at least five years of bioinformatics experience, intermediate-to-advanced coding skills, and age 18 or older.Recruitment used Microsoft internal community email lists and snowball sampling.Source: §4.3.2 · p. 12
4.3.3 Qualitative Data Analysis
- The researchers analyzed task steps and code across expert responses to create ground truth, and thematically analyzed reasoning and requests for additional information.The analysis covered easy, medium, and hard workflow and code-generation tasks.Source: §4.3.3 · p. 13, §4.3.4 · p. 13
4.3.4 Expert Findings
- Expert responses did not vary across experts for easy questions, while medium and hard tasks required more reasoning and additional information as task complexity increased.The more difficult tasks also required additional tools and knowledge to navigate and implement a correct solution.Source: §4.3.4 · p. 13
4.4 Human Evaluation
A domain expert evaluated system outputs for accuracy and completeness. The criteria covered correctness and whether answers contained the components needed to address each task.
4.4 Human Evaluation
- A domain expert assessed outputs on accuracy and completeness, using both criteria to evaluate the system’s responses.For conceptual tasks, the expert checked consistency with domain knowledge; for code generation, syntax, tool compatibility, and functionality.Source: §4.4 · p. 13
- Accuracy scores ranged from 1 for major inaccuracies to 5 for full correctness of the code and steps.The rubric also considered whether steps and software were reasonable and not hallucinated.Source: §4.4 · p. 13
- Completeness scores ranged from 1 for significant omissions to 5 for comprehensive coverage that could be implemented without further searching.Source: §4.4 · p. 14
4.5 Supplementary Material
The supplementary material reports a Biostars question-answer benchmark and displays BioAgents and human-expert outputs for easy and medium workflows.
4.5 Supplementary Material
- Phi-3 and GPT-4 performed similarly on the Biostars QA benchmark.The table caption identifies the benchmark as 71 Biostars question-answer pairs.Source: §4.5 · p. 14, Table 1 · p. 14
- The supplementary material displays BioAgents and human-expert outputs for the easy and medium workflows.Source: §4.5 · p. 14
- Figure 6 presents the multi-agent system on the easy workflow.Source: Figure 6 · p. 14