Skip to main content
QUICK REVIEW

[Paper Review] Learning to Weight for Text Classification

Alejandro Moreo, Andrea Esuli|arXiv (Cornell University)|Mar 28, 2019
Text and Document Classification TechnologiesComputer Science1 citations
TL;DR

This paper proposes Learning to Weight (LTW), a novel supervised term weighting framework that learns optimal term weighting functions directly from training data using neural networks, outperforming traditional unsupervised (e.g., TF-IDF) and prior supervised term weighting methods across multiple text classification benchmarks. The method jointly learns document-dependent and collection-dependent weighting components, with the latter acting as a regularizer on feature statistics.

ABSTRACT

In information retrieval (IR) and related tasks, term weighting approaches typically consider the frequency of the term in the document and in the collection in order to compute a score reflecting the importance of the term for the document. In tasks characterized by the presence of training data (such as text classification) it seems logical that the term weighting function should take into account the distribution (as estimated from training data) of the term across the classes of interest. Although `supervised term weighting' approaches that use this intuition have been described before, they have failed to show consistent improvements. In this article we analyse the possible reasons for this failure, and call consolidated assumptions into question. Following this criticism we propose a novel supervised term weighting approach that, instead of relying on any predefined formula, learns a term weighting function optimised on the training set of interest; we dub this approach \emph{Learning to Weight} (LTW). The experiments that we run on several well-known benchmarks, and using different learning methods, show that our method outperforms previous term weighting approaches in text classification.

Motivation & Objective

  • To address the inconsistent performance gains of prior supervised term weighting (STW) methods, which rely on fixed, pre-defined formulas.
  • To investigate whether a universal 'Holy Grail' formula for STW exists, and to challenge the assumption that predefined functions are optimal.
  • To develop a flexible, data-driven approach that learns term weighting functions tailored to the specific distribution of terms across classes in a given training set.
  • To improve text classification accuracy by learning a term weighting function that adapts to the underlying data distribution, rather than relying on hand-crafted formulas.

Proposed method

  • Proposes a neural network-based framework, LTW, that learns a supervised term weighting function from training data without relying on predefined formulas.
  • The framework decomposes term weighting into two components: a document-dependent function (DD(t,d)) and a collection- and class-dependent function (CD(t,D,C)), modeled as a deep neural network.
  • The CD(t,D,C) component acts as a regularizer by controlling information flow based on global feature statistics extracted from the training data matrix.
  • The model is trained end-to-end using standard backpropagation, with the final classifier (e.g., logistic regression) integrated into the architecture.
  • Multiple instantiations are explored, including LTW-TF, which learns a non-linear function of term frequency (ftd) for the DD(t,d) component.
  • The architecture allows joint optimization of term weighting and classification, with the CD(t,D,C) component derived from column-wise statistics of the term-document matrix.

Experimental results

Research questions

  • RQ1Can a data-driven, learned term weighting function outperform traditional unsupervised and supervised term weighting methods in text classification?
  • RQ2Is there a universal optimal formula for supervised term weighting, or does the optimal shape of the weighting function depend on the data distribution?
  • RQ3Does learning the term weighting function end-to-end improve classification performance compared to fixed formula approaches?
  • RQ4How do the learned weighting functions compare to standard heuristics (e.g., log, 1+log, or linear functions of term frequency) in terms of shape and interpretability?
  • RQ5Can the CD(t,D,C) component be interpreted as a regularizer that improves optimization and generalization in text classification?

Key findings

  • LTW consistently outperforms both unsupervised (e.g., TF-IDF) and prior supervised term weighting methods across multiple standard benchmarks, including REUTERS-21578, 20NEWSGROUPS, and OHSUMED.
  • The learned DD(t,d) functions exhibit meaningful, data-dependent shapes—such as intermediate-frequency peaks in REUTERS-21578 or quasi-linear trends in 20NEWSGROUPS—that align with established IR intuitions.
  • The performance degradation observed in the deeper LTW-TF variant is attributed to increased model complexity outpacing optimization gains, not to poor function learning.
  • The CD(t,D,C) component effectively regularizes the model by controlling information flow based on global feature statistics, improving generalization.
  • The framework is robust across different learning algorithms and datasets, demonstrating consistent improvements in classification accuracy.
  • The results suggest that the optimal term weighting function is not universal and depends on the underlying data distribution, supporting the need for learning-based approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.