Amos explains: Why Flawed Reasoning Outweighs Wrong Predictions

Working notes from the Humanitarians AI Fellowship describe what happened when a default baseline correction step was removed from a spectroscopy classifier. The prediction was wrong, but the flaw in its reasoning is the lesson.

3:07 video3 min readWatch on YouTube

These working notes from the Humanitarians AI Fellowship start with a question about a spectroscopy classifier. A baseline correction step called ASPLS sits in the default pipeline, and nobody has checked whether it earns its place. The author asked an AI model to predict what would happen to test accuracy if the step were removed, to say where its number came from, and to say what would make that number wrong.

A confident prediction that failed

The answer came back confident: a loss of two to five points. It was wrong. Accuracy went up rather than down, and by more than the entire predicted range. The video argues that the size of the miss is not the interesting part. The number and the reasoning failed in two different ways, and only one of them is worth learning from.

What the baseline step does

Raman spectra arrive sitting on a slow, wandering baseline, mostly fluorescence, which carries no information about the molecule of interest. Baseline correction subtracts that drift so that the sharp peaks stand alone. It is standard and part of the default pipeline, which is exactly why nobody had questioned it.

Where the estimate came from

The estimate was not pulled from the air. It was derived from a validation-to-test pass-through ratio measured on seed variants. In plain terms: run the same model with different random seeds, watch how much test accuracy wobbles, and use that wobble to scale how much a change should move the number.

The result

Removing ASPLS did not cost two to five points. It gained 7.61 points. The prediction was wrong in direction as well as size, and the step everyone kept because it is standard had been actively hurting the classifier. Noise is not a plausible explanation: across six runs, a paired McNemar test gave p equal to 2.5 times 10 to the minus 57. The video explains that a paired test is the right choice because the test set is fixed and the same samples are being compared under two pipelines.

The real lesson

Seed variance measures one thing: how much the answer moves when you reroll randomness and change nothing else. Removing a preprocessing step is not a reroll. It changes the input representation, so the model is now looking at different data. A ratio calibrated on one kind of variation cannot price a different kind. Being off by about ten points is incidental; the reasoning pattern could not have worked at any magnitude.

Testing the follow-on claim

The same line of reasoning had predicted that an earlier finding in the repository, that smaller models win, was just an artifact of the bad baseline step. After 12 more runs on the corrected pipeline, with four architectures and three seeds each, the legacy CNN still won, at 83.89 against 79.56 for ResNet. The hypothesis was confidently argued and wrong, and rejecting it on evidence left the original finding better supported than before.

Key takeaways

  • A standard step in a default pipeline can hurt performance, and it should be tested.
  • Removing ASPLS raised accuracy by 7.61 points against a predicted loss of two to five.
  • Seed variance only measures randomness; it cannot calibrate a change to the input representation.
  • A paired McNemar test fits when the same fixed test set is evaluated under two pipelines.
  • Ask what kind of variation an estimate was calibrated on, and whether your change is the same kind.
  • A wrong number matters less than reasoning that could not have worked at any magnitude.
  • Rejecting a hypothesis on evidence can strengthen the original finding.

Try it yourself

Take any estimate an AI model hands you and do not argue with the number. Ask what kind of variation it was calibrated on and whether the change you are making is the same kind. The video notes that the useful answer is usually the third one, after the model stops defending its first.

Chapters

  1. 0:00Questioning the Default SPLS Preprocessing Step
  2. 0:25The Initial Prediction vs. Seed Variance Calibration
  3. 0:50The Result: A 7.61 Point Gain ($p = 2.5 \times 10^{-57}$)
  4. 1:15The Core Lesson: Randomness Wobble vs. Representation Changes
  5. 1:40Re-testing Architecture Assumptions (CNN vs. ResNet)
  6. 1:55Practical Takeaway: Calibration Questions
Full transcript(auto-generated, with timestamps)

Questioning the Default SPLS Preprocessing Step

[0:00]Here's the question I actually asked. I have a spectroscopy classifier with a baseline correction step called a SPLS sitting in the default pipeline. Nobody has checked whether it earns its place. Predict what happens to test accuracy if I remove it. Tell me where your number comes from, and tell me what would make that number wrong. The answer came back confident, two to five points. It was wrong. Accuracy went up, not down, and it went up by more than the whole predicted range, but that

The Initial Prediction vs. Seed Variance Calibration

[0:25]Is not the interesting part. The interesting part is that the number and the reasoning failed in two completely different ways, and only one of them is worth learning from. First, what ASPLS does. Raman spectra arrive sitting on a slow wandering baseline, fluorescence mostly, which carries no information about the molecule you care about. Baseline correction subtracts that drift, so the sharp peaks stand alone. It is standard, it is in the default pipeline, and that is exactly why nobody had questioned it.

The Result: A 7.61 Point Gain ($p = 2.5 \times 10^{-57}$)

[0:52]Now, the prediction and where it came from. The estimate was not pulled out of the air, that is what makes it instructive. It was derived from a validation to test pass-through ratio measured on seed variants. In plain terms, run the same model with different random seeds, watch how much test accuracy wobbles, and use that wobble to scale how much a change should move the number. Here is what actually happened. Removing ASPLS did not cost two to five points,

The Core Lesson: Randomness Wobble vs. Representation Changes

[1:16]It gained 7.61. The prediction was not just wrong in size, it was wrong in direction. The step that everyone kept because it is standard had been actively hurting the classifier. And before you reach for noise as the explanation, six runs paired McNemar p equals 2.5 * 10 to the -57. That is not a seed that landed well. Paired McNemar is the right test here precisely because the test set is fixed,

Re-testing Architecture Assumptions (CNN vs. ResNet)

[1:41]And you are comparing the same samples under two pipelines. So, here is the actual lesson, and it is not be careful, models are sometimes wrong. Seed variance measures one thing, how much the answer moves when you reroll randomness and change nothing else. Removing a pre-processing step is

Practical Takeaway: Calibration Questions

[1:56]Not a re-roll. It changes the input representation. The model is now looking at different data. A ratio calibrated on one kind of variation cannot price a different kind. The number being off by 10 points is incidental. The reasoning pattern could not have worked at any magnitude. One more thing because this is the part that keeps you honest. The same reasoning predicted that the repository smaller models win finding was just an artifact of that bad baseline step. 12 runs later at the corrected pipeline, four architectures, three seeds each, legacy CNN still won. 83.89 against ResNet at 79.56. The hypothesis was confidently argued and it was wrong. Rejecting it on evidence left the original finding better supported than it was before anyone doubted it. Your turn. Take any estimate a model hands you and do not argue with the number. Ask what kind of variation it was calibrated on and whether the change you are making is that same kind. Here is a prompt to start with. The useful answer is usually the third one after it stops defending the first. The prediction was wrong. The reasoning was wronger. Working notes from a humanitarian's AI fellowship, the failures are the part worth keeping.

More from RAMAN Effect

Humanitarians AI Lyrical Literacy Project