Papers

TEA-Bench-BR:编码智能体能否把分支式临床规范转成正确代码

TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?

Why we picked it

这个基准很硬核:拿巴西自闭症筛查的真实流程考编码智能体,隐藏用例能杀掉全部 1,955 个变异体。结果也扎眼,Gemma 4 的 31B 通过 99% 用例但 12B 会漏掉 10% 该转诊的病例,做医疗自动化的人该看看。

TEA-Bench-BR 是一个基于巴西儿童自闭症(TEA)早期筛查路径构建的编码智能体基准,包含 144 个任务和 6,798 个隐藏测试用例,隐藏用例可杀死参考实现的全部 1,955 个非等价变异体。任务以葡萄牙语规范描述:三份结构仿真的筛查量表、多专业人员转诊流程,以及导出符合巴西 RNDS profile 的 FHIR R4 数据。

Body

实验以 Gemma 4 作为智能体:12B 版本在单量表任务上解决 38.0%,在 FHIR 层级为零;31B 版本在第 1 至第 3 层级分别解决 77.8%、85.2% 和 78.7%,并通过超过 99% 的隐藏用例,剩余失败多出现在输入校验而非临床决策。将相同任务改为英文后,31B 在第 3 层级的解决率降到 57.4%,12B 则更高,说明语言对代码校验行为有影响。临床风险方面,12B 漏掉 10.10% 的应转诊用例,31B 仅漏掉 0.02%。对修改版 PHQ-9 的污染探测未发现沿用原始规则的错误。

Original · arXiv cs.AI

TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?

Coding agents increasingly implement rules written by domain experts, and bugs in such code are silent: it runs and returns a plausible answer. We introduce TEA-Bench-BR, a benchmark built on the Brazilian pathway for early autism (TEA) screening: three fictitious instruments with the structure of real ones, a multi-professional referral flow, and export to FHIR R4 with the national RNDS profiles, all specified in Portuguese. A generator samples each task's parameters (144 tasks, 6,798 hidden cases), and the hidden cases kill all 1,955 non-equivalent mutants of the reference. With Gemma 4 as the agent, the 12B solves 38.0% of single-instrument tasks and none at the FHIR level; the 31B solves 77.8%, 85.2% and 78.7% at levels 1 to 3 and passes over 99% of the hidden cases, its remaining failures mostly in input validation rather than clinical decisions. With the same tasks in English, the 31B solves 57.4% at level 3, as its code validates an identifier less often; the 12B's, more often. The 12B misses 10.10% of the cases that call for referral; the 31B, 0.02%. A contamination probe on a modified PHQ-9 finds no error that follows the original rules.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include TEA-Bench-BR, Gemma 4, FHIR R4, coding assistants.

Source attribution: curated from arXiv cs.AI (@Marcio Andre de Souza Estevam).