Analysis and Optimization of fastText Linear Text Classifier
Vladimir Zolotov, David Kung

TL;DR
This paper provides a formal algebraic analysis of fastText, a linear text classifier, proving its equivalence to simpler models and establishing the optimal embedding dimensionality for maximum classification accuracy.
Contribution
It formally proves that fastText can be transformed into a simpler classifier without hidden layers and determines the exact embedding dimension needed for optimal classification.
Findings
fastText is equivalent to a simpler classifier without hidden layers
The optimal embedding dimension equals the number of document classes
Formal algebraic proofs establish these properties without empirical data
Abstract
The paper [1] shows that simple linear classifier can compete with complex deep learning algorithms in text classification applications. Combining bag of words (BoW) and linear classification techniques, fastText [1] attains same or only slightly lower accuracy than deep learning algorithms [2-9] that are orders of magnitude slower. We proved formally that fastText can be transformed into a simpler equivalent classifier, which unlike fastText does not have any hidden layer. We also proved that the necessary and sufficient dimensionality of the word vector embedding space is exactly the number of document classes. These results help constructing more optimal linear text classifiers with guaranteed maximum classification capabilities. The results are proven exactly by pure formal algebraic methods without attracting any empirical data.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsText and Document Classification Technologies · Topic Modeling · Advanced Text Analysis Techniques
MethodsfastText
