Introduction
Missing data is a persistent challenge in data science, particularly within "text-rich" tables. These datasets, common in e-commerce and real estate, blend structured fields with unstructured text like descriptions and reviews. While Large Language Models (LLMs) excel at semantic understanding, existing LLM-based imputation methods typically process tables "globally." This approach suffers from scalability issues, noise sensitivity, and a lack of transparency.
The LDI Framework
To overcome these bottlenecks, the authors introduce Localized Data Imputation (LDI). LDI shifts the paradigm from global processing to localized reasoning by intelligently selecting only the most relevant data for each imputation task. The framework operates through a three-phase pipeline:
- Attribute Selection: LDI identifies attributes with a (p, q)-approximate dependency on the target. For instance, it might detect that specific area codes in a
Phonecolumn consistently map to a particularCityusing a Longest Common Substring (LCS) approach. - Tuple Selection: The system searches for rows that are both similar to the target row and diverse in their values. This provides the LLM with high-quality "few-shot" examples while avoiding model bias.
- LLM Imputation: Finally, the LLM is prompted with a concise context containing only the selected attributes and relevant example tuples.
Key Insights
LDI demonstrates that in data imputation, "less is more." By filtering out irrelevant data, the LLM's performance actually improves. In tests on the Zomato dataset, LDI reduced the input character count by 95.7% while achieving higher accuracy than global models that were forced to process the entire table.
This efficiency also empowers smaller models. Because LDI provides clean, high-signal input, smaller open-source models (e.g., Llama 3.2 3B) can outperform much larger models that are forced to sift through noisy contexts. Furthermore, LDI offers "explainability by design" by providing an audit trail of the specific columns and rows that influenced a prediction.
Evaluation and Results
The framework was evaluated across four diverse datasets: Buy (retail), Restaurant, Zomato (high dimensionality), and Phone (large-scale). Key findings include:
- Superior Accuracy: LDI consistently outperformed state-of-the-art baselines like IPM and FMW, achieving up to 8% higher accuracy.
- Robustness: The system maintained high performance even with 50% missing data, effectively uncovering dependencies from limited samples.
- Efficiency: The attribute selection phase is computationally negligible, processing hundreds of thousands of rows in fractions of a second.
Conclusion and Future Work
LDI represents a significant step forward in making LLM-based data cleaning scalable and interpretable. While currently focused on textual dependencies, future work may expand LDI to explicitly model numerical arithmetic (e.g., calculating totals) and explore conditional dependencies where relationships vary based on specific context.
Summary updated