IInvest Like the Best
← All frameworks
Mindset

Regularization as a Discipline (for Models and for People)

A little noise, a little constraint, and a lot less overfitting.

Difficulty
Moderate
Time to result
~ongoing to results
Steps
6
Confidence
80%

Lowin argues that the greatest danger in the new quantitative world is overfitting — and that the defenses machine learning researchers built against it translate directly to how humans learn. Perfectly clean training data produces a model that memorises rather than generalises, because it never had to cope with imperfection. Techniques like dropout deliberately break the model at random, forcing it to solve the problem a slightly different or suboptimal way, and the result is far more robust. The simplest defense of all is to use a simple model with few parameters, which constrains the number of choices it can make. Lowin extends the same logic to people: a little stress helps, ruts are dangerous, and stepping away to work on something else changes the angle from which you attack a problem.

Origin

Lowin notes that machine learning researchers, rather than teaching humans to learn like algorithms, looked at how humans actually learn and encoded those observations back into the algorithms they build — dropout being a prominent example.

Core principles

  • 01Perfectly clean data produces models that cannot generalise
  • 02Deliberate, random breakage builds robustness
  • 03Simplicity is the cheapest regularizer available
  • 04Ruts are dangerous whether you are a machine or a human — and easier to diagnose in a machine
  • 05Overfitting lives in the modeller's beliefs as much as in the model

How to run it

  1. 1

    Assume your first strong result is overfit

    Two lines of code can run a seven-layer deep neural network with a perfect backtest. Treat that perfection as a symptom rather than a success.

    Watch out Models with millions or billions of parameters can fit any data you choose to show them.

  2. 2

    Constrain the model deliberately

    Use a simple model so it cannot make many choices. A linear-regression-shaped model has only as many parameters as regressors, which becomes an asset rather than a limitation.

    Pro tip You can force a simple model through an iterative solver rather than its closed form to keep the machine learning workflow while retaining the constraint.

  3. 3

    Introduce noise into training

    Add a little imperfection to the data instead of feeding a perfectly clean set, so the model is forced to generalise during training rather than only at deployment.

  4. 4

    Apply dropout — break it at random

    Randomly disable parts of the model and make it solve the problem a slightly different or suboptimal way. The net result is a much more robust and generalisable model.

    Pro tip Lowin calls it a drop-dead easy way to build a robust model, and it works most of the time.

  5. 5

    Regularize your own learning the same way

    If you are firing on all cylinders, take a break and work on something else to come at the issue from a different angle. If you have plateaued, put a mountain in front of yourself — a little stress makes you weigh possible routes differently.

    Pro tip Stress shifts how you value speed versus completeness; with unlimited time you would take the scenic route.

    Watch out Ruts are dangerous and harder to diagnose in yourself than in a machine.

  6. 6

    Audit your own confidence, not just the model

    Overfitting comes from two places: the model, and the belief of the person who implemented it. Interrogate whether you are choosing to treat a good result as meaningful rather than random.

In the wild

Dropout in practice

A model trained on perfectly clean data will learn that data but struggles to generalise, because it never had to during training. Dropout randomly breaks the model, forcing it to reach the answer along a different or slightly suboptimal path. Lowin describes it as a drop-dead easy technique that most of the time yields a substantially more robust and generalisable result, and one of the areas where the analogy to human learning holds up best.

→ A model that performs on data it has never seen rather than one that memorised its training set.

Constraining a model back toward regression

Rather than reaching for a deep network, Lowin suggests building something that looks a lot like a linear regression but denying it the closed-form solution, forcing it to iteratively approach the optimum like any other machine learning model. It is hamstrung by its own simplicity — it has only as many parameters as regressors — and that hamstringing is precisely the point.

→ Practitioners keep the machine learning workflow while structurally limiting how badly the model can overfit.

Common mistakes

Trusting a perfect backtest

When the model is amazing on the data you showed it, the most likely explanation is that it fit noise. Accessibility of powerful tools has made this the dominant failure mode for new quantitative practitioners.

Training only on clean data

A model given perfectly clean data never has to generalise during its training process, so it has a difficult time generalising afterwards. Some noise is a feature, not a defect.

Confusing your confidence with the model's evidence

Choosing to believe a great backtest or even a great forward test is meaningful rather than random is itself a form of overfitting — one no technical regularizer will catch.

Is it for you?

Best for

Practitioners building predictive models, and anyone whose learning has plateaued into a rut.

Not ideal for

Situations where maximum in-sample fidelity genuinely is the objective.

From the transcript

“if you add a little bit of noise to that data, there's a popular technique right now which is called dropout, which means that randomly,…”

Jeremiah Lowin

“One easy way to regularize your model is to use a simple model. Just don't let the model make a lot of choices.”

Jeremiah Lowin

“Sometimes we get stuck in ruts. Ruts are dangerous whether you're a machine or human.”

Jeremiah Lowin

From the episode

Jeremiah Lowin – Machine Intelligence and Risk Management - [Invest Like the Best, EP.20]

→