Paper commentary
An Extensive Empirical Study of Feature Selection Metrics for Text Classification
Bi-Normal Separation beats common feature metrics for skewed text classification with SVM
- Problem Feature selection metrics for text were mostly compared outside SVM and rarely under heavy class skew. Earlier studies used different metrics, goals and datasets, so their findings don't line up.
- Method The authors introduce Bi-Normal Separation, which scores words by both positive and negative correlation. Unlike one-sided metrics, it keeps negatively correlated words instead of discarding them.
- Results Across 229 binary text tasks with SVM, BNS matched the best F-measure within a 1% tolerance on 65% of problems. Information Gain reached 40%.
Why text feature selection needs a fresh comparison
Feature selection therefore matters for computation, storage and network resources during training and every later use of the classifier. Well-chosen features can also improve accuracy substantially, or reduce the amount of training data needed for a desired level of performance. Earlier comparisons don't line up with one another, because they used different metrics, different goals and different datasets.
Yang and Pedersen (1997) studied five metrics on Reuters and OHSUMED without SVM, so it remains open whether their findings generalize to SVM.
Text problems also tend to be heavily skewed, with far fewer positive documents than negative ones. In this benchmark the skew averages 1:31 across the 229 tasks, and 4% of tasks exceed 1:100. Under such skew a classifier can look accurate by labelling everything as the negative majority class. Accuracy alone misleads here: one TREC class has seven positive examples out of 927, which gives the trivial majority classifier an accuracy of 99.2%.
The authors therefore hypothesize that feature selection should matter more in difficult, high-skew tasks, and they test that against low-skew tasks.
The authors compare metrics across four goals, since precision, recall, F-measure and accuracy each serve different needs. The study also fixes SVM as the induction algorithm, because a pilot study showed it outperformed Naïve Bayes, logistic regression and C4.5. Each binary class decision is treated as a separate problem instance, with features selected for it separately.
Scoring a word by its two Normal thresholds
Bi-Normal Separation starts from the picture of a word's occurrence as a Normal variable that crosses a threshold. The score compares the two classes' thresholds, so a word that is more prevalent in the positive class has its threshold further from the tail. The prevalence rate of the feature is the area under the curve past that threshold.
Each word is a Boolean indicator per document, so the score only needs counts of positive and negative documents containing the word. From those counts, the metric takes the sample true positive rate, tp divided by pos, and the sample false positive rate, fp divided by neg.
BNS applies the inverse standard Normal function to both rates and takes the absolute difference. Written out, the score is the absolute value of F^-1(tpr) minus F^-1(fpr), where F is the Normal cumulative distribution. The inverse of zero is undefined, so a zero rate is replaced by 0.0005, which is half a count out of 1000. Because the metric does not reverse the classes, a negatively correlated word keeps its separation rather than being discarded.
The authors also view the metric through ROC analysis, as the horizontal separation between two overlapping Normal curves. In that view, tpr and fpr set the relative position of the two curves, which are the areas under each curve's tail. The authors justify this with the medical testing literature, where the binormal ROC fit is a robust method.
Since the score is symmetric, a word that is strongly negatively correlated scores as high as a strongly positive one.
On a Cora sample, the BNS threshold of 1.417 selects 100 words. Its isocline reaches the origin and the top right corner of the graph. Information Gain and Chi-Squared cut off that top right region, so they discard many of the negative words that BNS keeps. Figure 1 shows the two views of Bi-Normal Separation side by side.
How the comparison was run
The benchmark pools 19 multi-class datasets, and each binary class decision becomes its own problem instance. Taken together, these datasets give 229 binary text classification problem instances. Cora adds 36 classes with 50 training examples each, which the authors added to control the class skew. Across the 229 problems, the positive class averages 149 documents, and the skew averages 1:31.
The skew has a median of 1:17 and a 95th percentile of 1:97. Each feature is the Boolean occurrence of a forced-lowercase word. Words occurring fewer than 3 times were removed in most datasets, and the authors applied the same rare-word threshold to Cora. They didn't apply stemming or stopwords to Cora.
The pilot confirmed SVM as an outstanding method, so the authors used SVM alone for the rest of the study. Because SVM keeps default parameters and a linear kernel, the interaction with model tuning is left for later studies. The experiments vary the number of selected features from 10 to 2000.
Each problem is scored on four goals: accuracy, precision, recall and F-measure. The F-measure is macro-averaged, so each problem gets equal weight regardless of its training set size. Each problem is measured with 4-fold stratified cross-validation, and the authors average 5 such runs. The practitioner view counts, for each metric, the percentage of problem instances where it matched the best method within a tolerance.
The main curves therefore average 229*5 runs, one for each problem and each trial. Every result in the study assumes this SVM setup, so it doesn't show how the metrics behave with tuned models.
F-measure across feature counts
Only BNS and, to a limited extent, IG beat training on all features when macro-averaged F-measure is plotted against feature count. The figure averages F-measure over 229 problems, with the number of selected features varied from 10 to 2000. BNS performed best by a wide margin when the selection held 500 to 1000 features. The authors ran a paired t-test over 229 problems times 5 runs, and the result cleared 99% confidence.
That significance holds even though the gap between BNS and IG at 100 features is barely visible.
Performance declines after about 2000 features, eventually falling back to the level of using all features. With 20 to 50 features, IG was the best available metric, and Acc2 was a simpler option to program. Acc2 beat Acc even though Acc2 ignores class skew while Acc accounts for it. The authors call this outcome surprising. In these experiments IG beat Chi-Squared at every feature-set size.
The accuracy curves follow the same shape as the F-measure curves, but class skew compresses them into a smaller range. BNS again led by a smaller margin, still above 99% confidence. At 100 features and below, IG performed best, while Acc2 was statistically indistinguishable at 20 features. At 1000 features, BNS's high F-measure comes from much higher average recall than any other method.
When precision is the goal, IG and Chi perform best, though only by a smaller margin.
Where BNS wins recall and IG wins precision
At 1000 features, the precision and recall scatter plot places each metric along a tradeoff. BNS's high F-measure comes from much higher average recall than any other method achieves. These averages are macro-averaged over the five-trial performance of each of the 229 problems. So recall, not precision, is where BNS separates itself from the other metrics.
If precision is the central goal, Information Gain and Chi-Squared perform best. Their margin over the other metrics is smaller, though still significant. At 500 features and below, Information Gain dominated all other metrics. The paper reports this dominance only for that range of feature counts.
The next analysis asks whether BNS's recall lead depends on class skew. The authors note that high class skew makes good recall hard to obtain, because induction algorithms focus on accuracy. Figure 6 plots each of the 229 classification tasks by its class skew against its average F-measure at 1000 features. That layout lets the recall advantage be read against the skew of each task.
Does BNS's lead grow with class skew?
The authors split the 229 classification tasks at a skew of 1:67, the 90th percentile of skew values studied. Only 23 of the 229 tasks lie above that threshold, so the high-skew group is the smaller one. Figure 7 compares low-skew and high-skew tasks on F-measure, and Figure 8 repeats the comparison for precision.
Under low skew, BNS is the only metric that performs substantially better than using all features. If only a few features are allowed, IG is a much better choice than BNS at low skew.
At high skew, BNS performs substantially better than IG on precision.
Across the tasks, F-measure varies more widely as skew increases, while low-skew tasks usually reach good F-measure. Their scores differ because the predictive features available for each class differ in quality. Figure 6 plots F-measure against skew for each of the 229 tasks, using BNS at 1000 features.
Choosing one metric or a pair
For a practitioner with one dataset, the paper scores each metric by how often it lands near the best result. Each problem instance averages over 5 trials, and the best result can come from any number of features. At a 1% tolerance on F-measure, BNS matched the best on 65% of the 229 problems, while Information Gain reached 40%. For accuracy the authors use a 0.1% tolerance, because large class skew compresses the range of values.
For precision no metric wins clearly, and Information Gain dominates at higher tolerances, though by a smaller margin than BNS shows on F-measure.
The authors ask whether a second metric can cover the cases where Information Gain fails on precision. Whenever Information Gain missed the maximum, Chi-Squared missed it too, performing as badly as random ranking. When Information Gain failed, BNS performed best, even though its precision was weak overall. BNS had the least correlated failures with Information Gain, so it makes the better backup metric.
The best pair for precision is BNS with Odds Ratio, and Information Gain is not part of that pair. For recall, BNS with F1-measure beat the other pairs by a very wide margin. BNS with Information Gain was best for F-measure, and BNS with OddN was best for accuracy. Across the four goals, BNS stays a member of the best pair, and the abstract reports the same pattern.
These pair results assume a practitioner's dataset resembles the 229 benchmark tasks. The authors suggest BNS might also help decision trees at nodes with high class skew.
Rare-word cutoffs and feature weighting
Cora serves as the testbed for the rare-word cutoff experiment, with SVM trained on 1000 features chosen by BNS. The authors raised the threshold for dropping rare words, which had omitted words occurring fewer than two times, up to 25 occurrences. F-measure, precision, recall and accuracy were each averaged over five runs and macro-averaged across all 36 classes.
Each of these measures tended to fall as the threshold increased, so heavier trimming hurt the results. Accuracy fell linearly from 98.2% to 97.5%, and the authors left its curve out of the plot for readability.
The authors explain the recall rise by the cutoff removing words near the origin. Removing eligible positive words forces BNS to pick more negative words, which helps recall but costs precision. Because BNS runs in linear time in dataset size, the authors favor a low cutoff followed by aggressive feature selection. If recall is the sole goal, they suggest eliminating a greater proportion of rare words.
The second experiment on Cora weighted the BNS score for positive features by α and for negative features by (1 − α). With α=60%, positive features gave good precision using relatively few features, but recall fell compared with unweighted BNS. With α=40%, negative features gave outstanding recall once many features were selected, but precision was poor.
At α=10%, the positive features were nearly eliminated and the induction algorithm failed altogether.
The authors conclude that positive features drive precision and negative features drive recall. Optimal F-measure came when the two were in balance, that is, with unweighted BNS. The study used binary features only, so real-valued and nominal attributes went untested. The authors suggest generalizing BNS to nominal attributes as future work, and they didn't attempt it here.
What the study did not test
The paper evaluated binary features only, so real-valued and nominal attributes never entered the experiments. Real-valued attributes could be thresholded into binary features or replaced with scaled sums, and the authors didn't test either route. Generalizing BNS to nominal attributes remains open, and the authors list it as future work.
The scoring metrics treat each feature on its own and ignore correlations between features. If ten duplicates of a predictive feature existed, each copy would be selected. The authors point to wrapper techniques as the fix, but they didn't test wrappers in this study.
Every result uses an SVM with default parameters and a linear kernel. After a pilot with Naïve Bayes, C4.5 and logistic regression, the remainder of the study used SVM alone. The interaction between feature selection and model tuning was left to later studies. The authors note that tuning C and B for SVMs may yield significant gains, but they didn't test it.
The rare-word and feature-weighting experiments ran on the Cora dataset only. The weighting tests tried positive-feature weights of 60%, 40% and 10%, not a full sweep. The accuracy curve in the rare-word test was reported only as a range, from 98.2% to 97.5%. Conclusions about the rare-word cutoff therefore rest on one dataset with 1000 BNS-selected features.
Paper info
- Authors
- Forman, George
- Venue
- Journal of Machine Learning Research · Published
- Added
- 2026-11-12
- Original paper terms
- Check in the original ↗
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Forman, George (2003). An Extensive Empirical Study of Feature Selection Metrics for Text Classification. Journal of Machine Learning Research. https://www.jmlr.org/papers/v3/forman03a.html
BibTeX
@article{george2003extensive,
title = {{An Extensive Empirical Study of Feature Selection Metrics for Text Classification}},
author = {Forman, George},
year = {2003},
journal = {Journal of Machine Learning Research},
url = {https://www.jmlr.org/papers/v3/forman03a.html}
}