MedCoast: Semantic Abstraction of Reasoning Trajectories for Test-Time Biomedical Question Answering

Yishan Zhong, Jieru Li, Xuanzhe Ding, Shaunna Wang, Yanxin Yang, Micky C. Nnamdi, J. Ben Tamo, Yifei Wang, Yining Yuan, Benoit L. Marteau, Shaun Q. Y. Tan, Carrie Moore, Luyu Xie, Yang Xie, Wenqi Shi, May D. WangarXiv 2026

Imagine you’re a medical resident trying to solve a complex diagnostic puzzle. You have a dozen different ways to phrase "check the patient's blood sugar," but at the end of the day, they all represent the same clinical action. Large Language Models (LLMs) often get stuck in the weeds of these "surface forms," treating semantically identical reasoning steps as entirely different paths. This makes searching for the right answer computationally expensive and incredibly redundant.

MedCoast is a new framework designed to strip away that linguistic noise, turning messy, free-form reasoning into a clean, structured "map" of clinical logic.

TL;DR

MedCoast improves biomedical question answering by clustering similar reasoning steps into abstract "states," creating a compact tree of clinical logic. By training a lightweight reward model on this tree, the system can guide an LLM through complex multi-step problems more efficiently, outperforming standard methods by up to 15 points while using a model 50 times smaller than the state-of-the-art.

What Problem Does This Paper Address?

Biomedical reasoning is a high-stakes game of "connect the dots." One wrong turn early in a chain of thought (CoT) can lead to a completely incorrect diagnosis. To fix this, researchers often use "test-time search"—letting the model explore multiple paths (like a Tree-of-Thought) and picking the best one.

The catch? Searching through raw text is a nightmare. If a model generates 100 possible next steps, 90 of them might be semantically identical but worded differently. This redundancy wastes the "inference budget" (the amount of computing power you have at the moment of the query). Furthermore, most models are only rewarded for the final answer, providing no feedback on whether the intermediate steps were actually sound.

Methods

MedCoast bridges the gap between offline "learning from experience" and online "smart searching" through a three-stage process:

  1. Offline Semantic Abstraction: The researchers sampled thousands of reasoning paths from various LLMs. They used a sentence encoder to group similar steps together. If two steps had a high "cosine similarity" (meaning they meant roughly the same thing), they were merged into a single node in an Abstract Reasoning Tree.
  2. Node-Level Supervision: Instead of just looking at the final answer, they scored every node in the tree based on two factors:
  3. Subtree Correctness: What percentage of paths going through this node eventually lead to the right answer?
  4. Proximity: How many steps away is this node from the nearest correct solution?
  5. Process Reward Model (PRM) Training: They trained a tiny, 149-million parameter BERT model to predict these scores. Crucially, they used a "pairwise gap-aware" loss, teaching the model to distinguish why one specific clinical "thought" is better than its sibling "thought."
Figure 1: Overview of MEDCOAST. Offline, we cluster same-depth reasoning steps into abstract states and train a value model on the resulting structure. At inference, the learned critic guides efficient exploration.

At inference time, this PRM acts as a "critic," guiding a Monte Carlo Tree Search (MCTS). Instead of blindly sampling paths, the LLM uses the critic to prioritize the most promising clinical directions.

Figure 3: Test-time process-critic MCTS for reasoning. New leaf nodes are expanded and evaluated, and the value is backed up through the tree.

Datasets

The authors evaluated MedCoast across a gauntlet of seven biomedical benchmarks:

  • In-Distribution (ID): PubMedQA, MedQA (USMLE style), MedMCQA, and BioASQ.
  • Out-of-Distribution (OOD): MedQuAD, MedXpertQA, and MMLU-Med.

These datasets cover everything from professional licensing exams to open-ended biomedical research questions.

Key Insights and Ideas

  • Meaning over Words: By collapsing thousands of text snippets into a few hundred "semantic states," MedCoast makes the search space manageable. It turns a dense jungle into a well-marked trail.
  • Proximity is a Powerful Signal: One of the biggest "aha" moments was finding that "proximity to the correct answer" is a much more stable training signal than just "subtree correctness." It’s easier for a model to learn "I am getting closer" than "this path has a 60% chance of success."
  • Small Critics, Big Backbones: The PRM used here is tiny (149M parameters) compared to the 8B parameter models it guides. This proves you don't need a massive model to act as an effective "judge" of reasoning.

Key Results

  • Massive Accuracy Gains: MedCoast frequently outperformed "Self-Consistency" (the standard way of sampling multiple answers and taking a majority vote) by up to 15 percentage points.
  • Efficiency: It achieved performance comparable to state-of-the-art reward models that are 50 times larger.
  • Robustness: Unlike other reward models that only work well with the specific LLM they were trained on, MedCoast’s critic showed strong "cross-model generalizability," successfully guiding models like OLMo and Phi-3.5 that it had never seen during training.

Limitations and Future Work

The authors are upfront about a few hurdles:

  • One-Time Cost: Building the abstract tree and training the PRM takes about 300 GPU hours. It’s an efficient system at test time, but it requires a significant upfront investment.
  • The "Hallucination" Problem: Currently, the model reasons based only on its internal weights. The authors suggest that integrating Retrieval-Augmented Generation (RAG)—letting the model look up real-time clinical guidelines—is the next logical step.
  • Linearity: Clinical reasoning isn't always a straight tree; sometimes it’s a web. Moving from a "Tree of Thought" to a "Graph of Thought" could better capture how doctors integrate evidence from multiple sources.

Summary updated

Abstract

Biomedical question answering often requires multi-step reasoning under limited inference budgets. While test-time search methods such as Tree-of-Thought can improve reasoning performance, directly searching over free-form language is computationally expensive and highly redundant, as many reasoning trajectories contain semantically equivalent intermediate steps expressed in different surface forms. We introduce MedCoast, an offline-to-online reasoning framework that converts sampled chain-of-thought trajectories into a compact space for structured process supervision. Offline, we recursively cluster semantically similar reasoning steps under shared prefixes to construct an abstract reasoning tree that captures recurring clinical reasoning patterns. We then derive node-level supervision from progress toward correct solutions, and train a lightweight process reward model (PRM) to evaluate partial reasoning states. At inference time, the learned critic guides test-time exploration by prioritizing promising reasoning prefixes. Across seven biomedical QA benchmarks, MedCoast often improves over self-consistency under fixed inference budgets, with gains of up to 15 points. Despite using a reward model more than 50 times smaller, MedCoast achieves performance comparable to state-of-the-art reward models in several settings, highlighting its potential for resource-constrained biomedical reasoning.
BibTeX
@misc{zhong2026medcoast,
  author = {Yishan Zhong and Jieru Li and Xuanzhe Ding and Shaunna Wang and Yanxin Yang and Micky C. Nnamdi and J. Ben Tamo and Yifei Wang and Yining Yuan and Benoit L. Marteau and Shaun Q. Y. Tan and Carrie Moore and Luyu Xie and Yang Xie and Wenqi Shi and May D. Wang},
  title = {{MedCoast: Semantic Abstraction of Reasoning Trajectories for Test-Time Biomedical Question Answering}},
  year = {2026},
  eprint = {2611.28586},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28586},
}
Figure