Zero-shot classification
Assigning items to categories without training the model on labelled examples of those categories for the task.
Published · Updated
“The bus ticket is too expensive for me to get to work.” Is that a complaint about cost or access? A person could reasonably choose both. Give a classifier three short category names and it has to guess how you meant to draw the boundary.
Rewrite the labels and inspect what moves
Spell out whether an affordability barrier counts as access and whether more than one label is allowed. Run the same comments again. Changes between the two passes show which decisions the category wording had quietly left open.
Keep a small human-reviewed set with overlaps, obvious examples and comments outside every category. The exact label descriptions belong with the results. Without them, the next analyst can’t tell what “access” meant on the day you ran the classifier.
In zero-shot classification, the model draws on prior training and the descriptions you give it. You can try a new set of categories before anyone has labelled a training set for them. Changing the descriptions can change the assignments. Evaluation still requires examples whose interpretation a researcher can check.
A classifier can express the task as a comparison between text and label descriptions. One family of approaches asks whether the text supports a statement corresponding to each label. Other systems use prompting or similarity in a shared representation. The output depends on wording, calibration and the decision rule, including whether “none of the above” is possible.
This is convenient when labels are sparse or a project is exploring a new codebook. It still pays to evaluate obvious, difficult and out-of-scope examples with human readers. A task can require no labelled examples for training and still need them to find out whether it worked.
For the transport survey, compare results for single-topic comments with results for comments that mention both access and cost. If the categories change, keep their old and new definitions and a small set of repeated examples. A shift in reported sentiment or access barriers might otherwise be a shift in your instructions.
Related terms: Named Entity Recognition, Topic Modeling, Prompt Engineering
Related guide: Social Science
