How Large a Vocabulary Does Text Classification Need? A Variational Approach to Vocabulary Selection

02/27/2019
by   Wenhu Chen, et al.
0

With the rapid development in deep learning, deep neural networks have been widely adopted in many real-life natural language applications. Under deep neural networks, a pre-defined vocabulary is required to vectorize text inputs. The canonical approach to select pre-defined vocabulary is based on the word frequency, where a threshold is selected to cut off the long tail distribution. However, we observed that such simple approach could easily lead to under-sized vocabulary or over-sized vocabulary issues. Therefore, we are interested in understanding how the end-task classification accuracy is related to the vocabulary size and what is the minimum required vocabulary size to achieve a specific performance. In this paper, we provide a more sophisticated variational vocabulary dropout (VVD) based on variational dropout to perform vocabulary selection, which can intelligently select the subset of the vocabulary to achieve the required performance. To evaluate different algorithms on the newly proposed vocabulary selection problem, we propose two new metrics: Area Under Accuracy-Vocab Curve and Vocab Size under X% Accuracy Drop. Through extensive experiments on various NLP classification tasks, our variational framework is shown to significantly outperform the frequency-based and other selection baselines on these metrics.

READ FULL TEXT
research
05/24/2023

The Role of Output Vocabulary in T2T LMs for SPARQL Semantic Parsing

In this work, we analyse the role of output vocabulary for text-to-text ...
research
08/04/2021

TextCNN with Attention for Text Classification

The vast majority of textual content is unstructured, making automated c...
research
04/08/2021

Exploring the Relationship Between Algorithm Performance, Vocabulary, and Run-Time in Text Classification

Text classification is a significant branch of natural language processi...
research
01/17/2022

MuLVE, A Multi-Language Vocabulary Evaluation Data Set

Vocabulary learning is vital to foreign language learning. Correct and a...
research
10/24/2018

Image-based Natural Language Understanding Using 2D Convolutional Neural Networks

We propose a new approach to natural language understanding in which we ...
research
01/03/2021

Learning Neural Networks on SVD Boosted Latent Spaces for Semantic Classification

The availability of large amounts of data and compelling computation pow...
research
11/24/2022

Analysis on English Vocabulary Appearance Pattern in Korean CSAT

A text-mining-based word class categorization method and LSTM-based voca...

Please sign up or login with your details

Forgot password? Click here to reset