BIRD-Persona:面向SQL与pandas分析代码生成的人格感知基准
BIRD-Persona: A Persona-Aware Benchmark for SQL and pandas Analytics Code Generation
BIRD-Persona是BIRD-Python的人格分层扩展基准,为SQL与pandas配对真值的任务加入新手与专家改写、schema变体和任务结构标注。在1,534个任务、9个模型、245,592次评测中,9个系统里有8个的SQL表现优于pandas。专家级、schema显式提示对两种范式均有提升但更利于SQL,选定列负担会拉大差距而子查询不会。
arXiv:2611.28542v1 Announce Type: new Abstract: Production text-to-code systems use large language models to turn natural-language analytics requests into executable SQL and pandas code. Existing benchmarks cover both tasks but do not isolate when performance diverges between them. We introduce BIRD-Persona, a persona-stratified extension of BIRD-Python that adds novice and expert rewrites to tasks with matched SQL and pandas ground truth, along with schema variants and task-structure annotations. Across 1,534 tasks, nine models, and 245,592 evaluations, SQL outperforms pandas for eight of nine systems. The gap varies by condition: expert, schema-explicit prompts improve both paradigms but help SQL more; schema representations have mixed, model-dependent effects; and selected-column burden widens the gap while subqueries do not. By making user phrasing a controlled benchmark dimension, BIRD-Persona supports persona-aware and paradigm-aware evaluation of natural-language analytics systems. The dataset is available at https://huggingface.co/datasets/optum-cognition-lab/BIRD-Persona.
来源:arXiv (AI + Vision + Imaging) · arxiv.org