Underfitting
Underfitting is when a model is too simple or too little trained to capture the patterns in its data, so it performs poorly even on the examples it was trained on.
Underfitting is the opposite failure to overfitting. An overfit model memorises its training data so closely that it fails on new data. An underfit model never learns the training data properly in the first place. Google's Machine Learning Crash Course puts it simply: an underfit model does not even make good predictions on the training data.
The classic picture is a straight line drawn through data that curves. However the line is placed, it misses the shape, because the model is not flexible enough to represent it. In statistical terms an underfit model has high bias: its built-in assumptions are too strong for the problem. The bias-variance trade-off describes the balance between this and overfitting, where the model is so flexible it chases noise.
Google's glossary lists common causes: training on the wrong features, training for too few epochs or at too low a learning rate, applying too much regularisation, and using too few hidden layers in a neural network. The usual remedies follow from the causes: use a more capable model, add better features, train for longer or with better settings, or ease off the constraints placed on the model.
Underfitting is easy to spot, which makes it less dangerous than overfitting. If a model's error on its own training data stays high, it is underfitting; there is no need to wait for real-world failures to find out. In large language models the equivalent is a model that has been stopped before it has learned all it could from its data, which is one reason developers watch the training loss curve to decide when more training is still paying off.
An overfit model fits its training data too closely, including its noise, and does well in training but badly on new data. An underfit model fails to capture the patterns at all and does badly on both. The goal is a model in between that learns the real patterns and generalises to new examples. The clearest sign is high error on the training data itself. If the loss on both the training set and the validation set stays high and close together, the model is probably too simple, has the wrong features or has not trained long enough. Common fixes include using a larger or more flexible model, adding more informative features, training for more epochs or with a better learning rate, and reducing regularisation. Which works depends on the cause, so it helps to try one change at a time. Not on its own if the model is too simple, because a model that cannot represent the pattern will miss it however many examples it sees. More data helps most when the model is capable enough but has had too little to learn from.Common questions
What is the difference between overfitting and underfitting?
How do you know if a model is underfitting?
How do you fix underfitting?
Can more data fix underfitting?
Search for "underfitting vs overfitting", "bias-variance trade-off" or "loss curves" to learn how to diagnose model fit. Google's Machine Learning Crash Course and glossary explain the ideas clearly, and statistics and machine learning textbooks cover the theory. Look for sources that show training and validation results side by side, since a single accuracy figure cannot tell you whether a model is underfitting or overfitting.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.