Gemma 4 struggles with clinical workflow code generation at scale
Source published ·Modelwire updated
Original coverage: arXiv cs.CL ↗·How Modelwire adds context
The development
Researchers have built TEA-Bench-BR, a specialized benchmark that exposes how coding agents fail silently when implementing complex clinical logic. The test suite, grounded in Brazilian autism screening workflows and FHIR medical data standards, reveals a sharp capability cliff: Gemma 4's 12B variant solves only 38% of single-instrument tasks and fails entirely at the FHIR export level, while the 31B model jumps to 77-85% accuracy. The work matters because domain-specific code generation for healthcare carries real stakes, bugs don't crash visibly, and current LLMs struggle with multi-step branching logic even at scale. This signals that production deployment of coding agents in regulated domains requires far more rigorous evaluation than generic benchmarks provide.
Modelwire’s AI-generated summary of coverage from arXiv cs.CL.
Modelwire analysis
ExplainerOur AI-generated reading of the wider context and the next developments to watch.
The real finding isn't that smaller models fail at clinical tasks (expected), but that failure modes are invisible: code runs without crashing while producing wrong clinical logic. This silent failure pattern is what makes healthcare code generation fundamentally harder than generic benchmarking reveals.
This connects directly to ProbeAgent's work from November 19th on automating failure diagnosis in multi-step reasoning. TEA-Bench-BR surfaces a specific failure class (branching logic in regulated domains) that ProbeAgent's diagnostic framework could help isolate and reproduce. Both papers share the insight that surface-level task completion metrics hide systematic breakdowns. The earlier workplace simulation study showed agents struggle with context maintenance across interconnected tasks; here we see the domain-specific version: agents lose track of conditional branches in clinical workflows, producing code that appears functional but violates domain logic.
If Gemma 4's 31B model maintains 77-85% accuracy when tested on out-of-distribution autism screening variants (different branching structures, new FHIR export requirements) that weren't in the training set, the benchmark's findings generalize. If accuracy drops below 60%, the results are likely benchmark-specific rather than evidence of genuine clinical reasoning capability. Watch for follow-up work applying ProbeAgent's diagnostic methods to TEA-Bench-BR failures within the next two months.
This interpretation is generated from the summary above and the archive coverage cited below. Our methodology · Report an error
Coverage behind this analysis
These archive entries ground the connection in our analysis. They are ordered by source publication date, with links to our coverage and the original sources.
·arXiv cs.CL
ProbeAgent automates diagnosis of multi-step agent failures
ProbeAgent automates the diagnosis of agent failures in multi-step reasoning tasks, moving beyond surface-level LLM output inspection to isolate root causes and shared failure patterns. The framework constructs executable test cases validated against reference solutions, then generates targeted probes that preserve suspected failure modes while varying context. This addresses a critical gap in agent development:…
MentionsGemma 4 · TEA-Bench-BR · FHIR R4 · RNDS · arXiv
How this coverage is produced
Modelwire uses AI to generate summaries and context from source headlines, snippets, and selected archive coverage. Automated checks do not verify every claim, and items are not routinely reviewed by a person before publication. Zacaria Solis operates the site. Read the linked source for the full evidence and report errors through our corrections process.
Modelwire summarizes, we don’t republish. arXiv cs.CL originally reported this story as “TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?”. The full content lives on arxiv.org. If you’re a publisher and want a different summarization policy for your work, see our takedown page.