Contents · 4 sections
Preliminaries and Notation
P: true distribution.
pθ: model probability mass/density.
Observations are i.i.d. from P; all logs are natural.
Maximum likelihood estimation (MLE)
J(θ)=EX∼P[logpθ(X)]≈J(θ)=n1i∑logpθ(xi).θ^=argθmaxJ(θ)=argθmaxi∏pθ(xi).Population objective: minimize DKL(P∥pθ).
The 1/n is an empirical averaging weight, not a true input probability.
Conditional MLE
E(X,Y)∼P[logpθ(Y∣X)]≈n1i∑logpθ(yi∣xi).Maximizing the sample average is equivalent to maximizing
∏ipθ(yi∣xi).
For qθ(x,y)=PX(x)pθ(y∣x), drop
logPX(x) because it is independent of θ.
A learned pθ(x) generally cannot be dropped from joint likelihood.
Gaussian regression: negative log-likelihood (NLL)
Yi∣Xi=xi∼N(μi,vi), where
μi=μθ(xi), variance vi>0, residual ri=yi−μi.
L=−n1i∑logpθ(yi∣xi)=2n1i∑[log(2π)+logvi+viri2].Define MSE=n1∑iri2.
Equivalent objectives omit parameter-independent additive constants
and positive multiplicative constants.
| Variance assumption | Minimize |
|---|
| Fixed, shared v (homoscedastic) | MSE |
| Fixed, varying vi (heteroscedastic) | n1∑iri2/vi (weighted MSE) |
| Learned, shared v | logv+MSE/v |
| Learned, varying vi=vθ(xi) | n1∑i[logvi+ri2/vi] |