SketchFill: Sketch-Guided Code Generation for Imputing Derived Missing Values

๐Ÿ“… 2024-12-26
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Numerical missing value imputation in tabular data requires complex arithmetic computations and modeling of cross-row/column relationshipsโ€”a challenge inadequately addressed by existing methods. Method: This paper proposes a sketch-guided large language model (LLM) code generation paradigm that reformulates imputation as executable formula synthesis. It introduces a structured symbolic sketch prompting mechanism that explicitly encodes row/column mathematical dependencies and domain-specific constraints, overcoming the limitations of conventional chain-of-thought (CoT) reasoning in higher-order tabular inference. The approach integrates table semantic parsing, dynamic context distillation, and LLM-based program synthesis. Contribution/Results: Evaluated under derived missingness scenarios, the method achieves a 56.2% accuracy improvement over CoT and a 78.8% gain over MetaGPT, establishing new state-of-the-art performance for numerical imputation.

Technology Category

Application Category

๐Ÿ“ Abstract
Missing value is a critical issue in data science, significantly impacting the reliability of analyses and predictions. Missing value imputation (MVI) is a longstanding problem because it highly relies on domain knowledge. Large language models (LLMs) have emerged as a promising tool for data cleaning, including MVI for tabular data, offering advanced capabilities for understanding and generating content. However, despite their promise, existing LLM techniques such as in-context learning and Chain-of-Thought (CoT) often fall short in guiding LLMs to perform complex reasoning for MVI, particularly when imputing derived missing values, which require mathematical formulas and data relationships across rows and columns. This gap underscores the need for further advancements in LLM methodologies to enhance their reasoning capabilities for more reliable imputation outcomes. To fill this gap, we propose SketchFill, a novel sketch-based method to guide LLMs in generating accurate formulas to impute missing numerical values. Our experimental results demonstrate that SketchFill significantly outperforms state-of-the-art methods, achieving 56.2% higher accuracy than CoT-based methods and 78.8% higher accuracy than MetaGPT. This sets a new standard for automated data cleaning and advances the field of MVI for numerical values.
Problem

Research questions and friction points this paper is trying to address.

Large Language Models
Data Analysis
Missing Value Imputation
Innovation

Methods, ideas, or system contributions that make the work stand out.

SketchFill
Data Imputation
Language Models
๐Ÿ”Ž Similar Papers
No similar papers found.