r/MachineLearning • • Oct 15 '25

Discussion [D] What is Internal Covariate Shift??

Can someone explain what internal covariate shift is and how it happens? I’m having a hard time understanding the concept and would really appreciate it if someone could clarify this.

If each layer is adjusting and adapting itself better, shouldn’t it be a good thing? How does the shifting weights in the previous layer negatively affect the later layers?

43 Upvotes

17 comments sorted by

View all comments

Show parent comment

10

u/maxaposteriori Oct 16 '25

Has there been any work on more explicitly smoothing the loss function (for example, by assuming any given inference pass is a noisy sample of an uncertain loss surface and deriving some efficient training algorithm based on this?).

10

u/Majromax Oct 16 '25

Any linear transformation applied to the loss function over time can just be expressed as the same function applied to gradients, and the latter is captured in all of the ongoing work on optimizers.

7

u/Kroutoner Oct 16 '25

A great deal of the success of stochastic optimizers (SGD, Adam) comes from implicitly doing essentially just what you describe

1

u/maxaposteriori Oct 17 '25

Yes, I was thinking more of something derived as approximations of first principles using some underlying distributional assumptions, i.e. some sort of poor man’s Bayesian Optimisation procedure.

Whereas Adam/SGD techniques started as more heuristics-based. Or at least, that’s to my knowledge… perhaps they’ve been placed on a more theoretical ground by subsequent work.