Why might a Random Forest underperform a regularized linear model on high-dimensional sparse data such as text?

Last updated 5 November 2026

  • Text signal is many weak additive word effects, which a linear model captures with one weight per word. Trees need long split chains to approximate a sum and overfit noise.

  • With sparse features, random subsets (max_features='sqrt') mostly pick all-zero columns, and rare terms create spurious splits when p ≫ n.

  • L1/L2 regularization shrinks weights in a controlled way that forests lack. Forests are also slower, larger, and poorly calibrated on such data.

  • https://scikit-learn.org/stable/auto_examples/text/plot_document_classification_20newsgroups.html
  • https://pub.towardsai.net/random-forest-demystified-must-know-questions-and-answers-for-data-science-interviews-c2ad05241bfd
  • https://medium.com/data-science-collective/old-tricks-new-battles-why-classic-models-still-matter-in-nlp-bf28cc6720aa
All Random Forests interview questions