paper-with-me

홈 › Papers

Effectiveness of Prompt Optimization in NL2SQL Systems

2025-05-26 · Sairam Gurajada, Eser Kandogan, Sajjadur Rahman

NL2SQL approaches have greatly benefited from the impressive capabilities of large language models (LLMs). In particular, bootstrapping an NL2SQL system for a specific domain can be as simple as instructing an LLM with sufficient contextual information, such as schema details and translation demonstrations. However, building an accurate system still requires the rigorous task of selecting the right context for each query-including identifying relevant schema elements, cell values, and suitable exemplars that help the LLM understand domain-specific nuances. Retrieval-based methods have become the go-to approach for identifying such context. While effective, these methods introduce additional inference-time costs due to the retrieval process. In this paper, we argue that production scenarios demand high-precision, high-performance NL2SQL systems, rather than simply high-quality SQL generation, which is the focus of most current NL2SQL approaches. In such scenarios, the careful selection of a static set of exemplars-capturing the intricacies of the query log, target database, SQL constructs, and execution latencies-plays a more crucial role than exemplar selection based solely on similarity. The key challenge, however, lies in identifying a representative set of exemplars for a given production setting. To this end, we propose a prompt optimization framework that not only addresses the high-precision requirement but also optimizes the performance of the generated SQL through multi-objective optimization. Preliminary empirical analysis demonstrates the effectiveness of the proposed framework.

📄 PDF Abstract BibTeX arXiv:2505.20591

Code (0)

등록된 구현이 없습니다.

Tasks

Retrieval

Methods 이 논문이 사용한 방법론

Focus 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Optimizing LLM-Based Multi-Agent System with Textual Feedback: A Case Study on Software Development

2025-05-22 · Ming Shen, Raphael Shu, Anurag Pratik, James Gung 외

We have seen remarkable progress in large language models (LLMs) empowered multi-agent systems solving complex tasks necessitating cooperation among experts with diverse skills. However, optimizing LLM-based multi-agent …

Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspective

2025-08-02 · Jingzhi Gong, Rafail Giavrimis, Paul Brookes, Vardan Voskanyan 외 arxiv

There is a growing interest in leveraging multiple large language models (LLMs) for automated code optimization. However, industrial platforms deploying multiple LLMs face a critical challenge: prompts optimized for one …

Prompt Engineering

DREAM: Scalable Red Teaming for Text-to-Image Generative Systems via Distribution Modeling

2025-07-22 · Boheng Li, Junjie Wang, Yiming Li, Zhiyang Hu 외 arxiv

Despite the integration of safety alignment and external filters, text-to-image (T2I) generative systems are still susceptible to producing harmful content, such as sexual or violent imagery. This raises serious concerns…

Red Teaming

TIPO: Text to Image with Text Presampling for Prompt Optimization

2024-11-12 · Shih-Ying Yeh, Sang-Hyun Park, Giyeong Oh, Min Song 외

TIPO (Text to Image with text pre-sampling for Prompt Optimization) is an innovative framework designed to enhance text-to-image (T2I) generation by language model (LM) for automatic prompt engineering. By refining and e…

Image GenerationLanguage ModelingLanguage ModellingPrompt Engineering+1

Evolutionary Prompt Design for LLM-Based Post-ASR Error Correction

2024-07-23 · Rithik Sachdev, Zhong-Qiu Wang, Chao-Han Huck Yang

Building upon the strength of modern large language models (LLMs), generative error correction (GEC) has emerged as a promising paradigm that can elevate the performance of modern automatic speech recognition (ASR) syste…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)In-Context Learningspeech-recognition+1