Label-efficiency evaluation
Quick answer
Label-efficiency evaluation asks how performance changes as the number of human-provided labels changes. Compare a labeled-only baseline and methods using the same allowed unlabeled pool, keeping selection and final evaluation separate. Static examples tested locally with Python 3.13.5, scikit-learn 1.8.0 SciPy 1.17.0 and NumPy 2.3.5 where imported. ByteMind package execution is unverified.
Audit provisional-label precision and coverage
truth=[0,1,1,0,1];pseudo=[0,-1,0,-1,1]accepted=[i for i,p in enumerate(pseudo) if p!=-1]print(len(accepted),sum(pseudo[i]==truth[i] for i in accepted))print(round(len(accepted)/len(truth),3),round(sum(pseudo[i]==truth[i] for i in accepted)/len(accepted),3))Observed local output:
3 20.6 0.667Only accepted rows contribute to precision; the other rows contribute to the coverage denominator.
How it works
Choose a fixed training, validation and test split first. Hide training labels to simulate a small annotation budget, while retaining ground truth in a separate audit record. Use identical selected labeled IDs for competing methods and explicitly state whether preprocessing uses all permitted training features or only labeled rows. At budgets such as 8, 20 and 40, compare validation accuracy or a task-appropriate metric; a baseline uses no provisional labels. Define coverage as accepted pseudo-label count / initial unlabeled count, and pseudo-label precision as correct accepted labels / accepted count. If the denominator is zero report undefined, not perfect precision. Audit class counts, minority-class errors and confidently incorrect assignments after the selection decision. In a real unlabeled pool these ground truths are unavailable without additional annotation. Choose the configuration using development labels only and open final test labels for a prespecified final comparison. A label-budget curve is not a causal estimate of annotation savings: seed variation, sampling strategy, data quality and model capacity also matter. Report validation/test label counts separately from the training budget because those labels also have cost. For representation transfer, isolate pretraining, probe training, validation and test IDs. A benchmark comparing frozen and fine-tuned encoders must use the same evaluation protocol and disclose pretraining sources. The chapter project uses fixed synthetic seeds and does not establish generalization to real data.
Use a fixed held-out accuracy denominator
from sklearn.metrics import accuracy_scorey=[0,0,1,1,1];baseline=[0,0,0,1,0];candidate=[0,1,1,1,1]print(accuracy_score(y,baseline),accuracy_score(y,candidate))Observed local output:
0.6 0.8Both predictions are evaluated against the same five labels. This small result is illustrative, not statistical evidence.
Common mistakes
Do not use audit labels to tune the threshold, compare methods trained on different labeled IDs without disclosing it, or report only accuracy without coverage. Do not count pseudo-labels as human annotations.
Practice and next steps
For 100 initially unlabeled rows, 20 accepted predictions and 15 correct accepted predictions, compute coverage and precision. Explain why the remaining 80 rows cannot be assumed incorrect. Complete the knowledge check and staged exercise. Next: Cross-validation and experimental design.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Label-efficiency evaluation — knowledge check
Apply label-efficiency evaluation to new scenarios.
What does label budget count?
No pseudo-labels were accepted. What is precision?
Why keep identical labeled IDs across methods?
When may hidden synthetic labels be used to audit pseudo-labels?
Which labels also have an annotation cost?