Metric Learning for Dynamic Text Classification

11/04/2019
by   Jeremy Wohlwend, et al.
0

Traditional text classifiers are limited to predicting over a fixed set of labels. However, in many real-world applications the label set is frequently changing. For example, in intent classification, new intents may be added over time while others are removed. We propose to address the problem of dynamic text classification by replacing the traditional, fixed-size output layer with a learned, semantically meaningful metric space. Here the distances between textual inputs are optimized to perform nearest-neighbor classification across overlapping label sets. Changing the label set does not involve removing parameters, but rather simply adding or removing support points in the metric space. Then the learned metric can be fine-tuned with only a few additional training examples. We demonstrate that this simple strategy is robust to changes in the label space. Furthermore, our results show that learning a non-Euclidean metric can improve performance in the low data regime, suggesting that further work on metric spaces may benefit low-resource research.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/15/2022

Improve Text Classification Accuracy with Intent Information

Text classification, a core component of task-oriented dialogue systems,...
research
06/16/2018

Joint Input-Label Embedding for Neural Text Classification

Neural text classification methods typically treat output classes as cat...
research
02/17/2023

Like a Good Nearest Neighbor: Practical Content Moderation with Sentence Transformers

Modern text classification systems have impressive capabilities but are ...
research
05/05/2023

Augmenting Low-Resource Text Classification with Graph-Grounded Pre-training and Prompting

Text classification is a fundamental problem in information retrieval wi...
research
10/19/2012

Learning Riemannian Metrics

We propose a solution to the problem of estimating a Riemannian metric a...
research
05/24/2019

Learning Mahalanobis Metric Spaces via Geometric Approximation Algorithms

Learning Mahalanobis metric spaces is an important problem that has foun...
research
11/30/2022

Task-Specific Embeddings for Ante-Hoc Explainable Text Classification

Current state-of-the-art approaches to text classification typically lev...

Please sign up or login with your details

Forgot password? Click here to reset