paper-with-me

홈 › Papers

Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translation

2024-02-27 · Yuankai Fan, Zhenying He, Tonghui Ren, Can Huang, Yinan Jing, Kai Zhang, X. Sean Wang

The Natural Language Interface to Databases (NLIDB) empowers non-technical users with database access through intuitive natural language (NL) interactions. Advanced approaches, utilizing neural sequence-to-sequence models or large-scale language models, typically employ auto-regressive decoding to generate unique SQL queries sequentially. While these translation models have greatly improved the overall translation accuracy, surpassing 70% on NLIDB benchmarks, the use of auto-regressive decoding to generate single SQL queries may result in sub-optimal outputs, potentially leading to erroneous translations. In this paper, we propose Metasql, a unified generate-then-rank framework that can be flexibly incorporated with existing NLIDBs to consistently improve their translation accuracy. Metasql introduces query metadata to control the generation of better SQL query candidates and uses learning-to-rank algorithms to retrieve globally optimized queries. Specifically, Metasql first breaks down the meaning of the given NL query into a set of possible query metadata, representing the basic concepts of the semantics. These metadata are then used as language constraints to steer the underlying translation model toward generating a set of candidate SQL queries. Finally, Metasql ranks the candidates to identify the best matching one for the given NL query. Extensive experiments are performed to study Metasql on two public NLIDB benchmarks. The results show that the performance of the translation models can be effectively improved using Metasql.

📄 PDF Abstract BibTeX arXiv:2402.17144

Code (1)

Kaimary/MetaSQL 공식 구현 pytorch

Tasks

Learning-To-RankTranslation

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Team Xiaomi EV-AD VLA: Caption-Guided Retrieval System for Cross-Modal Drone Navigation -- Technical Report for IROS 2025 RoboSense Challenge Track 4

2025-10-03 · Lingfeng Zhang, Erjia Xiao, Yuchen Zhang, Haoxiang Fu 외 arxiv

Cross-modal drone navigation remains a challenging task in robotics, requiring efficient retrieval of relevant images from large-scale databases based on natural language descriptions. The RoboSense 2025 Track 4 challeng…

Drone navigationImage Retrieval

GRISP: Guided Recurrent IRI Selection over SPARQL Skeletons

2026-04-22 · Sebastian Walter, Hannah Bast arxiv

We present GRISP (Guided Recurrent IRI Selection over SPARQL Skeletons), a novel SPARQL-based question-answering method over knowledge graphs based on fine-tuning a small language model (SLM). Given a natural-language qu…

Knowledge Graphs

RAMQA: A Unified Framework for Retrieval-Augmented Multi-Modal Question Answering

2025-01-23 · Yang Bai, Christan Earl Grant, Daisy Zhe Wang

Multi-modal retrieval-augmented Question Answering (MRAQA), integrating text and images, has gained significant attention in information retrieval (IR) and natural language processing (NLP). Traditional ranking methods r…

DecoderInformation RetrievalLearning-To-RankMulti-Task Learning+3

Joint Generator-Ranker Learning for Natural Language Generation

2022-06-28 · Weizhou Shen, Yeyun Gong, Yelong Shen, Song Wang 외

Generate-then-rank is a widely used mechanism for text generation, where a generator produces multiple text candidates and a ranker chooses the best one among the text candidates. However, existing methods usually train …

Question GenerationQuestion-GenerationResponse GenerationText Generation

Generate, Filter, and Rank: Grammaticality Classification for Production-Ready NLG Systems

2019-04-05 · NAACL 2019 6 · Ashwini Challa, Kartikeya Upasani, Anusha Balakrishnan, Rajen Subba

Neural approaches to Natural Language Generation (NLG) have been promising for goal-oriented dialogue. One of the challenges of productionizing these approaches, however, is the ability to control response quality, and e…

ClassificationGeneral ClassificationGrammatical Error CorrectionText Generation