MedVerse: Efficient and Reliable Medical Reasoning via DAG-Structured Parallel Execution

Jianwen Chen, Xinyu Yang, Peng Xia, Arian Azarang, Yueh Z. Lee, Gang Li, Hongtu Zhu, Yun Li, Beidi Chen, Huaxiu Yao

TL;DR

MedVerse is a full-stack framework that reformulates medical reasoning from a rigid, linear sequence into a parallelizable Directed Acyclic Graph (DAG) based on Petri Net theory. By enabling large language models (LLMs) to explore multiple diagnostic hypotheses concurrently, it improves accuracy by up to 8.9% while delivering a 1.3× reduction in inference latency and a 1.7× increase in generation throughput.

What Problem Does This Paper Address?

When physicians diagnose a patient, they naturally consider multiple differential diagnoses simultaneously. However, standard Large Language Models (LLMs) rely on sequential autoregressive decoding, forcing this inherently parallel cognitive process into a single linear path.

As highlighted in the paper, this mismatch introduces three fundamental limitations:

  1. Contextual Pollution (Accuracy): Early incorrect hypotheses can bias the rest of the generation, narrowing the diagnostic space.
  2. Redundant Computation (Efficiency): Serial decoding repeatedly processes overlapping evidence, drastically increasing response latency.
  3. Structural Mismatch (Interpretability): Unstructured Chain-of-Thought (CoT) text obscures explicit causal relationships, making clinical validation difficult.

Prior attempts at parallel thinking in LLMs rely on brute-force repeat sampling, which wastes tokens and fails to capture the complex conditional dependencies of clinical inference.

Limitations of sequential chain-of-thought reasoning in medical diagnosis.

Methods

MedVerse addresses these bottlenecks through a full-stack co-design across data, architecture, and system execution:

  • Petri Net Modeling: The framework formalizes differential diagnosis using Colored Petri Net theory. Clinical entities (symptoms, history) are represented as "places" (state containers), and reasoning steps are "transitions." Tokens act as computational state carriers, passing memory references (textual history and KV-cache indices) rather than copying full text.
  • Structured Generation Flow: Generation is broken down into three distinct stages:
  • Planning Stage: The model uses a "Think–then–Map" strategy to generate multiple linear paths and consolidate them into an XML-structured <Plan> block.
  • Execution Stage: Guided by the plan, a customized engine concurrently executes independent reasoning steps within <Step> tags using Fork and Join primitives.
  • Conclusion Stage: The outcomes of all parallel branches are aggregated into a final unified diagnostic conclusion.
  • MedVerse Attention: To support DAG-structured dependencies during training, the authors introduce a layer-wise mutual exclusion mask to prevent information leakage between parallel transitions, alongside adaptive position indices to synchronize execution timelines.
  • MedVerse Engine: A high-performance serving engine built to handle the hybrid execution pipeline. It leverages Radix Attention to enable zero-copy prefix reuse during forks and performs zero-copy KV merges during joins without physical memory copying.
Illustration of the topological modeling process mapping a clinical question to an Executable Petri Net.

Datasets

  • MedVerse-14K: A newly introduced training corpus comprising 13,904 high-quality, structured medical reasoning trajectories. It was generated using the MedVerse Curator—an automated pipeline that extracts knowledge-grounded paths from a medical knowledge graph and refines them into Petri Net structures. The dataset utilizes subsets from existing benchmarks including MedQA, MedMCQA, PubMedQA, MMLU-Medical, HuatuoGPT-o1, MedXpert, and Humanity's Last Exam (HLE).
  • Evaluation Benchmarks: The framework was evaluated across five standard medical reasoning benchmarks: HLE (Biomed), MedBullets (op4 and op5), MedQA, and MedXpert.

Key Insights and Ideas

  • Shifting Latency Complexity: By generating independent reasoning paths simultaneously, MedVerse shifts the computational latency complexity from total token length $O(N)$ to the topological depth of the reasoning graph $O(D)$. This drastically reduces user wait times for complex, multi-step queries.
  • The Power of "Hiding" Context: Ablation studies revealed that topology-aware masking (Mask-Ser) improves accuracy even when executed serially (+1.66% over the baseline). "Hiding" irrelevant parallel branches prevents the model from relying on spurious positional correlations and forces it to focus on genuine causal dependencies.
  • Linear-to-Parallel Hybridization: Directly generating topological structures from scratch fails because standard LLMs struggle to construct sound execution graphs blindly. MedVerse succeeds by utilizing a linear planning phase to establish the graph topology before initiating parallel execution.

Key Results

  • State-of-the-Art Accuracy: MedVerse consistently outperformed base models and specialized medical LLMs. On LLaMA-3.1-8B-Instruct, MedVerse achieved an average accuracy of 44.2%, surpassing both MedReason (42.2%) and HuatuoGPT-o1 (42.7%). On Qwen2.5-7B-Instruct, it boosted average accuracy from 34.5% to 39.3%.
  • Substantial Speedups: The framework achieved a stable 1.25× to 1.33× end-to-end latency reduction across all evaluation datasets. In an "Iso-Length" stress test at 2048 tokens, MedVerse demonstrated superior parallel scalability, achieving a +69.3% peak throughput gain over the autoregressive baseline.
  • Enhanced Clinical Reliability: When evaluated by GPT-5.2 acting as a physician-level judge, MedVerse reduced high-risk clinical errors by 50% (dropping from 11.4% to 5.7%) while improving causal validity by 12.1% and edge accuracy by 15.4%.
Performance comparison on medical reasoning benchmarks.

Limitations and Future Work

  • Topology Dependency: The achievable speedup is highly dependent on the inherent parallelism of the medical problem. For simpler clinical cases with predominantly linear dependency structures (which make up about 3% of cases), the benefits of parallel execution are limited. Automatically adapting execution strategies to different reasoning topologies remains an open challenge.
  • Offline Evaluation: The framework was evaluated strictly on offline benchmarks under controlled settings. The authors note that additional studies are required to assess how MedVerse behaves under interactive, user-in-the-loop clinical scenarios where dynamic query refinements or real-time feedback might alter the execution graph on the fly.

Summary updated

BibTeX
@inproceedings{chen2026medverse,
  author = {Jianwen Chen and Xinyu Yang and Peng Xia and Arian Azarang and Yueh Z. Lee and Gang Li and Hongtu Zhu and Yun Li and Beidi Chen and Huaxiu Yao},
  title = {{MedVerse: Efficient and Reliable Medical Reasoning via DAG-Structured Parallel Execution}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.699},
}
Figure