Skip to main content
QUICK REVIEW

[Paper Review] Feature Hashing for Large Scale Multitask Learning

Kilian Q. Weinberger, Anirban Dasgupta|arXiv (Cornell University)|Feb 12, 2009
Advanced Image and Video Retrieval TechniquesComputer Science11 references16 citations
TL;DR

This paper introduces an unbiased feature hashing method with exponential tail bounds to enable efficient large-scale multitask learning by compressing high-dimensional sparse features into a low-dimensional space. It demonstrates that independently hashed subspaces interfere negligibly, allowing hundreds of thousands of tasks to be trained jointly with minimal memory and computational overhead, validated on real-world spam filtering data.

ABSTRACT

Empirical evidence suggests that hashing is an effective strategy for dimensionality reduction and practical nonparametric estimation. In this paper we provide exponential tail bounds for feature hashing and show that the interaction between random subspaces is negligible with high probability. We demonstrate the feasibility of this approach with experimental results for a new use case -- multitask learning with hundreds of thousands of tasks.

Motivation & Objective

  • Address the challenge of training large-scale multitask classifiers when feature spaces are high-dimensional and memory-constrained.
  • Provide theoretical justification for the empirical success of feature hashing in kernel methods by establishing unbiased inner product estimation.
  • Show that random subspaces induced by independent hash functions interact minimally, enabling efficient multitask learning.
  • Demonstrate the feasibility of applying feature hashing to real-world collaborative filtering tasks, such as personalized spam detection.

Proposed method

  • Propose a signed hash function that maps high-dimensional sparse feature vectors into a lower-dimensional space using a hash function $ h $ and a random sign function $ \xi $, ensuring unbiased estimation of inner products.
  • Define the hashed feature map as $ \phi_i(x) = \sum_{j:h(j)=i} \xi(i) x_j $, which preserves sparsity and avoids storing projection matrices.
  • Establish exponential tail bounds on the distortion of inner products between hashed vectors, proving that the estimated inner product concentrates tightly around the true value.
  • Extend the hashing framework to multitask learning by using distinct hash functions $ \phi_u $ for each task $ u $, enabling joint learning in a compressed shared space.
  • Use a global-local model architecture where the global component captures common spam patterns and the local component adapts to individual user preferences.
  • Apply the method to collaborative email spam filtering, where users contribute labeled data and benefit from personalized classifiers.

Experimental results

Research questions

  • RQ1Can feature hashing provide an unbiased and stable approximation of inner products in high-dimensional feature spaces with strong concentration guarantees?
  • RQ2How does the interference between independently hashed subspaces behave in a multitask learning setting with many tasks?
  • RQ3Can feature hashing enable efficient large-scale multitask learning with finite memory and computational constraints?
  • RQ4To what extent does a global-local model based on feature hashing improve classification performance in collaborative spam filtering with hundreds of thousands of users?

Key findings

  • The proposed hash kernel is unbiased, with $ \mathbb{E}_\phi[\langle x, x' \rangle_\phi] = \langle x, x' \rangle $, ensuring consistent estimation of true inner products.
  • Exponential tail bounds are established for the distortion of hashed inner products, showing that the probability of large deviation decays exponentially with the number of nonzero features.
  • The interference between independently hashed subspaces is negligible with high probability, enabling effective multitask learning across hundreds of thousands of tasks.
  • In collaborative spam filtering, users with minimal or no training data still benefit from personalization due to improved generalization from the global component.
  • The method achieves strong classification performance on real-world spam datasets with memory usage far below that of traditional kernel methods.
  • The global classifier in the personalized model generalizes better than a purely local one, especially for users with little or no labeled data.

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.