4.5.12 · HinglishGenerative Models

Noise scheduling

1,971 words9 min readRead in English

4.5.12 · AI-ML › Generative Models

Noise Scheduling Kya Hai?

YEH KYUN MATTER KARTA HAI? Schedule decide karta hai:

  1. Training stability: Bure schedules → gradient vanishing/exploding
  2. Sample quality: Kharab schedules → artifacts, mode collapse
  3. Speed: Achhe samples ke liye kitne steps T chahiye

Schedule Mathematics Ko Derive Karna

Single-Step Se Multi-Step Tak

Recurrence se shuru karo (kyun: humein ko se relate karna hai):

Recursively expand karo:

Key insight: Independent Gaussians ka sum. Agar aur , tab:

Apply karo:

Variance simplify karo (kyun yeh step: noise terms combine karne ke liye algebra):

tak continue karo:

kyun matter karta hai: Ek single number jo step pe bachi hui total signal capture karta hai.

Figure — Noise scheduling

Common Schedules

Design Principles

1. Signal-to-Noise Ratio (SNR)

Step pe SNR define karo:

Derivation:

  • Signal component ka variance:
  • Noise ka variance: (dimension )
  • Ratio se SNR milta hai

WHY it matters: Neural network tab best seekhta hai jab SNR smoothly change ho (≈ har step pe constant difficulty).

2. Boundary Conditions

pe (start):

  • Chahte hain (almost no noise added); SNR parametrization mein hum ise pe cap karte hain taaki log-SNR finite rahe
  • bahut chhota hona chahiye par non-zero (numerical stability)

pe (end):

  • chahiye (prior se indistinguishable)
  • Typically aim karo

WHY: Kharab boundaries → network ko edges pe zyada mehnat karni padti hai, artifacts aate hain.

Adaptive Schedules

Connections

  • 4.5.11-Forward-and-reverse-diffusion-process — Schedule forward process define karta hai
  • 4.5.13-Denoising-objective — Schedule loss weighting across timesteps determine karta hai
  • 4.5.15-Score-matching — SNR score function magnitude ko affect karta hai
  • 4.5.18-Fast-sampling — Schedule choice step-skipping strategies (DDIM) enable karta hai
Recall Ek 12-saal ke bacche ko samjhao

Socho tum guess karne ki koshish kar rahe ho ki ek picture kaisi dikhti hai, par koi baar-baar usme aur zyada blur add karta ja raha hai. Noise schedule aise recipe hai jo batata hai ki har second mein kitna blur add karna hai.

Agar tum shuru mein hi bahut zyada blur add kar do, to zaroori details jaise faces ya text kho jaayenge — game over. Agar blur bahut dheere add karo, to use poora blur karne mein bahut time lagega. Best schedules (jaise "cosine") pehle dheere blur add karte hain (details bacha ke), beech mein tezi aate hain, phir end mein phir se dheere ho jaate hain.

Kyun? Kyunki hamara "de-blurring robot" (neural network) tab better seekhta hai jab har step equally hard ho. Agar ek step bahut easy hai aur doosra impossible, to robot confuse ho jaata hai. Ek achha schedule har step ko just-right difficult banata hai!

#flashcards/ai-ml

Noise scheduling mein , , aur ke beech mathematical relationship kya hai?
(per-step signal retention), ( se tak cumulative signal retention)
Correct linear schedule formula kya hai?
(typically ) se (typically ) tak linear interpolation
Diffusion models mein cosine schedule linear schedule se better kyun perform karta hai?
Cosine S-curve decay deta hai: shuruaat mein signal zyada der preserve karta hai (kam early artifacts), smoother SNR gradient (stable training), linear schedule ka early collapse avoid karta hai jahan midpoint tak signal almost khatam ho jaata hai aur late steps waste ho jaate hain
Direct sampling formula derive karo
se shuru karo. Recursively expand karo, Gaussian sum property use karo, variances simplify karo taaki pe coefficient mile
Timestep pe SNR kya hai aur schedule design ke liye yeh kyun matter karta hai?
. Signal-to-noise ratio measure karta hai; constant decay ensure karta hai ki har denoising step mein uniform difficulty ho, jisse stable gradients aur better convergence milti hai
ill-defined kyun hai aur SNR-based schedule mein hum ise kaise fix karte hain?
pe, isliye aur . Fix: regularize karo — ko pe cap karo (finite milta hai) ya schedule ko se start karo
(exactly zero nahi) kyun hona chahiye jabki hum shuruaat mein information preserve karna chahte hain?
Exactly zero se: (1) se divide karne mein numerical issues, (2) zero gradient flow (koi learning signal nahi), (3) infinite/undefined log-SNR kyunki . Chhota significant information loss ke bina stability deta hai
Ek achhe noise schedule ko kaunsi boundary conditions satisfy karni chahiye?
pe: (no noise; finite log-SNR ke liye pe cap). pe: (almost pure noise, prior se match kare). Kharab boundaries edge artifacts cause karti hain
schedule se kaise compute karte hain?
Definition se, rearrange karo: . Numerical stability ke liye valid range mein clamp karo

Concept Map

defines

reparam as

product gives

enables

instance

instance

drives

smooth decay of

affects

affects

affects

Noise Schedule beta_t

Forward process q x_t given x_t-1

alpha_t = 1 - beta_t

Cumulative alpha_bar_t

Direct sampling from x_0

Linear Schedule DDPM

Cosine Schedule Improved DDPM

Training Stability

Sample Quality

Steps T Needed