Text Classification Model Using Weighted Word Embeddings
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing text classification models assign equal weight to all words, including common words that provide little insight, which can dilute the significance of more informative words, leading to inaccurate classification.
Innovation Solution
An improved text classification model that applies coefficients to word embeddings based on their perceived value, assigning lower weights to common words and higher weights to rare words, calculated through methods like Word2Vec or inverse document frequency, to generate a weighted average embedding for proper classification.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of manufacture
If equal weight is assigned to all words in text classification, then the model is simple to implement, but the classification accuracy deteriorates due to common words diluting the significance of informative words
Solution Approach 1:
The patent applies different weights to different words based on their informativeness. Specifically, it uses inverse document frequency (IDF) to calculate weights where common words receive lower weights and rare/informative words receive higher weights. This local differentiation resolves the contradiction by maintaining simplicity through a systematic weighting approach while improving accuracy through selective emphasis on meaningful words.
Solution Approach 2:
The patent changes the parameter of word weighting from uniform (equal weight) to variable (different weights based on IDF). By introducing the weight parameter w_i = log(N/n_i) where N is total documents and n_i is document frequency of word i, the model transforms from a simple average to a weighted average that preserves classification accuracy while maintaining computational efficiency.
2Productivity
If common words are given equal weight to informative words, then the calculation is computationally efficient, but the meaningful signal is lost due to noise from transition words and articles
Solution Approach 1:
The patent extracts and removes the harmful effect of common words by assigning them weights close to zero through the IDF calculation. Words like 'the', 'a', 'is' that appear in nearly all documents receive weights of log(N/N) = log(1) = 0, effectively taking them out of the classification calculation while preserving computational efficiency through the simple logarithmic formula.
Solution Approach 2:
The patent converts the harmful presence of common words into a benefit by using their high document frequency as the basis for assigning them low weights. The same property that makes them noisy (appearing everywhere) becomes the mechanism for their suppression (log(N/n_i) approaches 0 when n_i approaches N), turning the noise problem into a solution.
Data Source
AI summary
Disclosed are systems, methods, and non-transitory computer-readable media for an improved text classification model. A text classification system determines a first embedding for a first set of characters in a text, and a second embedding for a second set of characters in the text. The text classification system applies a first coefficient to the first embedding and a second coefficient to the second embedding, yielding a first weighted embedding and a second weighted embedding. The first coefficient is different than the second coefficient. The text classification system determines a weighted average embedding for the text based on the first weighted embedding, the second weighted embedding, the first coefficient and the second coefficient. The text classification system identifies at least a first classification label and a second classification label for the text based on the weighted average embedding for the text.


