{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2605-04039","title":"Safety and accuracy follow different scaling laws in clinical large language models","arxiv_id":"2605.04039","date":"2026-05-05","proceeding":null,"authors":["Sebastian Wind","Tri-Thien Nguyen","Jeta Sopa","Mahshad Lotfinia","Sebastian Bickelhaup","Michael Uder","Harald Köstler","Gerhard Wellein","Sven Nebelung","Daniel Truhn","Andreas Maier","Soroosh Tayebi Arasteh"],"abstract":"Clinical LLMs are often scaled by increasing model size, context length, retrieval complexity, or inference-time compute, with the implicit expectation that higher accuracy implies safer behavior. This assumption is incomplete in medicine, where a few confident, high-risk, or evidence-contradicting errors can matter more than average benchmark performance. We introduce SaFE-Scale, a framework for measuring how clinical LLM safety changes across model scale, evidence quality, retrieval strategy, context exposure, and inference-time compute. To instantiate this framework, we introduce RadSaFE-200, a Radiology Safety-Focused Evaluation benchmark of 200 multiple-choice questions with clinician-defined clean evidence, conflict evidence, and option-level labels for high-risk error, unsafe answer, and evidence contradiction. We evaluated 34 locally deployed LLMs across six deployment conditions: closed-book prompting (zero-shot), clean evidence, conflict evidence, standard RAG, agentic RAG, and max-context prompting. Clean evidence produced the strongest improvement, increasing mean accuracy from 73.5% to 94.1%, while reducing high-risk error from 12.0% to 2.6%, contradiction from 12.7% to 2.3%, and dangerous overconfidence from 8.0% to 1.6%. Standard RAG and agentic RAG did not reproduce this safety profile: agentic RAG improved accuracy over standard RAG and reduced contradiction, but high-risk error and dangerous overconfidence remained elevated. Max-context prompting increased latency without closing the safety gap, and additional inference-time compute produced only limited gains. Worst-case analysis showed that clinically consequential errors concentrated in a small subset of questions. Clinical LLM safety is therefore not a passive consequence of scaling, but a deployment property shaped by evidence quality, retrieval design, context construction, and collective failure behavior.","url_abs":"https://arxiv.org/abs/2605.04039","url_pdf":"https://arxiv.org/pdf/2605.04039","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2605.04039","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.04039"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/langchain-ai/langgraph","reach":null}],"summary":{"ran":7,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":8,"ran":7,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"92b539d170b715ac","entry":"compose_as_dict","repo":"langchain-ai/langgraph","repo_kind":"found_in_text","path":"libs/cli/langgraph_cli/docker.py","file_url":"https://github.com/langchain-ai/langgraph/blob/HEAD/libs/cli/langgraph_cli/docker.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"92b539d170b715ac"}},{"code_sha256_prefix":"34998b09d306c99b","entry":"dict_to_yaml","repo":"langchain-ai/langgraph","repo_kind":"found_in_text","path":"libs/cli/langgraph_cli/docker.py","file_url":"https://github.com/langchain-ai/langgraph/blob/HEAD/libs/cli/langgraph_cli/docker.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"34998b09d306c99b"}},{"code_sha256_prefix":"34d113e6281f1afb","entry":"get_unknown_keys","repo":"langchain-ai/langgraph","repo_kind":"found_in_text","path":"libs/cli/langgraph_cli/config.py","file_url":"https://github.com/langchain-ai/langgraph/blob/HEAD/libs/cli/langgraph_cli/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"34d113e6281f1afb"}},{"code_sha256_prefix":"a13996604909f26f","entry":"has_disallowed_build_command_content","repo":"langchain-ai/langgraph","repo_kind":"found_in_text","path":"libs/cli/langgraph_cli/config.py","file_url":"https://github.com/langchain-ai/langgraph/blob/HEAD/libs/cli/langgraph_cli/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a13996604909f26f"}},{"code_sha256_prefix":"33cf3ec51efe6fc4","entry":"monitor_stream","repo":"langchain-ai/langgraph","repo_kind":"found_in_text","path":"libs/cli/langgraph_cli/exec.py","file_url":"https://github.com/langchain-ai/langgraph/blob/HEAD/libs/cli/langgraph_cli/exec.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"33cf3ec51efe6fc4"}},{"code_sha256_prefix":"6b40926400bab63a","entry":"normalize_image_tag","repo":"langchain-ai/langgraph","repo_kind":"found_in_text","path":"libs/cli/langgraph_cli/deploy.py","file_url":"https://github.com/langchain-ai/langgraph/blob/HEAD/libs/cli/langgraph_cli/deploy.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6b40926400bab63a"}},{"code_sha256_prefix":"825e5384f2f85cdf","entry":"normalize_name","repo":"langchain-ai/langgraph","repo_kind":"found_in_text","path":"libs/cli/langgraph_cli/deploy.py","file_url":"https://github.com/langchain-ai/langgraph/blob/HEAD/libs/cli/langgraph_cli/deploy.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"825e5384f2f85cdf"}},{"code_sha256_prefix":"59a9dee6f90cc132","entry":"subp_exec","repo":"langchain-ai/langgraph","repo_kind":"found_in_text","path":"libs/cli/langgraph_cli/exec.py","file_url":"https://github.com/langchain-ai/langgraph/blob/HEAD/libs/cli/langgraph_cli/exec.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"59a9dee6f90cc132"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}