Skip to content
TheChatArchiveThe Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)Hugging Face OpenAssistant Conversations (oasst2)

what is the difference between under-fitting and over-fitting

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    what is the difference between under-fitting and over-fitting

  2. Assistant

    Underfitting and overfitting are problems that occur during the model training process.

    Underfitting occurs when the model is too simple and cannot accurately capture the pattern in the training data. As a result, the model has poor performance on both the training data and new, unseen data. Underfitting is often caused by not having enough features or a lack of model complexity.

    Overfitting occurs when a model has too many parameters relative to the number of observations in the training data, and it starts to memorize the training data instead of learning the underlying patterns. This leads to high training accuracy but poor generalization performance on unseen data

    To prevent underfitting and overfitting, a balance needs to be struck between model complexity and the amount of training data. Techniques such as cross-validation, regularization, and early stopping can also help to prevent overfitting.

  3. User

    Which metric is most important to look at to detect if over-fitting is taking place?

  4. Assistant

    Which metric is best depends on the kind of task, e.g. whether it is a (binary) classification or generative task.

    For a (binary) classification task a good choice is the F1F_1-Score. It is calculated by 21precision+1recall\frac{2}{\frac{1}{\text{precision}}+\frac{1}{\text{recall}}}, where recall is a measure for how well did the model find the positives and precision is a measure for how many positive predictions where correct. So a high recall would mean that many positives were correctly classified and a high precision would mean that only few of the negatives were classified as positives.

    There are many more metrics like AUC (Area Under Curve), MSE (Mean SquaredError) and Categorical Crossentropy and you will have to try out what works best for you and your specific task.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.