3.2.13 · HinglishTraining Deep Networks

Data augmentation strategies

1,811 words8 min readRead in English

3.2.13 · AI-ML › Training Deep Networks


Augmentation kaam karta hi kyun hai?


KAISE: first principles se augmented loss derive karna


Figure — Data augmentation strategies

Strategy zoo (har ek ke saath WHY)


Common mistakes (Steel-manned)


Active recall

Recall Feynman: ek 12-saal ke bachche ko samjhao

Socho tum apne dost ko photos se pehchanna seekh rahe ho. Agar tumne sirf ek photo dekhi ho, toh jab woh topi pehne ya andhere mein khadi ho toh tum confuse ho jaoge. Toh hum photo ki bahut saari copies banate hain — ulti, zyada roshan, zoom ki hui, ek kona dhaka hua — aur sab padhte hain. Ab tum apni dost ko kahin bhi pehchan lete ho, kisi bhi roshni mein, chahe uska chehra thoda chhupaaya hua ho. Yahi data augmentation hai: saste "trick photos" banana taaki computer chhoti chhoti changes se bewaqoof na bane.


Flashcards

Data augmentation kya hai?
Training data par label-preserving (ya label-mixing) transformations apply karna taaki variety badhe aur desired invariances inject ho, regularization ki tarah kaam karta hai.
Augmented empirical risk likho.
SGD ek minibatch mein ek transform kyun use kar sakta hai?
Kyunki jahan hai, expected augmented loss ka unbiased Monte-Carlo estimate hai.
Augmentation kyun kaam karta hai ke do mental models?
(1) Zyada effective training data; (2) invariances inject karna = hypothesis space chhota karna = regularization.
Ek aisa example do jahan horizontal flip label tod de.
Text/digits (6↔9), road signs, medical left/right laterality.
Mixup formula inputs aur labels ke liye?
, , .
CutMix labels kiske hisaab se mix karta hai?
Pasted patch ke area fraction ke anupat mein.
Cutout/Random Erasing kyun madad karta hai?
Yeh object ka hissa chhupa deta hai, model ko poore object ka istemal karne par majboor karta hai na ki sirf ek discriminative patch ka.
Kya test set par augment karna chahiye?
Nahi (sirf train par), jab tak deliberately test-time augmentation nahi kar rahe jo augments par predictions average karta hai.
Precompute-once augmentation on-the-fly se worse kyun hai?
Precomputing ek finite enlarged set fix kar deta hai; on-the-fly har epoch mein fresh transforms deta hai, memorization rok ke.
Steel-man: "zyada augmentation hamesha better" galat kyun hai?
Bahut strong augments data ko true distribution se door kar dete hain → underfitting; strength ko validation ke through tune karna padta hai.
Mixup label λ=0.4 ke liye class0 aur class1 ke beech?
.

Connections

  • Regularization — augmentation ek implicit regularizer hai.
  • Overfitting and Generalization — woh problem jise augmentation tackle karta hai.
  • Convolutional Neural Networks — translation invariance random crops ke saath pair hoti hai.
  • Empirical Risk Minimization — augmented ERM ise extend karta hai.
  • Batch Normalization & Dropout — complementary regularizers.
  • Transfer Learning — chhote fine-tuning sets ke saath augmentation khaaskar zaroori hai.
  • Beta Distribution — Mixup coefficient sample karta hai.

Concept Map

creates

View 1

View 2

acts as

reduces

starts from

add random t~P T

Monte-Carlo sample

trained with

example type

warning

effect

Data Augmentation

Label-preserving transforms

More free data

Injects invariances

Regularization

Overfitting

Ordinary ERM loss

Augmented ERM expectation

Unbiased estimator per batch

Plain SGD

Geometric transforms

Vertical flip breaks 6 to 9