WorksComputer Science
MedCoast: Semantic Abstraction of Reasoning Trajectories for Test-Time Biomedical Question Answering
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.
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.
Introduction
Biomedical question answering remains a challenging setting for large language models (LLMs), as questions often require multi-step clinical reasoning, specialized terminology, and the correct application of guidelines, mechanisms, or pathophysiology [11, 26]. Chain-of-thought (CoT) prompting improves performance by encouraging intermediate reasoning [25], but medical reasoning remains brittle under distribution shift and the constrained inference budgets typical of practical deployment [21]. This challenge is inherently sequential: early reasoning decisions shape later conclusions, multiple plausible hypotheses may coexist before evidence resolves ambiguity, and the correct final answer may not be identifiable from the first few steps [28] (Basta et al. 2024).
Test-time inference scaling methods such as repeated sampling [3] and self-consistency [23] improve reliability by aggregating multiple reasoning chains, but their cost grows linearly with the number of sampled trajectories and they reuse little structure across solutions. Search-based approaches such as Tree-of-Thought (ToT) [28, 27] instead explore branching intermediate states, but they typically operate directly in free-form text space, where the number of possible continuations is large and many branches are superficially different but semantically redundant [29]. This redundancy is especially pronounced in biomedical QA: recurring clinical reasoning operations, such as ruling out a diagnosis, identifying a mechanism, or eliminating an option, may appear across trajectories with diverse surface forms [13].
We propose MEDCOAST, an offline-to-online framework for efficient biomedical reasoning that transforms sampled CoT trajectories into structured process supervision. Motivated by the semantic redundancy of medical reasoning traces, we study two research questions: (1) whether semantic abstraction of sampled reasoning trajectories can produce a compact and informative structure for process supervision; and (2) which node-level supervision signals best train a process critic for guiding test-time search.
To address these questions, we first collect offline reasoning trajectories for each question and recursively cluster shared-prefix steps by semantic similarity using a sentence encoder. The resulting tree represents reasoning at the level of abstract clinical operations. We then derive node-level supervision from the tree structure by combining empirical subtree correctness with progress toward the nearest correct solution, and train a lightweight BERT-based process reward model (PRM) to score partial reasoning prefixes. At inference time, we use this learned critic to guide Monte Carlo Tree Search (MCTS) [4, 10] through direct value evaluation, avoiding expensive terminal rollouts.
We evaluate MEDCOAST on a comprehensive suite of biomedical QA benchmarks, comparing against single-pass CoT prompting, self-consistency, and alternative PRM-guided inference strategies. Across datasets, we find that semantic trajectory abstraction combined with value-guided inference improves reliability under fixed test-time budgets. We summarize our contributions as follows:
We show that biomedical chain-of-thought trajectories exhibit substantial semantic redundancy, and introduce a recursive depth-wise clustering framework that compresses diverse reasoning paths into a compact tree of abstract clinical reasoning states.
We derive structured node-level supervision from the clustered reasoning tree, and demonstrate that progress toward the nearest correct solution provides a stronger and more stable training signal than subtree correctness.
With a reward model 50 times smaller, we in some settings achieve comparable gain relative to self-consistency as larger state-of-the-art models, emerging as a more practical solution for resource-constrained clinical settings.
Related Works
Tree of Thought LLM reasoning has progressed from single chain-of-thought (CoT) traces [25] to test-time sampling and aggregation such as self-consistency [23] and repeated sampling for inference scaling [3]. Tree-of-Thought (ToT) reframes reasoning as explicit search over intermediate “thought” states, exploring and scoring alternative continuations in a tree [28]; Graph of Thoughts extends this to graph-structured reuse and recombination of states [2]. In medical settings, ToT-style search has been paired with multi-agent generation [20], LLM-based judging to improve robustness [27] and concept bottleneck design for clinical trustworthiness [17].
Process Reward Models Process reward models (PRMs) supervise intermediate steps and can outperform outcome-only reward models when errors emerge late [15]. Supervision ranges from step-level binary labels [32] to richer preference or ranking objectives over partial solutions [8, 31, 6]. PRMs can guide inference and also serve as rewards for self-training or reinforcement learning to improve reasoning [22]. In biomedicine, PRMs have been combined with retrieval and LLM-as-a-judge signals by conditioning scoring on retrieved evidence [30].
Value-guided Search for LLMs MCTS further improves LLM reasoning by searching a branching space of intermediate states and propagating feedback to guide expansion. Prior work uses PRM-guided tree search to collect higher-quality trajectories [31] and applies MCTS for planning-style reasoning [7], including settings that ensemble proposal models during expansion [19]. AlphaZero-like methods replace costly rollouts with learned value estimates for selection and backup, improving search efficiency for decoding and training Feng et al. [5]. Combining test-time search with learned critics can yield substantial gains, including for smaller models [6, 10].
MedCoast
Problem Formulation
Given a question , we assume access to offline reasoning trajectories sampled from an LLM:
where denotes the text of the -th reasoning step and is the number of steps in trajectory . Each trajectory is associated with an outcome label indicating whether the final answer is correct. Our goal is to transform these free-form trajectories into a compact reasoning tree, where nodes represent semantically equivalent intermediate steps at the same depth. This tree then provides structured process-level supervision for a lightweight critic used during test-time search.
Clustered ToT Construction
We embed each reasoning step using a sentence encoder :
Step similarity is measured by cosine similarity between normalized embeddings. Given a threshold , two sibling steps are considered semantically equivalent if their similarity exceeds .
The tree is constructed recursively in a prefix-preserving manner. At depth , we only cluster steps from trajectories that share the same prefix-cluster assignments up to depth . For a node at depth , we collect the unique set of step strings from its valid immediate continuations. We then build an undirected threshold graph over , where an edge connects two step strings if their embedding cosine similarity exceeds . The connected components of define step clusters. Each cluster induces a child node at depth , whose representative step is chosen as the most frequent step string in .
This procedure is applied independently to every node at each depth. The recursion stops when no valid continuation remains or the maximum depth is reached. The resulting tree compactly represents
the offline trajectory set: each root-to-leaf path corresponds to a sequence of abstract reasoning states, and each trajectory is assigned to exactly one node at every depth where it contains a step.
Process Reward Model
We assign each node in the reasoning tree two attributes that summarize the quality of continuing from its prefix. First, let denote the fraction of correct leaf nodes in the subtree rooted at , corresponding to the empirical success rate of the prefix. Second, let denote proximity to a correct answer, defined as the ratio between the depth of and the minimum depth among correct leaves in 's subtree. These two attributes capture complementary notions of node quality: measures how promising the continuation space is, while measures how close the current prefix is to the nearest correct solution. In cases where there is no child correct leaf, is set to 0.
The node score is defined as
where controls the trade-off between empirical success rate and progress toward the nearest correct leaf.
We construct training pairs from sibling prefixes that share the same parent. For a parent node with children and , we compute their scalar scores and . Each pair is ordered so that , yielding a positive prefix and a negative prefix . We then train a critic . Given question and prefix for node , the PRM outputs
Let , , and . The PRM is trained to prefer the higher-scoring sibling using a gap-aware ranking loss:
This pairwise objective matches the downstream use of the PRM, where candidate continuations are compared under the same parent prefix.
Process-Critic MCTS
At test time, we construct a search tree on the fly, where each node is a partial reasoning prefix and its children are candidate next steps generated by the
Figure 2. Iterative construction of tree nodes at the same depth under a shared parent. Steps are grouped when their embedding cosine similarity exceeds a threshold .
LLM backbone. Figure 3 illustrates the procedure. Children are generated once and cached for reuse. Unlike rollout-based MCTS, we do not simulate each path to a terminal answer; instead, the learned critic directly evaluates newly expanded leaves.

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.
Given a question , a state is a reasoning prefix , and an action is a candidate next step. A state is terminal if it emits an explicit answer or reaches the depth limit. When is first expanded, we query the backbone to propose candidate next steps, remove duplicate or empty candidates, and cache the remaining set as . When a simulation reaches an unexpanded or terminal node, the critic assigns its value.
The leaf value is backed up along the selected path to update visit counts and action values . After simulations, we commit the root action with the largest visit count and repeat the search from the new root. If no explicit final answer is produced, we apply an answer-forcing prompt. Additional details are listed in Appendix § 8.§ 4.
Experiments
Experimental Setups
Our experiments evaluate whether a clustering-derived PRM can effectively guide step-wise reasoning for medical question answering. We study two PRM-guided inference strategies: Best-of- and direct-evaluation MCTS, and compare them against standard CoT and state-of-the-art medical QA reward model baselines. To assess both in-domain effectiveness and cross-model robustness, we study backbones that are used to collect the offline training trajectories and backbones that do not. We further evaluate on four in-distribution (ID) datasets and three out-of-distribution OOD datasets to characterize generalization across both models and benchmarks.
Datasets. We construct the offline trajectory corpus from four medical QA benchmarks: PubMedQA (Jin et al., [12]), MedQA (Jin et al., [11]), MedMCQA (Pal et al., [18]), and BioASQ (Krithara et al., [14]). PubMedQA, MedQA, and MedMCQA are multiple-choice question (MCQ) datasets, whereas BioASQ contains open-ended biomedical questions. The dataset splits follow Table 4, yielding approximately 103k questions for training and 2.4k for validation.
| Data Split | Dataset | Type | # QA Pairs |
| MedQA | MCQ | 10178 | |
| Train | PubMedQA | MCQ | 800 |
| MedMCQA | MCQ | 91411 | |
| BioASQ | Open-ended | 167 | |
| Validation | MedQA | MCQ | 1272 |
| PubMedQA | MCQ | 100 | |
| MedMCQA | MCQ | 1046 | |
| BioASQ | Open-ended | 42 | |
| Testing (Internal) | MedQA | MCQ | 1273 |
| PubMedQA | MCQ | 100 | |
| MedMCQA | MCQ | 2091 | |
| BioASQ | Open-ended | 325 | |
| Testing (External) | MedXpertQA | MCQ | 2450 |
| MMLU-Med | MCQ | 1111 | |
| MedQuAD | Open-ended | 1641 |
Table 4. Dataset splits used in the study.
Evaluation is conducted on the ID test sets of these four datasets, comprising 3.8k questions in total, and on three OOD benchmarks: MedQuAD (Ben Abacha and Demner-Fushman, [1]), MedXpertQA-Text (Zuo et al., [33]), and MMLU-Med (Hendrycks et al., [9]), comprising 5.2k questions in total.
Backbones. We use three mid-sized generalist models for offline trajectory collection: Qwen3-8B, Llama-3.1-8B, and Gemma-2-9B. To evaluate cross-backbone robustness, we additionally test two backbones, OLMo-3-7B and Phi-3.5, whose trajectories are not used during PRM training. The latter two are smaller, providing a stricter test of whether the learned process critic can transfer to less capable or differently trained generators.
Baselines. We compare MedCoast against the following baselines:
◇ Self-Consistency (Wang et al., [23]): We sample multiple solutions and aggregate them using majority voting for MCQs and score averaging for open-ended QA.
◇ Best-of-N (Nakano et al., [16]): We independently sample complete reasoning trajectories for each question. Our reward model scores each trajectory, and the solution with the highest score is selected as the final answer.
Med-PRM (Yun et al., [30]): We use the publicly released Med-PRM reward model to score the same trajectories generated by each backbone and select the highest-scoring solution. We additionally report results using its original Meerkat-8B policy model.
MedS3 (Jiang et al., [10]): We use the publicly released MedS3 reward model to score the same trajectories generated by each backbone and select the highest-scoring solution. We also report results using its original policy model.
Evaluation metrics. We evaluate MCQ performance using accuracy and open-ended QA performance using BERTScore F1 and ROUGE-L F1.
Main Results
Table 1 reports performance under a fixed inference budget of 4,096 tokens. Results are averaged over five random seeds and presented with standard deviations. Detailed per-dataset results are provided in Table 12 and Table 13 in the Appendix. The aggregate scores in Table 1 are weighted by the number of evaluation samples in each dataset.
| Backbone | Reward | Search | In-distribution MCQ Acc ↑ | In-distribution Open-ended BERTSc. ↑ | In-distribution Open-ended RougeL ↑ | Out-of-distribution MCQ Acc ↑ | Out-of-distribution Open-ended BERTSc. ↑ | Out-of-distribution Open-ended RougeL ↑ |
| Qwen3-8B | – | Self-Cons. | 54.9 ±0.8 | 86.5 ±1.3 | 12.8 ±0.5 | 53.7 ±0.9 | 87.0 ±1.4 | 12.5 ±0.2 |
| MedS3 | Best-of-N | 59.8 ±1.9 | 83.6 ±1.2 | 17.2 ±0.6 | 62.3 ±1.1 | 70.2 ±4.4 | 11.1 ±0.8 | |
| MCTS | 56.7 ±1.7 | 88.2 ±1.0 | 27.8 ±2.3 | 54.2 ±1.1 | 84.3 ±0.1 | 6.6 ±0.2 | ||
| Med-PRM | Best-of-N | 56.8 ±1.8 | 83.7 ±1.5 | 16.4 ±1.0 | 59.8 ±1.8 | 80.6 ±2.4 | 12.7 ±0.9 | |
| MCTS | 55.4 ±2.0 | 89.1 ±0.5 | 27.7 ±3.1 | 53.4 ±0.7 | 84.4 ±0.1 | 6.3 ±0.2 | ||
| MedCoast | Best-of-N | 57.7 ±4.3 | 85.5 ±2.3 | 16.2 ±0.3 | 60.1 ±2.2 | 82.7 ±0.6 | 12.3 ±0.3 | |
| MCTS | 57.5 ±2.3 | 88.9 ±0.2 | 26.7 ±1.5 | 60.8 ±1.3 | 84.2 ±0.8 | 7.4 ±0.1 | ||
| Llama-3.1-8B | – | Self-Cons. | 57.3 ±1.3 | 75.0 ±0.8 | 13.7 ±0.2 | 50.1 ±1.5 | 83.0 ±0.1 | 14.6 ±0.2 |
| MedS3 | Best-of-N | 61.1 ±1.2 | 84.0 ±1.8 | 11.3 ±0.8 | 60.3 ±0.8 | 86.0 ±1.9 | 15.9 ±0.2 | |
| MCTS | 47.2 ±3.2 | 86.9 ±0.5 | 18.0 ±2.9 | 51.1 ±1.8 | 82.3 ±0.2 | 4.8 ±0.1 | ||
| Med-PRM | Best-of-N | 57.3 ±2.6 | 84.4 ±0.9 | 10.9 ±0.8 | 55.8 ±2.4 | 87.2 ±0.1 | 16.4 ±0.5 | |
| MCTS | 46.4 ±3.1 | 87.3 ±0.1 | 17.9 ±0.0 | 52.1 ±0.9 | 82.4 ±0.5 | 4.4 ±0.1 | ||
| MedCoast | Best-of-N | 53.0 ±2.9 | 86.9 ±0.4 | 11.6 ±1.2 | 55.4 ±1.4 | 86.0 ±1.0 | 15.7 ±0.2 | |
| MCTS | 48.3 ±3.9 | 87.2 ±0.5 | 18.8 ±3.0 | 53.6 ±2.5 | 82.2 ±0.2 | 4.5 ±0.6 | ||
| Gemma-2-9B | – | Self-Cons. | 35.9 ±2.9 | 75.9 ±4.3 | 18.4 ±0.7 | 37.4 ±0.6 | 46.7 ±1.3 | 6.4 ±2.6 |
| MedS3 | Best-of-N | 46.8 ±2.6 | 62.8 ±3.0 | 14.8 ±0.5 | 55.7 ±0.9 | 59.5 ±5.3 | 7.9 ±0.7 | |
| MCTS | 47.5 ±1.6 | 85.4 ±0.6 | 23.5 ±0.9 | 49.2 ±1.9 | 81.4 ±0.1 | 3.6 ±0.4 | ||
| Med-PRM | Best-of-N | 45.0 ±3.0 | 73.2 ±2.5 | 13.7 ±0.3 | 53.3 ±0.9 | 70.4 ±3.3 | 9.7 ±0.3 | |
| MCTS | 48.3 ±1.5 | 86.8 ±0.4 | 25.8 ±1.4 | 49.5 ±1.6 | 82.3 ±0.6 | 3.7 ±0.2 | ||
| MedCoast | Best-of-N | 44.5 ±2.7 | 74.4 ±0.8 | 16.9 ±0.7 | 54.8 ±2.8 | 73.9 ±4.7 | 9.3 ±0.4 | |
| MCTS | 48.3 ±1.3 | 87.3 ±1.2 | 24.8 ±1.9 | 56.7 ±2.4 | 80.8 ±3.1 | 3.5 ±0.5 | ||
| OLMo-3-7B | – | Self-Cons. | 41.6 ±2.1 | 22.1 ±3.1 | 6.2 ±1.0 | 45.5 ±2.0 | 33.0 ±2.9 | 5.0 ±0.8 |
| MedS3 | Best-of-N | 37.1 ±0.8 | 43.0 ±3.5 | 8.2 ±0.5 | 35.8 ±1.4 | 15.4 ±2.5 | 2.3 ±0.6 | |
| MCTS | 40.9 ±1.7 | 84.8 ±1.7 | 15.7 ±1.2 | 43.8 ±1.6 | 79.3 ±2.4 | 4.0 ±0.4 | ||
| Med-PRM | Best-of-N | 31.4 ±4.0 | 42.7 ±3.5 | 7.0 ±0.4 | 34.3 ±3.6 | 30.5 ±4.6 | 4.0 ±1.0 | |
| MCTS | 39.4 ±1.6 | 84.4 ±1.5 | 20.3 ±1.2 | 44.7 ±0.6 | 80.6 ±2.0 | 4.5 ±0.6 | ||
| MedCoast | Best-of-N | 34.9 ±5.0 | 80.8 ±1.9 | 11.9 ±1.7 | 33.4 ±3.7 | 73.2 ±5.4 | 11.6 ±0.8 | |
| MCTS | 40.5 ±2.8 | 85.3 ±1.7 | 17.1 ±0.8 | 44.5 ±2.8 | 81.8 ±0.7 | 4.8 ±0.4 | ||
| Phi-3.5-mini | – | Self-Cons. | 40.4 ±3.6 | 27.7 ±1.9 | 1.0 ±0.2 | 40.5 ±1.4 | 51.0 ±2.8 | 5.4 ±0.4 |
| MedS3 | Best-of-N | 42.5 ±0.9 | 42.7 ±0.7 | 4.3 ±0.1 | 37.0 ±3.0 | 37.3 ±2.0 | 3.9 ±0.4 | |
| MCTS | 47.1 ±2.4 | 87.1 ±1.1 | 22.2 ±1.7 | 47.8 ±3.2 | 79.0 ±2.8 | 4.0 ±0.3 | ||
| Med-PRM | Best-of-N | 46.8 ±2.8 | 81.6 ±2.2 | 5.5 ±0.8 | 49.9 ±1.7 | 76.2 ±2.0 | 8.2 ±0.8 | |
| MCTS | 45.9 ±1.1 | 87.5 ±0.8 | 20.6 ±3.0 | 46.5 ±2.6 | 80.6 ±0.6 | 3.7 ±0.5 | ||
| MedCoast | Best-of-N | 41.7 ±1.9 | 76.6 ±2.2 | 5.3 ±0.5 | 41.8 ±2.2 | 73.1 ±3.5 | 6.9 ±1.0 | |
| MCTS | 47.3 ±2.2 | 87.9 ±0.3 | 19.3 ±1.5 | 46.1 ±1.5 | 78.9 ±1.8 | 4.0 ±0.4 | ||
| MedS3 Policy | MedS3 | Best-of-N | 60.4 ±3.1 | 76.2 ±0.2 | 16.2 ±0.6 | 57.4 ±1.4 | 73.9 ±2.0 | 12.8 ±0.8 |
| Med-PRM Policy | Med-PRM | Best-of-N | 59.8 ±0.6 | 85.1 ±0.9 | 10.5 ±0.3 | 56.7 ±2.0 | 73.5 ±1.8 | 9.1 ±0.5 |
Table 1. Performance on in-distribution and out-of-distribution medical QA benchmarks under a 4096-token inference budget. MCQ columns are count-weighted accuracies; open-ended columns report BioASQ (ID) and MedQuAD (OOD). Within each backbone, bold marks the best and <u>underline</u> the second-best result per column.
| Backbone LLMs | Reward Model | Search | MedQA Acc ↑ | MedMCQA Acc ↑ | PubMedQA Acc ↑ | BioASQ BERTScore ↑ | BioASQ RougeL ↑ |
| Qwen3-8B | – | Self-Cons. | |||||
| Best-of-N | |||||||
| MedS3 | MCTS | <u></u> | |||||
| Med-PRM | Best-of-N | ||||||
| MCTS | <u></u> | ||||||
| MedCoast | Best-of-N | <u></u> | <u></u> | ||||
| MCTS | <u></u> | <u></u> | |||||
| Llama-3.1-8B-Instruct | – | Self-Cons. | <u></u> | ||||
| MedS3 | Best-of-N | ||||||
| MCTS | <u></u> | ||||||
| Med-PRM | Best-of-N | <u></u> | |||||
| MCTS | <u></u> | ||||||
| MedCoast | Best-of-N | ||||||
| MCTS | <u></u> | ||||||
| gemma-2-9b-it | – | Self-Cons. | |||||
| MedS3 | Best-of-N | ||||||
| MCTS | |||||||
| Med-PRM | Best-of-N | ||||||
| MCTS | <u></u> | <u></u> | |||||
| MedCoast | Best-of-N | ||||||
| MCTS | <u></u> | <u></u> | <u></u> | ||||
| Olmo-3-7B-Instruct | – | Self-Cons. | |||||
| MedS3 | Best-of-N | ||||||
| MCTS | <u></u> | ||||||
| Med-PRM | Best-of-N | ||||||
| MCTS | <u></u> | ||||||
| MedCoast | Best-of-N | ||||||
| MCTS | <u></u> | <u></u> | <u></u> | <u></u> | |||
| Phi-3.5-mini-instruct | – | Self-Cons. | |||||
| MedS3 | Best-of-N | <u></u> | |||||
| MCTS | |||||||
| Med-PRM | Best-of-N | ||||||
| MCTS | <u></u> | <u></u> | <u></u> | <u></u> | |||
| MedCoast | Best-of-N | ||||||
| MCTS | |||||||
| MedS3 Policy | MedS3 | Best-of-N | |||||
| Med-PRM Policy | Med-PRM | Best-of-N |
Table 12. In-distribution results: self-consistency vs. Best-of-N and MCTS guided by MedS3, Med-PRM, and MedCoast reward models. MedCoast rows are shaded. Best per backbone in bold, second best <u>underlined</u>.
| Backbone LLMs | Reward Model | Search | MedXpertQA Acc ↑ | MMLU-Med Acc ↑ | MedQuAD BERTScore ↑ | MedQuAD RougeL ↑ |
| Qwen3-8B | – | Self-Cons. | 13.31.0 | 73.10.9 | 87.01.4 | 12.50.2 |
| Qwen3-8B | MedS3 | Best-of-N | 12.11.5 | 86.40.9 | 70.24.4 | 11.10.8 |
| Qwen3-8B | MedS3 | MCTS | 11.11.1 | 74.91.1 | 84.30.1 | 6.60.2 |
| Qwen3-8B | Med-PRM | Best-of-N | 10.12.3 | 83.71.5 | 80.62.4 | 12.70.9 |
| Qwen3-8B | Med-PRM | MCTS | 11.32.1 | 73.70.0 | <u>84.4</u>0.1 | 6.30.2 |
| Qwen3-8B | MedCoast | Best-of-N | 12.42.5 | <u>83.0</u>2.0 | 82.70.6 | 12.30.3 |
| Qwen3-8B | MedCoast | MCTS | 11.10.6 | <u>84.7</u>1.7 | 84.20.8 | 7.40.1 |
| Llama-3.1-8B-Instruct | – | Self-Cons. | <u>11.1</u>0.6 | 68.91.9 | 83.00.1 | 14.60.2 |
| Llama-3.1-8B-Instruct | MedS3 | Best-of-N | 8.21.5 | 85.40.4 | <u>86.0</u>1.9 | <u>15.9</u>0.2 |
| Llama-3.1-8B-Instruct | MedS3 | MCTS | 10.43.7 | 70.60.9 | 82.30.2 | 4.80.1 |
| Llama-3.1-8B-Instruct | Med-PRM | Best-of-N | 10.52.5 | <u>77.5</u>2.4 | 87.20.1 | 16.40.5 |
| Llama-3.1-8B-Instruct | Med-PRM | MCTS | 10.82.8 | 71.90.0 | 82.40.5 | 4.40.1 |
| Llama-3.1-8B-Instruct | MedCoast | Best-of-N | 11.42.0 | 76.51.1 | <u>86.0</u>1.0 | 15.70.2 |
| Llama-3.1-8B-Instruct | MedCoast | MCTS | 10.83.1 | 74.12.2 | 82.20.2 | 4.50.6 |
| gemma-2-9b-it | – | Self-Cons. | 3.81.0 | 53.50.4 | 46.71.3 | 6.42.6 |
| gemma-2-9b-it | MedS3 | Best-of-N | 7.20.6 | <u>79.0</u>1.1 | 59.55.3 | 7.90.7 |
| gemma-2-9b-it | MedS3 | MCTS | 11.12.0 | 67.51.9 | <u>81.4</u>0.1 | 3.60.4 |
| gemma-2-9b-it | Med-PRM | Best-of-N | 6.92.8 | 75.60.0 | 70.43.3 | 9.70.3 |
| gemma-2-9b-it | Med-PRM | MCTS | <u>10.5</u>1.5 | 68.31.7 | 82.30.6 | 3.70.2 |
| gemma-2-9b-it | MedCoast | Best-of-N | 8.53.0 | 77.02.7 | 73.94.7 | <u>9.3</u>0.4 |
| gemma-2-9b-it | MedCoast | MCTS | 9.62.2 | 79.32.5 | 80.83.1 | 3.50.5 |
| Olmo-3-7B-Instruct | – | Self-Cons. | 7.52.5 | 63.81.7 | 33.02.9 | <u>5.0</u>0.8 |
| Olmo-3-7B-Instruct | MedS3 | Best-of-N | 8.21.1 | 49.11.5 | 15.42.5 | 2.30.6 |
| Olmo-3-7B-Instruct | MedS3 | MCTS | <u>12.1</u>1.5 | 59.01.7 | 79.32.4 | 4.00.4 |
| Olmo-3-7B-Instruct | Med-PRM | Best-of-N | 10.52.5 | 45.74.1 | 30.54.6 | 4.01.0 |
| Olmo-3-7B-Instruct | Med-PRM | MCTS | 11.81.0 | <u>60.5</u>0.4 | <u>80.6</u>2.0 | 4.50.6 |
| Olmo-3-7B-Instruct | MedCoast | Best-of-N | 8.52.8 | 45.44.2 | 73.25.4 | 11.60.8 |
| Olmo-3-7B-Instruct | MedCoast | MCTS | 12.74.1 | 59.82.2 | 81.80.7 | 4.80.4 |
| Phi-3.5-mini-instruct | – | Self-Cons. | 0.70.0 | 59.72.0 | 51.02.8 | 5.40.4 |
| Phi-3.5-mini-instruct | MedS3 | Best-of-N | 8.84.5 | 50.62.3 | 37.32.0 | 3.90.4 |
| Phi-3.5-mini-instruct | MedS3 | MCTS | 10.50.6 | <u>65.7</u>4.5 | <u>79.0</u>2.8 | 4.00.3 |
| Phi-3.5-mini-instruct | Med-PRM | Best-of-N | <u>10.1</u>3.0 | 69.11.1 | 76.22.0 | 8.20.8 |
| Phi-3.5-mini-instruct | Med-PRM | MCTS | 9.82.6 | 64.22.6 | 80.60.5 | 3.70.5 |
| Phi-3.5-mini-instruct | MedCoast | Best-of-N | 10.12.3 | 57.02.2 | 73.13.8 | <u>6.9</u>1.0 |
| Phi-3.5-mini-instruct | MedCoast | MCTS | 6.52.0 | 65.21.3 | 78.91.8 | 4.00.4 |
| MedS3 Policy | MedS3 | Best-of-N | 9.21.1 | 80.51.5 | 73.92.0 | 12.80.8 |
| Med-PRM Policy | Med-PRM | Best-of-N | 10.01.2 | 79.12.4 | 73.51.8 | 9.10.5 |
Table 13. Out-of-distribution results: self-consistency vs. Best-of-N and MCTS guided by MedS3, Med-PRM, and MedCoast reward models. MedCoast rows are shaded. Best per backbone in bold, second best <u>underlined</u>.
In-distribution performance. Across the ID medical benchmarks, the cluster-based PRM generally improves open-source generalist backbones over self-consistency. MCQ performance is more mixed: results decrease on Llama-3.1-8B, while Qwen3-8B and Gemma-2-9B achieve gains of up to 18 points. Compared to state-of-the-art reward-guided approaches, MEDCOAST ranks first or second in most settings. For open-ended BioASQ performance, our process critic consistently improves across all three backbones.
Out-of-distribution performance. On the OOD benchmarks, Qwen3-8B, Llama-3.1-8B, and Gemma-2-9B obtain smaller but generally positive gains from PRM-guided inference. Notably, on MedXpertQA, MEDCOAST approximately doubles the self-consistency accuracy of Gemma-2-9B. In many of these settings, MedS3 and Med-PRM achieve comparable performance.
Smaller backbones, including OLMo-3 and Phi-3.5, benefit substantially from MEDCOAST across the seven benchmarks. In contrast, MedS3 and Med-PRM do not provide improvements of a similar magnitude for these two backbones, allowing MEDCOAST to outperform them by wider margins. Across all five backbones, MEDCOAST exhibits more stable performance, suggesting stronger cross-backbone generalizability. For MCQ accuracy, the standard deviation across backbones is 4.47 for MEDCOAST, compared with 9.33 for MedS3 and 8.40 for Med-PRM. The difference is even larger for open-ended BERTScore, for which the corresponding standard deviations are 1.65, 24.40, and 19.76, respectively.
Comparison to state-of-the-art. When paired with their respective policy models, the MedS3 and Med-PRM reward models achieve strong performance, particularly on in-distribution MCQ benchmarks. Nevertheless, MEDCOAST offers two practical advantages. First, as discussed above, both existing reward models are more sensitive to the choice of backbone, whereas MEDCOAST demonstrates more stable cross-backbone performance.
Second, both reward models contain approximately 8B parameters. Deploying them alongside an 8B policy model therefore imposes substantial memory and hardware requirements. In contrast, our BERT-based PRM contains only 149M parameters, making MedCoast a more accessible solution for resource-constrained clinical settings.
Ablation Studies
Semantic clustering. Table 2 summarizes the effect of semantic clustering, reporting accuracy for MCQ benchmarks and BERTScore for open-ended benchmarks. Detailed per-dataset results are provided in Table 5. All results are averaged over five random seeds. The clustered variants generally outperform their non-clustered counterparts, revealing that semantic clustering contributes to the performance gains of MedCoast.
| Inf. Method | Cluster | In-distribution MCQ | In-distribution BioASQ | Out-of-distribution MCQ | Out-of-distribution MedQuAD |
| Best-of-N | Cluster | 45.7 | 80.8 | 46.4 | 77.8 |
| Uncluster | 44.6 | 80.5 | 47.8 | 72.4 | |
| +1.1 | +0.4 | -1.4 | +5.3 | ||
| MCTS | Cluster | 49.1 | 87.3 | 49.6 | 81.6 |
| Uncluster | 47.9 | 86.6 | 48.5 | 82.0 | |
| +1.2 | +0.7 | +1.2 | -0.4 |
Table 2. Cluster vs. uncluster ablation for Best-of-N and MCTS, aggregated over datasets and averaged across the five backbones. Numbers are averages across five random seeds.
| Backbone LLMs | Inf. Method | MedQA Acc ↑ | MedMCQA Acc ↑ | PubMedQA Acc ↑ | BioASQ BERTScore ↑ | RougeL ↑ | MedXpertQA Acc ↑ | MMLU-Med Acc ↑ | MedQuAD BERTScore ↑ | RougeL ↑ |
| Qwen3-8B | Best-of-N | 58.5±1.3 | 58.3±6.1 | 35.3±4.9 | 85.5±2.3 | 16.2±0.3 | 12.4±2.5 | 73.0±2.0 | 82.7±0.6 | 12.3±0.3 |
| Best-of-N (uncluster) | 58.0±2.1 | 55.0±1.3 | 30.5±3.5 | 85.5±0.2 | 15.8±1.1 | 12.7±0.0 | 74.1±3.7 | 79.6±4.2 | 12.5±0.5 | |
| MCTS | 56.2±1.0 | 58.6±3.2 | 52.7±1.5 | 88.9±0.2 | 26.7±1.5 | 11.1±0.6 | 74.7±1.7 | 84.2±0.8 | 7.4±0.1 | |
| MCTS (uncluster) | 54.5±0.9 | 58.0±1.0 | 54.0±1.0 | 88.0±0.9 | 26.6±0.4 | 13.1±2.3 | 73.5±1.1 | 84.5±0.3 | 6.8±0.9 | |
| Llama-3.1-8B-Instruct | Best-of-N | 55.2±1.0 | 51.4±3.9 | 58.3±4.7 | 86.9±0.4 | 11.6±1.2 | 11.4±2.0 | 76.5±1.1 | 86.0±1.0 | 15.7±0.2 |
| Best-of-N (uncluster) | 54.2±2.1 | 53.8±1.4 | 55.3±2.5 | 85.6±1.5 | 10.9±0.4 | 12.7±4.5 | 75.8±4.5 | 85.2±1.7 | 16.0±0.5 | |
| MCTS | 50.8±2.8 | 46.4±4.6 | 55.5±3.1 | 87.2±0.5 | 18.8±3.0 | 10.8±3.1 | 74.1±2.2 | 82.2±0.2 | 4.5±0.6 | |
| MCTS (uncluster) | 48.5±1.5 | 42.9±1.0 | 58.0±3.6 | 87.2±0.4 | 18.8±1.8 | 11.1±4.4 | 68.4±0.4 | 82.2±0.4 | 4.7±0.1 | |
| gemma-2-9b-it | Best-of-N | 52.8±2.5 | 40.5±2.7 | 23.0±5.3 | 74.4±0.8 | 16.9±0.7 | 8.5±3.0 | 67.0±2.7 | 73.9±4.7 | 9.3±0.4 |
| Best-of-N (uncluster) | 50.8±2.6 | 42.3±2.7 | 26.3±4.7 | 77.6±3.8 | 15.2±1.2 | 6.5±2.3 | 72.3±3.3 | 71.4±3.1 | 9.4±0.8 | |
| MCTS | 54.3±0.9 | 45.3±1.5 | 33.5±2.6 | 87.3±1.2 | 24.8±1.9 | 9.6±2.2 | 69.3±2.5 | 80.8±3.1 | 3.5±0.5 | |
| MCTS (uncluster) | 55.8±0.8 | 48.3±2.9 | 37.0±4.0 | 87.5±1.0 | 27.3±2.0 | 11.1±0.6 | 68.0±3.0 | 81.4±0.4 | 3.8±0.3 | |
| Olmo-3-7B-Instruct | Best-of-N | 30.3±3.6 | 38.1±6.0 | 27.3±0.6 | 80.8±1.9 | 11.9±1.7 | 8.5±2.8 | 45.4±4.2 | 73.2±5.4 | 11.6±0.8 |
| Best-of-N (uncluster) | 31.2±2.4 | 37.5±1.9 | 27.3±3.1 | 74.6±4.0 | 12.0±0.7 | 10.8±1.7 | 51.6±3.7 | 56.9±6.7 | 8.8±0.8 | |
| MCTS | 40.0±2.0 | 40.8±3.2 | 39.5±3.9 | 85.3±1.7 | 17.1±0.8 | 12.7±4.1 | 59.8±2.2 | 81.8±0.7 | 4.8±0.4 | |
| MCTS (uncluster) | 40.8±0.3 | 37.2±1.4 | 40.7±2.1 | 83.3±0.7 | 16.0±2.0 | 8.5±0.6 | 58.5±3.2 | 81.1±1.7 | 4.2±0.3 | |
| Phi-3.5-mini-instruct | Best-of-N | 36.2±1.5 | 46.5±2.1 | 11.7±1.5 | 76.6±2.2 | 5.3±0.5 | 10.1±2.3 | 57.0±2.2 | 73.1±3.8 | 6.9±1.0 |
| Best-of-N (uncluster) | 38.8±14.7 | 45.0±8.6 | 11.3±1.5 | 79.0±4.7 | 6.2±1.3 | 8.2±4.5 | 55.6±23.3 | 69.1±19.5 | 6.9±1.9 | |
| MCTS | 47.3±1.2 | 47.4±2.8 | 44.7±3.2 | 87.9±0.3 | 19.3±1.5 | 6.5±2.0 | 65.2±1.3 | 78.9±1.8 | 4.0±0.4 | |
| MCTS (uncluster) | 49.0±1.5 | 45.0±3.1 | 48.7±2.3 | 87.1±0.4 | 22.6±3.2 | 9.5±1.5 | 64.9±3.7 | 80.6±1.8 | 4.0±0.3 |
Table 5. Ablation on semantic clustering for Best-of-N and MCTS.
Node scoring. We ablate two key design choices in constructing PRM supervision: the semantic-similarity threshold used to cluster individual trajectories into the structured reasoning tree, and the node-level target used to supervise the critic. For the node target, we compare three settings: proximity-only supervision, which uses progress toward the nearest correct answer; correctness-only supervision, which uses the empirical correctness ratio of the subtree; and mixed supervision, which averages progress and subtree correctness. These correspond to subtree correctness of 0, 1.0, and 0.5, respectively. For the semantic clustering, we evaluate thresholds at 0.75, 0.80, and 0.85.
Figure 4 reports the resulting performance grid for direct-evaluation MCTS with the out-of-distribution OLMo-3 backbone. Two trends emerge. First, the choice of node-level supervision has a substantial effect on performance. In particular, incorporating progress toward a correct answer is more beneficial than relying only on subtree correctness, suggesting that dense progress signals provide more informative supervision for intermediate reasoning states. Second, performance is comparatively less sensitive to the clustering threshold, which indicates that the method is robust to moderate changes in the semantic granularity of the offline reasoning tree. Appendix E presents additional results across all seven datasets with Qwen3 and Phi-3.5 backbones. Statistical analysis reveals that the effect size of is indeed higher than .
Critic training objective. In MEDCOAST, we construct positive–negative sibling pairs and pass their corresponding reasoning prefixes separately through the BERT-based critic. The objective in Equation (5) is formulated as a pairwise classification problem: within each pair, the child with the higher ground-truth node score is treated as the preferred continuation. A more naive alternative is to train the process critic by directly regressing each node’s absolute score. Our experiments suggest that this shift from direct score regression is important. Figure 5 shows that direct regression to individual child-node scores slightly degrades downstream performance. We attribute this to noise in the absolute node-level targets, which can obscure the relative patterns that distinguish promising reasoning prefixes from weaker ones.
Figure 5. Radar plots comparing two models across seven datasets, showing that pairwise gap classification slightly improves downstream PRM-guided MCTS inference.
By contrast, the pairwise gap objective more closely matches the inference-time setting, where newly expanded candidate steps are compared against one another. Optimizing this objective encourages the critic to preserve the correct relative ranking among sibling nodes, which is the behavior most relevant for greedy selection, beam search, and MCTS-based exploration. In Figure 5, the supervision setting is fixed to a clustering cutoff of 0.8 and a subtree-correctness weight of 0, corresponding to progress-only node scoring.
Scaling Analysis
Although test-time MCTS is not the primary novelty of this work, we analyze its scaling behavior to evaluate whether the learned PRM provides a robust guidance signal under increasing inference budgets. Figure 6 shows how test-time compute affects MCTS performance with Qwen3-8B on the MMLU-Med and PubMedQA datasets. We vary two inference-time hyperparameters: the number of MCTS simulations () and the number of candidate next steps generated per node (). Increasing either parameter increases the total number of generated tokens, allowing us to measure accuracy as a function of test-time compute while keeping the backbone model fixed. The dashed line denotes the self-consistency baseline evaluated with multiple sampled completions.
Figure 6. Accuracy as a function of token budgets. Varying the MCTS simulations () and candidate branching () increases the total number of generated tokens and improves accuracy.
MEDCOAST outperforms self-consistency across a range of token budgets. Moreover, self-consistency exhibits weaker scaling behavior, because its gains diminish quickly and tend to plateau at substantially lower token counts. In contrast, PRM-guided search continues to benefit from additional inference compute. We show that the learned critic provides a useful signal for allocating computation toward more promising reasoning branches rather than simply sampling more independent trajectories.
Qualitative Evaluation
We perform a qualitative error analysis to characterize failure modes of process-critic MCTS. We randomly sample 50 inference trajectories and manually inspect both the generated reasoning chains and final outputs. This analysis identifies four recurring failure patterns:
Repetitive reasoning steps: the model emits a step that duplicates an earlier generated step for some .
Medical knowledge gap: the model lacks the domain knowledge needed to support the correct answer, leading to clinically incorrect or misaligned reasoning.
Reasoning trace error: the reasoning trace contains medically relevant evidence and may implicitly support the correct answer, but the model fails to select the optimal final answer.
Missing answer emission: the model produces a coherent multi-step reasoning trace but fails to emit a final answer.
Details of the human evaluation can be found in Appendix § 12.§ 1. Table 3 reports the distribution of these failure patterns for correctly and incorrectly answered questions. Among incorrect inferences, medical knowledge gaps are the dominant failure mode, indicating that process critic can guide the model toward more promising reasoning trajectories but cannot substitute for domain-specific knowledge acquisition. This limitation is also reflected in cases where knowledge errors occur despite the final answer being correct. Repetition is another common failure mode across both correct and incorrect inferences. Representative examples for each failure category are provided in the Appendix § 12.§ 3.
| Output Group | Repeat | Know. | Trace Err. | Miss Ans. |
| Correct () | 20.0% | 10.0% | 0.0% | 0.0% |
| Incorrect () | 43.3% | 63.3% | 6.7% | 3.3% |
Table 3. Reasoning failure patterns among correct and incorrect model outputs. Percentages are computed within each output group, and one output may contain multiple issues.
In particular, Table 18 illustrates cases with repeated reasoning steps. Further analysis of the same two questions under one-pass CoT prompting with the same backbone (Table 23) suggests that this looping behavior may reflect an inherent tendency of the base model, rather than an artifact
| Field | Content |
| Example 1 | |
| Question | "question": "Resistance form of endodontics is:", "options": { "A": "Resists movement of gutta-percha in apical area", "B": "To allow use of spreader in lateral condensation", "C": "Fracture of root while vertical condensation", "D": "None of the above" }" |
| Pred reasoning | <|step|> The question asks for the definition of the ’resistance form’ in endodontics. Resistance form refers to a characteristic of root canal filling that resists the movement of gutta-percha, particularly in the apical area during procedures like vertical condensation.<|step|> The correct description of resistance form is that it resists the movement of gutta-percha in the apical area. This directly matches option A.<|step|> The question asks which option correctly defines the resistance form in endodontics. Based on established endodontic knowledge, the resistance form is specifically described as resisting movement of gutta-percha in the apical area. This matches option A.<|step|> The correct answer must be the option that specifically describes the resistance form in endodontics. Option A states Resists movement of gutta-percha in apical area, ¨ which is the ¨ standard definition of resistance form.<|step|> The resistance form in endodontics is defined by its ability to oppose the movement of filling material, specifically gutta-percha, in the apical region during procedures like vertical condensation. This directly aligns with option A.<|step|> The question provides four options regarding the resistance form in endodontics. Based on dental endodontics knowledge, the resistance form is primarily characterized by its ability to prevent the movement of gutta-percha in the apical area, particularly during procedures like vertical condensation. <|step|> The resistance form in endodontics is known for its role in preventing gutta-percha movement in the apical area. Among the given options, only option A specifically describes this function.<|step|> The resistance form in endodontics is about the physical property that prevents gutta-percha from moving in the apical area, as stated in option A. However, the question specifically asks for the ’form’ itself, which in endodontics refers to the anatomical or mechanical resistance provided. <|step|> The resistance form in endodontics is defined by its role in preventing gutta-percha movement in the apical area during filling procedures. Option A directly states this definition. <|step|> The resistance form in endodontics is defined as the property of the root canal system that resists the extrusion or movement of gutta-percha, especially in the apical area during procedures like vertical condensation. Among the options, only option A directly describes this function. <|step|> The question asks which option correctly defines the resistance form in endodontics. From previous reasoning, the resistance form is known to resist gutta-percha movement in the apical area during root canal procedures, which matches option A.<|step|> The resistance form in endodontics is primarily associated with preventing gutta-percha movement in the apical area during procedures. Among the provided options, only A directly matches this definition.<|answer|>A |
| GT answer | D |
| Example 2 | |
| Question | "question": "How is oprozomib administered?" |
| Pred reasoning | <|step|> Oprozomib is administered intravenously. It is typically given as an infusion over 30 to 120 minutes.<|step|> Oprozomib is administered intravenously as an infusion, usually over 30 to 60 minutes per dose.<|step|> Oprozomib is administered via intravenous infusion in a clinical setting.<|step|> Oprozomib is administered as an intravenous infusion, typically in a hospital or outpatient setting.<|step|> The specific route of administration for oprozomib is intravenous infusion.<|step|> The question asks specifically how oprozomib is administered, which from prior steps is known to be intravenously as an infusion.<|step|> Oprozomib is an oral medication, so it is administered by mouth as a tablet or capsule.<|step|> Oprozomib is an oral medication, so it is administered by mouth, not intravenously.<|step|> Oprozomib is an oral medication, so it is administered by mouth.<|step|> The question asks how oprozomib is administered, and from established pharmacology, it is an oral medication.<|step|> Oprozomib is an oral medication, so it is administered by mouth.<|step|> The question asks how oprozomib is administered. From pharmacology knowledge, oprozomib is an oral medication administered by mouth.<|step|> The question specifically asks how oprozomib is administered. Based on pharmacological knowledge, oprozomib is an oral medication. It is taken by mouth in the form of a tablet or capsule.<|step|> Oprozomib is an oral medication, so it is administered by mouth. It is typically taken as a tablet or capsule.<|step|> Oprozomib is an oral medication, so it is administered by mouth, typically as a tablet or capsule.<|step|> Oprozomib is an oral medication, so it is administered orally by mouth.<|step|> Oprozomib is an oral medication, so it is administered by mouth. It is taken as a tablet or capsule.<|step|> The question asks how oprozomib is administered. Based on pharmacological knowledge, oprozomib is an oral medication. It is taken by mouth, usually as a tablet or capsule.<|answer|>Oral |
| GT answer | Orally |
Table 18. Representative failure examples caused by repetitive reasoning steps. Red fonts signal highly similar sentences.
Table 29.
| Field | Content | ||||||||||||||
| Example 1 | |||||||||||||||
| Question | "question": "Resistance form of endodontics is:", "options": { "A": "Resists movement of gutta-percha in apical area", "B": "To allow use of spreader in lateral condensation", "C": "Fracture of root while vertical condensation", "D": "None of the above" }" | ||||||||||||||
| Pred reasoning | < | step | > To determine the correct answer, let’s first understand the concept of resistance form in endodontics. In endodontics, resistance form refers to the ability of the root canal filling material to resist the movement or displacement of the gutta-percha in the apical area. This is crucial for maintaining the integrity of the apical seal and preventing the migration of bacteria or other substances into the root canal.\n\n< | step | > The options provided can be analyzed as follows: option A suggests that resistance form is related to resisting the movement of gutta-percha in the apical area, which aligns with the definition of resistance form. Option B mentions the use of a spreader in lateral condensation, but this is not directly related to the concept of resistance form. Option C describes a fracture of the root while using vertical condensation, which is not the primary function of resistance form.\n\n< | step | > Considering the above analysis, option A appears to be the most relevant to the concept of resistance form in endodontics. However, we should confirm whether it is the correct answer by examining the relationship between resistance form and gutta-percha movement.\n\n< | step | > The resistance form is indeed associated with the resistance of the gutta-percha in the apical area, but it is more accurately described as the ability of the root canal filling material to resist the vertical and lateral forces that can displace the gutta-percha. This is a critical aspect of maintaining the apical seal.\n\n< | step | > Based on this understanding, option A is a reasonable description of resistance form in endodontics, but it is essential to consider if it is the most comprehensive or accurate option.\n\n< | step | > Upon further consideration, it seems that option A provides a concise description of resistance form, but it may not capture the full scope of its implications. However, without additional information, it appears to be the most suitable option.\n\n< | answer | > A |
| GT answer | D | ||||||||||||||
| Example 2 | |||||||||||||||
| Question | "question": "How is oprozomib administered?" | ||||||||||||||
| Pred reasoning | < | step | > The question is about the administration of oprozomib, a proteasome inhibitor used in the treatment of certain types of cancer. To determine how it is administered, we need to consider the typical methods of administration for proteasome inhibitors.\n\n Proteasome inhibitors are usually administered intravenously (IV) or orally. Given that oprozomib is a relatively new medication, it is likely that its administration method would follow this trend.\n\n However, to confirm the specific administration method for oprozomib, we need to consult reliable sources such as the medication’s labeling, clinical trial data, or reputable medical literature. [SKIP FEW STEPS.] < | step | > The oprozomib medication label or package insert is not readily available, and clinical trial data or research articles do not provide sufficient information on the administration method. In this case, we can proceed to the next step to explore other sources.\n\n However, based on the general trend of proteasome inhibitors being administered IV or orally, it is reasonable to infer that oprozomib may be administered via one of these routes.\n\n < | step | > The administration method of oprozomib is not explicitly stated in the provided information. However, considering the typical administration methods for proteasome inhibitors, it is likely that oprozomib is administered intravenously (IV) or orally.\n\nTo confirm this inference, we would need more specific information on the medication’s labeling, clinical trial data, or research articles.\n\n< | step | > Considering the general trend of proteasome inhibitors being administered IV or orally, and the lack of specific information on oprozomib’s administration method, it is reasonable to infer that oprozomib may be administered intravenously (IV) or orally.\n\n However, this inference is based on limited information, and a more definitive answer would require access to the medication’s labeling, clinical trial data, or research articles.\n\n< | step | > In the absence of specific information on oprozomib’s administration method, it is possible that the medication may be administered via a different route. However, based on the general trend of proteasome inhibitors, it is reasonable to infer that oprozomib may be administered intravenously (IV) or orally.\n\nTo confirm this inference, we would need more specific information on the medication’s labeling, clinical trial data, or research articles.< | step | > Oprozomib is a proteasome inhibitor used in the treatment of certain types of cancer. Proteasome inhibitors are typically administered intravenously (IV) or orally. However, the specific administration method for oprozomib is not explicitly stated in the provided information.\n\nConsidering the typical administration methods for proteasome inhibitors, it is reasonable to infer that oprozomib may be administered intravenously (IV) or orally.\n\n< | answer | > Oprozomib is likely administered intravenously (IV) or orally.\n Concise final answer: Oprozomib is likely administered intravenously (IV) or orally. |
| GT answer | Orally |
Table 23. One-pass Chain-of-Thought responses for the same example questions shown in Table 18. Example 1 is verbose but does not exhibit clear looping, whereas Example 2 repeatedly returns to the same concept without reaching a resolution. Colored fonts indicate repeated semantics.
introduced by MedCoast inference procedure. More broadly, this failure mode suggests that medical reasoning may not always be well captured by a strictly linear Tree-of-Thought structure. Unlike mathematical problem solving, clinical reasoning often integrates evidence from multiple sources, and the decision process may be less ordinal. This observation points to Graph-of-Thoughts as a promising extension. Given our finding that proximity to a correct answer provides a more effective supervisory signal than subtree correctness alone, the same principle could be used to guide value-based exploration over graph-structured reasoning states.
Conclusion
We introduced MedCoast, an offline-to-online framework that compresses sampled chain-of-thought trajectories into compact process supervision for test-time biomedical reasoning. By recursively clustering semantically similar reasoning steps under shared prefixes, deriving node-level supervision based on proximity to the nearest correct solution, and training a lightweight process reward model with a pairwise gap-aware objective, MedCoast transforms noisy reasoning samples into a learning signal aligned with the sibling-level comparisons performed during inference. Across seven biomedical question-answering benchmarks, MedCoast improves over self-consistency under fixed token budgets and, in several settings, achieves performance comparable to state-of-the-art reward models that are over 50 times larger.
Limitations
Our method trades a substantial one-time offline construction cost for more efficient and effective test-time inference. Building the offline trajectory corpus, clustering reasoning steps, and training the PRM required approximately 300 GPU hours in our experiments. For BioASQ, we binarized the open-ended answers using ROUGE-L scores. We view this as a practical compromise that allows open-ended questions to be incorporated alongside MCQs, thereby broadening the training distribution for the PRM. Our experiments also focus primarily on reasoning over question text alone. In real clinical settings, reliable medical reasoning should be grounded in external evidence, including clinical guidelines, biomedical literature, and patient-specific records. Integrating retrieval into both the proposal model and the process critic is therefore an important direction for future work. In addition, all open-source models are evaluated under quantization to fit available GPU memory. Quantization may reduce generation quality, alter the distribution of candidate reasoning steps, and affect the search landscape explored by MCTS and beam search. As a result, the reported absolute performance may underestimate what could be achieved with full-precision models and larger compute budgets.
Ethics Statements
This work is conducted entirely on publicly available benchmarks, including BioASQ, MedQA, MedMCQA, PubMedQA, MedXpertQA, MedQuAD, and MMLU. These datasets do not contain patient-identifying information, and our study does not collect, store, or process personal user data. We use the datasets only for aggregate benchmark evaluation, respect their licenses and access conditions, and do not redistribute restricted dataset content or individual examples beyond what is permitted.
Although several benchmarks are medical in nature, the proposed system is intended only for research on language-model reasoning and test-time inference. It is not validated for clinical deployment and must not be used to provide diagnosis, treatment recommendations, or medical decision support. Model outputs may contain factual errors, unsupported reasoning, or unsafe conclusions, especially under distribution shift. In addition, benchmark questions are imperfect proxies for real-world medical practice. They may reflect exam-oriented reasoning, geographic and specialty biases, outdated clinical assumptions, or limited representation of diverse patient populations. Therefore, improvements on these benchmarks should be interpreted as evidence of better benchmark reasoning performance, not clinical reliability or readiness for patient care.
Appendix
Data Descriptions
This study used seven datasets, all of which are intended exclusively for research purposes. None of the datasets are intended for real-world clinical deployment, and we strictly follow their stated usage restrictions.
MedQA: MedQA [11] is a large-scale medical question answering dataset constructed from professional medical licensing examinations, including the United States Medical Licensing Examination (USMLE). The dataset contains multiple-choice questions spanning diverse clinical disciplines such as internal medicine, surgery, pathology, pharmacology, and physiology.
PubMedQA: PubMedQA [12] is a biomedical QA dataset collected from PubMed abstracts. Each sample consists of a research question, a biomedical abstract context, a long-form answer derived from the article conclusion, and a corresponding yes/no/maybe label. The dataset contains expert-annotated, unlabeled, and automatically generated QA pairs centered on biomedical research literature.
MedMCQA: MedMCQA [18] is a large-scale multiple-choice medical QA dataset collected from Indian medical entrance and licensing examinations such as AI-IMS and NEET. The dataset covers numerous medical specialties and includes metadata such as subject categories, explanations, and difficulty-related information for each question.
BioASQ: BioASQ [14] is a biomedical benchmark developed as part of the BioASQ challenge, containing factoid, list, yes/no, and summary-style questions grounded in PubMed literature. The dataset includes expert-curated answers together with supporting biomedical articles and is designed to reflect realistic biomedical information-seeking scenarios.
MedXpertQA: MedXpertQA [33] is a comprehensive expert-level medical benchmark spanning 17 medical specialties and 11 body systems. The study uses the text-only subset of MedXpertQA. Questions are sourced from specialty board examinations and expert-reviewed for accuracy and difficulty.
MMLU-Med: MMLU-Med [9] is a medical-domain subset of the Massive Multitask Language Understanding (MMLU) benchmark composed of multiple-choice questions from subjects such as anatomy, clinical knowledge, genetics, nutrition, professional medicine, and college-level biology. The dataset covers both foundational biomedical sciences and clinical medicine topics.
MedQuAD: MedQuAD [1] is a medical QA dataset collected from question-answer pairs available on websites of the U.S. National Institutes of Health (NIH). The dataset contains consumer health questions and authoritative answers related to diseases, symptoms, medications, treatments, and healthcare procedures across multiple medical domains.
The detailed dataset split and sample counts are shown in Table 4. Training, validation and testing all consist of a blend of MCQ and open-ended questions.
We use BioASQ as the open-ended QA dataset for PRM training and validation. To derive a binary correctness label, we threshold the ROUGE-L score at 0.11. This value is both the empirical median and aligns with a visible separation between two clusters in the score distribution (Figure 7).

Figure 7. Distribution of ROUGE-L scores on BioASQ predictions. We set the binary correctness threshold at 0.11 (median), which also coincides with a clear separation between two modes.
Detailed Performance
Table 12, Table 13, and Table 5 report the complete per-dataset and per-backbone results for the in-distribution benchmarks, the out-of-distribution benchmarks, and the comparison between reasoning trees constructed with and without semantic abstraction, respectively. All experiments are conducted over five random seeds, and the mean and standard deviation are reported. The PRM configurations used in these tables, as well as in the aggregated results presented in the main text, use and , such that the supervision signal is defined solely by proximity to the nearest correct solution.
Implementation Details
We collect offline reasoning trajectories from three open-weight LLMs: Qwen3-8B, Gemma-2-9B-IT, and Llama-3.1-8B-Instruct. For each question, we sample solutions per model using fixed decoding parameters: temperature 0.7, top-, repetition penalty 1.1, and maximum generation length of 8192 tokens. Each output is formatted as a sequence of atomic reasoning steps marked by <|step|>, followed by a final answer marked by <|answer|>.
Each reasoning step is embedded with the sentence transformer all-MiniLM-L6-v2. We then cluster step embeddings by cosine similarity to construct candidate nodes in the abstract reasoning tree.
The clustering abstraction process takes equivalent of around 300 GPU hours on an NVIDIA H100 GPU, and the inference takes additional 100 GPU hours. The BERTScore reported is based on distilroberta-base. All performance numbers reported in Table 1 are the averages across five individual runs with different seeds. Performances in Figure 4, Figure 5} and Figure 6` are from singular runs.
Figure 4. Grid-view ablation of node scoring design on PubMedQA and BioASQ using OLMo-3-7B-Instruct with direct-evaluation MCTS ( and ).
More implementation details can be found at https://github.com/zhongys97/MedCoast. All nine trained PRMs are released on Huggingface https://huggingface.co/zhongys97/MedCoast.
Shared Prefix Pairs
Using the averaged node score in Equation (3), we qualitatively examine whether the score captures meaningful differences between alternative continuations from the same reasoning prefix. Table 16 shows examples consisting of the original question, the shared prefix, and the diverging next-step candidates from sibling child nodes. The pairs are sampled from the evaluation split using trees constructed with clustering threshold .
| Field | Content | ||||||
| Example 1 | |||||||
| Question | "question": "Which of the following is a primarily RNA based technique?", "options": "A": "Next generation sequencing", "B": "PCR", "C": "Sanger’s technique", "D": "Western blotting" | ||||||
| Prefix | < | step | > To determine which technique is primarily RNA based, we must first understand the nature of each technique. Next generation sequencing (NGS) can be used for both DNA and RNA, so it is not primarily RNA based. < | step | > PCR (Polymerase Chain Reaction) is a technique that amplifies DNA, not RNA, so it is not primarily RNA based. < | step | > Sanger’s technique is a method for DNA sequencing and is not primarily RNA based. |
| Positive | Western blotting is a technique used to detect specific proteins, not RNA, so it is not primarily RNA based. Correctness: 0.47 Proximity: 0.60 | ||||||
| Negative | Western Blotting detects proteins by binding antibodies to SDS-PAGE separated samples; while cDNA may sometimes derive from RNA transcripts for gene expression analysis. Correctness: 0.33 Proximity: 0.20 | ||||||
| Example 2 | |||||||
| Question | "question": "A 60-year-old woman comes to the physician because of palpitations and a 5.4-kg (11.9-lb) weight loss over the past 3 months. She appears anxious. Her pulse is 104/min and blood pressure is 148/101 mm Hg. Physical examination shows warm skin, mild tremor, and an enlarged thyroid gland. A thyroid scintigraphy scan shows several focal areas with increased uptake. A biopsy of one of these areas of affected thyroid tissue is most likely to show which of the following?", "options": "A": "Sheets of parafollicular cells surrounded by amyloid stroma", "B": "Inflammatory infiltrate with multinucleated giant cells and granuloma formation", "C": "Follicle destruction with lymphocytic infiltrate and germinal center formation", "D": "Patches of enlarged follicular cells distended with colloid" | ||||||
| Prefix | < | step | > The patient presents with symptoms of palpitations, weight loss, and a goiter, which are classic signs of hyperthyroidism. These symptoms suggest overactivity of the thyroid gland. < | step | > The presence of an enlarged thyroid gland and focal areas of increased uptake on thyroid scintigraphy suggests the presence of autonomously functioning thyroid nodules. | ||
| Positive | Among the options provided, the one that aligns with an increase in follicular cells is option D: Patches of enlarged follicular cells distended with colloid. This option suggests an increase in the number of follicular cells, which is consistent with a multinodular goiter. Correctness: 0.67 Proximity: 1.0 | ||||||
| Negative | However, option D does not match our findings of hyperthyroidism and the scintigraphy pattern of increased uptake. The correct answer should be something that matches these findings. Correctness: 0.33 Proximity: 0.33 | ||||||
| Example 3 | |||||||
| Question | "question": "A 33-year-old Asian American man presents to his primary care provider in February with pain in his fingers. His symptoms started 2 years ago and have gradually progressed. He initially attributed his symptoms to stress at work as a social worker. He has tried using ibuprofen, acetaminophen, and naproxen, but these medications did not improve his pain. He also reports that there have been at least 3 instances in the past 2 months in which his fingers became extremely painful and turned white before turning pale blue. These instances occurred when the patient was walking outside. His past medical history is notable for gastroesophageal reflux disease and gout. He takes omeprazole and allopurinol. His temperature is 99 F (37.2 C), blood pressure is 120/78 mmHg, pulse is 90/min, and respirations are 18/min. Physical examination reveals loss of skin fold wrinkles and indurated skin on the palmar side of the digits. Finger range of motion is limited. Which of the following medications is most appropriate to address this patient’s concerns?", "options": "A": "Ambrisentan", "B": "Amlodipine", "C": "Cilostazol", "D": "Lisinopril" | ||||||
| Prefix | < | step | > The patient presents with progressive finger pain and intermittent episodes of finger discoloration, which suggests a vascular or connective tissue disorder. The symptoms are exacerbated by cold exposure, as the episodes occur when walking outside. This is a key clue pointing toward Raynaud’s phenomenon or a related condition. | ||||
| Positive | The patient’s laboratory results are not provided, but a diagnosis of limited systemic scleroderma would be supported by the presence of autoantibodies, such as anti-Scl-70 or anti-centromere antibodies. However, in the absence of laboratory results, we can proceed with the clinical diagnosis of limited systemic scleroderma. Correctness: 0.67 Proximity: 0.5 | ||||||
| Negative | The patient’s symptoms worsen when walking outside, which may suggest cold-induced vasospasm or a systemic condition affecting small vessels. This pattern is not typical of gout or gastroesophageal reflux disease, which are already accounted for in his medical history. Correctness: 0.33 Proximity: 0.50 |
Table 16. QA with parent prefix and positive/negative step candidates and scores with average of percentage correct and progress ratio.
For interpretability, we report the correctness and proximity components for each child node. During training, these components are combined into a single node score according to the weighting parameter , and the child with the higher score is assigned the positive label while the lower-scoring child is assigned the negative label. Overall, larger score gaps tend to correspond to more substantial semantic differences between sibling continuations.
Hard Negative Pairs Building
We define a gap-dependent acceptance function
where denotes the score gap between two candidates. The parameter specifies a minimum acceptance probability, ensuring that samples with large gaps are still retained with non-zero probability. The temperature parameter controls the rate of exponential decay: smaller values of bias the sampling toward smaller gaps, while larger values yield a smoother, more uniform selection. In our implementation, we picked and .
Critic Training and Inference
The step-level PRM is initialized from Modern-BERT (Warner et al., [24]). We freeze the first 18 layers during training, resulting in 20M trainable parameters out of 149M total parameters. The distilroberta-base. All performance numbers reported in Table 1 are the averages across five individual runs with different seeds. Performances in Figure 4, Figure 5 and Figure 6 are from singular runs. More implementation details can be found at https://github.com/zhongys97/MedCoast. All nine trained PRMs are released on Huggingface https://huggingface.co/zhongys97/MedCoast. PRM is optimized with AdamW using a learning rate of and batch size 128. We save checkpoints every 2000 steps and apply early stopping based on validation performance; training is terminated if no improvement is observed over the most recent 50 checkpoints. The scale of data required for PRM training is listed in Table 6.
| Quantity | Count |
| Training and validation questions | ∼105K |
| Generated trajectories | ∼63M |
| Retained trajectories (all retained) | ∼63M |
| Clustered reasoning trees (one per question) | ∼105K |
| Available PRM training pairs | ∼68M |
| PRM training pairs used until convergence | ∼15M |
Table 6. Scale of offline construction and PRM training. PRM training pairs are positive–negative sibling pairs.
At inference time, all methods are evaluated under a fixed generation budget. For greedy decoding, beam search, and MCTS, we control the number of candidate expansions , beam size , maximum search depth , and number of simulations to ensure comparable total model calls across methods. Results in Table 1 and Figure 6 use the PRM with subtree correctness ratio and clustering threshold .
Direct Evaluation MCTS
State and action representation. A state is an ordered tuple of committed reasoning step strings. Each step is delimited by a special <|step|> token prepended by the backbone. An action is a candidate next step string. A state is terminal if its last step contains <|answer|> or if , where is the maximum committed-step depth. In our implementation, .
Expansion. When a node is visited for the first time, we query the backbone with parallel requests, each conditioned on the concatenation of all steps in and a continuation prompt that does not force a final answer. The responses are deduplicated via exact-string matching and cached as ; the cached set is reused across all subsequent simulations and across committed steps. MCTS statistics are reset at the start of each committed-step search, but the expansion cache is preserved.
Selection. At each interior node we select the action that maximises the PUCT score:
where (0 if ), is the visit count of node , is the visit count of edge , , and is a uniform prior over actions at node . Node visit counts are incremented during the forward (selection) pass; edge statistics and are updated during backup. Across all MCTS runs, we fix to balance exploration and exploitation.
Evaluation and backup. When the simulation reaches a node that is either terminal, at depth limit, or newly expanded leaf, the critic is queried once to obtain a scalar value . The value is backed up along the selected path: for each in the path, and .
Action commitment. After simulations, the root action is chosen by , i.e. the most-visited child. The search then re-roots at and runs fresh simulations for the next committed step. This continues for at most committed steps.
Answer forcing. If no committed step contains <|answer|> after the search terminates, the full reasoning prefix is passed to the backbone with an answer-forcing prompt that requires the model to emit a final answer. If the answer token is still absent, the prompt is applied a second time.
Token Count
The inference token count for tree-search methods refers to the total number of generated tokens across all search expansions, including intermediate generations that are later discarded but cached during search. Consequently, the total inference token count is typically much larger than the number of tokens appearing in the final visible response. In Table 1, the 4096-token budget is applied to this total inference token count rather than the surface response length. For closed-source models, token counts are estimated using the tokenizer of Llama-3.1-8B-Instruct for consistency across APIs.
Prompts
We use a minimal set of prompts for both trajectory collection and inference. Table 25 and Table 24 show the prompts used to collect trajectories for open-ended and multiple-choice questions, respectively. During inference, the prompt in Table 26 elicits the first reasoning step, while the prompt in Table 27 generates subsequent steps conditioned on the current reasoning prefix. If the maximum step budget of 20 is reached before an explicit answer is produced, we use the answer-forcing prompt in Table 28 to obtain a final decision.
| Multiple-Choice Question Collection System Prompt |
| You are a medical expert answering domain specific questions. |
| Your goal is to take small, reasoning that move toward the correct answer. |
| STRICT RULES |
| - Produce a sequence of steps (3 - 20). |
| - Each step MUST represent exactly ONE justification. |
| - Each step MUST be around (20 - 30) words. |
| - Answer with maximum budget of 20 steps. |
| - Do NOT repeat earlier steps. |
| - Do NOT assume missing patient facts. |
| - Use medically correct knowledge only. |
| PROCESS - Prefer discriminative reasoning: use findings to eliminate options, not broad explanations. |
| - If the stem lacks key data, explicitly name the missing piece(s) and proceed with the most reasonable inference from what IS given. |
| - Commit to an option only after you have ruled out alternatives or identified a defining criterion. |
| FORMAT - Each step MUST begin with <step>. |
| - The final answer (if reached) must begin with <answer>. |
| - If the answer is not yet determined, continue with another <step>. |
| MULTIPLE CHOICE QUESTIONS - Do NOT choose an option until justified by prior steps. |
| - When choosing, use <answer> followed by ONLY the option letter. |
| UNCERTAINTY - If information is insufficient, add a step stating what is missing. |
| - Still proceed with the most reasonable medical inference. |
Table 24. Multiple-Choice Question Collection System Prompt
| Open-ended Question Collection System Prompt |
| You are a medical expert answering domain specific questions. |
| Your goal is to take small, reasoning that move toward the correct answer. |
| STRICT RULES |
| - Produce a sequence of steps (3 - 20). |
| - Each step MUST represent exactly ONE justification. |
| - Each step MUST be around (20 - 30) words. |
| - Answer with maximum budget of 20 steps. |
| - Do NOT repeat earlier steps. |
| - Do NOT assume missing patient facts. |
| - Use medically correct knowledge only. |
| FORMAT |
| - Each step MUST begin with <step>. |
| - The final answer (if reached) must begin with <answer>. |
| - After <answer>, give a concise final answer (less than 40 tokens). |
| - If the answer is not yet determined, continue with another <step>. |
| - Do NOT include <step> after <answer>. |
| UNCERTAINTY |
| - If information is insufficient, add a step stating what is missing. |
| - Still proceed with the most reasonable medical inference. |
Table 25. Open-ended Question Collection System Prompt
| Inference Start Prompt | ||||
| You are a medical expert answering domain-specific questions. | ||||
| Your goal is to take small, reasoning that move toward one single correct answer. | ||||
| OUTPUT CONTRACT | ||||
| - You can have multiple rounds. But for each round, you must output EITHER: (A) exactly ONE step line, OR (B) exactly ONE answer line. | ||||
| - A step line must start with < | step | > and contain ONE justification (20 - 30 words). | ||
| - An answer line must start with < | answer | > and contain ONLY the final answer (no explanation). | ||
| - For multiple choice questions, the final answer must be the option letter ONLY. | ||||
| - Output < | answer | > if you are 100% certain. | ||
| STRICT RULES | ||||
| - Do NOT repeat earlier steps. | ||||
| - Do NOT assume missing patient facts. | ||||
| - Never use any tags other than < | step | > or < | answer | >. |
| BAD STEPS (do NOT do this) | ||||
| - Multiple justifications in one step | ||||
| - Repeat earlier steps | ||||
| - Any tag like < | final_answer | > (use < | answer | > only) |
Table 26. Inference Start Prompt
| Inference New Step Prompt | ||||
| If certain, output exactly ONE answer line Otherwise, output exactly ONE step line | ||||
| - A step line must start with < | step | > and contain ONE justification (20 - 30 words). | ||
| - An answer line must start with < | answer | > and contain ONLY the final answer (no explanation). | ||
| - For multiple choice questions, the final answer must be the option letter ONLY. | ||||
| - Output < | answer | > if you are 100% certain. | ||
| STRICT RULES | ||||
| - Do NOT repeat earlier steps. | ||||
| - Do NOT assume missing patient facts. | ||||
| - Never use any tags other than < | step | > or < | answer | >. |
Table 27. Inference Step Prompt
| Inference Answer Prompt | ||
| You MUST output exactly ONE line starting with < | answer | > and contain ONLY the final answer (no explanation). |
| - MUST 100% START WITH < | answer | > |
| - Give the most likely answer if uncertain | ||
| - Avoid requesting more user inputs | ||
| - For multiple choice questions, the final answer must be the option letter ONLY. |
Table 28. Inference Answer Prompt
Semantic Abstraction of the Offline Tree
Table 7 shows that the overall tree structure is not highly sensitive to the inter-cluster similarity threshold . As expected, the total number of nodes increases with larger thresholds, since stricter similarity requirements reduce merging and produce more clusters from the same set of reasoning steps. Consistent with this finer-grained partitioning, the average branching factor decreases as the threshold increases, indicating that the tree becomes deeper or more fragmented rather than substantially broader.
| Metric | |||
| Tree size | 1532 769 | 1924 898 | 2402 1021 |
| Branch factor | 6.93 1.86 | 6.85 1.59 | 6.57 1.29 |
| Num. leaves | 210 71 | 273 96 | 357 112 |
| Avg. leaf depth | 10.55 1.65 | 9.75 1.47 | 8.94 1.26 |
| Depth | 19.91 2.03 | 19.91 2.03 | 19.91 2.03 |
Table 7. Tree statistics under different clustering threshold similarities.
Beyond these trends, the tree statistics reveal substantial compression of the offline reasoning space. The average branching factor remains between approximately 6.5 and 7 across thresholds. Starting from 600 trajectories sampled from three backbone models, with each trajectory containing roughly 10 reasoning steps on average, the construction compresses thousands of granular step instances into fewer than 2400 nodes in a single reasoning tree. This suggests that many superficially different reasoning steps collapse into a smaller set of recurring semantic states.
Tables 14 and 15 provide qualitative examples of clusters produced with . The examples show clear intra-cluster semantic coherence as well as meaningful inter-cluster distinctions. For example, in Table 14, steps in Cluster 1 primarily discuss the connection between endometrial cancer and Lynch syndrome, whereas Cluster 2 focuses on genetic predisposition. Cluster 3 also concerns genetic factors, but frames them as support for genetic testing rather than as background scientific knowledge. Cluster 4 emphasizes the role of family history of Lynch syndrome, with less focus on mutation mechanisms or prevalence. Table 15 shows child clusters from the root node, illustrating that different clusters often approach the same question from distinct reasoning perspectives.
| Field | Content |
| Question | "Women with synchronous primary cancers of the endometrium and ovary: do they have Lynch syndrome?", "options": { "A": "yes", "B": "no", "C": "maybe" } |
| Prefix | The presence of synchronous primary cancers in the endometrium and ovary raises suspicion for a hereditary cancer syndrome due to the shared anatomical origin and potential genetic predisposition. |
| Cluster 1 | |
| Lynch syndrome is strongly linked to endometrial cancer, with up to 30% of endometrial cancers being attributable to Lynch syndrome. | |
| The revised Bethesda guidelines recommend testing for Lynch syndrome in individuals with certain types of cancer, including colorectal, endometrial, ovarian, and other related cancers. \n\n For women with synchronous primary cancers of the endometrium and ovary, testing for Lynch syndrome may involve genetic counseling and testing for mutations in the MLH1, MSH2, MSH6, and PMS2 genes. | |
| The lifetime ovarian cancer (OC) risk in Lynch syndrome carriers ranges from 8 - 40%, but it remains significantly lower than endometrial carcinoma incidence. | |
| Lynch syndrome is the most common hereditary cancer syndrome associated with endometrial and ovarian cancers, particularly when diagnosed at a younger age. | |
| Cluster 2 | |
| Exposure to **estrogen therapy** or obesity raises endometrioid ovarian risk separately, mimicking Lynch-associated patterns. These factors could explain synchronous occurrence in the absence of genetic hypermutation. | |
| Synchronous cancers in women suggest a possible genetic predisposition, as these cancers may arise from the same germline mutation. | |
| It also involves increased risk for other adenocarcinomas such as endometrial and ovarian cancers due to germline mutations in DNA mismatch repair genes. | |
| Sporadic synchronous primaries are well-described in postmenopausal women, accounting for up to **10% of all uterine/ovarian dual malignancies** without inherited syndromes. | |
| Cluster 3 | |
| To confirm Lynch syndrome, genetic testing for mismatch repair gene mutations is necessary. | |
| If the genetic testing is positive for a Lynch syndrome-related gene mutation, it would support the diagnosis of Lynch syndrome. | |
| Absence of known germline pathogenic variants does not exclude Lynch; somatic mosaicism exists but is rare compared to classic germline mechanism. | |
| Therefore, a definitive diagnosis of Lynch syndrome requires a comprehensive evaluation, including family history, tumor characteristics, and genetic testing. | |
| Cluster 4 | |
| Synchronous cancers in these sites are more commonly linked to Lynch syndrome than to sporadic mutations. | |
| On the other hand, if the patient’s family history is negative for Lynch syndrome-associated cancers, or if the tumors do not show evidence of MSI or mismatch repair deficiency, it would decrease the likelihood of Lynch syndrome. | |
| However, it’s essential to note that synchronous primary cancers can also occur in the absence of Lynch syndrome, particularly in women with other risk factors, such as family history or genetic mutations. | |
| If the woman has a strong family history of cancer, particularly in first-degree relatives, this would increase the likelihood of Lynch syndrome. |
Table 14. Example of semantic clusters formed during trajectory abstraction. The clustering similarity threshold is .
| Field | Content |
| Question | “Which is the major symptom of the Doose syndrome?” |
| Prefix | Empty. Just to begin answer the question. |
| Cluster 1 | |
| Doose syndrome, also known as myoclonic-astatic epilepsy, is a rare genetic disorder that primarily affects the brain’s development and function. | |
| Doose syndrome, also known as myoclonic-astatic epilepsy, is a rare genetic disorder that primarily affects the brain’s electrical activity. | |
| To determine the major symptom of Doose syndrome, I first need to recall what Doose syndrome is. Doose syndrome is a rare genetic disorder that affects the nervous system. | |
| Cluster 2 | |
| The disorder is characterized by seizures that begin in infancy or early childhood. | |
| The condition is characterized by seizures that begin in infancy or early childhood. | |
| The condition is characterized by seizures that typically begin in infancy or early childhood. | |
| Cluster 3 | |
| I am looking for the primary clinical presentations in new borns. | |
| Cluster 4 | |
| In addition to seizures, patients may experience developmental delays and intellectual disabilities. | |
| In addition to myoclonic seizures, patients may also experience ataxia, which is a lack of coordination and balance. | |
| In addition to seizures and developmental issues, patients may also experience movement disorders such as ataxia. | |
| In addition to seizures, developmental delays and behavioral issues are commonly observed in affected individuals. |
Table 15. Another example of semantic clusters formed during trajectory abstraction. The clustering similarity threshold is .
Hyperparameter Sensitivity
Critic ranking performance. Table 8 reports the pairwise classification accuracy of the PRM on the validation set, using the best checkpoint before early stopping. Across the nine PRM configurations, two trends emerge. First, the node-scoring weight has a clear effect on ranking accuracy: subtree-correctness-only supervision () yields the lowest accuracies, whereas proximity-based supervision () yields the highest. This suggests that progress toward a correct answer provides a more learnable signal for distinguishing sibling continuations than empirical subtree correctness alone. Second, the semantic clustering threshold has a comparatively smaller effect, indicating that the learned critic is relatively robust to moderate changes in tree granularity.
| Avg_acc | Acc () | Acc () | Acc () | Acc () | Acc () | Acc () | ||
| 0.75 | 0.0 | 59.95 | 60.48 | 62.08 | 63.64 | 64.31 | 64.37 | 64.47 |
| 0.5 | 57.57 | 57.79 | 57.65 | 58.29 | 60.57 | 61.14 | 64.57 | |
| 1.0 | 52.25 | 52.42 | 52.47 | 52.30 | 53.27 | 54.93 | 58.50 | |
| 0.80 | 0.0 | 60.35 | 61.20 | 63.30 | 65.15 | 65.22 | 64.68 | 64.39 |
| 0.5 | 55.90 | 55.81 | 55.63 | 58.83 | 60.82 | 60.59 | 64.67 | |
| 1.0 | 51.43 | 51.36 | 51.49 | 51.14 | 52.53 | 54.67 | 59.15 | |
| 0.85 | 0.0 | 60.93 | 61.84 | 64.36 | 66.30 | 66.21 | 65.25 | 63.78 |
| 0.5 | 54.11 | 53.64 | 53.14 | 57.98 | 58.73 | 59.67 | 62.43 | |
| 1.0 | 51.01 | 50.98 | 50.92 | 50.86 | 51.44 | 54.08 | 55.68 |
Table 8. Validation accuracy (%) under different node-clustering thresholds and subtree-correctness weights . Higher places greater emphasis on empirical subtree correctness, while lower emphasizes progress toward the nearest correct solution.
Downstream inference performance. Figure 8 and Figure 9 report downstream ablations of the node-scoring design for Qwen3-8B and Phi-3.5-mini, respectively. These results complement the OLMo3-7B grid-view ablation in Figure 4.
Figure 8. Grid-view ablation of PRM node-scoring design across all seven datasets using Qwen3-8B with direct-evaluation MCTS (, ). Rows vary the semantic clustering threshold , and columns vary the subtree-correctness weight , where lower emphasizes progress toward the nearest correct solution.
Figure 9. Grid-view ablation of PRM node-scoring design across all seven datasets using Phi-3.5-mini-Instruct with direct-evaluation MCTS (, ).
From Table 9, neither PRM training hyperparameter has a statistically significant effect on downstream QA performance for either model (all ). However, the subtree-correctness weight appears to be the more important design parameter. Across both backbones, produces a larger marginal effect ( for Qwen3-8B and 0.68 for Phi-3.5-mini) than the clustering cut-off ( and 0.37, respectively), as well as consistently higher -statistics across experimental settings. This suggests that downstream performance is more sensitive to how node scores balance subtree correctness and progress than to moderate changes in the semantic clustering threshold used during tree construction. Although neither factor reaches statistical significance, the combined analysis indicates that is the relatively more influential hyperparameter.
| Model | Effect Size () | Effect Size () | ||||
| Qwen3-8B | 0.464 | 0.582 | 1.21 | .463 | 2.72 | .325 |
| Phi-3.5-mini | 0.367 | 0.679 | 0.67 | .636 | 3.85 | .198 |
| Combined | 0.415 | 0.631 | 0.94 | .549 | 3.28 | .262 |
Table 9. PRM hyperparameter sensitivity analysis aggregated across all seven datasets. Effect size () is the standard deviation of marginal means after -score normalisation per dataset. -statistics are one-way tests treating the other factor as replicates, averaged over datasets. No factor reaches significance at conventional threshold.
Time Efficiency
Table 10 reports the wall-clock time and hardware required for trajectory collection, semantic clustering, PRM training, and inference. We acknowledge that constructing the PRM requires a substantial one-time offline investment, corresponding to approximately 300 GPU-hours. Nevertheless, PRM training converged after processing less than 5% of the available training pairs in the first epoch, equivalent to approximately 15 million pairs.
| Tasks (all models combined) | Hours | # H100 |
| Trajectory sampling | 8 | 20 |
| Step clustering | 12 | 10 |
| Reward model training | 15 | 1 |
| Inference (MCTS: 8 simulations, 8 branches, search depth 6) | 15 | 10 |
Table 10. Computational resources required for each stage of MEDCOAST.
For context, the process- and reward-model training costs of MedS3 [10] and Med-PRM [30] can be estimated to be on the order of 200 GPU-hours based on their reported training configurations.
Qualitative Analyses
Human Evaluation Guideline
The human evaluation guideline in Table 11 defines four possible error types: repetition, knowledge gap, reasoning error, and failure to provide a final answer.
| Human Evaluation Guideline |
| Goal: Identify common problems in model-generated medical reasoning. For each sample, read the question, reasoning trace, and final answer, then select all applicable issue types. Multiple labels may be selected. Choose “No Issue” only if none of the other issues apply. Aim for 3–4 minutes per sample. |
| Repetition: The model repeats the same idea across steps without meaningful progress, even if phrased differently. |
| Knowledge Gap: The model makes a medically or factually incorrect claim, such as an incorrect drug, anatomy, diagnosis, mechanism, or treatment. Select only when confident. |
| Reasoning Error: The facts appear plausible, but the model draws an unsupported or illogical conclusion. |
| No Answer: The response lacks a clear final answer, or the answer is incomplete or cut off. |
| No Issue: The reasoning is coherent, medically plausible, non-repetitive, and ends with a clear answer. |
Table 11. Human evaluation guideline.
Two authors participated in the human evaluation. Each author independently annotated the sampled responses using the guideline above. We report the union of their annotations: a response is considered to exhibit an issue if either annotator flagged that issue. The counts reported in Table 3 are computed after this union operation.
Examples of Correct Answers
The correctly answered examples in Table 17 show that the model can often produce coherent and task-aligned reasoning traces when the required medical knowledge is available. Across these cases, the reasoning typically identifies the key concept in the question, narrows the relevant clinical or biomedical mechanism, and then maps that evidence to the final answer. For instance, the model correctly connects tailored interventions with improved mammography uptake, recognizes Q fever as a non–lice-transmitted infection, identifies essential fatty acids, and associates coarse facial features with Hurler syndrome.
| Field | Content |
| Question | "Can tailored interventions increase mammography use among HMO women?", "options": {"A": "yes", "B": "no", "C": "maybe"} |
| Pred reasoning | <|step|> The question asks whether tailored interventions can increase mammography use specifically among women in Health Maintenance Organizations (HMOs). Evidence from health promotion studies generally supports that personalized or targeted interventions improve the uptake of recommended screenings among at-risk or specific populations, including those within managed care settings. HMOs often<|step|> Tailored interventions have been shown in literature to increase screening uptake among specific patient groups, including HMO members, by addressing barriers to care and personalizing communication. This aligns with the question’s focus on HMO women.<|step|> The question asks whether tailored interventions have sufficient evidence to increase mammography use specifically among HMO-enrolled women. Major reviews and studies in healthcare delivery settings, including HMOs, demonstrate that personalized interventions improve screening adherence by addressing individual barriers and improving provider-patient communication. This evidence base supports the<|answer|>A |
| Question | "Which of the following is not transmitted by lice", "options": "A": "Q fever", "B": "Trench fever", "C": "Relapsing fever", "D": "Epidemic typhus" } |
| Pred reasoning | <|step|> To determine which disease is not transmitted by lice, I need to identify the vector for each disease. <|step|> Lice are known to transmit trench fever, epidemic typhus, and relapsing fever. Q fever is transmitted by ticks and contaminated environments, not lice. \n<|answer|> A |
| Question | "question": "Which of the following is an essential fatty acid?", "options": "A": "Linoleic acid", "B": "Alpha linolenic acid", "C": "Both of the above", "D": "None of the above" |
| Pred reasoning | <|step|> Essential fatty acids (EFAs) are crucial for various bodily functions, including the formation of cell membranes and the production of hormone-like substances called eicosanoids. Linoleic acid and alpha-linolenic acid are the two main EFAs. Linoleic acid is an omega-<|step|> Linoleic acid is an omega-6 fatty acid, which is essential for the human body as it cannot be produced on its own. It plays a crucial role in various bodily functions, including inflammation regulation, skin health, and brain function. <|step|> Both linoleic acid and alpha-linolenic acid are the two main EFAs that the human body cannot synthesize. <|answer|> C |
| Question | "question": "In DIC following are seen except", "options": "A": "Fibrinogen decreased", "B": "Thrombocytopenia", "C": "Normal APTT", "D": "PT elevation" |
| Pred reasoning | <|step|> Identify typical laboratory findings associated with disseminated intravascular coagulation (DIC), which usually includes thrombocytopenia, fibrinogen depletion, prolonged prothrombin time (PT), and activated partial throm<|step|> In normal circumstances during DIC, there would not be an increase in Prothrombin Time (PT); it typically gets extended due to consumption of clotting factors. Therefore, we look at options where PT does not get affected as abnormalities indicative of DIC.<|step|> Reviewing standard lab results expected in DIC; recognize Fibrinogen decrease, Thrombocytopenia, Activated Partial Thromboplastin Time (APTT) extension from factor usage but normally unchanged Prothrombin Time (PT) until later stages<|answer|> C |
| Question | "question": "A one year old child, who is earlier normal, is suffering from copious nasal discharge, coarse facial features, large tongue, bulging head and flattened nose. He is also having enlarged spleen and liver. What may be the cause?", "options": "A": "Hypothyroidism", "B": "Beckwith widman syndrome", "C": "Proteus syndrome", "D": "Hurler syndrome" |
| Pred reasoning | <|step|> Identify symptoms associated with known genetic conditions affecting children such as growth abnormalities, organomegaly, and distinctive physical traits.<|step|> Match presented symptoms including characteristic craniofacial appearance, organomegaly, and developmental issues against descriptions of specific congenital disorders listed among options. The most fitting condition described by these clinical signs aligns with Hurler syndrome.<|step|> Consider all provided symptoms nasal discharge, coarse facial features, macroglossia, prominent forehead, protruding eyes, hepatosplenomegaly and cross-reference them with recognized characteristics of metabolic storage diseases typically present at<|step|> Compare given symptoms with classic presentation of Mucopolysaccharidoses types I through VI; select type correspondence with detailed manifestations outlined.<|/step|><|answer|>D |
| Question | "Which transcription factor is considered as a master regulator of lysosomal genes?" |
| Pred reasoning | <|step|> The master regulator of lysosomal genes is a key transcription factor involved in the regulation of genes related to lysosomal function and biogenesis. \n<|answer|> TFEB |
| Notes | Ground Truth: Transcription Factor EB (TFEB), RougeL-F1: 0.40, BERTscore-F1: 0.843 |
Table 17. Examples of correct answers for both MCQ and open-ended medical questions. Definition of correct answer for open-ended question is RougeL exceeding 0.11.
Examples of Problematic Answers
Table 18, Table 19, Table 20, and Table 21 present representative examples of the four abnormal behaviors observed among incorrect predictions: repetitive reasoning, missing final answers, medical knowledge gaps, and failure to select the best answer despite partially relevant reasoning. In each example, the problematic spans are highlighted in red or brown to indicate where the failure occurs within the generated trace.
| Category | Content |
| Question | "question": "Orteronel was developed for treatment of which cancer?" |
| Pred reasoning | <|step|> Identify Orteronel as an investigational drug specifically designed against prostate cancer by examining its clinical trial data and research publications focused on hormone therapy agents used in treating advanced stages of malignancies related to male reproductive organs.\n <|answer|<|step|> Review scientific literature regarding Orteronel’s mechanism of action targeting enzymes involved in steroidogenesis within tumor cells specific to prostate carcinoma pathology. This approach helps confirm its developmental purpose without assuming additional information not provided in your query.\n<|answer|<|step|> Consult authoritative pharmaceutical databases such as PubMed or DrugBank where I would search using keywords Örteronelälong with terms associated with prostate cancer treatments, ensuring my sources directly relate to therapeutic uses rather than general chemistry<|step|> Search through peer-reviewed studies focusing on drugs under investigation for various types of cancer to find mentions of Orteronel being linked explicitly to prostate cancer treatment protocols based on their published outcomes and stated objectives.\n<|answer|>\n\n |
| GT answer | B |
Table 19. Representative failure examples unable to output the answer.
| Field | Content |
| Example 1 | |
| Question | "question": "A previously healthy 17-year-old girl comes to the emergency department because of a 5-day history of progressive lower abdominal pain, fever, and malodorous vaginal discharge. Menarche was at the age of 12 years, and her last menstrual period was 2 weeks ago. She is sexually active with one male partner and uses a combination contraceptive patch. Her temperature is 37.8 °C (100°F), pulse is 90/min, respirations are 22/min, and blood pressure is 110/70 mm Hg. Abdominal examination shows severe lower quadrant tenderness bilaterally. Pelvic examination shows a purulent cervical discharge, cervical motion tenderness, and bilateral adnexal tenderness. Her hemoglobin concentration is 10.5 g/dL, leukocyte count is 13,000/mm3, and platelet count is 345,000/mm3. A urine pregnancy test is negative. Which of the following is the most appropriate pharmacotherapy?", "options": "A": "Oral azithromycin", "B": "Vaginal clindamycin", "C": "Intravenous penicillin and vancomycin", "D": "Intramuscular ceftriaxone and oral doxycycline" |
| Pred reasoning | <|step|> The patient presents with lower abdominal pain, fever, malodorous vaginal discharge, history of sexual activity with contraceptive use, and exam findings of pelvic inflammatory disease (PID) with cervical and adnexal tenderness. Lab results show leukocytosis and normal hemoglobin, no pregnancy. <|step|> The presentation and labs suggest a likely bacterial pelvic inflammatory disease (PID), which requires empirical coverage of both Gram-negative and Gram-positive bacteria. Option C provides both beta-lactam (penicillin) and a macrolide (vancomycin), covering these pathogens. <|answer|>C |
| GT answer | D |
| Example 2 | |
| Question | "question": "How many TAp73 isoforms have been identified in humans?" |
| Pred reasoning | <|step|> The TAp73 isoforms are a subset of the larger p73 family of proteins, which are involved in regulating cell growth and survival. To determine the number of TAp73 isoforms identified in humans, it is essential to consider the various isoforms generated through alternative splicing and transcription. <|step|> Research indicates that TAp73 is a transcriptional activator isoform of the tumor suppressor protein p73, and it plays a crucial role in promoting cell cycle arrest and apoptosis in response to DNA damage. Studies have identified multiple isoforms of TAp73, primarily generated through alternative splicing<|step|> TAp73 isoforms are generated through alternative splicing and transcriptional regulation. Research on the p73 family has identified multiple isoforms, including TAp73, Np73, and p73, among others. Studies have shown that these isoforms have distinct functions in regulating cell<|answer|> 3 |
| GT answer | 7 |
Table 20. Representative failure examples caused by medical knowledge gaps.
| Category | Content | ||||||||||||
| Question | "question": "A 29-year-old woman presents to the physician with a blurred vision of her right eye for 2 days. She has pain around her right eye during eye movement. She takes no medications. At the clinic, her blood pressure is 110/70 mm Hg, the pulse is 72/min, respirations are 15/min, and the temperature is 36.5 \textdegree (97.7 \textdegree ). On physical examination, illumination of the left eye results in bilateral pupillary constriction while illumination of the right eye results in a mild bilateral pupillary dilation. Fundoscopic examination shows optic disk swelling in the right eye. The color vision test shows decreased perception in the right eye. The remainder of the physical examination shows no abnormalities. Specific additional history should be obtained regarding which of the following?", "options": { "A": "Dry eyes", "B": "High-risk sexual behaviour", "C": "Oral ulcers", "D": "Sensory loss" } | ||||||||||||
| Pred reasoning | < | step | > The patient’s symptoms suggest a neurological condition, specifically involving the optic nerve, given the optic disk swelling and altered pupillary response. This points towards a need to investigate for conditions like optic neuritis, which is often associated with multiple sclerosis. < | step | > Multiple sclerosis is linked to high-risk sexual behavior < | answer | > B | ||||||
| GT answer | D | ||||||||||||
| Example 2 | |||||||||||||
| Question | "question": "A 65-year-old woman is brought to the emergency department by her husband after he found her with nausea, headache, and agitation 1 hour ago. When he left their lakeside cabin 6 hours before to go ice fishing and get more firewood, she did not have any symptoms. She has chronic migraines, hypertension, and type 2 diabetes mellitus. Her medications include lisinopril and metformin, but she ran out of her anti-hypertensive medications over the weekend. Her temperature is 37.1 °C (98.8 °F), pulse is 110/min, respirations are 21/min, and blood pressure is 154/92 mm Hg. Pulse oximetry on room air shows an oxygen saturation of 98%. She is confused and oriented only to person and place. She recalls only one of three objects after 5 minutes. Her gait is unsteady. Physical examination shows no abnormalities. Which of the following is the most effective intervention for this patient’s current condition?", "options": "A": "Intravenous nitroprusside", "B": "Intranasal sumatriptan", "C": "Hyperbaric oxygen therapy", "D": "100% oxygen therapy" | ||||||||||||
| Pred reasoning | < | step | > Assess the severity of the patient’s acute presentation including confusion, altered mental status, high heart rate, elevated blood pressure without focal neurological deficits. The primary concern here seems related to cerebrovascular insufficiency. < | step | > Given the clinical scenario indicates potential stroke due to sudden change in consciousness, history of hypertension, and physical findings such as confusion and ataxia; prioritize rapid management targeting cerebral perfusion improvement while considering contraindications from existing comorbidities.< | step | > In patients presenting with signs suggestive of transient ischemic attack or minor stroke such as sudden confusion, difficulty speaking, visual disturbances, dizziness, loss of balance, coordination problems, weakness on one side of the body, slurred speech.< | step | > Considering the urgent need to restore adequate cerebral blood flow and minimize brain injury duration, choose between options aiming directly at improving cerebral perfusion.< | step | > Among the given options, intravenous administration allows immediate effectiveness and precise control necessary during acute events involving possible strokes.< | answer | > A |
| GT answer | C |
Table 21. Representative examples due to medically sound reasoning but nearly missing the best answer.
Table 18 provides a particularly direct illustration of how repetitive reasoning can inflate the token budget without adding new evidence or moving the model closer to a final answer. The model repeatedly revisits the same clinical point across multiple steps, which creates the appearance of extended reasoning but contributes little additional decision-making value. This behavior is important for our setting because MedCOAST is evaluated under fixed inference budgets: tokens spent on redundant reasoning reduce the amount of computation available for exploring genuinely useful
continuations.
CoT vs MedCoast
To understand how CoT and MEDCOAST would progress from the same prefix, we present a few example cases in Table 22. Across the three examples, MEDCOAST produces more cautious and clinically grounded reasoning than standard CoT. In Example 1, MCTS avoids prematurely ruling out relevant information and instead considers several management strategies, including bowel rest, fluid resuscitation, and monitoring, which helps guide subsequent reasoning steps. In Example 2, the CoT trajectory contains evidence that could
| Field | Content | ||||||
| Example 1 | |||||||
| Question | “question”: “A 64-year-old male patient on the surgical floor develops new abdominal discomfort and bloating 48 hours after undergoing an uncomplicated right hemicolectomy. He has not passed flatus or stool since the procedure. His vital signs include a heart rate of 110/min, blood pressure of 100/56 mmHg, respiratory rate of 20/min, and temperature of 37.2°C (99.0°F). On examination, his abdomen is distended, mildly tender, tympanic to percussion, and has diminished bowel sounds. A peripheral IV is placed, and IV fluids are administered. What is the most appropriate next step in managing this patient?”, “options”: “A”: “Initiate total parenteral nutrition”, “B”: “Administer opioid analgesics for pain relief”, “C”: “Examine the surgical wounds”, “D”: “Measure serum lactate levels”, “E”: “Obtain an abdominal X-ray”, “F”: “Perform an exploratory laparotomy”, “G”: “Start broad-spectrum antibiotics”, “H”: “Administer prokinetic agents”, “I”: “Insert a nasogastric tube”, “J”: “Perform a CT scan of the abdomen and pelvis” | ||||||
| Prefix | < | step | > The patient presents with post-operative ileus characterized by absent bowel sounds, abdominal distention, and inability to pass gas or stool. | ||||
| CoT next step | < | step | > The immediate priority is to rule out intestinal obstruction which could necessitate urgent intervention. | ||||
| MCTS next step | < | step | > Initial management of postoperative ileus typically involves supportive measures such as bowel rest, fluid resuscitation, and monitoring. | ||||
| Example 2 | |||||||
| Question | “question”: “The mucosa of the hard palate is:”, “options”: “A”: “Keratinised and has submucosa and minor salivary glands posterolaterally”, “B”: “Non-keratinised and has submucosa and minor salivary glands posteromedially”, “C”: “Keratinised and lacks submucosa and minor salivary glands”, “D”: “Non-keratinised and lacks submucosa and minor salivary glands” | ||||||
| Prefix | < | step | > Identify the type of epithelium found on the surface of the hard palate based on anatomical knowledge. | ||||
| CoT next step | < | step | > The majority of the human mouth’s interior surfaces where food contact occurs need protection against mechanical stress; hence they would likely exhibit keratinized tissue characteristics. < | answer | > A | ||
| MCTS next step | < | step | > The majority of the human mouth’s surfaces including the hard palate exhibit keratinized stratified squamous epithelium due to its exposure to mechanical stress from food manipulation during chewing. This tissue also contains underlying connective tissues such as submucosa. | ||||
| Example 3 | |||||||
| Question | “question”: “Highest incidence of atypical root canal or root among all teeth is seen in:”, “options”: “A”: “Mandibular 1st premolar”, “B”: “Mandibular canine”, “C”: “Maxillary 1st premolar”, “D”: “Mandibular 2nd premolar” | ||||||
| Prefix | < | step | > The question asks about the highest incidence of atypical root canal or root among all teeth. < | step | > To answer this, we need to consider the anatomical characteristics and common complications associated with each tooth mentioned in the options. < | step | > Among the options provided, the mandibular first premolar is known to have a prominent groove and a small lingual cusp. |
| CoT next step | < | step | > Considering the anatomical characteristics and common complications associated with each tooth, the mandibular first premolar is known to have a complex root canal system with curved and narrow canals, which increases the likelihood of atypical root canal anatomy, such as a calcified canal or an additional canal. | ||||
| MCTS next step | < | step | > The mandibular first premolar is known to have a unique root canal anatomy, with a high incidence of bifurcations, accessory canals, and potential for calcification. Additionally, the tooth is commonly associated with complications such as root resorption, periodontal disease, and pulp cavity. |
Table 22. Qualitative comparison of the next reasoning step produced by chain-of-thought (CoT) decoding and MCTS from the same prefix.
support both options A and C but ultimately selects A without sufficiently considering the role of the submucosa. MCTS, in contrast, explicitly reasons about how the options differ and arrives at a better-supported conclusion. A similar pattern appears in Example 3: CoT gives a broad explanation that the anatomical structure is complex and therefore prone to abnormalities, whereas MCTS supplements this observation with more specific disease possibilities.
Other Examples
Table 23 shows the exact backbone (Llama-3.1-8B-Instruct) answering the same two questions in Table 18 under single pass Chain-of-Thought setup. Notably, the circular reasoning pattern is also observed in Chain-of-Thought in Example 2. Example 1 shows borderline duplicated reasoning as well, though on the surface the model is ruling out options.
Acknowledgments
The authors acknowledge the AI Makerspace of the College of Engineering (RRID:SCR 028058), provided by the Partnership for an Advanced Computing Environment (PACE) at the Georgia Institute of Technology, Atlanta, Georgia, USA (RRID:SCR 027619), for computational resources used in this work. We also gratefully acknowledge funding and fellowships that contributed to this work, including a Wallace H. Coulter Distinguished Faculty Fellowship, a Petit Institute Faculty Fellowship, and research funding from Amazon and Microsoft Research awarded to Professor May D. Wang.
AI assistants supported language polishing and debugging; authors designed methods, ran experiments, verified results, and reviewed all final claims. In compliance with the institutional rule, the Qwen model used in the study was run outside of PACE.
References
- [1]Asma Ben Abacha and Dina Demner-Fushman. 2019. A question-entailment approach to question answering. BMC Bioinform., 20(1):511:1–511:23.DOI
- [2]Maciej Besta, Nils Blach, Ales Kubicek, Robert Gerstenberger, Michal Podstawski, Lukas Gianinazzi, Joanna Gajda, Tomasz Lehmann, Hubert Niewiadomski, Piotr Nyczyk, and Torsten Hoefler. 2024. Graph of thoughts: Solving elaborate problems with large language models. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pages 17682–17690.DOI
- [3]Bradley Brown, Jordan Juravsky, Ryan Ehrlich, Ronald Clark, Quoc V Le, Christopher Ré, and Azalia Mirhoseini. 2024. Large language monkeys: Scaling inference compute with repeated sampling. arXiv preprint arXiv:2407.21787.arxiv.org/abs/2407.21787
- [4]Cameron B Browne, Edward Powley, Daniel Whitehouse, Simon M Lucas, Peter I Cowling, Philipp Rohlfshagen, Stephen Tavener, Diego Perez, Spyridon Samothrakis, and Simon Colton. 2012. A survey of monte carlo tree search methods. IEEE Transactions on Computational Intelligence and AI in games, 4(1):1–43.DOI
- [5]Xidong Feng, Ziyu Wan, Muning Wen, Stephen Marcus McAleer, Ying Wen, Weinan Zhang, and Jun Wang. 2023. Alphazero-like tree-search can guide large language model decoding and training. arXiv preprint arXiv:2309.17179.arxiv.org/abs/2309.17179
- [6]Xinyu Guan, Li Lyna Zhang, Yifei Liu, Ning Shang, Youran Sun, Yi Zhu, Fan Yang, and Mao Yang. 2025. rstar-math: Small llms can master math reasoning with self-evolved deep thinking. arXiv preprint arXiv:2501.04519.arxiv.org/abs/2501.04519
- [7]Shibo Hao, Yi Gu, Haodi Ma, Joshua Hong, Zhen Wang, Daisy Wang, and Zhiting Hu. 2023. Reasoning with language model is planning with world model. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 8154–8173.arxiv.org/abs/2305.14992
- [8]Mingqian He, Yongliang Shen, Wenqi Zhang, Zeqi Tan, and Weiming Lu. 2024. Advancing process verification for large language models via tree-based preference learning. arXiv preprint arXiv:2407.00390.arxiv.org/abs/2407.00390
- [9]Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language understanding. Proceedings of the International Conference on Learning Representations (ICLR).
- [10]Shuyang Jiang, Yusheng Liao, Zhe Chen, Ya Zhang, Yanfeng Wang, and Yu Wang. 2025. Towards medical slow thinking with self-evolved soft dual-sided process supervision. arXiv preprint arXiv:2501.12051.
- [11]Di Jin, Eileen Pan, Nassim Oufattole, Wei-Hung Weng, Hanyi Fang, and Peter Szolovits. 2021. What disease does this patient have? a large-scale open domain question answering dataset from medical exams. Applied Sciences, 11(14):6421.arxiv.org/abs/2009.13081
- [12]Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. 2019. Pubmedqa: A dataset for biomedical research question answering. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pages 2567–2577.arxiv.org/abs/1909.06146
- [13]David Kartchner, Jennifer Deng, Shubham Lohiya, Tejasri Kopparthi, Prasanth Bathala, Daniel Domingo-Fernández, and Cassie Mitchell. 2023. A comprehensive evaluation of biomedical entity linking models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 14462–14478.DOI
- [14]Anastasia Krithara, Anastasios Nentidis, Konstantinos Bougiatiotis, and Georgios Paliouras. 2023. Bioasq: A manually curated corpus for biomedical question answering. Scientific Data, 10(1):170.
- [15]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2023. Let’s verify step by step. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2305.20050
- [16]Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. 2021. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332.arxiv.org/abs/2112.09332
- [17]Micky C Nnamdi, Benoit L Marteau, Yishan Zhong, J Ben Tamo, and May D Wang. 2026. Tree-of-evidence: Efficient "system 2" search for faithful multimodal grounding. arXiv preprint arXiv:2604.07692.arxiv.org/abs/2604.07692
- [18]Ankit Pal, Logesh Kumar Umapathi, and Malaikan-nan Sankarasubbu. 2022. Medmcqa: A large-scale multi-subject multi-choice dataset for medical domain question answering. In Conference on health, inference, and learning, pages 248–260. PMLR.arxiv.org/abs/2203.14371
- [19]Sungjin Park, Xiao Liu, Yeyun Gong, and Edward Choi. 2025. Ensembling large language models with process reward-guided tree search for better complex reasoning. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 10256–10277.arxiv.org/abs/2412.15797
- [20]Qi Peng, Jialin Cui, Jiayuan Xie, Yi Cai, and Qing Li. 2025. Tree-of-reasoning: Towards complex medical diagnosis via multi-agent reasoning with evidence tree. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 1744–1753.
- [21]Wenqi Shi, Ran Xu, Yuchen Zhuang, Yue Yu, Haotian Sun, Hang Wu, Carl Yang, and May Dongmei Wang. 2024. Medadapter: Efficient test-time adaptation of large language models towards medical reasoning. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 22294–22314.arxiv.org/abs/2405.03000
- [22]Peiyi Wang, Lei Li, Zhihong Shao, Runxin Xu, Damai Dai, Yifei Li, Deli Chen, Yu Wu, and Zhifang Sui. 2024. Math-shepherd: Verify and reinforce llms step-by-step without human annotations. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9426–9439.
- [23]Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171.arxiv.org/abs/2203.11171
- [24]Benjamin Warner, Antoine Chaffin, Benjamin Clavié, Orion Weller, Oskar Hallström, Said Taghadouini, Alexis Gallagher, Raja Biswas, Faisal Ladhak, Tom Aarsen, Griffin Thomas Adams, Jeremy Howard, and Iacopo Poli. 2025. Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2526–2547.arxiv.org/abs/2412.13663
- [25]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824–24837.arxiv.org/abs/2201.11903
- [26]Ran Xu, Yuchen Zhuang, Yishan Zhong, Yue Yu, Zifeng Wang, Xiangyu Tang, Hang Wu, May Dongmei Wang, Peifeng Ruan, Donghan Yang, Tao Wang, Guanghua Xiao, Xin Liu, Carl Yang, Yang Xie, and Wenqi Shi. 2026. Medagentgym: A scalable agentic training environment for code-centric reasoning in biomedical data science. In The Fourteenth International Conference on Learning Representations.arxiv.org/abs/2506.04405
- [27]Zongxian Yang, Jiayu Qian, Zhi-An Huang, and Kay Chen Tan. 2025. Qm-tot: A medical tree of thoughts reasoning framework for quantized model. arXiv preprint arXiv:2504.12334.arxiv.org/abs/2504.12334
- [28]Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. 2023. Tree of thoughts: Deliberate problem solving with large language models. Advances in neural information processing systems, 36:11809–11822.arxiv.org/abs/2305.10601
- [29]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R Narasimhan, and Yuan Cao. 2022. React: Synergizing reasoning and acting in language models. In The eleventh international conference on learning representations.arxiv.org/abs/2210.03629
- [30]Jaehoon Yun, Jiwoong Sohn, Jungwoo Park, Hyunjae Kim, Xiangru Tang, Daniel Shao, Yong Hoe Koo, Ko MinHyeok, Qingyu Chen, Mark Gerstein, Michael Moor, and Jaewoo Kang. 2025. Med-prm: Medical reasoning models with stepwise, guideline-verified process rewards. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 16554–16571.arxiv.org/abs/2506.11474
- [31]Dan Zhang, Sining Zhoubian, Ziniu Hu, Yisong Yue, Yuxiao Dong, and Jie Tang. 2024. Rest-mcts*: Llm self-training via process reward guided tree search. Advances in Neural Information Processing Systems, 37:64735–64772.arxiv.org/abs/2406.03816
- [32]Zhenru Zhang, Chujie Zheng, Yangzhen Wu, Beichen Zhang, Runji Lin, Bowen Yu, Dayihen Liu, Jingren Zhou, and Junyang Lin. 2025. The lessons of developing process reward models in mathematical reasoning. arXiv preprint arXiv:2501.07301.arxiv.org/abs/2501.07301
- [33]Yuxin Zuo, Shang Qu, Yifei Li, Zhangren Chen, Xuekai Zhu, Ermo Hua, Kaiyan Zhang, Ning Ding, and Bowen Zhou. 2025. Medxpertqa: Benchmarking expert-level medical reasoning and understanding. arXiv preprint arXiv:2501.18362.arxiv.org/abs/2501.18362
AI tools statement
This work lists 1 AI tool.
AI assistants · AI tool
- Roles
- SoftwareWriting — review & editing
- Verification
- self-declared at submission
Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.






