Design quality checks for spreadsheet data used to train an LLM
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Microsoft's technical phone screen, last asked Mar 2026. It tests data quality, llm training and evaluation.
You are building training and evaluation data from spreadsheets for a language model that answers questions about tables, writes formulas, or transforms sheets. Design the checks that catch bad examples before they reach training, decide whether the pretrained model even needs fine-tuning, and show how you measure that the data got better.
Requirements
- Functional: validate each example's structure (schema, cell types, formulas that parse and evaluate); check content correctness (the target answer or formula matches the sheet); find duplicates and near-duplicates; prevent leakage between train, validation and test; check label quality.
- Non-functional: runs over large datasets automatically; cheap checks first, expensive ones (execution, model judges, human review) on samples; results reported per source and per check.
Clarifying questions
- What is the task: question answering over tables, formula generation, cleaning, or something else?
- Where do examples come from: human annotators, synthetic generation, scraped workbooks?
- What does a single example contain (the sheet, the instruction, the target)?
- Is there an existing benchmark we must not leak into?
- What is the budget for human review?
What a strong answer covers
- Structural checks: the sheet parses, ranges in the instruction exist, cell types are consistent, formulas are syntactically valid.
- Semantic checks: execute target formulas and compare with expected values; recompute answers from the sheet; flag targets that do not depend on the sheet at all.
- Deduplication on normalized sheets and instructions, and near-duplicate detection, done before splitting; splits by source workbook or template, not by row, to stop leakage.
- Label quality: agreement between annotators, model-as-judge with spot checks, and targeted human review of disagreements.
- Deciding on fine-tuning: run the pretrained model (with good prompting) on a clean evaluation set first; fine-tune only if there is a real gap.
- Measuring improvement: train on data before and after filtering and compare on a fixed held-out set, plus per-check rejection rates over time.
Follow-ups
- A check rejects 40% of one vendor's data. How do you decide whether the check or the data is wrong?
- How do you check examples where several answers are correct?
- How do you keep synthetic examples from all looking alike?
- The model does well on the test set but poorly for users. What do you look at first?
Where it's asked
- Microsoft · Technical phone screen · Last asked Mar 202660 min · One technical round
What it tests
data quality · llm training · evaluation
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
