paper-with-me

홈 › Papers

Semantic Parsing for Complex Data Retrieval: Targeting Query Plans vs. SQL for No-Code Access to Relational Databases

2023-12-22 · Ben Eyal, Amir Bachar, Ophir Haroche, Michael Elhadad

Large Language Models (LLMs) have spurred progress in text-to-SQL, the task of generating SQL queries from natural language questions based on a given database schema. Despite the declarative nature of SQL, it continues to be a complex programming language. In this paper, we investigate the potential of an alternative query language with simpler syntax and modular specification of complex queries. The purpose is to create a query language that can be learned more easily by modern neural semantic parsing architectures while also enabling non-programmers to better assess the validity of the query plans produced by an interactive query plan assistant. The proposed alternative query language is called Query Plan Language (QPL). It is designed to be modular and can be translated into a restricted form of SQL Common Table Expressions (CTEs). The aim of QPL is to make complex data retrieval accessible to non-programmers by allowing users to express their questions in natural language while also providing an easier-to-verify target language. The paper demonstrates how neural LLMs can benefit from QPL's modularity to generate complex query plans in a compositional manner. This involves a question decomposition strategy and a planning stage. We conduct experiments on a version of the Spider text-to-SQL dataset that has been converted to QPL. The hierarchical structure of QPL programs enables us to measure query complexity naturally. Based on this assessment, we identify the low accuracy of existing text-to-SQL systems on complex compositional queries. We present ways to address the challenge of complex queries in an iterative, user-controlled manner, using fine-tuned LLMs and a variety of prompting strategies in a compositional manner.

📄 PDF Abstract BibTeX arXiv:2312.14798

Code (0)

등록된 구현이 없습니다.

Tasks

RetrievalSemantic ParsingText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

Retrieval-Augmented Semantic Parsing: Using Large Language Models to Improve Generalization

2024-12-13 · Xiao Zhang, Qianru Meng, Johan Bos

Open-domain semantic parsing remains a challenging task, as models often rely on heuristics and struggle to handle unseen concepts. In this paper, we investigate the potential of large language models (LLMs) for this tas…

DecoderRetrievalSemantic Parsing

Few-Shot Semantic Parsing with Language Models Trained On Code

2022-01-16 · ACL ARR January 2022 1 · Anonymous

Large language models can perform semantic parsing with little training data, when prompted with in-context examples. It has been shown that this can be improved by formulating the problem as paraphrasing into canonical …

Semantic Parsing

Semantic Decomposition of Question and SQL for Text-to-SQL Parsing

2023-10-20 · Ben Eyal, Amir Bachar, Ophir Haroche, Moran Mahabi 외

Text-to-SQL semantic parsing faces challenges in generalizing to cross-domain and complex queries. Recent research has employed a question decomposition strategy to enhance the parsing of complex SQL queries. However, th…

RetrievalSemantic ParsingSQL ParsingText to SQL+1

Towards Compositionally Generalizable Semantic Parsing in Large Language Models: A Survey

2024-04-15 · Amogh Mannekote

Compositional generalization is the ability of a model to generalize to complex, previously unseen types of combinations of entities from just having seen the primitives. This type of generalization is particularly relev…

Information RetrievalRetrievalSemantic ParsingSQL Parsing+2

RETRONLU: Retrieval Augmented Task-Oriented Semantic Parsing

2021-09-21 · NLP4ConvAI (ACL) 2022 5 · Vivek Gupta, Akshat Shrivastava, Adithya Sagar, Armen Aghajanyan 외

While large pre-trained language models accumulate a lot of knowledge in their parameters, it has been demonstrated that augmenting it with non-parametric retrieval-based memory has a number of benefits from accuracy imp…

Question AnsweringRetrievalSemantic Parsing