학술

BASIL-W: Scope-Aware Evidence for Text-to-SQL Selection

arXiv CS.AI
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Abstract

Execution feedback can mislead text-to-SQL selectors when incomplete query outputs are treated as conclusive evidence.

BASIL-W represents observations as scope-aware witnesses containing the executed SQL, its output, completion status, and certified scope.

An absence claim requires a completed check covering the claimed predicate and domain.

A 2x2 factorial experiment varies scope metadata and an explicit instruction while holding the model, candidates, and probes fixed.

On the full Spider and WikiSQL test splits with GPT-4.1, execution accuracy increases from 85.98% to 88.50% and from 90.50% to 91.60% (all six paired contrasts Holm-adjusted p<0.006).

The combined interface outperforms either factor alone.

The arm ordering also holds with Qwen2.5-Coder-32B and Llama-3.3-70B and on BIRD dev, where the gain reaches +3.7 percentage points.

Observed margins over the strongest matched selection baseline are +1.58 on Spider, +1.76 on BIRD dev, and +0.15 on WikiSQL; these comparisons lack paired uncertainty estimates.

The Spider audit found unsupported absence-claim rates of 12.0% for raw evidence and 4.3% for BASIL-W.

The design does not isolate scope content from prompt length or presentation, and the audit does not establish a causal mechanism.

관련 뉴스