paper-with-me

홈 › Papers

ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thought

2023-10-26 · Hanchong Zhang, Ruisheng Cao, Lu Chen, Hongshen Xu, Kai Yu

Recently Large Language Models (LLMs) have been proven to have strong abilities in various domains and tasks. We study the problem of prompt designing in the text-to-SQL task and attempt to improve the LLMs' reasoning ability when generating SQL queries. Besides the trivial few-shot in-context learning setting, we design our chain-of-thought (CoT) prompt with a similar method to schema linking. We provide a method named ACT-SQL to automatically generate auto-CoT exemplars and thus the whole process doesn't need manual labeling. Our approach is cost-saving since we only use the LLMs' API call once when generating one SQL query. Furthermore, we extend our in-context learning method to the multi-turn text-to-SQL task. The experiment results show that the LLMs' performance can benefit from our ACT-SQL approach. Our approach achieves SOTA performance on the Spider dev set among existing in-context learning approaches.

📄 PDF Abstract BibTeX arXiv:2310.17342

Code (1)

x-lance/text2sql-gpt 공식 구현

Tasks

In-Context LearningText to SQLText-To-SQL

Methods 이 논문이 사용한 방법론

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

Similar Papers 제목 키워드 기반

ACIL: Auto Chain of Thoughts for In-Context Learning

2026-05-16 · Rui Chu arxiv

Recent advances in large language models (LLMs) have shown that Chain-of-Thought (CoT) reasoning can substantially improve performance on complex reasoning tasks. At the same time, In-Context Learning (ICL) has become an…

Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thought

2022-10-03 · Abulhair Saparov, He He

Large language models (LLMs) have shown remarkable reasoning capabilities given chain-of-thought prompts (examples with intermediate reasoning steps). Existing benchmarks measure reasoning ability indirectly, by evaluati…

Mathematical ReasoningQuestion Answeringvalid

Logic-of-Thought: Injecting Logic into Contexts for Full Reasoning in Large Language Models

2024-09-26 · Tongxuan Liu, Wenjiang Xu, Weizhe Huang, Xingyu Wang 외

Large Language Models (LLMs) have demonstrated remarkable capabilities across various tasks but their performance in complex logical reasoning tasks remains unsatisfactory. Although some prompting methods, such as Chain-…

Logical Reasoning

Reassessing the Role of Chain-of-Thought in Sentiment Analysis: Insights and Limitations

2025-01-15 · Kaiyuan Zheng, Qinghua Zhao, Lei LI

The relationship between language and thought remains an unresolved philosophical issue. Existing viewpoints can be broadly categorized into two schools: one asserting their independence, and another arguing that languag…

counterfactualSentiment Analysis

Long-Context Reasoning Through Proxy-Based Chain-of-Thought Tuning

2026-04-06 · Miao Li, Irina Saparina, Alexander Gurung, Mirella Lapata arxiv

Recent large language models support inputs of up to 10 million tokens, yet they perform poorly on long-context tasks that require complex reasoning. Such tasks can be solved using only a subset of the input -- a proxy c…

Reinforcement Learning