Dial: 지식 기반 방언 특화 NL2SQL 시스템
Dial: A Knowledge-Grounded Dialect-Specific NL2SQL System
한국어 초록
기업에서는 서로 다른 구문 규칙, 내장 함수, 실행 제약 조건을 가진 고유한 SQL 방언(dialect)을 사용하는 이기종 데이터베이스 시스템을 흔히 배포합니다. 그러나 대부분의 기존 NL2SQL 방법은 단일 표준 방언(예: SQLite)을 가정하므로, 의미론적으로 정확하면서 대상 엔진에서 실행 가능한 쿼리를 생성하는 데 어려움을 겪습니다. 프롬프트 기반 접근 방식은 의도 추론과 방언 구문을 밀접하게 결합하고, 규칙 기반 변환기는 네이티브 연산자를 일반적인 구문으로 저하시키는 경우가 많으며, 다중 방언 미세조정(fine-tuning)은 방언 간 간섭 문제를 겪습니다. 본 논문에서는 방언 특화 NL2SQL을 위한 지식 기반(knowledge-grounded) 프레임워크인 Dial을 제시합니다. Dial은 다음과 같은 요소를 도입합니다: (1) 연산자 수준의 의도 분해 및 분기 인식 사양을 통해 자연어를 방언 인식 논리 쿼리 계획으로 변환하는 방언 인식 논리 쿼리 계획(Dialect-Aware Logical Query Planning) 모듈; (2) 방언 지식을 i 표준 구문 참조, ii 선언적 함수 저장소, iii 절차적 제약 조건 저장소로 구성하는 계층적 의도 인식 지식 베이스인 HINT-KB; (3) 의미론적 표류(semantic drift)를 방지하기 위해 구문 복구와 논리 감사를 분리하는 실행 주도형 디버깅 및 의미 검증 루프. 저자들은 6개 주요 데이터베이스 시스템과 2,218개의 방언 특화 테스트 케이스를 다루는 벤치마크인 DS-NL2SQL을 구축합니다. 실험 결과에 따르면 Dial은 최신 베이스라인 대비 번역 정확도를 10.25%, 방언 특징(feature) 커버리지를 15.77% 일관되게 향상시킵니다.
원문 초록
Enterprises commonly deploy heterogeneous database systems, each of which owns a distinct SQL dialect with different syntax rules, built-in functions, and execution constraints. However, most existing NL2SQL methods assume a single canonical dialect (e.g., SQLite) and struggle to produce queries that are both semantically correct and executable on target engines. Prompt-based approaches tightly couple intent reasoning with dialect syntax, rule-based translators often degrade native operators into generic constructs, and multi-dialect fine-tuning suffers from cross-dialect interference. In this paper, we present Dial, a knowledge-grounded framework for dialect-specific NL2SQL. Dial introduces: (1) a Dialect-Aware Logical Query Planning module that converts natural language into a dialect-aware logical query plan via operator-level intent decomposition and divergence-aware specification; (2) HINT-KB, a hierarchical intent-aware knowledge base that organizes dialect knowledge into i a Canonical Syntax Reference, ii a declarative function repository, and iii a procedural constraint repository; and (3) an execution-driven debugging and semantic verification loop that separates syntactic recovery from logic auditing to prevent semantic drift. We construct DS-NL2SQL, a benchmark covering six major database systems with 2,218 dialect-specific test cases. Experimental results show that Dial consistently improves translation accuracy by 10.25% and dialect feature coverage by 15.77% over state-of-the-art baselines.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2603.07449v2제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.