Scalable and consistent few-shot classification of survey responses using text embeddings

Jonas Timmann Mjaaland, Markus Fleten Kreutzer, Halvor Tyseng, Rebeckah K. Fussell, Gina Passante +3 more
8/27/2025
cs.CLphysics.ed-ph

No confident code implementation found for this paper.

Abstract

Qualitative analysis of open-ended survey responses is a commonly-used research method in the social sciences, but traditional coding approaches are often time-consuming and prone to inconsistency. Existing solutions from Natural Language Processing such as supervised classifiers, topic modeling techniques, and generative large language models have limited applicability in qualitative analysis, since they demand extensive labeled data, disrupt established qualitative workflows, and/or yield variable results. In this paper, we introduce a text embedding-based classification framework that requires only a handful of examples per category and fits well with standard qualitative workflows. When benchmarked against human analysis of a conceptual physics survey consisting of 2899 open-ended responses, our framework achieves a Cohen's Kappa ranging from 0.74 to 0.83 as compared to expert human coders in an exhaustive coding scheme. We further show how performance of this framework improves with fine-tuning of the text embedding model, and how the method can be used to audit previously-analyzed datasets. These findings demonstrate that text embedding-assisted coding can flexibly scale to thousands of responses without sacrificing interpretability, opening avenues for deductive qualitative analysis at scale.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mjaaland2025scalable,
  title  = {Scalable and consistent few-shot classification of survey responses using text embeddings},
  author = {Jonas Timmann Mjaaland and Markus Fleten Kreutzer and Halvor Tyseng and Rebeckah K. Fussell and Gina Passante and N. G. Holmes and Anders Malthe-Sørenssen and Tor Ole B. Odden},
  year   = {2025},
  eprint = {2508.19836},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.19836v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.19836.svg)](https://codeofpaper.com/paper/2508.19836)

Discussion