Why are linear models often preferred when data is high-dimensional and sparse?

Last updated 14 November 2026

  • With many sparse features (text n-grams, one-hot IDs), data is often nearly linearly separable, so non-linear capacity adds little.

  • Regularized linear models (L2, or L1 which also selects features) control overfitting when features outnumber samples.

  • They are cheap: prediction costs only the non-zero features, and solvers work directly on sparse matrices. Trees and k-NN struggle with rare features and distance concentration.

  • https://scikit-learn.org/stable/auto_examples/text/plot_document_classification_20newsgroups.html
  • https://www.geeksforgeeks.org/machine-learning/sparse-matrix-in-machine-learning/
  • https://aman.ai/primers/ai/interview/
All Supervised Learning interview questions