PExA: Parallel Exploration Agent for Complex Text-to-SQL

arXiv cs.AI / 4/28/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper introduces PExA, a parallel exploration agent for complex text-to-SQL that addresses the common latency–performance trade-off in LLM-based agents.
  • It recasts text-to-SQL as a software test-coverage problem by generating a suite of simpler, atomic SQL test cases that are executed in parallel to cover the semantics of the target query.
  • After iterating on test coverage, PExA generates the final SQL only once sufficient information has been collected, using the explored SQL results to ground the final generation.
  • Experiments on Spider 2.0, a state-of-the-art text-to-SQL benchmark, report a new state-of-the-art result of 70.2% execution accuracy.

Abstract

LLM-based agents for text-to-SQL often struggle with latency-performance trade-off, where performance improvements come at the cost of latency or vice versa. We reformulate text-to-SQL generation within the lens of software test coverage where the original query is prepared with a suite of test cases with simpler, atomic SQLs that are executed in parallel and together ensure semantic coverage of the original query. After iterating on test case coverage, the final SQL is generated only when enough information is gathered, leveraging the explored test case SQLs to ground the final generation. We validated our framework on a state-of-the-art benchmark for text-to-SQL, Spider 2.0, achieving a new state-of-the-art with 70.2% execution accuracy.

PExA: Parallel Exploration Agent for Complex Text-to-SQL | AI Navigate