MedCoast: Semantic Abstraction of Reasoning Trajectories for Test-Time Biomedical Question Answering
Organizations: Georgia Institute of Technology · University of Texas Southwestern Medical Center · Washington University in St. Louis
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.
Figures & tables
| Backbone | Reward | Search | In-distribution | Out-of-distribution | ||||
|---|---|---|---|---|---|---|---|---|
| MCQ | Open-ended | MCQ | Open-ended | |||||
| Acc | BERTSc. | RougeL | Acc | BERTSc. | 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 |
| 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 | ||
| MedS3 | 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 | |
| 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 | ||
| Inf. Method | Cluster | In-distribution | Out-of-distribution | ||
|---|---|---|---|---|---|
| MCQ | BioASQ | MCQ | 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 | |
| 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% |
Appendix figures & tables28 assets
Supplementary material from the paper’s appendix.
Appendix
| Data Split | Dataset | Type | # QA Pairs |
|---|---|---|---|
| Train | MedQA | MCQ | 10178 |
| PubMedQA | MCQ | 800 | |
| MedMCQA | MCQ | 91411 | |
| BioASQ | Open-ended | 167 | |
| Validation | MedQA | MCQ | 1272 |
| PubMedQA | MCQ | 100 |
| Backbone LLMs | Inf. Method | In-distribution | Out-of-distribution | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MedQA | MedMCQA | PubMedQA | BioASQ | MedXpertQA | MMLU-Med | MedQuAD | ||||
| Acc | Acc | Acc | BERTScore | RougeL | Acc | Acc | BERTScore | RougeL | ||
| Qwen3-8B | Best-of-N | 58.5 | 58.3 | 35.3 | 85.5 | 16.2 | 12.4 | 73.0 | 82.7 | 12.3 |
| Best-of-N (uncluster) | 58.0 | 55.0 | 30.5 | 85.5 | 15.8 | 12.7 | 74.1 | 79.6 | 12.5 | |
| MCTS | 56.2 | 58.6 | 52.7 | 88.9 | 26.7 | 11.1 | 74.7 | 84.2 | 7.4 | |
| MCTS (uncluster) | 54.5 | 58.0 | 54.0 | 88.0 | 26.6 | 13.1 | 73.5 | 84.5 | 6.8 | |
| 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 |
| Metric | |||
|---|---|---|---|
| Tree size | |||
| Branch factor | |||
| Num. leaves | |||
| Avg. leaf depth | |||
| Depth |
| Avg_acc | Acc ( 0.1) | Acc ( 0.2) | Acc ( 0.3) | Acc ( 0.4) | Acc ( 0.5) | Acc ( 0.6) | ||
|---|---|---|---|---|---|---|---|---|
| 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 |
| Model | 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 |
| 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 |
| Backbone LLMs | Reward Model | Search | MedQA | MedMCQA | PubMedQA | BioASQ | |
|---|---|---|---|---|---|---|---|
| Acc | Acc | Acc | BERTScore | RougeL | |||
| Qwen3-8B | – | Self-Cons. | 53.4 | 56.3 | 46.0 | 86.5 | 12.8 |
| Best-of-N | 61.2 | 60.1 | 36.0 | 83.6 | 17.2 | ||
| MedS3 | MCTS | 55.3 | 57.7 | 52.3 | 88.2 | 27.8 | |
| Best-of-N | 57.7 | 57.4 | 31.3 | 83.7 | 16.4 | ||
| Med-PRM | MCTS | 54.8 | 55.9 | 51.0 | 89.1 | 27.7 | |
| Backbone LLMs | Reward Model | Search | MedXpertQA | MMLU-Med | MedQuAD | |
|---|---|---|---|---|---|---|
| Acc | Acc | BERTScore | RougeL | |||
| Qwen3-8B | – | Self-Cons. | 13.3 | 73.1 | 87.0 | 12.5 |
| Best-of-N | 12.1 | 86.4 | 70.2 | 11.1 | ||
| MedS3 | MCTS | 11.1 | 74.9 | 84.3 | 6.6 | |
| Best-of-N | 10.1 | 83.7 | 80.6 | 12.7 | ||
| Med-PRM | MCTS | 11.3 | 73.7 | 84.4 | 6.3 | |
| 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. | |
| 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. | |
| 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 | |
| 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 |
| 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 R̈esists movement of gutta-percha in apical area,ẅhich 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?" |
| 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 |
| 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?" |
| 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 |
| 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 (99.0 ). 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 | |
| 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?" |
Biomedical QA
Biomedical question answering develops systems that answer health and life-science questions using clinical knowledge, research literature, and structured data.
See all 58 papers