The three pillars lab, session I:
your data decide your ceiling

Session 24 · Wed Nov 25 · Book section 4.7 (§1–3)

🔬

Today’s question

A working model rests on three pillars: the training data, the architecture, the training strategy.

How high can any architecture score when the labels themselves disagree?

Lab notebook: 4.7 Training and evaluating a network — sections 1–3 today, 4–7 on Monday · the loop and the leaderboard: lecture 24a

This lecture in the literature

✗ Label errors in the grading data: ~3% of test labels in ten canonical benchmarks are wrong, enough to flip model rankings.

Northcutt, C. G., Athalye, A., & Mueller, J. (2021). Pervasive label errors in test sets destabilize machine learning benchmarks. NeurIPS Datasets and Benchmarks Track.

✓ Measuring the disagreement: hand experts the same seismic image and their interpretations diverge — labels are interpretations, and the spread is measurable.

Bond, C. E., Gibbs, A. D., Shipton, Z. K., & Jones, S. (2007). What do you think this is? “Conceptual uncertainty” in geoscience interpretation. GSA Today, 17(11), 4–10.

📖 Why random flips are the kind case: with enough data, deep networks average away massive uniform label noise.

Rolnick, D., Veit, A., Belongie, S., & Shavit, N. (2017). Deep learning is robust to massive label noise. arXiv:1705.10694.

Labels are interpretations. The disagreement between experts is measurable — and it caps what any model can demonstrate.

Same error rate, different damage

30% uniform flips cost 0.6 points. 30% adjacent-class disagreement costs 2.7: the two mappers vote coherently, and more data makes the model more confident in their shared mistake.

The rare class disappears quietly

Shrinking the rare class: overall accuracy drifts 0.945 → 0.881, while andesite recall collapses 0.742 → 0.000. Report per-class recall and the confusion matrix; never accuracy alone. Synthetic lithology table (mlgeo_synth).

The metadata you are throwing away

0.936 mixed lab- and field-grade data, variance ignored

0.946 same data, loss weighted by 1/σ²

All-lab-grade reference: 0.949. Heteroscedastic = the noise level varies sample to sample — and the metadata usually says by how much.

One line of loss code recovers most of what mixed data quality costs. Any column named uncertainty, std_err, or pick_weight is an invitation.

What pillar 1 buys, in one table

Defect Signature First fix
Uniform label noise validation ceiling sags on small datasets, most without a checkpoint audit labels; keep the best epoch; more data
Structured disagreement errors pile up on the boundaries of the disputed class; ceiling capped measure inter-rater agreement, relabel
Class imbalance accuracy fine, rare-class recall collapsing class weights; check recall
Heteroscedastic noise mixed-provenance table underperforms weight the loss by 1/σ²

Fixing a thousand labels usually beats adding a million parameters.

Now run it yourself — open 4.7, sections 1–3

  1. mlgeo_4.7_ModelTraining.ipynb: sections 1–2, one network step by step; Your turn (1): write the four lines of one epoch; then the baseline
  2. Label-noise sweep in both data regimes; read the seed bands before trusting any difference
  3. Two mappers and the rare class; Your turn (2): weight the rare class, check andesite recall
  4. Mixed sample quality, then the learning curve — would more data help your project?
  5. Stop at the end of section 3. Monday resumes at section 4.

Monday: session II — uncertainty you can defend (4.7 §4–7) · HW-DL due Fri Dec 4 · classification leaderboard closed Nov 24