In machine learning, overfitting occurs when a model learns the training data too well, capturing noise and random fluctuations instead of the underlying pattern. This leads to impressive accuracy on training data but poor performance on new, unseen data. Essentially, the model memorizes rather than generalizes.
Think of overfitting as studying for a test by memorizing the exact questions and answers, but failing when the questions are rephrased. Symptoms include high variance (small changes in training data cause large changes in predictions) and a gap between training and validation accuracy.
To combat overfitting, use techniques like cross-validation, regularization (L1/L2), pruning decision trees, or simplifying the model. More data also helps, as does early stopping during training. Recognizing overfitting is crucial to building robust models that truly learn.