Yeh kaun si problem solve karta hai? Overfitting — low training error aur high test error ke beech ka gap.
Yeh regularization ka ek form kaise hai? Kam effective training steps ka matlab hai ki weights apne chhote random initialization se chhothi distance travel karte hain. Chhote weights ≈ ek simpler function. Toh training time limit karna model complexity ko limit karta hai — bilkul waise hi jaise ek L2 penalty karta hai (isko hum neeche prove karte hain).
Hum first principles se dikhate hain ki early stopping (approximately) weight decay ke equivalent hai. Yahi iska "deep" regularization karne ka reason hai.
Gradient descent update. Learning rate ε aur gradient ∇J=H(w−w∗) ke saath:
w(t)−w∗=(I−εH)(w(t−1)−w∗)Kyun? Gradient ko w(t)=w(t−1)−ε∇J(w(t−1)) mein substitute karo aur w∗ subtract karo.
Diagonalize karo.H=QΛQ⊤ likho eigenvalues λi ke saath. Eigen-coordinates [Q⊤w]i mein, w(0)=0 se shuru karke, t steps unroll karne par milta hai:
[Q⊤w(t)]i=(1−(1−ελi)t)[Q⊤w∗]iKyun? Har eigen-direction independently (1−ελi) factor se shrink hoti hai har step mein; geometric series.
Validation-loss curve ki kya shape hoti hai jo early stopping exploit karta hai?
U-shape: yeh decrease hoti hai, ek minimum tak pahunchti hai (best generalization), phir model ke overfit hone par rise kati hai.
Validation set gradient updates ko kabhi influence kyun nahi karna chahiye?
Taaki yeh generalization ka unbiased estimate bana rahe; agar yeh training drive karti, toh iska loss bhi optimistically biased ho jaata.
Early stopping mein "patience" define karo.
Consecutive epochs ki woh sankhya jisme koi validation improvement nahi hoti, jise hum stop karne se pehle tolerate karte hain.
Best checkpoint restore kyun karein, last weights kyun nahi?
Minimum ke baad ke last epochs zyada overfit hote hain; best checkpoint mein sabse kam validation loss tha = best generalization.
Quadratic analysis mein 1/α (inverse weight-decay) ka role kya play karta hai?
Training steps ki sankhya t — zyada steps = kamzor effective regularization = zyada bade effective weights.
Early stopping kaun si eigen-directions rakhta hai aur kaun si suppress karta hai?
High-curvature (bade λi) directions rakhta hai jo jaldi fit hoti hain; low-curvature (chhote λi) directions suppress karta hai jo t steps mein barely move karti hain.
Validation loss ki pehli uptick par rukna galat kyun hai?
Validation loss noisy hoti hai; ek akela blip real improvement ke baad aa sakta hai. Patience >1 use karo.
Early stopping aur L2 ke beech matching condition kya hai?
(1−ελi)t≈λi+αα.
Recall Feynman: ek 12-saal-ke bachche ko samjhao
Socho tum test ki tayari kar rahe ho. Pehle pehle, padhna help karta hai — tum ideas samajhte ho. Lekin agar tum raat bhar exact practice questions ratta lete rehte ho, toh tum un specific questions ko memorize karne lagte ho ideas ki jagah, aur real (different) test par worse karte ho. Early stopping ek dost ki tarah hai jo tumhare practice-test scores dekh raha hai aur tumhare kandhe par thapki deta hai: "Tum peak par the — ab ruko, real exam do." Hum tumhare best brain-state ka ek photo (checkpoint) bhi rakhte hain aur woh tumhe wapas dete hain.