paper-with-me

홈 › Papers

MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL

2023-12-18 · Bing Wang, Changyu Ren, Jian Yang, Xinnian Liang, Jiaqi Bai, Linzheng Chai, Zhao Yan, Qian-Wen Zhang, Di Yin, Xing Sun, Zhoujun Li

Recent LLM-based Text-to-SQL methods usually suffer from significant performance degradation on "huge" databases and complex user questions that require multi-step reasoning. Moreover, most existing methods neglect the crucial significance of LLMs utilizing external tools and model collaboration. To address these challenges, we introduce MAC-SQL, a novel LLM-based multi-agent collaborative framework. Our framework comprises a core decomposer agent for Text-to-SQL generation with few-shot chain-of-thought reasoning, accompanied by two auxiliary agents that utilize external tools or models to acquire smaller sub-databases and refine erroneous SQL queries. The decomposer agent collaborates with auxiliary agents, which are activated as needed and can be expanded to accommodate new features or tools for effective Text-to-SQL parsing. In our framework, We initially leverage GPT-4 as the strong backbone LLM for all agent tasks to determine the upper bound of our framework. We then fine-tune an open-sourced instruction-followed model, SQL-Llama, by leveraging Code Llama 7B, to accomplish all tasks as GPT-4 does. Experiments show that SQL-Llama achieves a comparable execution accuracy of 43.94, compared to the baseline accuracy of 46.35 for vanilla GPT-4. At the time of writing, MAC-SQL+GPT-4 achieves an execution accuracy of 59.59 when evaluated on the BIRD benchmark, establishing a new state-of-the-art (SOTA) on its holdout test set (https://github.com/wbbeyourself/MAC-SQL).

📄 PDF Abstract BibTeX arXiv:2312.11242

Code (1)

wbbeyourself/mac-sql 공식 구현 pytorch

Tasks

SQL ParsingText to SQLText-To-SQL

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Position-Wise Feed-Forward Layer 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

Talk Structurally, Act Hierarchically: A Collaborative Framework for LLM Multi-Agent Systems

2025-02-16 · Zhao Wang, Sota Moriyama, Wei-Yao Wang, Briti Gangopadhyay 외

Recent advancements in LLM-based multi-agent (LLM-MA) systems have shown promise, yet significant challenges remain in managing communication and refinement when agents collaborate on complex tasks. In this paper, we pro…

Open-Domain Question AnsweringQuestion AnsweringText Generation

Visual-Linguistic Agent: Towards Collaborative Contextual Object Reasoning

2024-11-15 · Jingru Yang, Huan Yu, Yang Jingxin, Chentianye Xu 외

Multimodal Large Language Models (MLLMs) excel at descriptive tasks within images but often struggle with precise object localization, a critical element for reliable visual interpretation. In contrast, traditional objec…

DescriptiveObjectobject-detectionObject Detection+3

MASCOT: Towards Multi-Agent Socio-Collaborative Companion Systems

2026-01-20 · Yiyang Wang, Yiqiao Jin, Alex Cabral, Josiah Hester arxiv

Multi-agent systems (MAS) are emerging as promising socio-collaborative companions for emotional and cognitive support. However, existing systems frequently suffer from persona collapse, where agents revert to generic, h…

Collaborative State Fusion in Partially Known Multi-agent Environments

2024-10-19 · Tianlong Zhou, Jun Shang, Weixiong Rao

In this paper, we study the collaborative state fusion problem in a multi-agent environment, where mobile agents collaborate to track movable targets. Due to the limited sensing range and potential errors of on-board sen…

State Estimation

Spatio-Temporal Domain Awareness for Multi-Agent Collaborative Perception

2023-07-26 · ICCV 2023 1 · Kun Yang, Dingkang Yang, Jingyu Zhang, Mingcheng Li 외

Multi-agent collaborative perception as a potential application for vehicle-to-everything communication could significantly improve the perception performance of autonomous vehicles over single-agent perception. However,…

3D Object DetectionAutonomous Vehiclesobject-detectionObject Detection