Class Specific Feature Weighting for Discriminative Classification

76 concepts52 papers2 proposals

In traditional text classification and feature engineering, the standard tool for determining feature importance has long been Term Frequency-Inverse Document Frequency (TF-IDF). TF-IDF operates on an unsupervised assumption: a feature's importance is inversely proportional to how many documents it appears in globally across the corpus.

However, treating a feature's relevance as an intrinsic global property is fundamentally flawed when the ultimate goal is classification. As Pascal Soucy et al. argue in Beyond TFIDF Weighting for Text Categorization in the Vector Space Model, valuable information is lost when common words that are highly predictive for specific categories are assigned low weights by general-purpose, unsupervised algorithms. A word might be highly frequent across a corpus but exceptionally concentrated within one specific target category. Traditional TF-IDF penalizes this word heavily, stripping the classifier of a vital diagnostic signal.

To resolve this, a prominent research direction focuses on supervised feature weighting (or class-specific feature weighting). By incorporating category labels directly into the feature vectorization or model-training phase, these methods evaluate a feature's importance based on its ability to discriminate between classes, rather than its global rarity.

Measuring Class-Specific Affinity

To build a class-specific feature space, models must mathematically capture how strongly a feature aligns with a specific category versus its competitors. Several strategies exist to measure this contrast.

One intuitive approach is class-contrastive or delta-based weighting. In A Study of Information Retrieval Weighting Schemes for Sentiment Analysis, Georgios Paltoglou et al. utilize "Delta TF-IDF" variants. Instead of calculating global document frequency, they measure the difference in a term's importance between positive and negative classes. This shifts the focus from global term rarity to class-specific discriminative power, highlighting features that strongly favor one class over another.

Another approach scales raw frequencies by the probability of a feature appearing in a specific class versus its complement. For example, Abdelrhman Saleh et al. in Team QCRI-MIT at SemEval-2019 Task 4: Propaganda Analysis Meets Hyperpartisan News Detection implement a class-conditional feature weighting scheme. They scale word and character frequencies by the log-ratio of their probability in each class, blending the frequency-based importance of traditional text models with the predictive strength of Naive Bayes ratios.

Similarly, Yangfeng Ji demonstrates in Discriminative Improvements to Distributional Sentence Similarity that term weighting can be performed using Kullback-Leibler (KL) divergence to identify words that effectively discriminate between target classes. Applying this discriminative weighting before dimensionality reduction (such as matrix factorization) ensures that the resulting latent space preserves task-relevant boundaries rather than just capturing global statistical patterns.

Shifting from Documents to Categories

A core conceptual shift in this paradigm is moving from document-level counting to category-level counting. In Inverse-Category-Frequency based Supervised Term Weighting Schemes for Text Categorization, Deqing Wang 0001 et al. introduce Inverse Category Frequency (ICF).

Instead of penalizing a word for appearing in many documents, ICF penalizes a word only if it spans many categories. Consider a term that appears 1,000 times in a dataset, but every single occurrence is concentrated within a single category. Under TF-IDF, this term receives a heavy penalty because its document frequency is high. Under ICF, because the term appears in only one category, its category penalty is minimal.

This global-local supervised weighting combines local class-specific relevance with a global view of term distribution across categories. As Kratarth Goel et al. observe in A Novel Feature Selection and Extraction Technique for Classification, evaluating feature relevance based on class-wide probability distributions rather than individual instance context prevents the accidental suppression of defining features that occur frequently within a specific category.

Integrating Weights into Classifiers

Once these class-specific weights are computed, how do classifiers exploit them? The mechanism depends on the underlying architecture, spanning probabilistic, distance-based, and neural models.

Probabilistic Models

Standard Multinomial Naive Bayes classifiers assign uniform structural importance to features. To bypass this limitation, Shufen Ruan et al. propose Class-Specific Deep Feature Weighting for Naïve Bayes Text Classifiers. Their method integrates class-specific weights directly into the model's probability estimates, allowing the network to treat a feature as a strong signal for one class while discounting it as noise for others. Similarly, Bofang Li et al. in Weighted Neural Bag-of-n-grams Model: New Baselines for Text Classification use Naive Bayes log-count ratios to weight the training objective of neural bag-of-words models, forcing the network to focus its representational capacity on highly informative tokens.

Distance-Based and Clustering Models

In distance-based classification, traditional methods treat all input features with equal importance, failing to account for the fact that an attribute may be highly relevant for one class but noisy for another. To address this, Panagiotis N. Smyrlis et al. introduce Constrained K-Means Classification. They calculate attribute weights for each class based on the inverse of their variance relative to their total range. This prioritizes stable attributes that are uniquely characteristic of a given category during distance-based assignment.

Multi-Sensor and Time-Series Models

The principle extends naturally to multi-dimensional data like time series. As shown by Jaeho Kim et al. in CAFO: Feature-Centric Explanation on Time Series Classification, measuring class-wise relative importance reveals that certain sensors or features are critical for identifying one specific output category while remaining entirely irrelevant for others.

Why It Works: Intuition and Geometry

Class-specific feature weighting works because it aligns the geometry of the feature space with the objective of the classification task.

When a model uses unsupervised weighting like TF-IDF, it optimizes for global variance or document-level reconstruction. This often preserves cross-class noise and suppresses rare, category-specific markers. By contrast, supervised term weighting explicitly conditions feature importance on the class labels.

Statistically, this acts as a targeted filter:

  1. Signal Amplification: Features that are highly frequent within a target class but rare elsewhere are heavily up-weighted, transforming them into high-confidence "trigger words" or diagnostic anchors.
  2. Noise Suppression: Features that are frequent within a target class but equally frequent across other classes are recognized as uninformative background noise and down-weighted.
  3. Imbalance Mitigation: By evaluating relevance at the category level rather than the document level, the model prevents majority classes from dominating the feature space, ensuring minority classes retain their distinct diagnostic signals.

Ultimately, by allowing the importance of a single feature to dynamically shift depending on the class being evaluated, these methods maximize spatial separation between categories and provide a highly granular, interpretable mapping of what makes each class unique.

Key Foundational Work

Information retrieval based call classification (2003) — contributed 1 concept elements to this direction.
Combining Linguistic Features with Weighted Bayesian Classifier for Temporal Reference Processing (2004) — contributed 1 concept elements to this direction.
Feature Weighting for Co-occurrence-based Classification of Words (2004) — contributed 1 concept elements to this direction.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 52 papers
  2. Version 1 · 2026-10-04 · 48 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_supervised_term_weighting_dff8ad99,
  title = {supervised term weighting},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/supervised-term-weighting/rdr_dff8ad990f0e4f97ac0c448d13584caf},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 2, frozen text):

@misc{lacuna_supervised_term_weighting_dff8ad99_v2,
  title = {supervised term weighting},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/supervised-term-weighting/rdr_dff8ad990f0e4f97ac0c448d13584caf/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake