TK-KNN: A Balanced Distance-Based Pseudo Labeling Approach for Semi-Supervised Intent Classification

Nicholas Botzer, David Vasquez, Tim Weninger, Issam Laradji
10/17/2023
cs.LG

Official code: ServiceNow/tk-knn (8 stars, last commit 2023-10-15).

Abstract

The ability to detect intent in dialogue systems has become increasingly important in modern technology. These systems often generate a large amount of unlabeled data, and manually labeling this data requires substantial human effort. Semi-supervised methods attempt to remedy this cost by using a model trained on a few labeled examples and then by assigning pseudo-labels to further a subset of unlabeled examples that has a model prediction confidence higher than a certain threshold. However, one particularly perilous consequence of these methods is the risk of picking an imbalanced set of examples across classes, which could lead to poor labels. In the present work, we describe Top-K K-Nearest Neighbor (TK-KNN), which uses a more robust pseudo-labeling approach based on distance in the embedding space while maintaining a balanced set of pseudo-labeled examples across classes through a ranking-based approach. Experiments on several datasets show that TK-KNN outperforms existing models, particularly when labeled data is scarce on popular datasets such as CLINC150 and Banking77. Code is available at https://github.com/ServiceNow/tk-knn

View on arXivView PDF

Code Implementations(1)

83Python, Jupyter NotebookOct 12, 20233 years ago

Similar Papers

Cite this paper

@article{botzer2023tkknn,
  title  = {TK-KNN: A Balanced Distance-Based Pseudo Labeling Approach for Semi-Supervised Intent Classification},
  author = {Nicholas Botzer and David Vasquez and Tim Weninger and Issam Laradji},
  year   = {2023},
  eprint = {2310.11607},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11607v1}
}

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/2310.11607.svg)](https://codeofpaper.com/paper/2310.11607)

Discussion