# Underfitting

> Canonical: https://skillalmanac.com/glossary/underfitting | Last verified: 2026-11-24 | Index status: index-eligible

Underfitting is inadequate capture of a task’s relevant patterns, often reflected in poor training fit. Limited capacity, unsuitable features, excessive regularization or insufficient optimization can contribute; poor scores alone do not identify the cause.

Also called: underfit, underfit model, underfitting machine learning, underfitted model, model too simple.

## In plain language

Trying to describe a winding relationship with an unsuitable straight-line model can miss its pattern even on training examples. This is one underfitting scenario. Insufficient training or strong constraints can also limit fit. Compare training and held-out results and inspect features, targets and optimization before choosing a remedy; extra complexity or longer training is not automatically the right fix.

## Technical definition

IBM describes an underfit model as one unable to capture the relationship between the input and output variables, giving high error on training data and on unseen data, and says high bias and low variance are good indicators. IBM lists causes including a model that is too simple, a model needing more training time, more input features or less regularization, and stopping training too soon, and remedies including less regularization, longer training and better features. The scikit-learn example fits a degree-1 polynomial to samples from a cosine and calls the failure to fit the training samples underfitting.

## How it shows up when you use agents

Underfitting can arise when an agent builds a model for you, for example a linear fit on a spreadsheet, and the predictions are poor even on the data it was fitted to. It also appears in a fine-tuning or small-model project where the training results do not improve.

What breaks when this is misunderstood is the next step. If a model is poor on its training data, more test data alone does not improve its fitted parameters, and stronger regularization may worsen an already constrained fit. The IBM article points the other way: more complexity, better features, less regularization or longer training. If the model is poor only on new data, the problem is different.

A practical next step is to ask the agent to report error on the training set and on a held-out set side by side, and to confirm the held-out set is clean. See [Machine learning](/glossary/machine-learning) and [Supervised learning](/glossary/supervised-learning) for the setting where this applies.

## Worked example (illustrative)

Use the three points (−1,1),(0,0),(1,1). Their best least-squares straight line is the constant 2/3, with mean squared error 2/9. Adding the feature x² allows the hand-specified model y=x² to fit all three exactly. This toy calculation shows a representation limit; it does not establish generalization or imply that greater complexity always helps.

## Common confusions

- **Underfitting versus overfitting.** An underfit model inadequately captures the relevant relationship; simplicity is one possible cause. An overfit model matches its training data too closely and errs on new data.
- **Underfitting versus a bad dataset.** Weak results can come from noisy labels or missing features rather than from model simplicity. Check the data before changing the model.
- **High bias versus high variance.** IBM names high bias and low variance as indicators of underfitting. They are signs, not a separate fix.
- **Myth.** Training for longer fixes it. IBM lists longer training as one remedy, but the scikit-learn example shows a degree-1 polynomial failing on a cosine-shaped pattern because the model form is too simple.

## Worked examples in this catalogue

### [data-analysis-eda](https://skillalmanac.com/skills/skill-almanac/data-analysis-eda)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.

Why it exercises the concept: Inspecting features and data quality can help investigate poor fit. This linked profiling skill does not train a model or diagnose underfitting by itself.

### [split-leakage-check](https://skillalmanac.com/skills/skill-almanac/split-leakage-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill checks train, validation and test files for duplicates, shared groups, time and label leakage, and prints JSON.

Why it exercises the concept: This linked skill checks split contamination. Training and held-out results can help investigate fit, but do not by themselves identify its cause.

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill builds and validates an eval dataset for any LLM feature, with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: This linked skill helps define evaluation cases. It does not train a model or determine whether a weak result is caused by capacity, optimization or data quality.

## Related terms

- [Overfitting](https://skillalmanac.com/glossary/overfitting.md)
- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Supervised learning](https://skillalmanac.com/glossary/supervised-learning.md)
- [Training data](https://skillalmanac.com/glossary/training-data.md)
- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Loss function](https://skillalmanac.com/glossary/loss-function.md)

## Sources

- [What is underfitting?](https://www.ibm.com/think/topics/underfitting), IBM (accessed 2026-11-24)
- [Underfitting vs. Overfitting, scikit-learn examples](https://scikit-learn.org/stable/auto_examples/model_selection/plot_underfitting_overfitting.html), scikit-learn (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
