Automatic Data Transformation Using Large Language Model: An Experimental Study on Building Energy Data
Not on the map. Why?
Abstract (arXiv)
Existing approaches to automatic data transformation are insufficient to meet the requirements in many real-world scenarios, such as the building sector. First, there is no convenient interface for domain experts to provide domain knowledge easily. Second, they require significant training data collection overheads. Third, the accuracy suffers from complicated schema changes. To bridge this gap, we present a novel approach that leverages the unique capabilities of large language models (LLMs) in coding, complex reasoning, and zero-shot learning to generate SQL code that transforms the source datasets into the target datasets. We demonstrate the viability of this approach by designing an LLM-based framework, termed SQLMorpher, which comprises a prompt generator that integrates the initial prompt with optional domain knowledge and historical patterns in external databases. It also implements an iterative prompt optimization mechanism that automatically improves the prompt based on flaw detection. The key contributions of this work include (1) pioneering an end-to-end LLM-based solution for data transformation, (2) developing a benchmark dataset of 105 real-world building energy data transformation problems, and (3) conducting an extensive empirical evaluation where our approach achieved 96% accuracy in all 105 problems. SQLMorpher demonstrates the effectiveness of utilizing LLMs in complex, domain-specific challenges, highlighting the potential of their potential to drive sustainable solutions.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 5 Sep 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 3.
8 papers.
- 2024Data-driven Discovery with Large Generative Modelscited by 34
- 2025MMTU: A Massive Multi-Task Table Understanding and Reasoning Benchmarkcited by 14
- 2024IDNet: A Novel Dataset for Identity Document Analysis and Fraud Detectioncited by 6
- 2024Data Analysis in the Era of Generative AIcited by 6
- 2025Empowering Tabular Data Preparation with Language Models: Why and How?cited by 4
- 2023Opportunities and Challenges of Applying Large Language Models in Building Energy Efficiency and Decarbonization Studies: An Exploratory Overviewcited by 1
- 2025MontePrep: Monte-Carlo-Driven Automatic Data Preparation without Target Data Instancescited by 1
- 2024The Role of Accuracy and Validation Effectiveness in Conversational Business Analyticscited by 0
- 2025MontePrep: Monte-Carlo-Driven Automatic Data Preparation without Target Data Instances22 Sep 2025
- 2025Empowering Tabular Data Preparation with Language Models: Why and How?3 Aug 2025
- 2025MMTU: A Massive Multi-Task Table Understanding and Reasoning Benchmark5 Jun 2025
- 2024The Role of Accuracy and Validation Effectiveness in Conversational Business Analytics18 Nov 2024
- 2024Data Analysis in the Era of Generative AI27 Sep 2024
- 2024IDNet: A Novel Dataset for Identity Document Analysis and Fraud Detection3 Aug 2024
- 2024Data-driven Discovery with Large Generative Models21 Feb 2024
- 2023Opportunities and Challenges of Applying Large Language Models in Building Energy Efficiency and Decarbonization Studies: An Exploratory Overview18 Dec 2023