Spider 2.0-AIFunc: Extending Real-World Text-to-SQL to AI-Native SQL Workflows

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, quick

Summary

Spider 2.0-AIFunc is a new benchmark designed to evaluate text-to-SQL models on AI-native SQL workflows, addressing a gap where existing benchmarks only cover conventional SQL. This benchmark comprises 465 verified instances across 125 real-world databases, specifically focusing on six types of AI functions available on the Snowflake platform, such as classification and sentiment analysis. It was constructed using an agent-based pipeline that rewrites source tasks into AI-native forms, simultaneously transforming target queries and refining natural language instructions to reduce ambiguity. Evaluation of ten state-of-the-art language models revealed that top proprietary models achieved 67-70% execution accuracy, while the best open-source model reached 58.1%. The performance gap is primarily due to errors in predicate specification, schema grounding, and AI function parameterization. Interestingly, traditional text-to-SQL agent frameworks did not effectively transfer, with minimal agent setups often outperforming more complex alternatives.

Key takeaway

For Machine Learning Engineers developing text-to-SQL solutions for modern data platforms, you should recognize that AI-native SQL functions introduce new complexities not covered by traditional benchmarks. Focus your model development on improving predicate specification, schema grounding, and AI function parameterization, as these are critical error sources. Consider evaluating your models against the Spider 2.0-AIFunc benchmark to accurately assess their performance on real-world AI-native SQL workflows, and don't assume complex agent frameworks will automatically yield better results.

Key insights

AI-native SQL workflows demand specialized benchmarks, revealing current LLM limitations in predicate and AI function parameterization.

Principles

Method

An agent-based pipeline rewrites source tasks into AI-native forms, transforms target queries, and refines natural language instructions. Instances undergo multi-round execution for stability.

In practice

Topics

Code references

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.