Underfitting is a condition in machine learning where a model fails to adequately capture the underlying patterns and relationships within the training data. This failure typically stems from a model that is too simplistic or lacks the necessary capacity to represent the complexity of the information it is processing. Consequently, the model exhibits poor performance, characterized by high error rates on both the training data and new, unseen data.
How it works
Underfitting occurs when a learning algorithm is unable to fit the training data effectively. This state is often described as having high bias, meaning the model makes strong assumptions about the data that do not hold true. Because the model is too rigid or simple, it misses the relevant signals in the data, leading to inaccurate predictions. The model essentially “understands” the training set poorly, which naturally leads to poor generalization when it encounters new examples.
The phenomenon can be identified through specific indicators in the learning process. In the context of a learning curve, underfitting is indicated by a convergence of the training error and the validation error at a relatively high level. Unlike overfitting, where training error is low but validation error is high, underfitting shows that the model has not learned enough from the training data to perform well even on the data it has already seen.
Several factors contribute to this state. It can arise from using an overly simple model architecture that lacks the structural depth to handle complex relationships. It may also result from insufficient training, where the model has not been exposed to the data long enough to converge on a solution. Additionally, inadequate feature representation can cause underfitting; if the input data lacks the necessary information or if the features are not properly prepared, even a capable model may struggle to find patterns.
Where it is used
Underfitting is a primary concern in the development and tuning of any machine learning system. It is particularly relevant when selecting model architectures for complex tasks. For instance, if a simple linear model is applied to data with highly non-linear relationships, the model will likely underfit because it cannot capture the curvature of the data. Similarly, in deep learning, a neural network with too few layers or neurons may underfit if the task requires hierarchical feature extraction.
The concept is also central to the process of hyperparameter tuning. When adjusting settings such as the number of layers, the learning rate, or the duration of training (epochs), practitioners must ensure the model is not underfitting. Techniques to mitigate underfitting include increasing the complexity of the model, such as adding more layers or neurons, or extending the training duration to allow the model more time to learn. Other strategies involve using more relevant features or collecting more diverse and comprehensive training data to provide the model with richer signals.
Balancing model complexity is essential to avoid underfitting while preventing overfitting. An overly complex model might capture noise rather than signal, leading to overfitting, whereas an overly simple model misses the signal entirely. The goal is to find a model complexity that accurately represents the underlying data distribution without being so simple that it fails to learn the basic patterns.
Limitations and trade-offs
The primary trade-off in addressing underfitting is the risk of introducing overfitting. As a model’s complexity is increased to better fit the training data, it gains the capacity to memorize noise and specific details of the training set that may not generalize to new data. Therefore, increasing complexity must be done carefully, often accompanied by regularization techniques or cross-validation to ensure the model is learning generalizable patterns rather than just memorizing the training examples.
Another limitation is the computational cost associated with more complex models. Increasing the number of layers, neurons, or training epochs requires more processing power and time. In resource-constrained environments, such as edge devices or real-time applications, the increased complexity required to avoid underfitting might make the model too slow or too large to deploy effectively. Additionally, if the data itself is insufficient or of poor quality, simply increasing model complexity may not resolve underfitting, as the model will still lack the necessary information to learn accurate patterns.
Related terms
- Overfitting – The opposite condition where a model captures noise instead of signal, leading to poor generalization despite low training error.
- Bias-Variance Tradeoff – The balance between a model’s ability to minimize error (bias) and its sensitivity to fluctuations in the training data (variance), where underfitting represents high bias.
- Hyperparameters – Settings like model depth or training duration that are adjusted to prevent underfitting by controlling model complexity and learning behavior.
- Training Data – The dataset used to teach the model; inadequate or insufficient training data can directly lead to underfitting.
- Regularization – Techniques often used in conjunction with complexity adjustments to prevent overfitting when addressing underfitting by increasing model capacity.
- Learning Curve – A plot of error versus training progress; underfitting is identified by high, converging training and validation errors on a learning curve.

