AI 编程 4.0 · 优秀 2026-11-20 · 论文

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

TEA-Bench-BR 用巴西自闭症早期筛查流程考 coding agent:葡萄牙语书写的分支规格多科室转诊流FHIR R4 导出,144 个任务配 6798 个能杀死全部 1955 个变异体的隐藏用例Gemma 4 的 12B 只解出 38% 单仪器任务FHIR 级全挂;31B 三级通过率 77.8%-85.2%,但同样任务换成英文后 level 3 掉到 57.4%,暴露 agent 对规格语言的敏感代码能跑却悄悄出错正是 agent 编码落地最贵的坑,这个 benchmark 把它量化了

打开原文回到归档

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

中文导读

TEA-Bench-BR 用巴西自闭症早期筛查流程考 coding agent:葡萄牙语书写的分支规格多科室转诊流FHIR R4 导出,144 个任务配 6798 个能杀死全部 1955 个变异体的隐藏用例Gemma 4 的 12B 只解出 38% 单仪器任务FHIR 级全挂;31B 三级通过率 77.8%-85.2%,但同样任务换成英文后 level 3 掉到 57.4%,暴露 agent 对规格语言的敏感代码能跑却悄悄出错正是 agent 编码落地最贵的坑,这个 benchmark 把它量化了

为什么值得关注

TEA-Bench-BR:用临床分支规格量化 coding agent 的静默 bug,规格换语言即掉 20 分

代码能跑却悄悄出错是 agent 编码落地最贵的坑;同一批任务规格从葡萄牙语换成英语后 31B 在 level 3 从 77.8%-85.2% 掉到 57.4%,对规格编写与评测设计都是直接信号。

关键信息

  • 论文标题:TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?
  • 作者:Marcio Andre de Souza Estevam
  • arXiv:https://arxiv.org/abs/2611.27895
  • 发布时间:2026-11-20
  • arXiv 分类:cs.SE, cs.AI, cs.CL
  • 关联标签:coding-agents, benchmark, evaluation, healthcare
  • 备注:7 pages, 2 figures. Submitted to the Google Gemma 4 Developer Agent Paper Track (Kaggle, November 2026). Benchmark, code and results: https://doi.org/10.5281/zenodo.24143388

English Abstract

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.

English Summary

TEA-Bench-BR tests whether coding agents can turn a branching clinical specification into correct code, built on the Brazilian early autism (TEA) screening pathway: three fictitious screening instruments, a multi-professional referral flow, and FHIR R4 export with national RNDS profiles, all specified in Portuguese. A generator samples 144 tasks with 6,798 hidden cases that kill all 1,955 non-equivalent mutants of the reference implementation. With Gemma 4 agents, the 12B model solves 38.0% of single-instrument tasks and none at the FHIR level; the 31B solves 77.8-85.2% across three levels and passes over 99% of hidden cases, failing mostly at input validation. Switching the same tasks to English drops the 31B to 57.4% at level 3, exposing sensitivity to specification language; the 31B misses 0.02% of referral-required cases versus 10.10% for the 12B.

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取 arXiv 元数据与摘要生成。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。