How Large a Vocabulary Does Text Classification Need? A Variational Approach to Vocabulary Selection
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Feb 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 2; 2023: 0; 2024: 3; 2025: 1.
11 papers.
- 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
- 2021Fall of Giants: How popular text-based MLaaS fall against a simple evasion attackcited by 12
- 2024Large Vocabulary Size Improves Large Language Modelscited by 11
- 2022BinBert: Binary Code Understanding with a Fine-tunable and Execution-aware Transformercited by 8
- 2022Power of Explanations: Towards automatic debiasing in hate speech detectioncited by 5
- 2024Structure-informed Positional Encoding for Music Generationcited by 5
- 2021Explainable Health Risk Predictor with Transformer-based Medicare Claim Encodercited by 4
- 2021Improving Classifier Training Efficiency for Automatic Cyberbullying Detection with Feature Densitycited by 3
- 2025UniNet: A Unified Multi-granular Traffic Modeling Framework for Network Securitycited by 1
- 2021Adversarially Robust and Explainable Model Compression with On-Device Personalization for Text Classificationcited by 0
- 2024Rule by Rule: Learning with Confidence through Vocabulary Expansioncited by 0
- 2025UniNet: A Unified Multi-granular Traffic Modeling Framework for Network Security6 Mar 2025
- 2024Rule by Rule: Learning with Confidence through Vocabulary Expansion30 Oct 2024
- 2024Large Vocabulary Size Improves Large Language Models24 Jun 2024
- 2024Structure-informed Positional Encoding for Music Generation20 Feb 2024
- 2022Power of Explanations: Towards automatic debiasing in hate speech detection7 Sep 2022
- 2022BinBert: Binary Code Understanding with a Fine-tunable and Execution-aware Transformer13 Aug 2022
- 2021Improving Classifier Training Efficiency for Automatic Cyberbullying Detection with Feature Density2 Nov 2021
- 2021CoDesc: A Large Code-Description Parallel Dataset29 May 2021
- 2021Explainable Health Risk Predictor with Transformer-based Medicare Claim Encoder19 May 2021
- 2021Fall of Giants: How popular text-based MLaaS fall against a simple evasion attack13 Apr 2021
- 2021Adversarially Robust and Explainable Model Compression with On-Device Personalization for Text Classification10 Jan 2021