Auto-Fill: Learning to Predict Missing Values Accurately with Specialist Language Models

Yurong Liu, Yeye He, Haoyu Dong, Junjie Xing, Shi Han, Dongmei Zhang, Surajit ChaudhuriarXiv 2026

TL;DR

Auto-Fill is a high-precision, low-cost framework designed to predict missing values in tabular data by ensembling three specialized Small Language Models (SLMs) tailored for knowledge, text reasoning, and code generation. By utilizing a calibrated confidence mechanism, Auto-Fill achieves superior accuracy compared to frontier models like o3-pro and Gemini 3 Pro on data-cleaning benchmarks while operating at less than 1% of their inference cost.

What Problem Does This Paper Address?

Missing data is a pervasive issue, affecting up to 45% of real-world tables. While modern spreadsheet software leverages AI assistants to help users clean data, automating missing-value imputation with high precision remains a massive challenge.

State-of-the-art frontier LLMs show promise in understanding table contexts, but deploying them at scale across millions of spreadsheets is prohibitively expensive. Furthermore, vanilla LLMs are notoriously overconfident; they frequently hallucinate or generate false-positive predictions. In business-critical data workflows, a wrong suggestion is often worse than no suggestion at all because it contaminates downstream analytics. This paper tackles the challenge of achieving high-precision, low-cost tabular imputation with a reliable mechanism to abstain from predicting when uncertainty is high.

Methods

The authors observe that filling missing values requires three distinct capabilities: world knowledge, text-based reasoning, and code-based computation. Instead of forcing a single model to do it all, Auto-Fill trains three specialized SLMs (built on backbones like Qwen3-8B or GPT-4.1 mini) using a self-supervised "masking" pipeline on complete tables.

Auto-Fill Architecture Overview
  1. Knowledge Specialist ($M_K$): Optimized via direct Supervised Fine-Tuning (SFT) to fill in factual data (e.g., historical facts or specific formatting patterns). Its confidence is derived from the geometric mean of token-level log-probabilities.
  2. Reasoning Specialist ($M_R$): Trained via distillation from a teacher model (DeepSeek-R1) to handle complex, multi-step logic (e.g., deducing a team's rank based on intra-column patterns). To prevent post-hoc overconfidence, its confidence is calculated using a two-stage sampling procedure across independent reasoning paths.
  3. Coding Specialist ($M_C$): Trained to generate column-level Python code to resolve precise numerical or string relationships (e.g., calculating a percentage column from raw votes). Crucially, its confidence is computed via execution-based self-validation—checking how accurately the generated code reproduces the already visible, non-missing values in that column.

Calibrated Ensemble

Because these three specialists produce confidence scores through entirely different mechanisms (logprobs, verbalized probabilities, and execution accuracy), their raw scores are not directly comparable. Auto-Fill applies isotonic regression to map these disparate signals onto a unified probabilistic scale. At inference time, the system selects the prediction from the most confident specialist, provided it clears a user-defined precision threshold ($\tau$); otherwise, it safely abstains.

Datasets

The models were trained on a massive corpus sampled from public web tables, government statistics, and spreadsheet repositories:

  • Training Sources: Pub-XLS (467K spreadsheet tables), Pub-BI (12K business intelligence tables), Pub-Wiki (292K Wikipedia tables), Gov-CSV, Git-CSV, and Git-Parquet.

To evaluate generalizability, the authors compiled 11 benchmarks containing 2,200 real tables, split into:

  • In-Distribution (ID): Held-out tables from Pub-XLS, Gov-CSV, Pub-BI, Git-Parquet, and Pub-Wiki.
  • Out-of-Distribution (OOD): Entirely unseen domains, including proprietary enterprise data (Ent-CSV, Ent-XLS), general web tables (Pub-Web), and tables with explicit constraints: Arithmetic Relations (Rel-AR), String Transformations (Rel-ST), and Functional Dependencies (Rel-FD).

Key Insights and Ideas

  • The Multi-Mode Nature of Tables: Tabular data is heterogeneous. Predicting a missing cell might require knowing who won the 2014 Super Bowl ([Knowledge]), figuring out a ranking logic ([Reasoning]), or reverse-engineering a mathematical formula ([Coding]).
  • The Hybrid Model Penalty: Trying to train a single small model to handle all three modes natively results in "parameter interference." Specialized models focusing on a single capability consistently outperform a single hybrid model.
  • Chain-of-Thought Can Hurt Knowledge Retrieval: For purely factual lookups, forcing a model to generate a chain-of-thought trace actually degrades quality, as it introduces more opportunities for error accumulation and formatting mismatches.
  • Execution as the Ultimate Ground Truth: For programmatic columns, relying on a model's subjective self-assessment of its code quality is unreliable. Checking if the code actually works on the rest of the table provides an incredibly robust confidence signal.

Key Results

Auto-Fill successfully establishes a new quality-cost Pareto frontier for tabular data imputation.

Quality vs. Cost Pareto Frontier
  • Superior High-Precision Recall: Evaluated on Mean Recall @ Precision=0.9 ($R@P=0.9$), Auto-Fill-GPT achieved the highest overall score (0.66), outperforming massive frontier models like o3-pro (0.56), Gemini 3 Pro (0.38), and DeepSeek-R1 (0.36).
  • Massive Cost Reduction: Auto-Fill-Qwen (based on an 8B parameter model) is over 100× cheaper than o3-pro and 29× cheaper than Gemini 3 Pro per query, making large-scale spreadsheet deployment economically viable.
  • Near-Perfect Relational Performance: On deterministic datasets like Rel-AR and Rel-ST, the Coding Specialist's execution-backed validation allowed Auto-Fill to achieve near-perfect recall (0.99) with zero false positives.

Limitations and Future Work

  • Single-Cell Constraint: The current framework assumes only one cell is missing at a time per prediction pass. It does not yet handle the joint prediction of multiple, interdependent missing cells across a table.
  • Context Window Limits: Very large tables can exceed the context window of an SLM. While uniform row sub-sampling mitigates this with minimal quality loss, more sophisticated context pruning remains an open area of research.
  • Niche Fact Retrieval: Residual error analysis showed that many failures in the Knowledge Specialist were due to highly specific, long-tail facts. Augmenting $M_K$ with a targeted web or data-lake retrieval module could close this gap.

Summary updated

BibTeX
@misc{liu2026auto,
  author = {Yurong Liu and Yeye He and Haoyu Dong and Junjie Xing and Shi Han and Dongmei Zhang and Surajit Chaudhuri},
  title = {{Auto-Fill: Learning to Predict Missing Values Accurately with Specialist Language Models}},
  year = {2026},
  eprint = {2607.19847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.19847},
}
Figure