IGSQL: 문맥 의존적 텍스트-SQL 생성을 위한 데이터베이스 스키마 상호작용 그래프 기반 신경 모델
IGSQL: Database Schema Interaction Graph Based Neural Model for Context-Dependent Text-to-SQL Generation
IGSQL: Database Schema Interaction Graph Based Neural Model for Context-Dependent Text-to-SQL Generation
@misc{cai2020igsql,
title = {IGSQL: Database Schema Interaction Graph Based Neural Model for Context-Dependent Text-to-SQL Generation},
author = {Yitao Cai and Xiaojun Wan},
year = {2020},
eprint = {2011.05744},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2011.05744}
}
Cai, Y., & Wan, X. (2020). IGSQL: Database Schema Interaction Graph Based Neural Model for Context-Dependent Text-to-SQL Generation [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.05744
CAI Y, WAN X. IGSQL: Database Schema Interaction Graph Based Neural Model for Context-Dependent Text-to-SQL Generation[EB/OL]. (2020-11-11)[2026-11-29]. https://arxiv.org/abs/2011.05744.
초록
최근 몇 년간 컨텍스트 의존적 텍스트 - SQL 작업은 많은 관심을 끌고 있다. 기존 컨텍스트 의존적 텍스트 - SQL 모델들은 역사적 사용자 입력만을 활용하는 데 집중해 왔다. 본 작업에서는 사용자 입력의 역사적 정보를 캡처하기 위해 인코더를 사용하는 것을 넘어, 데이터베이스 스키마 항목의 역사적 정보를 활용하기 위해 데이터베이스 스키마 상호작용 그래프 인코더를 제안한다. 디코딩 단계에서는 서로 다른 보컬러리의 중요성을 가중치로 부여하고 SQL 토큰 예측을 수행하기 위해 게이트 메커니즘을 도입한다. 우리는 두 개의 대규모 복잡한 컨텍스트 의존적 교차 도메인 텍스트 - SQL 데이터셋인 SParC 와 CoSQL 벤치마크에서 모델을 평가하였다. 제안된 모델은 이전 최상위 모델보다 크게 우위를 점하며 두 데이터셋에서 새로운 최상위 결과를 달성하였다. 비교 및 아벨레이션 결과는 제안된 모델의 효과성과 데이터베이스 스키마 상호작용 그래프 인코더의 유용성을 입증한다.
Context-dependent text-to-SQL task has drawn much attention in recent years. Previous models on context-dependent text-to-SQL task only concentrate on utilizing historical user inputs. In this work, in addition to using encoders to capture historical information of user inputs, we propose a database schema interaction graph encoder to utilize historicalal information of database schema items. In decoding phase, we introduce a gate mechanism to weigh the importance of different vocabularies and then make the prediction of SQL tokens. We evaluate our model on the benchmark SParC and CoSQL datasets, which are two large complex context-dependent cross-domain text-to-SQL datasets. Our model outperforms previous state-of-the-art model by a large margin and achieves new state-of-the-art results on the two datasets. The comparison and ablation results demonstrate the efficacy of our model and the usefulness of the database schema interaction graph encoder.