---
title: "BIRD-Persona: A Persona-Aware Benchmark for SQL and pandas Analytics Code Generation"
source: "arXiv AI/CL/LG（论文）"
source_tier: "t2"
url: "https://arxiv.org/abs/2611.28542v1"
permalink: "https://feed.astralor.com/items/itm_2252719e04e668b500fd1693"
published: "2026-11-21T03:58:15.000Z"
score: 54
channel: "ai"
tags: ["LLM","BIRD-Persona","Persona-Aware Benchmark","SQL","Analytics Code Generation","Production","Existing"]
---

# BIRD-Persona: A Persona-Aware Benchmark for SQL and pandas Analytics Code Generation

## 速览

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 diverge…

## 关键点

- 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.

## 全文

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.

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_2252719e04e668b500fd1693
