Back to glossary

Underfitting

When a model is too simple to capture the underlying patterns in the data, resulting in poor performance on both training and test data because it fails to learn the relevant relationships.

Underfitting is the opposite of overfitting: the model cannot capture enough complexity to fit the data. A linear regression model trying to learn a highly nonlinear relationship will underfit. The training error remains high, and the model performs poorly on both training and test data because it fundamentally lacks the capacity to represent the patterns present.

Common causes include using a model that is too simple for the problem (linear model for nonlinear data), insufficient training (not enough epochs or too aggressive early stopping), excessive regularization that constrains the model too much, poor feature engineering that does not provide the model with informative inputs, and learning rate settings that prevent convergence.

Fixing underfitting typically involves increasing model complexity (more layers, more parameters, more flexible architecture), training longer, reducing regularization strength, engineering better features, or fundamentally rethinking the problem formulation. The balance between overfitting and underfitting is the core tension in machine learning, captured by the bias-variance tradeoff. The goal is a model complex enough to learn the signal but constrained enough to ignore the noise.

Related Terms