TLDR: This survey explores how Language Models (LMs), including Large Language Models (LLMs), are transforming tabular data preparation across its four core phases: data acquisition, integration, cleaning, and transformation. It details the “why” (LM capabilities matching task demands) and “how” (LM-centric strategies like prompt engineering and fine-tuning, and LM-in-the-loop strategies like LM-as-encoder/decoder), highlighting key advancements, challenges like hallucination and computational cost, and future research directions for more effective and automated data workflows.
Data is the lifeblood of modern decision-making and artificial intelligence. However, raw data is often messy, incomplete, and inconsistent, leading to a common problem known as “garbage in, garbage out.” This means that even the most sophisticated analytical models will produce flawed results if fed with poor quality data. Data preparation, the process of transforming raw, heterogeneous tables into a clean, integrated, and analysis-ready form, is therefore a critical step. In fact, data scientists often spend up to 80% of their time on this crucial task.
Traditionally, data preparation relied on rule-based systems or simpler machine learning models. While effective to a degree, these methods often struggled to understand the complex relationships within tables and adapt to diverse tasks. They were typically task-specific and lacked the flexibility needed for real-world data challenges.
Enter Language Models (LMs), especially Large Language Models (LLMs). These powerful AI models, known for their deep understanding of human language, are now offering exciting new opportunities to automate and enhance tabular data preparation. A recent survey, titled Empowering Tabular Data Preparation with Language Models: Why and How?, systematically explores how LMs are reshaping this field, focusing on four core phases: data acquisition, integration, cleaning, and transformation.
The “Why”: How LMs Match Task Demands
The core strength of LMs lies in their ability to understand and generate human-like text. This semantic understanding is incredibly valuable for tabular data, which, despite its structured nature, often contains implicit meanings and relationships. LMs can interpret column headers, cell values, and even natural language queries to make sense of the data, a capability that traditional methods often lack.
The “How”: LMs Across the Data Preparation Pipeline
The survey breaks down the application of LMs into four key phases:
Data Acquisition: Finding the Right Data
This initial phase is about discovering relevant tables from vast data repositories. LMs are primarily used here as “encoders,” converting tables and queries into numerical representations that capture their meaning. This allows for efficient similarity searches to find tables that are semantically related to a user’s natural language query, or to identify tables that can be joined or combined with existing data. Methods often involve encoding data and then searching through an index, or re-ranking a smaller set of potential matches for higher precision.
Data Integration: Combining and Aligning Data
Once data is acquired, it needs to be combined and aligned. This involves tasks like schema matching (aligning column names from different tables) and entity matching (identifying records that refer to the same real-world entity, like two different entries for “New York City”). LMs are often employed as “re-rankers” or “matchers.” This can be done through “prompt engineering,” where specific instructions are given to the LM to guide its matching decisions, or by “fine-tuning” the LM on specific matching examples to improve its accuracy for particular domains.
Data Cleaning: Fixing Errors and Inconsistencies
Data cleaning is crucial for improving data quality by detecting and rectifying errors or filling in missing values. LMs are particularly well-suited for this generative task. For error detection, LMs can be prompted to identify erroneous cells or even generate rules for finding errors. For data repair, LMs can suggest corrections for detected errors. For data imputation, they can infer and fill in missing data points. Both prompt-based methods and “LM-in-the-loop” strategies (where LMs work in conjunction with other models or rules) are actively being explored in this area.
Data Transformation: Formatting for Analysis
The final phase involves reformatting and encoding data to meet the requirements of downstream analytical tasks. LMs excel here due to their strong instruction-following abilities. They can perform format transformations, restructuring records to a specified schema, or semantic transformations, mapping tabular content into structured knowledge like functions or rules. Advanced methods even involve LMs generating executable code (like Python or SQL) to perform these transformations automatically.
Enabling Strategies: LM-Centric vs. LM-in-the-Loop
The survey highlights two main strategies for employing LMs: “LM-centric” and “LM-in-the-loop.” LM-centric strategies use the model directly, either by crafting specific prompts (prompt engineering) or by further training the model on task-specific data (fine-tuning). LM-in-the-loop strategies integrate LMs with other components, where LMs might act as encoders to create semantic representations or as decoders to generate textual outputs, combining their strengths with other systems.
Challenges and Future Directions
Despite the immense potential, the field is still in its early stages and faces several challenges. One major concern is the “effectiveness and robustness” of LM-enabled methods, as LMs can sometimes produce unfaithful or logically inconsistent outputs, a phenomenon known as hallucination. Researchers are addressing this by combining LMs with external retrieval systems or structured knowledge sources to provide factual grounding.
Another significant challenge is “cost and scalability.” Large Language Models require substantial computational resources and have limitations on input size. Solutions include using smaller LMs for initial filtering or distilling the knowledge of larger LMs into more efficient, smaller models.
Future research aims to improve the “interactions across different phases” of data preparation, as these steps are often interconnected and could benefit from joint modeling rather than being treated as independent modules. The development of “agentic and automatic frameworks” that can plan, reason, and execute multi-step data preparation workflows autonomously is also a promising, albeit challenging, direction, given the inherent tendency of LMs to hallucinate.
Also Read:
- Advancing Medical AI: A Deep Dive into Reasoning Capabilities of Large Language Models
- AI Agents Reshaping Software Development
Conclusion
Language Models are fundamentally changing how tabular data is prepared, offering flexible and effective solutions across all stages. By leveraging their semantic understanding and generative capabilities, LMs are paving the way for more automated, efficient, and high-quality data preparation workflows, ultimately enhancing the usability of data for downstream tasks.


