Why are linear models and neural networks sensitive to unscaled input features?

Quick Overview

Asks why features on very different scales cause trouble for linear models and neural networks. Tests whether you can connect feature scale to gradient descent conditioning, unit-dependent L1 and L2 penalties, initialization and activation saturation, and say when scaling does not matter.

Why are linear models and neural networks sensitive to unscaled input features?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Why are linear models and neural networks sensitive to unscaled input features? ```hint Follow the feature into the gradient Write the gradient of the squared loss with respect to one weight of a linear model. Where does that feature's value show up, and what happens when two features differ in scale by several orders of magnitude? ``` ### What a Strong Answer Covers - How feature scale enters the gradient and makes the loss surface ill-conditioned, and what that does to gradient descent with a single learning rate. - Why L1 and L2 penalties become dependent on the units each feature is measured in. - Effects specific to neural networks, such as initialization assumptions and activation saturation. - The cases where scale does not matter or matters less (unregularized least squares predictions, tree models, adaptive optimizers, normalization layers). ### Follow-up Questions - When would you prefer min-max scaling, robust scaling or a log transform over standardization? - Why does centering the inputs help gradient descent, separately from rescaling them? - Does using Adam remove the need to scale inputs? - How would you scale sparse, high-dimensional features without destroying their sparsity?

Overview: Asks why features on very different scales cause trouble for linear models and neural networks. Tests whether you can connect feature scale to gradient descent conditioning, unit-dependent L1 and L2 penalties, initialization and activation saturation, and say when scaling does not matter.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Why are linear models and neural networks sensitive to unscaled input features?

What a Strong Answer Covers Guidance

  • How feature scale enters the gradient and makes the loss surface ill-conditioned, and what that does to gradient descent with a single learning rate.
  • Why L1 and L2 penalties become dependent on the units each feature is measured in.
  • Effects specific to neural networks, such as initialization assumptions and activation saturation.
  • The cases where scale does not matter or matters less (unregularized least squares predictions, tree models, adaptive optimizers, normalization layers).

Follow-up Questions Guidance

  • When would you prefer min-max scaling, robust scaling or a log transform over standardization?
  • Why does centering the inputs help gradient descent, separately from rescaling them?
  • Does using Adam remove the need to scale inputs?
  • How would you scale sparse, high-dimensional features without destroying their sparsity?