TRACE:面向肿瘤学大语言模型的可部署树-关系结构增强方法
摘要
TRACE 提出了一种可部署的树-关系结构增强框架,用于肿瘤学大语言模型:将昂贵的离线结构学习与轻量在线推理分离,利用由语言模型损失推导出的证据来精炼医学概念树结构,并在推理时将其作为紧凑的提示证据进行检索,在十项肿瘤学分类任务以及 MedQuAD CancerGov 问答任务上超越了标准 RAG 与 GraphRAG。
查看缓存全文
缓存时间: 2026/09/30 09:48
# Deployable Tree-Relational Structure Enhancement for Oncology LLMs
Source: [https://arxiv.org/html/2609.35810](https://arxiv.org/html/2609.35810)
###### Abstract
Large language models are increasingly used in oncology applications, but their predictions are often weakly grounded in explicit medical structure\. We present TRACE, a deployable tree\-relational enhancement framework for oncology LLMs\. TRACE separates expensive offline structure learning from lightweight online inference: oncology concepts and relations are organized into an updatable tree\-relational structure, refined using LM\-loss\-derived evidence, and retrieved at inference time as compact prompt evidence\. This design supports task\-adaptive evidence selection without requiring supervised labels in the zero\-shot setting\. Across ten oncology classification tasks and one MedQuAD CancerGov QA benchmark, TRACE improves both label\-free evaluation and supervised fine\-tuning\. Additional analyses show that TRACE improves over vanilla RAG and generic GraphRAG, remains useful under leakage\-controlled METABRIC inputs, and produces interpretable evidence paths aligned with clinical reasoning\. These results suggest that explicit, updatable medical structure is a practical path toward more accurate and auditable oncology LLM deployment\.
## 1Introduction
Large language models \(LLMs\) are increasingly used as interfaces for medical knowledge and clinical decision support\. Recent medical LLMs and evaluations show rapid progress in medical question answering and consultation\-style reasoning, but also reveal persistent gaps between benchmark performance and robust real\-world clinical reasoning[Singhal et al\. \(2023\)](https://arxiv.org/html/2609.35810#bib.bib1);[Zhang et al\. \(2023\)](https://arxiv.org/html/2609.35810#bib.bib2);[Liu et al\. \(2024\)](https://arxiv.org/html/2609.35810#bib.bib3);[Wang et al\. \(2025\)](https://arxiv.org/html/2609.35810#bib.bib12);[Baichuan\-M2 Team et al\. \(2025\)](https://arxiv.org/html/2609.35810#bib.bib13);[Baichuan\-M3 Team et al\. \(2026\)](https://arxiv.org/html/2609.35810#bib.bib14);[Ren et al\. \(2026\)](https://arxiv.org/html/2609.35810#bib.bib15)\. These observations suggest that medical LLMs should not only store domain knowledge parametrically, but also identify and prioritize the clinical evidence needed for a specific decision\.
This requirement is particularly important in oncology\. Cancer reasoning often depends on structured interactions among disease categories, histology, molecular markers, staging criteria, treatment, recurrence, and prognosis\. Curated oncology resources such as OncoKB and CIViC organize genomic alterations with diagnostic, prognostic, and therapeutic implications[Chakravarty et al\. \(2017\)](https://arxiv.org/html/2609.35810#bib.bib4);[Griffith et al\. \(2017\)](https://arxiv.org/html/2609.35810#bib.bib5), while biomedical knowledge graphs such as PrimeKG integrate heterogeneous biomedical entities and relations for precision\-medicine analysis[Chandak et al\. \(2023\)](https://arxiv.org/html/2609.35810#bib.bib6)\. These resources highlight the value of explicit medical structure for oncology reasoning\.
Retrieval\-augmented generation \(RAG\) grounds LLMs in external evidence, and recent graph\-based RAG methods retrieve triples, paths, or subgraphs for multi\-hop reasoning and hallucination mitigation[Xiong et al\. \(2024\)](https://arxiv.org/html/2609.35810#bib.bib7);[He et al\. \(2024\)](https://arxiv.org/html/2609.35810#bib.bib8);[Gutiérrez et al\. \(2024\)](https://arxiv.org/html/2609.35810#bib.bib9);[Li et al\. \(2025\)](https://arxiv.org/html/2609.35810#bib.bib10);[Wu et al\. \(2025\)](https://arxiv.org/html/2609.35810#bib.bib11)\. However, most existing systems treat the external structure as a fixed retrieval index\. They retrieve passages or graph fragments at inference time, but do not explicitly refine the medical structure using model\-side evidence\. Recent clinical knowledge\-graph construction studies further suggest that medical graphs should be continuously updated as evidence changes[Das et al\. \(2026\)](https://arxiv.org/html/2609.35810#bib.bib16);[Xu et al\. \(2026\)](https://arxiv.org/html/2609.35810#bib.bib17)\.
We propose TRACE, a Tree\-Relational Adaptive Concept Engine for Oncology LLMs\. TRACE is designed as a deployable structure\-enhancement framework rather than a new monolithic model\. The expensive stage, including concept\-query retrieval, structure\-oriented adaptation, and LM\-loss\-based structure refinement, is performed offline\. At inference time, TRACE only retrieves compact tree paths and graph relations and injects them into the prompt, making the online path lightweight and compatible with existing LLM serving stacks\.
TRACE represents oncology knowledge as a hierarchical concept tree and a relation graph over the same concept set\. The tree captures coarse\-to\-fine medical organization, while the graph captures cross\-branch clinical relations\. The structure is refined using language\-model evidence and then reused for label\-free zero\-shot inference, supervised fine\-tuning, and deployment\-oriented evidence\-budget control\.
Our contributions are:
- •We introduce TRACE as a deployable tree\-relational enhancement framework for oncology LLMs, separating offline structure learning from lightweight online retrieval and prompt augmentation\.
- •We refine tree nodes and graph edges with LM\-loss\-derived Bayesian updates, and show through initial\-vs\-refined structure ablation that this refinement improves knowledge\-intensive oncology QA\.
- •We evaluate TRACE against strong LLMs, vanilla RAG, and generic GraphRAG under the same oncology corpus, showing that the learned tree\-relational structure provides gains beyond adding retrieved text\.
- •We evaluate deployment\-relevant properties of TRACE, including leakage\-controlled robustness, inference overhead, and offline structure\-update cost, showing that TRACE can be integrated as a lightweight online enhancement with offline maintenance\.
## 2Method
TRACE consists of offline structure learning and online task integration\. Unlike retrieval\-only GraphRAG, which reads a fixed external graph at inference time, TRACE treats the structure as an offline learnable artifact\. Structure\-oriented adaptation produces LM\-loss evidence, which is written back as node and edge support through a Beta\-Bernoulli update; the refined structure then governs subsequent retrieval\. Online inference only retrieves relevant tree paths and graph relations for prompt augmentation, without updating the structure on the serving path\. This separation allows the structure to be versioned and maintained independently of the serving backbone\. Figure[1](https://arxiv.org/html/2609.35810#S2.F1)summarizes the system\.
Figure 1:Overview of TRACE\. Offline, TRACE retrieves concept\-query corpus samples, performs structure\-oriented LoRA adaptation, estimates LM\-loss evidence, and updates tree nodes and graph edges with Bayesian rules\. Online, TRACE retrieves compact tree\-relational evidence and injects it into downstream prompts\. Supervised settings can additionally learn task\-branch weights\.### 2\.1Tree\-Relational Oncology Structure
Let the oncology concept tree be𝒯=\(𝒱T,ℰT\)\\mathcal\{T\}=\(\\mathcal\{V\}\_\{T\},\\mathcal\{E\}\_\{T\}\), where nodes are oncology concepts and edges are parent\-child relations\. Each nodevvis associated with a textual representationxvx\_\{v\}, including its concept name, aliases, English translation, node type, and full tree path\. Inspired by the thematic grouping of the minimal Common Oncology Data Elements \(mCODE\) standard\([HL7 International Clinical Interoperability Council, 2025](https://arxiv.org/html/2609.35810#bib.bib21)\), the tree covers major oncology branches such as cancer type, symptoms, pathology, staging, biomarkers, treatment, and outcome\.
On top of the tree, TRACE defines a relation graph𝒢=\(𝒱G,ℰG\)\\mathcal\{G\}=\(\\mathcal\{V\}\_\{G\},\\mathcal\{E\}\_\{G\}\), where𝒱G\\mathcal\{V\}\_\{G\}shares the same concept inventory\. Each edge is written ase=\(u,r,v,we\)e=\(u,r,v,w\_\{e\}\), whereuuandvvare concepts,rris a clinical relation type, andwe∈\[0,1\]w\_\{e\}\\in\[0,1\]is the edge weight\. The initial structure is built from oncology corpora and label\-free task\-facing input text; answer\-like fields and target labels are removed whenever task data are used for structure construction\.
To obtain model\-side evidence, TRACE uses each node and edge as a concept query to retrieve relevant oncology corpus passages\. The retrieved passages are converted into structure\-oriented training samples and used to train a lightweight low\-rank adaptation \(LoRA\) adapter, which we refer to as Concept Query LoRA\. After this adaptation, canonical node and edge statements are scored by causal language modeling loss\. The loss is converted into a relative soft evidence score:
qz=σ\(ℓmed−ℓzτ\),q\_\{z\}=\\sigma\\left\(\\frac\{\\ell\_\{\\mathrm\{med\}\}\-\\ell\_\{z\}\}\{\\tau\}\\right\),wherezzdenotes a node or edge,ℓz\\ell\_\{z\}is its LM loss,ℓmed\\ell\_\{\\mathrm\{med\}\}is the median loss over elements of the same type,σ\(⋅\)\\sigma\(\\cdot\)is the sigmoid function, andτ\\tauis a temperature\. A higherqzq\_\{z\}means the structural statement is better supported by the adapted model relative to other statements of the same type\.
### 2\.2Bayesian Structure Refinement
TRACE keeps the tree topology fixed and estimates a posterior support score for each node\. For nodevv, evidence is aggregated from the node and its descendants:
q~v=max\(\{qv\}∪\{qu:u∈Desc\(v\)\}\),\\tilde\{q\}\_\{v\}=\\max\\bigl\(\\\{q\_\{v\}\\\}\\cup\\\{q\_\{u\}:u\\in\\mathrm\{Desc\}\(v\)\\\}\\bigr\),whereDesc\(v\)\\mathrm\{Desc\}\(v\)denotes the set of descendants of nodevv\. This allows a strongly supported fine\-grained concept to also support its ancestors, which define the tree path needed to interpret it\.
To update node support using a Beta\-Bernoulli Bayesian model, we model node usefulness as a latent Bernoulli variable with a Beta prior distributionBeta\(αv,βv\)\\mathrm\{Beta\}\(\\alpha\_\{v\},\\beta\_\{v\}\)\. Given prior supportpTp\_\{T\}, prior strengthcTc\_\{T\}, and smoothing coefficientρ\\rho, the prior pseudo\-counts are
αv=1\+cTpT,βv=1\+cT\(1−pT\)\.\\alpha\_\{v\}=1\+c\_\{T\}p\_\{T\},\\qquad\\beta\_\{v\}=1\+c\_\{T\}\(1\-p\_\{T\}\)\.The Beta distribution is conjugate to the Bernoulli likelihood, so posterior inference can be performed by updating the two pseudo\-counts of supporting and opposing evidence\. The LM\-derived scoreq~v∈\[0,1\]\\tilde\{q\}\_\{v\}\\in\[0,1\]is treated as fractional positive evidence and1−q~v1\-\\tilde\{q\}\_\{v\}as fractional negative evidence:
αv′=ραv\+q~v,βv′=ρβv\+\(1−q~v\)\.\\alpha^\{\\prime\}\_\{v\}=\\rho\\alpha\_\{v\}\+\\tilde\{q\}\_\{v\},\\qquad\\beta^\{\\prime\}\_\{v\}=\\rho\\beta\_\{v\}\+\(1\-\\tilde\{q\}\_\{v\}\)\.The posterior node support is the posterior mean:
sv=αv′αv′\+βv′\.s\_\{v\}=\\frac\{\\alpha^\{\\prime\}\_\{v\}\}\{\\alpha^\{\\prime\}\_\{v\}\+\\beta^\{\\prime\}\_\{v\}\}\.Nodes with high support are prioritized during retrieval, while low\-support nodes remain as background ontology\.
Graph edges are updated analogously, but unlike tree nodes, each graph edge already has an initial confidence weight\. For edgee=\(u,r,v,we\)e=\(u,r,v,w\_\{e\}\), whereuuandvvare concepts,rris the relation type, andwew\_\{e\}is the initial edge weight, TRACE initializes a Beta prior fromwew\_\{e\}, combines it with LM\-derived edge evidenceqeq\_\{e\}, and obtains the posterior edge support:
se=αe′αe′\+βe′\.s\_\{e\}=\\frac\{\\alpha^\{\\prime\}\_\{e\}\}\{\\alpha^\{\\prime\}\_\{e\}\+\\beta^\{\\prime\}\_\{e\}\}\.We use this posterior support as the updated edge weight, i\.e\.,we′=sew^\{\\prime\}\_\{e\}=s\_\{e\}, for downstream retrieval\. Edges with high posterior support are confirmed, uncertain edges are retained as candidates, and weak edges are excluded from downstream retrieval\. Detailed update equations and thresholds are provided in Appendix[A](https://arxiv.org/html/2609.35810#A1)\.
We use Beta\-Bernoulli refinement as a bounded and interpretable smoothing mechanism, rather than assuming that it is intrinsically more accurate than deterministic weighting\. It represents initial structural confidence as prior pseudo\-counts and LM\-derived evidence as fractional observations, yielding a closed\-form posterior support in\[0,1\]\[0,1\]\. Appendix[J](https://arxiv.org/html/2609.35810#A10)compares this update with unrefined initial weights and simple linear weighting\.
### 2\.3Tree\-Relational RAG and Task Integration
Tree\-Relational RAG is the online TRACE component\. Given a samplexix\_\{i\}, it retrieves concepts, tree paths, and graph edges using only input\-side information such as the question, options, patient description, or serialized clinical fields\. Retrieval combines sample matching with updated structural confidence:
Score\(xi,e\)=Match\(xi,e\)⋅we′,\\mathrm\{Score\}\(x\_\{i\},e\)=\\mathrm\{Match\}\(x\_\{i\},e\)\\cdot w^\{\\prime\}\_\{e\},whereMatch\(xi,e\)\\mathrm\{Match\}\(x\_\{i\},e\)captures lexical overlap, keyword hits, and endpoint matches\. The selected evidence is appended as auxiliary context\. Classification uses candidate log\-likelihood scoring, while generation uses standard decoding\.
In supervised fine\-tuning, TRACE can also learn task\-branch weights:
πt=softmax\(At\),\\pi\_\{t\}=\\mathrm\{softmax\}\(A\_\{t\}\),\\qquadScoret\(xi,e\)=Score\(xi,e\)⋅BranchRelt\(e\)\.\\mathrm\{Score\}\_\{t\}\(x\_\{i\},e\)=\\mathrm\{Score\}\(x\_\{i\},e\)\\cdot\\mathrm\{BranchRel\}\_\{t\}\(e\)\.The branch logits are warm\-started from label\-free evidence and optimized with LoRA parameters\. Zero\-shot TRACE does not use learned task\-branch weights\.
## 3Experiments
#### Datasets and setup\.
We evaluate TRACE on ten oncology classification tasks and one QA generation benchmark: three Chinese oncology examination QA datasets, two private de\-identified clinical\-record tasks, five METABRIC\-derived breast cancer tasks from cBioPortalbrca\_metabric\([Curtis et al\., 2012](https://arxiv.org/html/2609.35810#bib.bib18);[Pereira et al\., 2016](https://arxiv.org/html/2609.35810#bib.bib19)\), and MedQuAD CancerGov QA\([Ben Abacha and Demner\-Fushman, 2019](https://arxiv.org/html/2609.35810#bib.bib20)\)\. The oncology structure is built from textbooks, clinical guidelines, expert consensus documents, and biomedical literature\.
Unless otherwise specified, TRACE uses Qwen3\.5\-27B as the backbone, with tree\-relational evidence injected through task\-adaptive retrieval and prompt augmentation\. Beyond accuracy, we evaluate robustness to noisy EMR\-style inputs, inference latency, and structural evidence traces, since deployment requires stable behavior under imperfect clinical text and bounded serving cost\. Dataset statistics, preprocessing, split construction, leakage control, metrics, and hyperparameters are provided in Appendices[B](https://arxiv.org/html/2609.35810#A2),[E](https://arxiv.org/html/2609.35810#A5), and[A](https://arxiv.org/html/2609.35810#A1)\.
### 3\.1Zero\-Shot Oncology Task Evaluation
TaskBaichuan\-M2\-32BBaichuan\-M3\-235BLlama\-4\-ScoutHuatuoGPT\-3\-32BQwen3\-32BDeepSeek\-V4\-FlashQwen3\.5\-27BTRACEOncology examination QAProfessional Practice0\.7850\.8400\.7740\.7960\.8070\.8400\.8180\.906Oncology Attending0\.7270\.7870\.6280\.7400\.7490\.8150\.7810\.807Related Knowledge0\.7920\.8330\.6570\.7900\.7940\.8530\.8360\.845Private clinical recordsCommon Cancer Dx\.0\.7010\.7330\.6490\.7100\.7180\.7250\.7180\.725Breast Stage Pred\.0\.4530\.5020\.2730\.4980\.5020\.5050\.4910\.519METABRIC public benchmarkStage0\.6040\.6020\.5690\.5320\.5560\.6370\.7290\.718Histology0\.7620\.7620\.7610\.7630\.7620\.7620\.7620\.762ER Status0\.7230\.7530\.7390\.7390\.7680\.7140\.8040\.823PR Status0\.7440\.7430\.5340\.7410\.7330\.6960\.7450\.744Relapse Status0\.6240\.6240\.5990\.5640\.5480\.6310\.6010\.627Group\-level macro averagesExam QA Avg\.0\.7680\.8200\.6860\.7750\.7830\.8360\.8110\.853Private Clinical Records Avg\.0\.5820\.6170\.4610\.6040\.6100\.6150\.6040\.622METABRIC Avg\.0\.6920\.6970\.6400\.6680\.6730\.6880\.7280\.735Task\-macro Avg\.0\.6930\.7180\.6180\.6870\.6940\.7180\.7280\.748Table 1:Label\-free zero\-shot accuracy on ten oncology classification tasks\. TRACE uses Qwen3\.5\-27B as the backbone and injects retrieved tree\-relational evidence without supervised training on target\-task labels\. All baselines are evaluated under the same label\-free setting\. Each dataset block reports per\-task accuracy and a group\-level macro average, and the last row reports the macro average over all ten tasks\. Bold and underline denote the best and second\-best results in each row\.We use “zero\-shot” to denote the absence of supervised training on target\-task labels\. This includes plain LLM inference as well as label\-free structure\-adapted variants: structure learning uses oncology corpora and input\-side text only, while retrieved evidence is constructed without task answers\.
Table[1](https://arxiv.org/html/2609.35810#S3.T1)reports label\-free zero\-shot accuracy on ten oncology tasks\. We compare TRACE, instantiated with Qwen3\.5\-27B as its backbone, with representative open\-weight and API\-based LLMs\. For closed\-set tasks, prediction is made by candidate log\-likelihood scoring\.
Table[1](https://arxiv.org/html/2609.35810#S3.T1)shows that TRACE achieves the best task\-macro average across all ten tasks, improving over Qwen3\.5\-27B from 0\.728 to 0\.748\. Gains are observed across oncology examination QA, private clinical records, and METABRIC, suggesting that explicit structural evidence benefits both knowledge\-intensive QA and structured clinical\-record classification\.
The results also show that TRACE is not merely benefiting from a stronger base model\. DeepSeek\-V4\-Flash remains the strongest individual baseline on several examination tasks, while Qwen3\.5\-27B is strong on METABRIC stage and receptor\-status prediction\. TRACE nevertheless obtains the best overall average by making relevant concepts and relations explicit at inference time\. Group\-level task\-macro F1 results and bootstrap confidence intervals are reported in Appendix[F](https://arxiv.org/html/2609.35810#A6)and Appendix[G](https://arxiv.org/html/2609.35810#A7)\. TRACE has the highest point estimate across all dataset groups and the 10\-task macro average, with the clearest separation on examination QA and the overall macro score\. Per\-task gains over Qwen3\.5\-27B are reported in Appendix[H](https://arxiv.org/html/2609.35810#A8)\.
### 3\.2Fine\-Tuning on Public Oncology Benchmarks
We next evaluate whether TRACE remains effective when task supervision is available\. We use two public benchmarks: METABRIC\-derived breast cancer classification and MedQuAD CancerGov question answering\. For METABRIC, the five task training splits are concatenated and shuffled, and each model is fine\-tuned on the mixed training set before task\-wise evaluation\. For CancerGov QA, models are fine\-tuned on the public document\-level split and evaluated by greedy generation\.
Model / MethodOverallAcc\.OverallF1Task\-macroAcc\.Task\-macroF1Qwen3\-32B LoRA0\.7550\.3890\.7580\.546HuatuoGPT\-3\-32B LoRA0\.7480\.3640\.7510\.526Baichuan\-M2\-32B LoRA0\.7440\.3590\.7440\.526Qwen3\.5\-27B LoRA0\.7570\.3610\.7600\.528Llama\-4\-Scout LoRA0\.7580\.3600\.7610\.528TRACE0\.7970\.4800\.7970\.579Table 2:Fine\-tuning results on the five METABRIC tasks\. Overall metrics are computed by pooling all test examples, while task\-macro metrics average the corresponding metric across the five tasks\. Bold denotes the best result in each column\.Table[2](https://arxiv.org/html/2609.35810#S3.T2)shows that TRACE improves METABRIC task\-macro accuracy from the strongest baseline value of 0\.761 to 0\.797, and task\-macro F1 from 0\.546 to 0\.579\. On CancerGov QA, TRACE also obtains the best ROUGE\-L and BERTScore; full results are reported in Appendix[C](https://arxiv.org/html/2609.35810#A3)\. These results indicate that task supervision further benefits from explicit tree\-relational evidence\.
### 3\.3Ablation Study
We summarize the main ablations in Table[3](https://arxiv.org/html/2609.35810#S3.T3)\. The first block decomposes TRACE into Concept Query LoRA and Tree\-Relational RAG\. Concept Query LoRA alone gives limited direct task gains because its primary role is to support structure learning, whereas Tree\-Relational RAG provides the main zero\-shot improvement by injecting retrieved structural evidence\. The second block compares TRACE with retrieval baselines built from the same oncology corpus\. TRACE outperforms both vanilla passage RAG and generic GraphRAG on the 10\-task macro average, showing that the gain is not simply due to adding external context\. The third block isolates LM\-loss Bayesian refinement by comparing TRACE with the initial unrefined structure\. Refinement mainly improves examination QA, suggesting that updated structural reliability is most useful for knowledge\-intensive reasoning tasks\.
MethodExamQAClinicalrecordsMETABRIC10\-taskAvg\.Qwen3\.5\-27B0\.8110\.6040\.7280\.728\+ Concept Query LoRA0\.8160\.6100\.7140\.723\+ Tree\-Relational RAG0\.8470\.6150\.7360\.745TRACE0\.8530\.6220\.7350\.748Vanilla RAG0\.8170\.6230\.7270\.733Generic GraphRAG0\.8280\.6240\.7250\.736Initial structure0\.8380\.6240\.7380\.745Refined structure0\.8530\.6220\.7350\.748Table 3:Main ablation summary\. All numbers are group\-level or 10\-task macro accuracy\. Bold denotes the best result within each comparison block\.We further ablate structural views in Appendix[I](https://arxiv.org/html/2609.35810#A9)\. Tree\-only, graph\-only, and tree\-plus\-graph variants all improve over the base model, with the combined structure achieving the best 10\-task macro accuracy\.
Because METABRIC is retrospective, non\-target fields may include downstream treatment or outcome variables\. We therefore construct a stricter METABRIC setting that removes treatment\- and outcome\-related fields, including endocrine therapy, chemotherapy, radiotherapy, surgery, recurrence, survival, follow\-up, and death\-related fields\. As shown in Appendix[L](https://arxiv.org/html/2609.35810#A12), TRACE remains best among Qwen3\.5\-27B, Vanilla RAG, and Generic GraphRAG, improving task\-macro accuracy to 0\.729 and task\-macro F1 to 0\.527\. This suggests that TRACE does not rely solely on reverse\-causal treatment or outcome shortcuts\.
### 3\.4Deployment\-Oriented Evaluation
TRACE separates offline structure maintenance from online serving\. For the 300\-concept structure, one complete refinement round takes approximately 97 minutes, or 3\.1–3\.3 H200 GPU\-hours; most of this cost comes from LoRA training rather than Bayesian write\-back\. The write\-back scales asO\(\|𝒱\|\+\|ℰ\|\)O\(\|\\mathcal\{V\}\|\+\|\\mathcal\{E\}\|\), and a linear cost projection estimates approximately 28 and 110 GPU\-hours for structures containing 5,000 and 20,000 elements, respectively, although these larger scales were not empirically profiled\. Online structural retrieval has a median latency of 2\.71 ms, while prompt augmentation increases end\-to\-end latency from 305\.0 ms to 404\.2 ms in direct HF/PEFT inference\. Detailed measurements and assumptions are reported in Appendices[A](https://arxiv.org/html/2609.35810#A1)and[D](https://arxiv.org/html/2609.35810#A4)\.
### 3\.5Structural Evidence Case Study
Appendix[M](https://arxiv.org/html/2609.35810#A13)provides two representative cases\. In a lung\-cancer diagnostic workup question, TRACE retrieves tree evidence covering symptoms, smoking history, thoracic cancer, and lung cancer, together with graph relations linking these clues to bronchoscopy\. In a METABRIC stage\-prediction example, where treatment and outcome fields are removed, TRACE retrieves staging\-related tree nodes and graph relations that connect tumor size and lymph\-node status to early\-stage breast cancer\. These cases illustrate the auditability of TRACE: tree paths expose the relevant clinical hierarchy, while graph edges identify the relations that support the final prediction\.
## 4Conclusion
We presented TRACE, a deployable tree\-relational enhancement framework for oncology LLMs\. TRACE learns and refines an explicit oncology structure offline, then performs lightweight online retrieval and prompt augmentation for downstream prediction\. Across zero\-shot, fine\-tuning, retrieval\-baseline, leakage\-controlled, and deployment\-oriented evaluations, TRACE improves accuracy while preserving interpretable structural evidence\. The results suggest that explicit, updatable medical structure can make oncology LLMs more accurate, auditable, and practical for constrained clinical deployment settings\.
## Limitations
TRACE does not assume that a complete medical ontology is available, since its initial structure is constructed from domain corpora\. However, the current refinement stage only recalibrates represented nodes and edges and does not itself recover elements absent from the candidate structure\. Structural coverage can nevertheless be extended offline by rerunning or incrementally updating candidate extraction as the corpus evolves, consistent with prior incremental concept\-graph learning from text[Lai and Yin \(2024\)](https://arxiv.org/html/2609.35810#bib.bib22); this expansion remains separate from the current confidence\-refinement stage\.
TRACE also uses prompt\-based evidence injection, whose effect varies across backbones\. Some models benefit consistently from retrieved structure, while others show negative transfer on certain tasks, suggesting that evidence formatting and calibration require further study\.
Our evaluation is limited to oncology tasks, and we do not claim cross\-specialty generalization\. Moreover, the retrieved evidence has not been systematically assessed by clinical experts for correctness, relevance, harmful omissions, or safety\. Our results therefore establish benchmark performance and evidence inspectability, rather than prospective clinical validity\.
## Ethical Considerations
Private clinical\-record tasks are constructed from de\-identified records, and task\-facing data used for structure construction or retrieval exclude labels, reference answers, outputs, and target fields to reduce answer leakage\. Because retrieved evidence and model predictions may still be incomplete, outdated, or incorrect, any real\-world use would require institutional approval, privacy and security review, prospective validation, workflow integration studies, and final review by qualified clinicians\. TRACE should be viewed as a decision\-support system rather than a substitute for clinical judgment\.
## References
- Baichuan\-M2 Teamet al\.\(2025\)Baichuan\-M2 Team, C\. Dou, C\. Liu, F\. Yang, F\. Li, J\. Jia, M\. Chen, Q\. Ju, S\. Wang, S\. Dang, T\. Li, X\. Zeng, Y\. Zhou, C\. Zhu, D\. Pan, F\. Deng, G\. Ai, G\. Dong, H\. Zhang, J\. Tai, J\. Hong, K\. Lu, L\. Sun, P\. Guo, Q\. Ma, R\. Xin, S\. Yang, S\. Zhang, Y\. Mo, Z\. Liang, Z\. Zhang, H\. Cui, Z\. Zhu, and X\. WangBaichuan\-m2: scaling medical capability with large verifier system\.External Links:2509\.02208,[Link](https://arxiv.org/abs/2509.02208)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p1.1)\.
- Baichuan\-M3 Teamet al\.\(2026\)Baichuan\-M3 Team, C\. Dou, F\. Yang, F\. Li, J\. Jia, Q\. Ju, S\. Wang, T\. Li, X\. Zeng, Y\. Zhou, H\. Zhang, J\. Tai, L\. Sun, P\. Guo, Y\. Mo, X\. Wang, H\. Cui, and Z\. ZhangBaichuan\-m3: modeling clinical inquiry for reliable medical decision\-making\.External Links:2602\.06570,[Link](https://arxiv.org/abs/2602.06570)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p1.1)\.
- Ben Abacha and Demner\-Fushman \(2019\)A\. Ben Abacha and D\. Demner\-FushmanA question\-entailment approach to question answering\.BMC Bioinformatics20\(1\),pp\. 511\.External Links:[Document](https://dx.doi.org/10.1186/s12859-019-3119-4)Cited by:[Appendix B](https://arxiv.org/html/2609.35810#A2.SS0.SSS0.Px4.p1.1),[§3](https://arxiv.org/html/2609.35810#S3.SS0.SSS0.Px1.p1.1)\.
- Chakravartyet al\.\(2017\)D\. Chakravarty, J\. Gao, S\. Phillips, R\. Kundra, H\. Zhang, J\. Wang, J\. E\. Rudolph, R\. Yaeger, T\. Soumerai, M\. H\. Nissan, M\. T\. Chang, S\. Chandarlapaty, T\. A\. Traina, P\. K\. Paik, A\. L\. Ho, F\. M\. Hantash, A\. Grupe, S\. S\. Baxi, M\. K\. Callahan, A\. Snyder, P\. Chi, D\. C\. Danila, M\. Gounder, J\. J\. Harding, M\. D\. Hellmann, G\. Iyer, Y\. Y\. Janjigian, T\. Kaley, D\. A\. Levine, M\. Lowery, A\. Omuro, M\. A\. Postow, D\. Rathkopf, A\. N\. Shoushtari, N\. Shukla, M\. H\. Voss, E\. Paraiso, A\. Zehir, M\. F\. Berger, B\. S\. Taylor, L\. B\. Saltz, G\. J\. Riely, M\. Ladanyi, D\. M\. Hyman, J\. Baselga, P\. Sabbatini, D\. B\. Solit, and N\. SchultzOncoKB: a precision oncology knowledge base\.JCO Precision Oncology\(1\),pp\. 1–16\.External Links:[Document](https://dx.doi.org/10.1200/PO.17.00011)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p2.1)\.
- Chandaket al\.\(2023\)P\. Chandak, K\. Huang, and M\. ZitnikBuilding a knowledge graph to enable precision medicine\.Scientific Data10\(1\)\.External Links:[Document](https://dx.doi.org/10.1038/s41597-023-01960-3)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p2.1)\.
- Curtiset al\.\(2012\)C\. Curtis, S\. P\. Shah, S\. Chin, G\. Turashvili, O\. M\. Rueda, M\. J\. Dunning, D\. Speed, A\. G\. Lynch, S\. Samarajiwa, Y\. Yuan, S\. Gräf, G\. Ha, G\. Haffari, A\. Bashashati, R\. Russell, S\. McKinney, METABRIC Group, A\. Langerød, A\. Green, E\. Provenzano, G\. Wishart, S\. Pinder, P\. Watson, F\. Markowetz, L\. Murphy, I\. Ellis, A\. Purushotham, A\. Børresen\-Dale, J\. D\. Brenton, S\. Tavaré, C\. Caldas, and S\. AparicioThe genomic and transcriptomic architecture of 2,000 breast tumours reveals novel subgroups\.Nature486\(7403\),pp\. 346–352\.External Links:[Document](https://dx.doi.org/10.1038/nature10983)Cited by:[Appendix B](https://arxiv.org/html/2609.35810#A2.SS0.SSS0.Px2.p1.1),[§3](https://arxiv.org/html/2609.35810#S3.SS0.SSS0.Px1.p1.1)\.
- Daset al\.\(2026\)U\. Das, K\. B\. Atmakuri, D\. Ho, C\. Lee, and Y\. LeeClinical knowledge graph construction and evaluation with multi\-llms via retrieval\-augmented generation\.External Links:2601\.01844,[Link](https://arxiv.org/abs/2601.01844)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p3.1)\.
- Griffithet al\.\(2017\)M\. Griffith, N\. C\. Spies, K\. Krysiak, J\. F\. McMichael, A\. C\. Coffman, A\. M\. Danos, B\. J\. Ainscough, C\. A\. Ramirez, D\. T\. Rieke, L\. Kujan, E\. K\. Barnell, A\. H\. Wagner, Z\. L\. Skidmore, A\. Wollam, C\. J\. Liu, M\. R\. Jones, R\. L\. Bilski, R\. Lesurf, Y\. Feng, N\. M\. Shah, M\. Bonakdar, L\. Trani, M\. Matlock, A\. Ramu, K\. M\. Campbell, G\. C\. Spies, A\. P\. Graubert, K\. Gangavarapu, J\. M\. Eldred, D\. E\. Larson, J\. R\. Walker, B\. M\. Good, C\. Wu, A\. I\. Su, R\. Dienstmann, A\. A\. Margolin, D\. Tamborero, N\. Lopez\-Bigas, S\. J\. M\. Jones, R\. Bose, D\. H\. Spencer, L\. D\. Wartman, R\. K\. Wilson, E\. R\. Mardis, and O\. L\. GriffithCIViC is a community knowledgebase for expert crowdsourcing the clinical interpretation of variants in cancer\.Nature Genetics49\(2\),pp\. 170–174\.External Links:[Document](https://dx.doi.org/10.1038/ng.3774)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p2.1)\.
- Gutiérrezet al\.\(2024\)B\. J\. Gutiérrez, Y\. Shu, Y\. Gu, M\. Yasunaga, and Y\. SuHippoRAG: neurobiologically inspired long\-term memory for large language models\.InAdvances in Neural Information Processing Systems 37,pp\. 59532–59569\.External Links:[Document](https://dx.doi.org/10.52202/079017-1902)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p3.1)\.
- Heet al\.\(2024\)X\. He, Y\. Tian, Y\. Sun, N\. V\. Chawla, T\. Laurent, Y\. LeCun, X\. Bresson, and B\. HooiG\-Retriever: retrieval\-augmented generation for textual graph understanding and question answering\.InAdvances in Neural Information Processing Systems 37,pp\. 132876–132907\.External Links:[Document](https://dx.doi.org/10.52202/079017-4224)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p3.1)\.
- HL7 International Clinical Interoperability Council \(2025\)HL7 International Clinical Interoperability CouncilMinimal common oncology data elements \(mcode\) implementation guide, version 4\.0\.0\.Note:Current published version; accessed: 2026\-06\-15External Links:[Link](https://hl7.org/fhir/us/mcode/)Cited by:[§2\.1](https://arxiv.org/html/2609.35810#S2.SS1.p1.1)\.
- Lai and Yin \(2024\)J\. Lai and J\. YinLearning conditional dependence graph for concepts via matrix normal graphical model\.Statistics and Its Interface17\(2\),pp\. 187–198\.External Links:[Document](https://dx.doi.org/10.4310/23-SII784)Cited by:[Limitations](https://arxiv.org/html/2609.35810#Sx1.p1.1)\.
- Liet al\.\(2025\)M\. Li, S\. Miao, and P\. LiSimple is effective: the roles of graphs and large language models in knowledge\-graph\-based retrieval\-augmented generation\.InInternational Conference on Learning Representations,Y\. Yue, A\. Garg, N\. Peng, F\. Sha, and R\. Yu \(Eds\.\),Vol\.2025,pp\. 6061–6089\.External Links:[Link](https://proceedings.iclr.cc/paper_files/paper/2025/file/11e1900e680f5fe1893a8e27362dbe2c-Paper-Conference.pdf)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p3.1)\.
- Liuet al\.\(2024\)F\. Liu, Z\. Li, H\. Zhou, Q\. Yin, J\. Yang, X\. Tang, C\. Luo, M\. Zeng, H\. Jiang, Y\. Gao, P\. Nigam, S\. Nag, B\. Yin, Y\. Hua, X\. Zhou, O\. Rohanian, A\. Thakur, L\. Clifton, and D\. A\. CliftonLarge language models are poor clinical decision\-makers: a comprehensive benchmark\.InProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing,pp\. 13696–13710\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.emnlp-main.759)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p1.1)\.
- Pereiraet al\.\(2016\)B\. Pereira, S\. Chin, O\. M\. Rueda, H\. M\. Vollan, E\. Provenzano, H\. A\. Bardwell, M\. Pugh, L\. Jones, R\. Russell, S\. Sammut, D\. W\. Y\. Tsui, B\. Liu, S\. Dawson, J\. Abraham, H\. Northen, J\. F\. Peden, A\. Mukherjee, G\. Turashvili, A\. R\. Green, S\. McKinney, A\. Oloumi, S\. Shah, N\. Rosenfeld, L\. Murphy, D\. R\. Bentley, I\. O\. Ellis, A\. Purushotham, S\. E\. Pinder, A\. Børresen\-Dale, H\. M\. Earl, P\. D\. Pharoah, M\. T\. Ross, S\. Aparicio, and C\. CaldasThe somatic mutation profiles of 2,433 breast cancers refine their genomic and transcriptomic landscapes\.Nature Communications7,pp\. 11479\.External Links:[Document](https://dx.doi.org/10.1038/ncomms11479)Cited by:[Appendix B](https://arxiv.org/html/2609.35810#A2.SS0.SSS0.Px2.p1.1),[§3](https://arxiv.org/html/2609.35810#S3.SS0.SSS0.Px1.p1.1)\.
- Renet al\.\(2026\)X\. Ren, C\. Fan, W\. Ma, H\. He, C\. Gao, X\. Zhao, and F\. FengMedical reasoning with large language models: a survey and mr\-bench\.External Links:2604\.08559,[Link](https://arxiv.org/abs/2604.08559)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p1.1)\.
- Singhalet al\.\(2023\)K\. Singhal, S\. Azizi, T\. Tu, S\. S\. Mahdavi, J\. Wei, H\. W\. Chung, N\. Scales, A\. Tanwani, H\. Cole\-Lewis, S\. Pfohl, P\. Payne, M\. Seneviratne, P\. Gamble, C\. Kelly, A\. Babiker, N\. Schärli, A\. Chowdhery, P\. Mansfield, D\. Demner\-Fushman, B\. Agüera y Arcas, D\. Webster, G\. S\. Corrado, Y\. Matias, K\. Chou, J\. Gottweis, N\. Tomasev, Y\. Liu, A\. Rajkomar, J\. Barral, C\. Semturs, A\. Karthikesalingam, and V\. NatarajanLarge language models encode clinical knowledge\.Nature620\(7972\),pp\. 172–180\.External Links:[Document](https://dx.doi.org/10.1038/s41586-023-06291-2)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p1.1)\.
- Wanget al\.\(2025\)B\. Wang, H\. Zhao, H\. Zhou, L\. Song, M\. Xu, W\. Cheng, X\. Zeng, Y\. Zhang, Y\. Huo, Z\. Wang, Z\. Zhao, D\. Pan, F\. Kou, F\. Li, F\. Chen, G\. Dong, H\. Liu, H\. Zhang, J\. He, J\. Yang, K\. Wu, K\. Wu, L\. Su, L\. Niu, L\. Sun, M\. Wang, P\. Fan, Q\. Shen, R\. Xin, S\. Dang, S\. Zhou, W\. Chen, W\. Luo, X\. Chen, X\. Men, X\. Lin, X\. Dong, Y\. Zhang, Y\. Duan, Y\. Zhou, Z\. Ma, and Z\. WuBaichuan\-m1: pushing the medical capability of large language models\.External Links:2502\.12671,[Link](https://arxiv.org/abs/2502.12671)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p1.1)\.
- Wuet al\.\(2025\)J\. Wu, J\. Zhu, Y\. Qi, J\. Chen, M\. Xu, F\. Menolascina, Y\. Jin, and V\. GrauMedical graph RAG: evidence\-based medical large language model via graph retrieval\-augmented generation\.InProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 28443–28467\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.acl-long.1381)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p3.1)\.
- Xionget al\.\(2024\)G\. Xiong, Q\. Jin, Z\. Lu, and A\. ZhangBenchmarking retrieval\-augmented generation for medicine\.InFindings of the Association for Computational Linguistics: ACL 2024,pp\. 6233–6251\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.findings-acl.372)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p3.1)\.
- Xuet al\.\(2026\)J\. Xu, M\. Li, Y\. Tang, P\. Wang, and W\. ZhangTowards open\-world retrieval\-augmented generation on knowledge graph: a multi\-agent collaboration framework\.InProceedings of the ACM Web Conference 2026,pp\. 2171–2182\.External Links:[Document](https://dx.doi.org/10.1145/3774904.3792389),[Link](https://doi.org/10.1145/3774904.3792389)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p3.1)\.
- Zhanget al\.\(2023\)H\. Zhang, J\. Chen, F\. Jiang, F\. Yu, Z\. Chen, J\. Li, G\. Chen, X\. Wu, Z\. Zhang, Q\. Xiao, X\. Wan, B\. Wang, and H\. LiHuatuoGPT, towards taming language model to be a doctor\.InFindings of the Association for Computational Linguistics: EMNLP 2023,pp\. 10859–10885\.External Links:[Document](https://dx.doi.org/10.18653/v1/2023.findings-emnlp.725)Cited by:[§1](https://arxiv.org/html/2609.35810#S1.p1.1)\.
## Appendix AImplementation Details
#### Main implementation settings\.
Unless otherwise stated, TRACE uses Qwen3\.5\-27B as the backbone language model\. The learned structure used in the main experiments is the updated 300\-concept tree\-relational structure\. Downstream structure injection uses direct prompt evidence without evidence compression or reranking\. The default retrieval budget is six concepts and six graph edges per sample\. Supervised task LoRA fine\-tuning uses one training epoch, learning rate2×10−52\\times 10^\{\-5\}, batch size 1, gradient accumulation 8, maximum sequence length 1536, bfloat16 precision, and LoRA rank 16 with LoRA scaling parameterαLoRA=32\\alpha\_\{\\mathrm\{LoRA\}\}=32and dropout 0\.05\. The LoRA target modules are all linear layers\.
#### LM\-loss evidence\.
Each tree node and graph edge is verbalized into a canonical causal language modeling sample\. For a structural elementzz, letxz=\(xz,1,…,xz,n\)x\_\{z\}=\(x\_\{z,1\},\\ldots,x\_\{z,n\}\)be its token sequence andmjm\_\{j\}be the attention mask\. TRACE computes the token\-averaged negative log\-likelihood:
ℓz=−1∑j=2nmj∑j=2nmjlogpθ\(xz,j∣xz,<j\)\.\\ell\_\{z\}=\-\\frac\{1\}\{\\sum\_\{j=2\}^\{n\}m\_\{j\}\}\\sum\_\{j=2\}^\{n\}m\_\{j\}\\log p\_\{\\theta\}\(x\_\{z,j\}\\mid x\_\{z,<j\}\)\.Hereθ\\thetadenotes the adapted language\-model parameters\. The loss is converted into a relative evidence score:
qz=σ\(ℓmed−ℓzτ\),q\_\{z\}=\\sigma\\left\(\\frac\{\\ell\_\{\\mathrm\{med\}\}\-\\ell\_\{z\}\}\{\\tau\}\\right\),whereℓmed\\ell\_\{\\mathrm\{med\}\}is the median loss over structural elements of the same type,σ\\sigmais the sigmoid function, andτ\\tauis a temperature parameter\. This score is used as soft model evidence rather than as a calibrated factuality probability\.
#### Graph update equations\.
For graph edgee=\(u,r,v,we\)e=\(u,r,v,w\_\{e\}\), TRACE initializes a Beta prior from the original edge weight:
αe=1\+cGwe,βe=1\+cG\(1−we\),\\alpha\_\{e\}=1\+c\_\{G\}w\_\{e\},\\qquad\\beta\_\{e\}=1\+c\_\{G\}\(1\-w\_\{e\}\),wherecGc\_\{G\}controls the prior strength\. Given LM\-derived evidenceqeq\_\{e\}, the posterior pseudo\-counts are
αe′=ραe\+qe,βe′=ρβe\+\(1−qe\),\\alpha^\{\\prime\}\_\{e\}=\\rho\\alpha\_\{e\}\+q\_\{e\},\\qquad\\beta^\{\\prime\}\_\{e\}=\\rho\\beta\_\{e\}\+\(1\-q\_\{e\}\),whereρ\\rhois the smoothing coefficient shared with the tree update\. The updated edge weight is the posterior mean:
we′=αe′αe′\+βe′\.w^\{\\prime\}\_\{e\}=\\frac\{\\alpha^\{\\prime\}\_\{e\}\}\{\\alpha^\{\\prime\}\_\{e\}\+\\beta^\{\\prime\}\_\{e\}\}\.Edges are then assigned a retrieval status:
status\(e\)=\{confirmed,we′≥γconfirm,candidate,γkeep≤we′<γconfirm,pruned,we′<γkeep\.\\mathrm\{status\}\(e\)=\\begin\{cases\}\\texttt\{confirmed\},&w^\{\\prime\}\_\{e\}\\geq\\gamma\_\{\\mathrm\{confirm\}\},\\\\ \\texttt\{candidate\},&\\gamma\_\{\\mathrm\{keep\}\}\\leq w^\{\\prime\}\_\{e\}<\\gamma\_\{\\mathrm\{confirm\}\},\\\\ \\texttt\{pruned\},&w^\{\\prime\}\_\{e\}<\\gamma\_\{\\mathrm\{keep\}\}\.\\end\{cases\}whereγconfirm\\gamma\_\{\\mathrm\{confirm\}\}andγkeep\\gamma\_\{\\mathrm\{keep\}\}are confirmation and retention thresholds\.
#### Iterative structure refinement\.
At roundrr, TRACE starts from the current structure\(𝒯\(r−1\),𝒢\(r−1\)\)\(\\mathcal\{T\}^\{\(r\-1\)\},\\mathcal\{G\}^\{\(r\-1\)\}\), retrieves concept\-query corpus samples, trains or continues the structure\-oriented LoRA adapter, and rescores canonical node and edge statements\. The Bayesian update then produces\(𝒯\(r\),𝒢\(r\)\)\(\\mathcal\{T\}^\{\(r\)\},\\mathcal\{G\}^\{\(r\)\}\), which is used for the next round\.
#### Prompt evidence format\.
For downstream prediction, TRACE appends a concise evidence block to the input\. The block contains retrieved tree nodes with their paths and retrieved graph edges with relation type, edge weight, and evidence text:
\[Relevant nodes\]:v,path\(v\)\\texttt\{\[Relevant nodes\]\}:\\quad v,\\ \\mathrm\{path\}\(v\)\[Relevant edges\]:\\displaystyle\\texttt\{\[Relevant edges\]\}:u\-\-r\-\-\>v,we′,\\displaystyle u\\ \\texttt\{\-\-\}r\\texttt\{\-\-\>\}\\ v,\\ w^\{\\prime\}\_\{e\},evidence\(e\)\.\\displaystyle\\mathrm\{evidence\}\(e\)\.The evidence is treated as auxiliary context, while the original task input remains the primary source\. In the main experiments, we use the direct evidence format without compressed evidence or reranking\.
#### Task prompt templates\.
For multiple\-choice oncology QA, the prompt contains the question, answer options, and the retrieved structural evidence block\. The model is instructed to output only the option letter\. For closed\-set clinical classification tasks, the prompt contains the serialized input fields, candidate labels, and the retrieved evidence block, and the model is instructed to output exactly one label\. In both settings, the prompt explicitly treats structural evidence as auxiliary context: when the retrieved evidence conflicts with the original task input, the original input takes priority\.
The multiple\-choice prompt follows the template:
> Question:⟨\\langlequestion stem⟩\\rangle Options:⟨\\langlecandidate options⟩\\rangle Relevant structural evidence:⟨\\langleretrieved tree paths and graph edges⟩\\rangle Please answer with only the option letter\.
The closed\-set classification prompt follows the template:
> Patient / sample information:⟨\\langleserialized non\-target fields⟩\\rangle Relevant structural evidence:⟨\\langleretrieved tree paths and graph edges⟩\\rangle Candidate labels:⟨\\langlelabel set⟩\\rangle Please output exactly one candidate label\.
#### Task fine\-tuning configuration\.
Unless otherwise specified, supervised task LoRA fine\-tuning uses one training epoch, learning rate2×10−52\\times 10^\{\-5\}, batch size 1, gradient accumulation 8, maximum sequence length 1536, bfloat16 precision, and LoRA rank 16 with LoRA scaling parameterαLoRA=32\\alpha\_\{\\mathrm\{LoRA\}\}=32and dropout 0\.05\. The LoRA target modules are all linear layers\. For direct prompt evidence, the default retrieval budget is six concepts and six graph edges per sample\.
#### Deployment cost of structure construction and update\.
We report the deployment cost for the original structure used in the main experiments\. The initial structure is a finalized artifact containing 300 oncology concepts and 280 relations\. Its metadata records that it was constructed from 3,757 answer\-blind task/corpus items and 590 oncology literature items, with answer, label, reference, candidate, and evidence fields excluded to reduce leakage risk\. Since the original construction logs were not retained as separately profiled GPU jobs, we report its scale and provenance rather than estimating GPU\-hours for initial construction\.
Starting from this finalized structure, we profile one LM\-loss Bayesian refinement round on H200 GPUs\. The refinement consists of retrieval and update\-data preparation, LoRA warmup training, LM\-loss scoring, and Bayesian tree/edge weight updates\. As shown in Table[4](https://arxiv.org/html/2609.35810#A1.T4), one refinement round takes about 97 minutes end\-to\-end, with an effective compute cost of approximately 3\.1–3\.3 GPU\-hours\. Most of the cost comes from LoRA warmup training, while retrieval, scoring, and Bayesian updates are comparatively lightweight\. This cost is incurred offline and only when the structure is refreshed\.
The Bayesian update itself scales linearly with the number of structural elements and can be parallelized across independent branches\. Under the same evidence budget and measured per\-element processing rate, a linear cost projection gives approximately 28 GPU\-hours for 5,000 structural elements and 110 GPU\-hours for 20,000 elements\. These values are analytical projections rather than measurements on structures of those sizes\. In a hospital deployment, specialty\- or department\-level branches can be maintained as separate offline jobs, avoiding the need to retrain a single monolithic medical structure after every local change\.
StageInputOutputGPUsWall\-clockGPU\-hoursInitial structure constructionAnswer\-blind task/corpus text and oncology literature300 concepts / 280 relationsN/ANot separately loggedN/ARetrieval and update\-data preparation300 concepts / 280 relationsLM\-loss training/scoring corpus23\.3 min0\.11LoRA warmup trainingLM\-loss corpusStructure\-adapted LoRA adapter287\.8 min2\.93LM\-loss scoring and Bayesian updateInitial tree/graph and LoRA adapterUpdated tree/graph weights16\.1 min0\.10Total refinement300 concepts / 280 relationsRefined structure–97 min3\.1–3\.3Table 4:Deployment cost of structure construction and one LM\-loss Bayesian refinement round\. The initial structure is reported by scale and provenance because its original construction logs were not retained as separately profiled GPU jobs\. GPU\-hours are computed from measured wall\-clock time and the number of GPUs used in each profiled stage\.
#### Inference latency\.
We profile TRACE inference without vLLM using HuggingFace Transformers and PEFT to directly load Qwen3\.5\-27B with the LoRA adapter on a single GPU\. The profiling uses 100 samples from the three examination QA tasks and two clinical\-record tasks, with 20 samples per task, and generates one output token for each sample\. Structural retrieval itself is lightweight, with a median latency of 2\.71 ms and a P95 latency of 7\.43 ms\. End\-to\-end single\-sample latency increases from 304\.99 ms for the base prompt to 404\.24 ms with TRACE evidence, corresponding to a median overhead of 101\.50 ms\. This overhead mainly comes from prompt expansion: TRACE adds a median of 610 prompt tokens, increasing the median prompt length from 147\.5 to 795\.5 tokens\. These results show that TRACE shifts structure learning offline, while inference\-time cost is dominated by the additional structural evidence tokens rather than retrieval\.
MetricMedianP90P95MeanRetrieval latency \(ms\)2\.715\.547\.433\.43Base latency \(ms\)304\.99439\.31517\.84338\.01TRACE latency \(ms\)404\.24619\.67669\.72447\.14TRACE overhead \(ms\)101\.50137\.89236\.90109\.12Base prompt tokens147\.5630\.4848\.3328\.9TRACE prompt tokens795\.51230\.21438\.6942\.7Extra prompt tokens610\.0652\.0666\.0613\.8Table 5:Inference latency of TRACE under direct HuggingFace Transformers \+ PEFT inference\. Statistics are computed over 100 samples from the three examination QA tasks and two clinical\-record tasks, with 20 samples per task, using Qwen3\.5\-27B with the LoRA adapter on a single GPU andmax\_new\_tokens=1\\texttt\{max\\\_new\\\_tokens\}=1\. TRACE latency includes structural retrieval and prompt\-augmented model inference\.As shown in Table[5](https://arxiv.org/html/2609.35810#A1.T5), retrieval adds only 2\.71 ms median latency, while most overhead comes from the additional structural evidence tokens\.
## Appendix BDataset Details
#### Structure construction corpus\.
The oncology structure is constructed from a heterogeneous corpus of oncology resources, including clinical oncology textbooks, internal medicine and pathology textbooks, clinical guidelines, expert consensus documents, and biomedical literature\. The corpus contains 978 files with a total size of approximately 2\.8 GB\. The main sources include Chinese oncology textbooks such as*Modern Oncology*,*Precision Oncology*, an oncology graduate textbook, guideline\-oriented resources derived from Chinese Society of Clinical Oncology \(CSCO\) and National Comprehensive Cancer Network \(NCCN\) guidelines, and their reference collections\. When task\-facing text is used as auxiliary corpus for structure construction, we remove answer\-like fields, including gold labels, references, outputs, and target annotations\.
Dataset\# examplesDescriptionOncology examination QAProfessional Practice181Chinese examination\-style oncology questions\.Oncology Attending Physician1,581Chinese oncology attending\-physician examination questions\.Related Professional Knowledge708Chinese medical professional\-knowledge examination questions\.Private de\-identified clinical recordsCommon Cancer Diagnosis131De\-identified clinical records labeled with major cancer type\.Breast Cancer Stage Prediction289De\-identified breast cancer records labeled with stage\.METABRIC public benchmarkMETABRIC Stage1,788Stage prediction from non\-target METABRIC fields\.METABRIC Histology2,374Histology prediction from non\-target METABRIC fields\.METABRIC ER Status2,469ER\-status prediction from non\-target METABRIC fields\.METABRIC PR Status1,980PR\-status prediction from non\-target METABRIC fields\.METABRIC Relapse Status2,488Relapse\-status prediction from non\-target METABRIC fields\.CancerGov QA generation benchmarkMedQuAD CancerGov729Cancer question\-answer pairs parsed from 116 XML files\.Table 6:Dataset summary\. METABRIC tasks are derived from cBioPortalbrca\_metabric; CancerGov QA is derived from the MedQuAD CancerGov subset\.
#### METABRIC processing\.
We derive five breast cancer classification tasks from METABRIC through cBioPortalbrca\_metabric\([Curtis et al\., 2012](https://arxiv.org/html/2609.35810#bib.bib18);[Pereira et al\., 2016](https://arxiv.org/html/2609.35810#bib.bib19)\)\. For each task, the target field is withheld from the input, and the remaining clinical, pathological, molecular, treatment, and outcome fields are serialized as the model input\. This produces separate tasks for stage, histology, ER status, PR status, and relapse status prediction\.
#### METABRIC input\-field control\.
For each METABRIC\-derived task, the target field is removed from the serialized input\. In the default retrospective setting, all remaining non\-target structured fields are retained\. In the leakage\-controlled setting, we additionally remove treatment\-related and outcome\-related fields, including endocrine therapy, chemotherapy, radiotherapy, surgery, recurrence, relapse, survival, follow\-up time, death status, and other outcome annotations\. Details are shown in Table[7](https://arxiv.org/html/2609.35810#A2.T7)\. This filtered setting is used only for the leakage\-control analysis in Table[19](https://arxiv.org/html/2609.35810#A12.T19)\.
SettingInput fieldsDefault METABRICAll non\-target structured fields, including clinical, pathological, molecular, treatment, and outcome fields\.Leakage\-controlledTarget field removed as before; treatment and outcome fields are additionally removed, including endocrine therapy, chemotherapy, radiotherapy, surgery, recurrence, survival, follow\-up, and death\-related fields\.Table 7:Input\-field control for METABRIC\-derived tasks\.
#### CancerGov QA processing\.
We use the MedQuAD CancerGov subset\([Ben Abacha and Demner\-Fushman, 2019](https://arxiv.org/html/2609.35810#bib.bib20)\)\. The XML files are parsed into question\-answer pairs, and the split is performed at the document level to avoid placing questions from the same source document in both training and test sets\. This yields 591 training and 138 test examples\.
#### Leakage control\.
For zero\-shot structure construction and evidence retrieval, TRACE uses only input\-side information\. In classification tasks, label fields and target annotations are excluded from the prompt and from structure construction\. In METABRIC tasks, the predicted target field is removed from the serialized input\. In CancerGov QA, the answer text is used only as the supervised generation target during fine\-tuning, not as retrieval evidence at test time\. For supervised fine\-tuning experiments, task examples are used only for downstream model training and evaluation; they are not used to construct the concept inventory or relation graph\. At inference time, the current sample provides only the retrieval query, while its target field, label, or reference answer remains unavailable\.
#### Data governance and availability\.
The private Chinese clinical\-record datasets are de\-identified before use and are not publicly released due to institutional and privacy constraints\. Apart from these private clinical\-record tasks, the training data and task data used in this work can be made publicly available, including the public examination\-style oncology QA datasets, METABRIC\-derived tasks, MedQuAD CancerGov QA data, and the non\-private resources used for structure construction, subject to the license and access policy of each source\. TRACE is designed as a research system for oncology language\-model evaluation and decision support, not as an autonomous clinical decision\-making system\.
## Appendix CCancerGov QA Fine\-Tuning Results
Table[8](https://arxiv.org/html/2609.35810#A3.T8)reports supervised fine\-tuning results on the MedQuAD CancerGov QA generation benchmark\. Models are fine\-tuned on the public document\-level training split and evaluated with greedy generation on the held\-out test split\. We report ROUGE\-L as a lexical overlap metric and BERTScore as a semantic similarity metric\.
Model / MethodROUGE\-LBERTScoreTinyBERTScoreRoBERTaBaichuan\-M2\-32B LoRA0\.1750\.8090\.847HuatuoGPT\-3\-32B LoRA0\.1350\.7910\.835Qwen3\-32B LoRA0\.1550\.8050\.845Qwen3\.5\-27B LoRA0\.2540\.8280\.872Llama\-4\-Scout LoRA0\.2010\.8230\.860TRACE0\.2780\.8480\.884Table 8:Fine\-tuning results on MedQuAD CancerGov QA generation\. Models are evaluated by ROUGE\-L and BERTScore\. Bold denotes the best result in each column\.
## Appendix DAdditional Deployment\-Oriented Evaluation
We include two additional deployment\-oriented evaluations\. First, we test robustness under noisy EMR\-style inputs, where clinical notes are corrupted with abbreviations, token deletion, word\-order perturbation, and irrelevant note fragments while preserving the gold label\. Second, we sweep the number of retrieved structural evidence items to quantify the accuracy\-latency tradeoff\. These experiments are intended to characterize operational behavior rather than replace the main zero\-shot and fine\-tuning evaluations\.
NoiseMethodAcc\.Macro\-F1RetentionTokensΔ\\DeltaLatency \(ms\)CleanLoRA\-only0\.67790\.50331\.0000392\.60\.0CleanTree\-Relational RAG0\.68400\.50301\.0000644\.3\+590\.6CleanTRACE0\.69180\.50631\.0000990\.2\+1420\.9ModerateLoRA\-only0\.66860\.49140\.9899390\.30\.0ModerateTree\-Relational RAG0\.67750\.49390\.9926643\.5\+595\.6ModerateTRACE0\.69210\.51011\.0022990\.2\+1425\.7SevereLoRA\-only0\.63860\.46480\.9437385\.40\.0SevereTree\-Relational RAG0\.65750\.47140\.9614638\.9\+595\.7SevereTRACE0\.66180\.47520\.9568986\.6\+1425\.5Table 9:Robustness under EMR\-like input noise\. Retention is computed relative to each method’s clean accuracy\. Latency overhead is measured relative to LoRA\-only inference under the same noise condition\.Top\-kkAcc\.Macro\-F1TokensLatency \(ms\)00\.72130\.5296186\.6698\.220\.72820\.5278355\.71184\.140\.73130\.5317494\.71592\.380\.73710\.5330709\.72231\.2120\.74140\.5393819\.22547\.3160\.74490\.5408871\.12701\.7Table 10:Accuracy\-latency tradeoff as the number of retrieved structural evidence items increases\. Larger evidence budgets improve accuracy but increase prompt length and inference latency\.Table[9](https://arxiv.org/html/2609.35810#A4.T9)shows that structural evidence improves robustness under noisy clinical inputs\. Under severe corruption, LoRA\-only drops to 0\.6386 accuracy, while Tree\-Relational RAG and TRACE reach 0\.6575 and 0\.6618\. TRACE obtains the best accuracy and macro\-F1 under all three noise levels, although Tree\-Relational RAG provides a cheaper robustness gain with fewer prompt tokens\.
Table[10](https://arxiv.org/html/2609.35810#A4.T10)shows that the evidence budget controls the accuracy\-latency tradeoff\. Accuracy improves monotonically from 0\.7213 atk=0k=0to 0\.7449 atk=16k=16, while latency also increases\. The improvement begins to saturate afterk=8k=8, suggesting that moderate evidence budgets can recover most of the benefit with lower deployment cost\. Latency numbers in this section are measured within each deployment\-oriented experiment and should not be directly compared with the single\-token latency microbenchmark, because the sampled inputs, prompt lengths, and evaluation settings differ\.
## Appendix EEvaluation Protocol and Metrics
For closed\-set classification tasks, each candidate label is scored by conditional log\-likelihood under the model, and the prediction is the candidate with the highest score\. We use token\-averaged log\-likelihood when candidate labels contain multiple tokens:
y^=argmaxy∈𝒴1\|y\|∑j=1\|y\|logpθ\(yj∣x,y<j\),\\hat\{y\}=\\arg\\max\_\{y\\in\\mathcal\{Y\}\}\\frac\{1\}\{\|y\|\}\\sum\_\{j=1\}^\{\|y\|\}\\log p\_\{\\theta\}\(y\_\{j\}\\mid x,y\_\{<j\}\),wherexxis the task input and𝒴\\mathcal\{Y\}is the candidate label set\. Accuracy is computed separately for each task\. Task\-macro accuracy averages task accuracies without weighting by dataset size, whereas overall accuracy pools all test examples before computing accuracy\. Macro\-F1 is computed within each task, and task\-macro F1 averages macro\-F1 across tasks\. For CancerGov QA generation, we report ROUGE\-L and BERTScore as complementary lexical and semantic generation metrics\.
## Appendix FAdditional Zero\-Shot F1 Results
Table[11](https://arxiv.org/html/2609.35810#A6.T11)reports the group\-level task\-macro F1 corresponding to the zero\-shot accuracy results in Table[1](https://arxiv.org/html/2609.35810#S3.T1)\.
Model / MethodExamQAClinicalrecordsMETABRIC10\-taskMacro Avg\.Baichuan\-M2\-32B0\.7250\.3700\.4630\.523Baichuan\-M3\-235B0\.7740\.3960\.4530\.538Llama\-4\-Scout0\.6770\.3310\.3260\.432HuatuoGPT\-3\-32B0\.7310\.4630\.4410\.532Qwen3\-32B0\.7390\.4690\.4520\.542DeepSeek\-V4\-Flash0\.7900\.4740\.4800\.572Qwen3\.5\-27B0\.7650\.4600\.5130\.578TRACE0\.8030\.4800\.5060\.590Table 11:Group\-level task\-macro F1 for label\-free zero\-shot evaluation\. Each group column averages macro\-F1 over tasks in the corresponding dataset group, and the last column averages macro\-F1 over all ten tasks\. Bold denotes the best result in each column\.
## Appendix GBootstrap Confidence Intervals for Main Results
We additionally report bootstrap confidence intervals in Table[12](https://arxiv.org/html/2609.35810#A7.T12)for the zero\-shot main results\. For each method, we perform task\-stratified bootstrap resampling: examples are resampled within each task, task\-level accuracies are recomputed, and group\-level and overall task\-macro averages are then computed from the resampled task accuracies\. We use 10,000 bootstrap samples and report 95% percentile confidence intervals\. This procedure matches the task\-macro evaluation protocol used in Table[1](https://arxiv.org/html/2609.35810#S3.T1)\.
MethodExam QAAcc\. \(95% CI\)Clinical recordsAcc\. \(95% CI\)METABRICAcc\. \(95% CI\)10\-task MacroAcc\. \(95% CI\)Baichuan\-M2\-32B0\.768 \[0\.744, 0\.791\]0\.582 \[0\.533, 0\.630\]0\.692 \[0\.683, 0\.700\]0\.693 \[0\.680, 0\.705\]Baichuan\-M3\-235B0\.820 \[0\.798, 0\.840\]0\.617 \[0\.568, 0\.664\]0\.697 \[0\.688, 0\.706\]0\.718 \[0\.706, 0\.730\]Llama\-4\-Scout0\.686 \[0\.661, 0\.710\]0\.461 \[0\.413, 0\.509\]0\.640 \[0\.631, 0\.649\]0\.618 \[0\.605, 0\.631\]HuatuoGPT\-3\-32B0\.775 \[0\.751, 0\.798\]0\.604 \[0\.555, 0\.652\]0\.668 \[0\.659, 0\.676\]0\.687 \[0\.674, 0\.700\]Qwen3\-32B0\.783 \[0\.760, 0\.805\]0\.610 \[0\.561, 0\.658\]0\.673 \[0\.665, 0\.682\]0\.694 \[0\.681, 0\.706\]DeepSeek\-V4\-Flash0\.836 \[0\.815, 0\.856\]0\.615 \[0\.567, 0\.663\]0\.688 \[0\.679, 0\.697\]0\.718 \[0\.706, 0\.730\]Qwen3\.5\-27B0\.811 \[0\.789, 0\.833\]0\.604 \[0\.555, 0\.652\]0\.728 \[0\.720, 0\.736\]0\.728 \[0\.716, 0\.741\]TRACE0\.853 \[0\.834, 0\.870\]0\.622 \[0\.574, 0\.670\]0\.735 \[0\.727, 0\.743\]0\.748 \[0\.736, 0\.759\]Table 12:Bootstrap confidence intervals for the main zero\-shot accuracy results\. Intervals are computed with 10,000 task\-stratified bootstrap samples\. Each group score is the macro average over tasks in that group, and the final column is the macro average over all ten tasks\. Bold denotes the best point estimate in each column\.
## Appendix HFull Zero\-Shot Analysis
Table[13](https://arxiv.org/html/2609.35810#A8.T13)reports the per\-task gain of TRACE over Qwen3\.5\-27B\. TRACE improves most tasks, with the largest gains on Professional Practice, Breast Stage Prediction, relapse status, and ER status\. Negative or near\-zero changes occur on METABRIC stage and PR status, where Qwen3\.5\-27B is already a strong baseline\.
TaskQwen3\.5\-27BTRACEΔ\\DeltaProfessional Practice0\.8180\.906\+0\.088Oncology Attending0\.7810\.807\+0\.026Related Knowledge0\.8360\.845\+0\.009Common Cancer Dx\.0\.7180\.725\+0\.007Breast Stage Pred\.0\.4910\.519\+0\.028METABRIC Stage0\.7290\.718\-0\.011METABRIC Histology0\.7620\.7620\.000METABRIC ER Status0\.8040\.823\+0\.019METABRIC PR Status0\.7450\.744\-0\.001METABRIC Relapse Status0\.6010\.627\+0\.026Task\-macro Avg\.0\.7280\.748\+0\.020Table 13:Per\-task zero\-shot accuracy gain of TRACE over Qwen3\.5\-27B\.
## Appendix ITree–Graph Ablation
EvidenceProf\.PracticeOncologyAttendingRelatedKnowledgeCommonCancer Dx\.BreastStage Pred\.5\-taskMacro Avg\.Base0\.8180\.7810\.8360\.7180\.4910\.729Tree only0\.8230\.7910\.8380\.7250\.5160\.739Graph only0\.8790\.8070\.8430\.7100\.5470\.757Tree\+Graph0\.9060\.8070\.8450\.7250\.5190\.760Table 14:Tree and graph evidence ablation\. All numbers are accuracy\. The table compares tree\-only, graph\-only, and tree\-plus\-graph evidence, and reports per\-task accuracy with a macro average over the five evaluated tasks\. Bold denotes the best result in each column\.Table[14](https://arxiv.org/html/2609.35810#A9.T14)further shows that both structural views contribute useful information\. Tree\-only retrieval improves over the base model by providing hierarchical concept grounding, while graph\-only retrieval gives larger average gains by exposing cross\-branch clinical relations\. Their combination achieves the best macro average, indicating that hierarchy and relation evidence are complementary\.
## Appendix JAdditional Ablations
#### Structure update rule ablation\.
Table[15](https://arxiv.org/html/2609.35810#A10.T15)compares three ways of combining initial structural confidence with LM\-derived evidence: retaining the initial weights without refinement, simple linear interpolation, and the Beta\-Bernoulli update used by TRACE\. All variants use the same structure, retrieved evidence, and downstream inference procedure\.
Update ruleExamQAClinicalrecords5\-taskMacro Avg\.Initial weight0\.8380\.6240\.753Linear update0\.8410\.6150\.751Beta\-Bernoulli0\.8430\.6170\.752Table 15:Accuracy under different structure\-weight update rules\. The results are similar across update mechanisms; Beta\-Bernoulli is used for its bounded probabilistic interpretation and support for iterative refinement, rather than for a consistent accuracy advantage\.
#### Backbone\-level Tree\-Relational RAG ablation\.
Table[16](https://arxiv.org/html/2609.35810#A10.T16)applies the same learned structure to different backbone models through the same Tree\-Relational RAG interface\. The 10\-task macro average improves for Baichuan\-M2\-32B, Baichuan\-M3\-235B, Llama\-4\-Scout, HuatuoGPT\-3\-32B, and Qwen3\-32B\. This cross\-backbone improvement provides direct evidence that the learned tree\-relational structure contains reusable oncology knowledge, rather than only fitting the Qwen3\.5\-27B backbone\. DeepSeek\-V4\-Flash decreases on METABRIC, indicating that the benefit still depends on the backbone’s calibration and sensitivity to prompt evidence\.
ModelVariantOncologyexamination QAPrivate clinicalrecordsMETABRIC10\-taskMacro Avg\.Baichuan\-M2\-32BBase0\.7680\.5820\.6920\.693\+ Tree\-Relational RAG0\.779 \(\+0\.012\)0\.578 \(\-0\.004\)0\.705 \(\+0\.013\)0\.702 \(\+0\.009\)Baichuan\-M3\-235BBase0\.8200\.6170\.6970\.718\+ Tree\-Relational RAG0\.845 \(\+0\.025\)0\.601 \(\-0\.016\)0\.705 \(\+0\.008\)0\.726 \(\+0\.008\)Llama\-4\-ScoutBase0\.6860\.4610\.6400\.618\+ Tree\-Relational RAG0\.785 \(\+0\.099\)0\.559 \(\+0\.098\)0\.647 \(\+0\.007\)0\.671 \(\+0\.053\)HuatuoGPT\-3\-32BBase0\.7750\.6040\.6680\.687\+ Tree\-Relational RAG0\.820 \(\+0\.045\)0\.603 \(\-0\.001\)0\.687 \(\+0\.019\)0\.710 \(\+0\.023\)Qwen3\-32BBase0\.7830\.6100\.6730\.694\+ Tree\-Relational RAG0\.821 \(\+0\.038\)0\.617 \(\+0\.007\)0\.679 \(\+0\.006\)0\.709 \(\+0\.015\)DeepSeek\-V4\-FlashBase0\.8360\.6150\.6880\.718\+ Tree\-Relational RAG0\.842 \(\+0\.007\)0\.618 \(\+0\.003\)0\.658 \(\-0\.031\)0\.705 \(\-0\.013\)Table 16:Backbone\-level ablation of Tree\-Relational RAG\. Each model is compared with and without the same learned structural retrieval module\. Numbers in parentheses indicate the change over the corresponding base model\.
#### Task\-branch weighting ablation\.
We further ablate task\-branch weighting in METABRIC mixed fine\-tuning\. Table[17](https://arxiv.org/html/2609.35810#A10.T17)follows the same metric definitions as Table[2](https://arxiv.org/html/2609.35810#S3.T2)\. Removing task\-branch weighting reduces overall accuracy from 0\.7969 to 0\.7614 and task\-macro F1 from 0\.5792 to 0\.5376\. This suggests that supervised task\-branch weighting helps TRACE select task\-appropriate structural evidence when multiple METABRIC tasks share the same learned oncology structure\.
MethodOverallAcc\.OverallF1Task\-macroAcc\.Task\-macroF1TRACE w/o task\-branch weighting0\.76140\.38530\.76280\.5376TRACE0\.79690\.48020\.79680\.5792Table 17:Task\-branch weighting ablation on METABRIC mixed fine\-tuning\. Metrics follow the same definition as Table[2](https://arxiv.org/html/2609.35810#S3.T2)\.
## Appendix KRetrieval Baseline F1 Comparison
Table[18](https://arxiv.org/html/2609.35810#A11.T18)reports the macro\-F1 comparison between Vanilla RAG and Generic GraphRAG on the three examination QA tasks and two clinical\-record tasks\. Both retrieval baselines use the same oncology corpus as external evidence\. Generic GraphRAG improves the task\-macro F1 over Vanilla RAG, suggesting that graph\-structured retrieval provides more useful evidence organization than passage retrieval alone\.
MethodProf\.PracticeOncologyAttendingRelatedKnowledgeCommonCancer Dx\.BreastStage Pred\.Task\-macroVanilla RAG0\.13800\.70380\.86240\.47290\.45460\.5263Generic GraphRAG0\.13650\.72860\.88150\.49150\.44950\.5375Table 18:Macro\-F1 comparison between retrieval baselines on the three examination QA tasks and two clinical\-record tasks\. Both baselines use the same oncology corpus as external evidence\. Bold denotes the best result in each column\.
## Appendix LLeakage\-Controlled METABRIC Analysis
METABRIC is a retrospective structured\-record benchmark, and non\-target fields may include variables that are downstream of the prediction target, such as treatment or outcome information\. To test whether TRACE mainly benefits from such reverse\-causal shortcuts, we construct a stricter METABRIC variant by removing treatment\-related and outcome\-related fields from the serialized input, including endocrine therapy, chemotherapy, radiotherapy, surgery, recurrence, survival, follow\-up, and death\-related fields\. The target label is withheld as in the main evaluation\.
MethodStageHistologyERPRRelapseAvg\.AccuracyQwen3\.5\-27B0\.6620\.7620\.7550\.7440\.5940\.704Vanilla RAG0\.6560\.7620\.7580\.7450\.6110\.707Generic GraphRAG0\.6710\.7620\.7370\.7440\.6110\.705TRACE0\.7410\.7630\.7770\.7440\.6200\.729Macro\-F1Qwen3\.5\-27B0\.3560\.1080\.7150\.7220\.5830\.497Vanilla RAG0\.3490\.1080\.7160\.7220\.5810\.495Generic GraphRAG0\.3600\.1080\.6970\.7220\.5860\.495TRACE0\.4050\.1920\.7280\.7220\.5910\.527Table 19:Leakage\-controlled METABRIC evaluation after removing treatment\-related and outcome\-related input fields\. All methods are evaluated on the same filtered inputs\. Avg\. reports task\-macro average over the five METABRIC\-derived tasks\. Bold denotes the best result in each column; ties after rounding are left unmarked\.Table[19](https://arxiv.org/html/2609.35810#A12.T19)shows that removing these fields lowers the absolute performance of several methods, confirming that treatment and outcome variables are informative in the original retrospective records\. However, TRACE still achieves the best task\-macro accuracy and macro\-F1\. It improves task\-macro accuracy from 0\.704 for Qwen3\.5\-27B and 0\.707 for Vanilla RAG to 0\.729, and improves task\-macro F1 from 0\.497 to 0\.527\. These results indicate that TRACE does not rely solely on treatment or outcome shortcuts; the learned tree\-relational evidence remains useful under a stricter input setting\.
## Appendix MAdditional Structural Evidence Case Studies
Figure[2](https://arxiv.org/html/2609.35810#A13.F2)provides two representative examples of TRACE structural evidence\. The examples show how TRACE combines local tree paths with key graph relations to support downstream predictions\.
Case 1: Lung cancer diagnostic workupQuestion\.For diagnosis, what is the preferred next examination?Input clue\.A 64\-year\-old male patient has cough with blood\-stained sputum, right upper\-lobe obstructive inflammation, segmental bronchial obstruction, negative sputum cytology and acid\-fast bacillus tests, and a heavy smoking history\.Retrieved structure\.*Relevant tree evidence*\{forest\}*Key graph evidence*•Cough/Hemoptysis→supports\\xrightarrow\{\\texttt\{supports\}\}Lung cancer•Smoking history→risk\_factor\_for\\xrightarrow\{\\texttt\{risk\\\_factor\\\_for\}\}Lung cancer•Bronchial obstruction→supports\\xrightarrow\{\\texttt\{supports\}\}Lung cancer•Lung cancer→confirmed\_by\\xrightarrow\{\\texttt\{confirmed\\\_by\}\}Fiberoptic bronchoscopyAnswer\.Fiberoptic bronchoscopy\.Prediction effect\.TRACE links symptoms and smoking history to suspected lung cancer, then retrieves the diagnostic relation from lung cancer to bronchoscopy\.
Case 2: METABRIC breast cancer stage predictionQuestion\.Predict the patient’s breast cancer stage\.Input clue\.The patient record describes invasive ductal carcinoma with tumor grade 2, tumor size 18 mm, zero positive lymph nodes, Nottingham prognostic index 3\.036, ER\-positive, PR\-positive, HER2\-negative status, and a primary tumor sample\. Treatment and outcome fields are removed from the input\.Retrieved structure\.*Relevant tree evidence*\{forest\}*Key graph evidence*•Breast cancer→characterized\_by\\xrightarrow\{\\texttt\{characterized\\\_by\}\}Tumor size•Breast cancer→staged\_by\\xrightarrow\{\\texttt\{staged\\\_by\}\}T category•Breast cancer→staged\_by\\xrightarrow\{\\texttt\{staged\\\_by\}\}N category / lymph node status•Positive lymph nodes = 0→supports\\xrightarrow\{\\texttt\{supports\}\}early\-stage diseasePredictions\.Baseline: Stage II\. TRACE: Stage I\.Answer\.Stage I\.Prediction effect\.TRACE retrieves staging\-oriented structure that connects tumor size and lymph\-node status to early\-stage breast cancer\.
Figure 2:Structural evidence case studies\. TRACE retrieves compact task\-relevant substructures, including local tree evidence and key graph relations, that connect input clues to the final prediction\.相似文章
RadOnc-Agent:一个由大语言模型编排、覆盖放疗诊疗全流程的 AI 工作流框架
RadOnc-Agent 是一个由大语言模型(LLM)编排的智能体框架,将放疗流程形式化为四个临床阶段,通过对话界面提供 26 个可调用函数。在单功能执行、跨阶段工作流以及真实患者工作流测试中,该框架的完成率均达到约 96%–98%,验证了 LLM 编排架构在放疗纵向工作流中的技术可行性。
基于可验证、反馈驱动的语言模型回答临床医生对试验证据表格的提问
该论文提出 FD-SCoPE 框架,利用可验证、可反馈的语言模型与可执行查询,回答临床医生对临床试验证据表格的提问,包括无法直接通过数据库查询得出的派生属性问题,并在肿瘤学免疫检查点抑制剂试验数据上验证其可审计性与有效性。
M2G-LLM: 通过多模态图推理和LLM上下文注入提升临床预测
本文介绍了M2G-LLM,这是一个通过图神经网络使用多模态图推理来增强大语言模型的框架,旨在利用电子健康记录改进临床预测任务。
用于模式约束临床信息抽取的检索增强型大语言模型
本文提出了一种模块化的检索增强生成(RAG)流水线,用于从护理人员与患者的对话转录中提取结构化临床观察结果,采用模式约束提示和第二遍审核,基于Llama和GPT骨干模型,取得了80.36%的F1分数。
MeddeX:一种结合 Gemini Vision 的检索增强型 LLaMA-3 系统,用于有证据支持的医学报告分析
该论文提出 MeddeX 系统,结合 QLoRA 微调的 LLaMA-3 (8B)、报告级检索增强生成 (RAG) 以及 Gemini Vision 多模态层,实现对医疗报告的证据支撑式摘要与分析,并在 ROUGE、BLEU 和 BERTScore 上相对基线模型取得一致提升。