· Xiaojing Yang · Machine Learning · 2 min read

中文

Bias–Variance Trade-off in Machine Learning

A practical diagnosis map for underfitting, overfitting, model complexity, and generalization.

Core idea

Bias–variance is a diagnosis tool: it tells me whether the model is too rigid or too sensitive.

1. The core idea

High bias means the model makes strong simplifying assumptions and misses the signal. High variance means the model reacts too much to the training sample.

Complexity diagnosis
Low complexity
High bias, underfitting
Medium complexity
Useful signal captured
High complexity
High variance, overfitting

2. What you see in practice

PatternDiagnosisPossible response
Train bad, validation badHigh biasricher features, larger model, better target
Train good, validation badHigh varianceregularization, more data, simpler model
Big seed variationHigh variancerepeated runs, stronger constraints
Stable but mediocreHigh biasimprove representation

3. sklearn-style check

Learning curves are a practical way to diagnose whether more data might help.

from sklearn.model_selection import learning_curve

train_sizes, train_scores, val_scores = learning_curve(model, X, y, cv=5, scoring="accuracy")

4. AI/NLP connection

In low-resource adaptation, a small model may underfit domain terminology, while a large fine-tuned model may memorize a noisy corpus. Bias–variance language helps explain why parameter-efficient tuning can be attractive.

Interview version

Bias is error from too-simple assumptions; variance is error from sensitivity to training data.

Project version

I check train/validation gaps, seed variation, domain errors, and whether more data or stronger regularization helps.

Takeaway

Bias–variance trade-off turns “the model is bad” into a useful question: what kind of generalization failure is it?

Interview pattern

When this appears in an interview, I would answer in four layers:

  1. give the short definition;
  2. explain the intuition;
  3. name the common failure mode;
  4. connect it to a real evaluation or deployment decision.

References

Share:
Back to Blog

Related Posts

View All Posts »
FoundationsMachine LearningEN

Metrics Beyond Accuracy

Accuracy is easy to understand, but often wrong for imbalanced, ranked, or cost-sensitive tasks.