Thanks to visit codestin.com
Credit goes to github.com

Skip to content

openaitx-system/BIRD-Interact

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

80 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BIRD-INTERACT 1.0 HKU Logo Google Cloud Logo

🧸 Overview

BIRD-INTERACT, an interactive text-to-SQL benchmark, re-imagines Text-to-SQL evaluation via lens of dynamic interactions. The environment blends a hierarchical knowledge base, database documentation and a function-driven user simulator to recreate authentic enterprise environments across full CRUD operations. It offers two rigorous test modes: (1) passive Conversational Interaction and (2) active Agentic Interaction, spanning 600 annotated tasks including Business Intelligence (BI), CRUD operations and etc., each guarded by executable test cases. Typical evaluations trigger 1,968-5,496 interaction turns between model and user simulator, while state-of-the-art reasoning models currently solve only β‰ˆ24% and β‰ˆ18% of tasks, underscoring the benchmark's challenge.

βœ… Two Evaluation Modes

BIRD-INTERACT supports two evaluation modes as mentioned above:

  • c-Interact: Conversational Interaction which is a passive mode and the workflow is fixed. The code and detailed information can be found in bird_interact_conv.
  • a-Interact: Agentic Interaction which is an embodied active mode where the workflow is dynamic and led by models. The code and detailed information can be found in bird_interact_agent.

🐣 Lite Version

We are releasing a lite version of BIRD-INTERACT, bird-interact-lite-exp, which includes 270 high-quality real-world tasks specifically for PostgreSQL. This is a good starting point for quick experimentation.

🦜 Full Version

The full version of BIRD-INTERACT, bird-interact-full, is a comprehensive benchmark that includes 600 tasks for PostgreSQL. It covers a wide range of SQL operations and user queries. The full version is coming soon.

Model Performance Results on BIRD-INTERACT Lite

1. c-Interact Performance

Rank Model Name Normalized Reward Level
1 o3-mini 33.04 πŸ† Excellent Chat
2 GPT-4o 30.33 πŸ’Ž Good Chat
3 Gemini-2.0-flash 27.41 πŸ’Ž Good Chat
4 Claude-3.7-sonnet 26.60 ✨ Standard
5 DeepSeek-R1 21.74 ✨ Standard
6 Qwen3 20.33 βšͺ Basic
7 DeepSeek-V3 15.85 βšͺ Basic

2. a-Interact Performance

Rank Model Name Budget Parameters* Avg Turns/Task Avg Cost (USD)/Task Normalized Reward Level
1 Claude-3.7-sonnet 6/6 15.4 $0.6668 29.19 πŸ† Excellent Interaction
2 o3-mini 6/6 7.8 $0.0754 21.07 πŸ’Ž Good Interaction
3 DeepSeek-V3 6/6 15.6 $0.0629 19.19 πŸ’Ž Good Interaction
4 Qwen3 6/6 12.5 $0.0278 18.74 ✨ Standard
5 GPT-4o 6/6 15.3 $0.4594 18.37 ✨ Standard
6 Gemini-2.0-flash 6/6 13.2 $0.0337 17.26 βšͺ Basic
7 DeepSeek-R1 6/6 12.0 $0.0931 17.07 βšͺ Basic

* Budget Parameters: Starting Budget/User Patience Budget, measured by our virtual currency bird-coins . Refer to bird_interact_agent/README.md for more details.

Interaction-Time Scaling (ITS)

Interaction-Time Scaling (ITS) refers to a model's ability to continuously increase its end performance through multi-turn interactions. When this interactive performance surpasses the model's idealized single-turn performance on a fully specified, unambiguous task, we say it satisfies the ITS law. As user patience grows and interaction turns accumulate, performance keeps improving, demonstrating that the model can sustain effective communication over extended dialogue. Currently, we only find claude-3-7-sonnet satisfies the ITS law.

πŸ“¦ Dataset Details

Dataset Description

  • Database: The complete PostgreSQL database can be download from the Google Drive. Check the Quick Eval section for more details.

  • data: Each data instance contain the following main parts:

    • selected_database: The name of the database.
    • query: The unambiguous user query.
    • amb_user_query: The user query with injected ambiguities.
    • user_query_ambiguity: The ambiguities injected into the user query.
    • non_critical_ambiguity: The non-critical ambiguities like order, limit, etc.
    • knowledge_ambiguity: The ambiguities created by masked external knowledges.
    • sol_sql: The ground truth SQL solution.
    • preprocess_sql: SQL queries to run before executing the solution or prediction.
    • clean_up_sql: SQL queries to run after the test cases to revert any changes made to the database.
    • test_cases: A set of test cases to validate the predicted corrected SQL.
    • follow_up: The labeled follow up questions.
    • external_knowledge: The external knowledge related to the specific task.
  • evaluation: The evaluation code is available in the ./evaluation directory.

  • Curated by: BIRD Team & Google Cloud

  • License: cc-by-sa-4.0

  • HuggingFace Dataset Card: bird-interact-lite

Dataset Uses

To avoid data leakage by auto-crawling, we do not include GT solution sqls and test cases along with data. please email [email protected] with the tag [bird-interact-lite GT&Test Cases] in title for full set, which will be sent automatically.

Folder Structure

.
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ bird_interact_conv
β”‚Β Β  β”œβ”€β”€ ...
β”‚Β Β  └── README.md
β”œβ”€β”€ bird_interact_agent
β”‚Β Β  β”œβ”€β”€ ...
β”‚Β Β  └── README.md
β”œβ”€β”€ evaluation
β”‚Β Β  β”œβ”€β”€ docker-compose.yml
β”‚Β Β  β”œβ”€β”€ env
β”‚Β Β  β”œβ”€β”€ postgre_table_dumps
β”‚Β Β  β”œβ”€β”€ run
β”‚Β Β  └── src
β”œβ”€β”€ materials
β”‚Β Β  β”œβ”€β”€ ...
└── requirements.txt

The details about running a-interact can be found in ./bird_interact_agent/README.md; and c-interact can be found in ./bird_interact_conv/README.md.

πŸ“‹ Todo Lists

  • Release lite version, bird-interact-lite (270).
  • Release conversational version, bird-interact-conv.
  • Release agent version, bird-interact-agent.
  • Release Full bird-interact-full (600).
  • SFT / RL an User Simulator

Created By:

BIRD Team & Google Cloud

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 94.3%
  • Shell 5.7%