Fine-Tuning Large Language Models for Text-to-SQL Tasks in Agricultural Census Anomaly Detection

Detecting anomalies from collected data is essential in producing high-quality data for further analysis, including agricultural census data. This research aimed to improve the efficiency of data anomaly checking by utilizing the CodeLlama- 7B Large Language Model (LLM) to translate human questions into SQL queries. Spider and WikiSQL datasets are used in the first fine-tuning phase for translating ability to general queries. The agricultural datasets are constructed using questions and queries in agricultural census database schemas and then used in the second fine-tuning phase. The LoRA method is implemented in the fine-tuning process. This fine-tuning enhanced the model's performance on the SQL-Eval framework, achieving an Average Correct Rate of 69.6%. Combining this approach with Retrieval-Augmented Generation (RAG) and prompt engineering with Chain of Thought (CoT) improvedthe Average Correct Rate to 77.8%.

Authors

Institutions

Publication Details

Published
2024-09-12
DOI
https://doi.org/10.1109/iceltics62730.2024.10776457
Citations
1
Primary Topic
Data-Driven Disease Surveillance
Type
article
Field-Weighted Citation Impact
0.39
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Fine-Tuning Large Language Models for Text-to-SQL Tasks in Agricultural Census Anomaly Detection

Setia Pramana, Lya Hulliyyatus Suadaa, Gede Putra Nugraha
1 citations
Data-Driven Disease Surveillance
0.39
article

Fine-Tuning Large Language Models for Text-to-SQL Tasks in Agricultural Census Anomaly Detection

Setia Pramana, Lya Hulliyyatus Suadaa, Gede Putra Nugraha
article en
1 citations

Abstract

Detecting anomalies from collected data is essential in producing high-quality data for further analysis, including agricultural census data. This research aimed to improve the efficiency of data anomaly checking by utilizing the CodeLlama- 7B Large Language Model (LLM) to translate human questions into SQL queries. Spider and WikiSQL datasets are used in the first fine-tuning phase for translating ability to general queries. The agricultural datasets are constructed using questions and queries in agricultural census database schemas and then used in the second fine-tuning phase. The LoRA method is implemented in the fine-tuning process. This fine-tuning enhanced the model's performance on the SQL-Eval framework, achieving an Average Correct Rate of 69.6%. Combining this approach with Retrieval-Augmented Generation (RAG) and prompt engineering with Chain of Thought (CoT) improvedthe Average Correct Rate to 77.8%.

Badan Pusat Statistik (ID)
Zero hunger
Openalex Percentile: Top 31%
Data-Driven Disease Surveillance
0.39
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Fine-Tuning Large Language Models for Text-to-SQL Tasks in Agricultural Census Anomaly Detection — Setia Pramana, Lya Hulliyyatus Suadaa, et al. · (2024) | TGRS Research Map | TGRS