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.
StraGo: Harnessing Strategic Guidance for Prompt Optimization
Institute of Software, CAS(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Microsoft(微软公司);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Models
Faculty of Electronic and Information Engineering, Xi’an Jiaotong University(西安交通大学电子与信息工程学院);Queen Mary University of London(伦敦玛丽女王大学);University of Chicago(芝加哥大学)
Rethinking Prompt Optimizers: From Prompt Merits to Optimization
School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore(南洋理工大学电子与电气工程学院);Home Team Science and Technology Agency, Singapore(新加坡科技局)
promptolution: A Unified, Modular Framework for Prompt Optimization
ELLIS Institute(ELLIS研究所);University of Freiburg(弗赖堡大学);LMU Munich(慕尼黑大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Technical University of Munich(慕尼黑技术大学);TU Dortmund University(多特蒙德技术大学);Lamarr Institute for Machine Learning and Artificial Intelligence(Lamarr机器学习与人工智能研究所)
University of Science and Technology of China(中国科学技术大学);National University of Singapore(新加坡国立大学);Institute of Dataspace(天空间研究院);AtomEcho Inc.(AtomEcho公司);Academy of Cyber(网络研究院)
PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization
UC San Diego(加州大学圣地亚哥分校);Georgia Institute of Technology(佐治亚理工学院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Microsoft Research(微软研究院);Carnegie Mellon University(卡内基梅隆大学)
提出 PromptAgent,将提示词优化建模为基于 Monte Carlo tree search 的战略规划,通过错误反思与反馈迭代搜索专家级提示词,并在 12 项任务中显著优于现有基线。
Institute of Software, CAS(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Microsoft(微软公司);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
SIPDO: Closed-Loop Prompt Optimization via Synthetic Data Feedback
University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Hong Kong University of Science and Technology(香港科学与技术大学);University of South Florida(佛罗里达州立大学)
A Toolbox for Improving Evolutionary Prompt Search
Institute for Applied Artificial Intelligence (IAAI), Stuttgart Media University(应用人工智能研究所(IAAI)、斯图加特媒体大学);Institute for Natural Language Processing (IMS), University of Stuttgart(自然语言处理研究所(IMS)、斯图加特大学)
MOPrompt: Multi-objective Semantic Evolution for Prompt Optimization
Computing Department, Universidade Federal de Ouro Preto(联邦大学奥鲁普里托 computing 部门);Federal Institute of Minas Gerais(巴西矿业高等学院);Postgraduate Program in Computer Science, Federal University of Ouro Preto(联邦大学奥鲁普里托 计算科学研究生项目)
DLPO: Towards a Robust, Efficient, and Generalizable Prompt Optimization Framework from a Deep-Learning Perspective
Research Center for Social Computing and Interactive Robotics(社会计算与交互机器人研究中心);Harbin Institute of Technology(哈尔滨工业大学);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院);Fudan University(复旦大学)
iPOE: Interpretable Prompt Optimization via Explanations
Fundamentals of Natural Language Processing, University of Bamberg, Germany(自然语言处理基础,巴姆堡大学,德国);Leibniz-Institut für Psychologie (ZPID), Trier, Germany(莱比锡心理学研究所(ZPID),特里尔,德国)
Model Performance-Guided Evaluation Data Selection for Effective Prompt Optimization
Centre for Software Excellence, Huawei, Canada(华为加拿大软件卓越中心);Department of Computer Science, University of Manitoba, Canada(曼尼托巴大学计算机科学系);School of Computing, Queen’s University, Canada(皇后大学计算学院)