Vidatox

A schema-enforced large language model framework produces largely reproducible decision codes in simulated sarcoma tumor boards

A schema enforced large language model framework produces largely reproducible decision codes in simulated sarcoma tumor boards

Victoria Wachenfeld-Teschner1, Scientific Reports volume 16, Article number: 31714 (2026) Cite this article Large language models require reproducible outputs for systematic evaluation in tumor boards. We developed a sarcoma tumor-board simulator using Claude Opus 4.5 at temperature 0.0, schema-enforced JSON output, and prompt-specified semantic and conditional-logic rules. The framework was evaluated on 51 de-identified cases across 154 runs.

Reproducibility was defined as agreement across all runs of a case per decision code. In the 41 cases not used during development, reproducibility was 94.2% (cluster-bootstrap 95% CI 91.9–96.1); in the 10 development cases, 93.3% (95% CI 88.6–97.6). Pooled, it was 94.0% (95% CI 92.0–95.8); 17 cases agreed on all 21 codes. Estimates are model-specific. A post hoc ablation on 15 cases compared the framework with and without these rules: 94.6% versus 82.5% (difference 12.1 points; 95% CI 7.6–17.1).

The improvement was driven mainly by exact wording agreement in three free-text fields (+ 60.0 points), whereas the 18 categorical and numeric codes differed by 4.1 points (95% CI − 0.7 to 9.3). Without any schema, a decision was stated for only 37.6% of instances versus 100% under schema enforcement; seven codes were never addressed. Single-reviewer screening detected no fabricated numbers, references, or measurements. Clinical correctness was not assessed. Consistent recommendations may still be incorrect.

Similar content being viewed by others Identifying the long-term survival beneficiary of chemotherapy for stage N1c sigmoid colon cancer Dedifferentiation-driven oncogenic stemness promotes tumor-sustaining adaptability in the intestinal epithelium A platform-independent AI tumor lineage and site (ATLAS) classifier Computational biology and bioinformatics Multidisciplinary tumor boards (MDTs) are regarded as a central component of contemporary oncological decision-making, integrating the expertise of multiple surgical specialties — including plastic surgery — radiation oncology, medical oncology, radiology, and pathology to formulate consensus treatment recommendations1,2.

Sarcomas are particularly demanding for MDT decision-making: they comprise more than 100 histological subtypes with diverse biological behavior, are individually rare, frequently require multimodal therapy, and benefit substantially from treatment at specialized centers, because early diagnostic and therapeutic decisions — including biopsy route, subtype classification, margin planning, and multimodal sequencing — directly influence resectability, local control, functional outcome, and the risk of avoidable reoperations3,4.

Sarcoma MDTs therefore represent a demanding test case for any computational decision-support tool. Large language models (LLMs) have rapidly emerged as possible tools for MDT decision support, with reported agreement between LLM recommendations and human MDT decisions ranging from approximately 70% to 90% across cancer types5. In breast cancer, GPT-4 achieved 70.6% concordance with MDT recommendations across complex case profiles, with substantial differences between models and model versions6.

In renal cell carcinoma, a recent pilot study reported 62.1% agreement between LLM and MDT across 103 cases7. In gynecologic oncology, LLM-enabled digital-twin frameworks have been proposed to support precision-medicine decision-making in complex rare gynecological tumors8. In otorhinolaryngological oncology, ChatGPT-4o reached 84% concordance and Llama 3 reached 92% concordance with MDT decisions for the binary curative-versus-palliative distinction across 25 cases9.

In contrast, evidence specifically addressing sarcoma has been more limited and less encouraging. In a recent benchmark against 21 European sarcoma centers using five anonymized soft-tissue sarcoma cases from a published ring trial, LLMs (including GPT-4 (2023), Claude 3.5 Sonnet (2024), and Gemini Pro (2023)) showed inter- and intra-model consistency in only 20% of cases, with concordance to the most common MDT recommendation reaching just 20–60% across models10.

The best-performing model, Claude 3.5 Sonnet, aligned with human consensus in only 60% of cases. Critically, the authors documented that LLM recommendations occasionally contained potentially harmful content and that explicit derivation from established sarcoma guidelines was identifiable in only 24.8–55.2% of responses10.

In a complementary evaluation, our group assessed ChatGPT-4o across all major MDT specialties using systematically prompt-engineered techniques and reported markedly heterogeneous performance: mean scores were highest for surgical specialties (4.48 of 5) and considerably lower for radiation oncology, with an overall mean of 3.76 indicating moderate effectiveness11.

Notably, MDT recommendations were themselves heterogeneous across the 21 sarcoma centers in Li et al.10, contextualizing but not explaining LLM variability. Both prior studies relied on free-text outputs without schema enforcement, leaving methodological reproducibility largely uncharacterized. Two interrelated methodological problems emerge from this literature.

First, hallucinations — the generation of fabricated guideline citations, invented prognostic statistics, or unauthorized output sections — compromise both clinical safety and scientific interpretability11,12,13. Asgari et al. demonstrated that combinations of structured prompting, function calls, and JavaScript Object Notation (JSON)-based outputs systematically reduced hallucination rates in medical text summarization12.

Here, a prompt refers to the natural-language input provided to the LLM that specifies the task, clinical context, expected response format, and any content constraints. These findings suggest that architectural constraints on LLM output may provide stronger safeguards than prompt-level instructions alone. Second, reproducibility — the property that identical inputs yield identical outputs — is rarely formally evaluated in oncology LLM studies.

The 20% intra-model consistency reported by Li et al.10 illustrates that without explicit reproducibility constraints, single-shot LLM outputs cannot constitute a stable basis for retrospective concordance studies: comparing a single model run to a fixed historical baseline is misleading because that single run contains both the valid signal (the underlying logic) and stochastic noise (random fluctuation).

An observed difference may therefore reflect run-to-run variability, differences in clinical recommendations, or both; repeated runs are needed to characterize the contribution of model variability. Recent advances in LLM tooling have made architectural solutions to both problems available. Tool-use interfaces and structured-output methods can constrain output format and enable validation against predefined schemas14. These structural checks do not establish that the content is factually or clinically correct.

In the present framework, Pydantic validates declared field types, required fields and enumerated values at run time. The schema source code is provided as Supplementary File 2. Clinical coupling rules between fields were specified in the system prompt and were not enforced by custom validators. Combined with a low-variability sampling setting (temperature 0), these techniques offer a path to reproducible structured output.

To our knowledge, schema-enforced output has not been systematically applied to sarcoma MDT simulation and the reproducibility of LLM outputs under such a framework has not been characterized in this domain. The present study characterizes this reproducibility; it was not designed to estimate the independent effect of schema enforcement. We therefore set out to develop a schema-enforced LLM framework explicitly designed for reproducible sarcoma MDT simulation (Fig. 1).

The framework combines (I) structured tool-use output against a Pydantic-defined schema covering 21 decision codes across nine clinical domains; (II) controlled vocabularies with strict enumerations for all categorical decisions; (III) seven coordinated prompting techniques including role prompting, rule-based prompting, negative prompting, and conditional-logic rules specified in the prompt; and (IV) iterative refinement of semantic specifications across three development phases.

We hypothesized that this architecture would support stable decision-code outputs and reduce predefined categories of fabricated content. Earlier findings in sarcoma10 motivated this evaluation, but differences in metrics and case sets preclude a direct quantitative comparison. Schema-enforced pipeline for sarcoma tumor board simulation. Overview of the framework.

Panel A shows the processing sequence: a de-identified case text is submitted together with the system prompt and the Pydantic schema to Claude Opus 4.5 at temperature 0.0 via the tool-use interface, and the returned tool input is validated application-side against the schema (field types, required fields and enumerated values). Semantic and conditional-logic rules are specified in the system prompt and are not checked by the validator.

Fifty cases were processed three times and case 11 four times under identical input and settings; the 21 decision codes were compared across all available runs of each case. Panel B contrasts an unconstrained free-text response with the structured output of the present framework.

The aims of the present pilot study were1 to develop and document a schema-enforced LLM framework for sarcoma MDT simulation;2 to quantify decision-code reproducibility across a diverse pilot dataset of 51 sarcoma cases;3 to characterize the distribution of remaining variability across clinical domains and individual decision codes; and4 to provide the methodological foundation for subsequent concordance studies against historical MDT decisions, which are the explicit subject of follow-up work currently in preparation.

This pilot study separates methodology development from clinical validation so that run-to-run model variability can be characterized before comparison with historical MDT decisions. Reproducibility is treated here as a prerequisite for, not evidence of, clinical quality: consistent outputs can still be consistently wrong. It does not include specialist ratings or comparisons with individual specialist scores. Reporting follows the TRIPOD-LLM guideline for studies of large language models in clinical research15.

This was a retrospective methodology development and reproducibility evaluation study conducted at a single academic center treating sarcoma patients. All methods were carried out in accordance with relevant guidelines and regulations, including the principles of the Declaration of Helsinki.

Полезные ссылки

Покупка и условия заказа Vidatox

Если после новости вы хотите перейти к покупке, цене или доставке Vidatox 30CH, используйте нужный раздел ниже.

заказать Видатокс 30CHцена Vidatoxдоставка Vidatoxоплата и заказ

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

More posts