A Generative AI System for Biomedical Data Discovery with Grammar-Based Visualizations

Devin Lange, Shanghua Gao, Pengwei Sui, Austen Money, Priya Misner, Marinka Zitnik, Nils GehlenborgarXiv 2025 · DOI

Abstract

Biomedical data discovery is often hindered by the complexity of existing data portals. We present a generative AI prototype that utilizes a multi-agent Large Language Model (LLM) architecture to transform natural language queries into interactive, linked visualization dashboards. By employing a custom JSON-based visualization grammar and hybrid UI widgets, the system enables researchers to perform complex exploratory data analysis through intuitive conversation.

Introduction

The explosion of biomedical data has created a significant challenge for researchers attempting to navigate massive repositories. Traditional data portals often present a "flexibility vs. complexity" trade-off: simple keyword searches lack the depth for specific queries, while advanced interfaces require significant expertise. Natural Language Interfaces (NLIs) offer a potential solution, but existing tools frequently produce static, isolated charts rather than the integrated, interactive environments necessary for scientific discovery.

Methodology

The proposed system integrates a conversational chat interface with a dynamic dashboard, powered by three primary components:

Multi-Agent Orchestration

The system employs an "Orchestrator" to parse user intent. Depending on the query, it delegates tasks to specialized agents:

  • Filter Agent: Powered by GPT-4, this agent handles data subsetting and entity-relationship mapping.
  • Visualization Agent: A fine-tuned LLM that generates visual specifications based on reasoning-action traces.

Custom Visualization Grammar

To ensure stability and security, the system outputs specifications in a custom JSON-based grammar. Inspired by Vega-Lite, this grammar supports tabular data and cross-view linking. By restricting the AI's output to a structured schema, the researchers implemented a robust guardrail; any output failing to adhere to the grammar is ignored, preventing the execution of hallucinated or unsafe code.

Hybrid UI Widgets

To address the "black box" nature of AI, the system generates interactive UI widgets (e.g., sliders, checkboxes) alongside the chat. This allows users to manually refine AI-generated filters, ensuring precision in data exploration.

The system architecture showing (a) the chat interface with filtering widgets and (b) the resulting interactive visualization dashboard.

Key Features and Insights

The prototype introduces several innovations tailored for the biomedical domain:

  1. Progressive Dashboarding: Dashboards are built incrementally. Each interaction adds a new view, allowing users to construct complex analytical workspaces step-by-step rather than relying on pre-configured templates.
  2. Automatic Brushing and Linking: The system automatically injects interactivity between views. For instance, selecting a data point in a scatterplot will highlight corresponding entries in a bar chart or data table, facilitating multi-dimensional analysis.
  3. Entity-Relationship Filtering (Filter-ER): The system understands the hierarchical nature of biomedical data. Filtering at the donor level (e.g., "donors over age 60") automatically propagates to related biological samples and experimental datasets, ensuring consistency across the entire dashboard.
Close-up of the chat interface demonstrating natural language filtering and the generation of interactive UI widgets for manual refinement.

Case Study and Results

The system's utility was evaluated through a case study involving donor metadata exploration. The prototype successfully interpreted vague requests (e.g., "show me all donor data") and handled multi-step refinements. A key observation was the "Resolve" capability: when a user requested to "filter to adults," the AI initially suggested an 18–90 age range. The user was then able to utilize the generated UI slider to adjust the range to 21–90, demonstrating how the hybrid interface compensates for potential AI ambiguity.

Conclusion and Future Work

This prototype demonstrates the potential of generative AI to democratize complex biomedical data discovery. By combining LLMs with structured visualization grammars, the system provides a flexible yet stable environment for scientific exploration. Future work will focus on formal user studies to quantify efficiency gains, reducing latency in multi-agent calls, and improving model stability for increasingly complex data schemas.

Summary updated

BibTeX
@misc{lange2025generative,
  author = {Devin Lange and Shanghua Gao and Pengwei Sui and Austen Money and Priya Misner and Marinka Zitnik and Nils Gehlenborg},
  title = {{A Generative AI System for Biomedical Data Discovery with Grammar-Based Visualizations}},
  year = {2025},
  eprint = {2509.16454},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.16454},
}
Figure