Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Indeed Engineering 8 min read Research mediumAdept

Calibrating LLM-Based Population Estimates with Human Validation

The share of records an LLM classifies as positive is only an apparent prevalence. Sensitivity and specificity estimated from a small human-validated sample can correct it with the Rogan–Gladen estimator, and a delta-method variance gives a confidence interval. Simulations show the correction becomes unstable as Se+Sp−1 approaches zero, with error growing roughly as 1/D, so weak classifiers need much more validation data. In an Indeed job-matching opportunity-sizing study, about 100 human labels (Se 73.5%, Sp 77.8%) moved apparent coverage of 56.4% to a corrected 66.6% (95% CI 47.9–85.3%), which informed which investment to prioritize.

Assumes: sensitivity and specificitybinomial confidence intervalsLLM classification

Related posts

  • Tuning Image Classifiers using Human-In-The-Loop

    Zalando Engineering hardMaster

    AutoThreshold is an Expectation-Maximization procedure that re-tunes an image classifier's class-confidence threshold when product photos drift out of distribution and no labelled validation set exists. Predictions are sorted by confidence. Each iteration, human annotators label a window of m images centred on the current threshold estimate, starting from 1. The threshold is then re-estimated by maximizing a metric such as f-beta on those annotations, repeating until it converges. For a leopard-print classifier, the estimated threshold lands just before negatives start appearing among positives, as confirmed by cumulative-annotation slope plots. Only a small number of labels is needed, and those labels also seed a new training set.

  • Aligning LLM-as-a-Judge with Human Preferences

    LangChain easyNovice

    LangSmith evaluators now store human corrections to LLM-as-a-Judge scores as few-shot examples, optionally with explanations, and inject them into the judge prompt on later runs so the evaluator aligns with team preferences without manual prompt engineering. LLM judges work because they can see information the generator lacked, such as reference answers, and because judging is easier than generating. Common uses are detecting RAG hallucinations, RAG correctness and toxic outputs, in both online and offline evaluation. The design draws on few-shot learning and Shreya Shankar's Berkeley paper "Who Validates the Validators?".

  • Teaching Sidekick to say no: automated data curation with LLM judge consensus

    Shopify Engineering mediumAdept

    Production training data for Shopify's Sidekick segmentation skill contained only successful queries, so the fine-tuned model never learned to refuse impossible requests and instead generated queries returning zero results. Naively merging a small human-annotated refusal dataset (~1,200 examples from Toloka) with the production corpus produced contradictory labels, so the team used that seed to calibrate four frontier LLM judges. Labels are accepted only on unanimous agreement on both verdict and reasoning, using a mutually exclusive taxonomy: solvable with more context, missing capability, wrong skill, or ambiguous. The curated data raised the segmentation pass rate from 0.762 (naive merge) to 0.798, with 86.3% refusal accuracy at a 4.6% false positive rate and judge kappa above 0.75. The pipeline now runs as a flywheel that feeds new production traffic back into training.

  • Evaluating alignment of behavioral dispositions in LLMs

    Google Research hardMaster

    Google Research converts validated psychology questionnaires (IRI, ERQ and others) into LLM-generated situational judgment tests, scores free-form model responses with an LLM-as-a-judge, and compares them against preferences from 10 human annotators per scenario across 25 LLMs. Smaller models (<25B) align with human consensus at near-chance rates, while large and frontier models reach near-perfect alignment under unanimous agreement but plateau in the low-to-mid 80s when consensus is below 90%. All models are systematically overconfident when humans disagree, and each takes its own stance in those cases. Models also often say one thing in self-reports and do another in scenarios, for example claiming low impulsiveness while behaving impulsively, which calls the validity of self-report evaluation into question.

  • Can foundation models label data like humans?

    Hugging Face hardMaster

    Human preference labels from Scale AI and GPT-4 pairwise ratings on a 327-prompt blind test set produce the same Elo ordering of four open instruction-tuned models (Vicuna-13B, Koala-13B, OpenAssistant-12B, Dolly-12B), but the margins between models differ. GPT-4 evaluation shows clear positional bias on a 1–8 Likert scale. When GPT-4 also rates human-written demonstrations, it ranks them below most models, which suggests it favors verbose, LLM-style outputs. Treat GPT-4-based "preferred to ChatGPT" claims with caution, and be wary of training on and evaluating with another LLM, since this can amount to unintentional doping.

The quest for software engineering knowledge.

Look:
Layout: