AIToday
Qiita 機械学習Published: Nov 20, 2026, 01:00 JST

Dropout beats L2 on validation, but test MSE 0.115811 trails baseline

Send on LINE
Dropout beats L2 on validation, but test MSE 0.115811 trails baseline

3 Key Points

  1. What happened

    After 3,000 epochs, no regularization posted a validation MSE of 0.124815, while L2 regularization reached 0.107552 and Dropout 0.111139, even though the unregularized model had the lowest training MSE at 0.009335.

  2. Why it matters

    The tutorial's takeaway is that curbing overfitting can help on unseen data, but the Dropout model chosen on validation scored a test MSE of 0.115811 versus 0.115580 previously, so a single run does not prove Dropout is always better.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The tutorial builds directly on a prior lesson about overfitting, where a model bent its prediction line tightly around training points and saw validation error worsen. Regularization is presented as a way to constrain how closely the model fits the training data, and the piece walks through two common mechanisms before testing them.

The experiment uses a simple artificial dataset (target = input × 2 + 1 plus random noise) split into 20 training, 200 validation, and 200 test samples, with a two-hidden-layer network of 64 neurons each. A key methodological point is that L2 regularization changes what is minimized during training, so the comparison switches to plain MSE in evaluation mode for all conditions, which also disables Dropout.

Looking at the best validation epochs, the gap between conditions narrows considerably: no regularization reached 0.102445 at epoch 48, L2 reached 0.101052 at epoch 48, and Dropout reached 0.100533 at epoch 36. The tutorial stresses that its chosen values are comparison examples, not universally optimal settings, and that regularization strength and Dropout probability should be tuned on validation data rather than repeatedly checked against the test set.

FAQ
What is the difference between L2 regularization and Dropout?
L2 regularization adds the sum of squared weights to the loss, tuned by λ, while Dropout randomly sets some outputs to zero during training, tuned by probability p.
Why did the model with the best validation score not win on the test?
The Dropout model selected on validation had a test MSE of 0.115811, slightly higher than the earlier unregularized model's 0.115580, showing that good validation results do not guarantee better test results.
What settings were used in the comparison?
The three conditions were no regularization, L2 with coefficient 0.001, and Dropout with p=0.2, each trained for 3,000 epochs with identical data, splits, initial weights, learning rate, and epoch count.
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Next articleAlibaba building next Qwen model on in-house designed chips