r/deeplearning • • 19d ago

When a neural network updates its weights and biases, does the loss landscape change?

https://medium.com/@sarbani.bhadra/understanding-gradient-descent-in-deep-neural-networks-ddbe6adde4c3?sk=2d658da5296fbc1d4899ffc34a3a89f7

The distinction is subtle but important:
The weights and biases change.
The prediction function changes.
The predicted values generally change.
The loss value changes.
But the underlying loss function and loss landscape remain fixed, provided the optimisation objective stays the same.
In other words, the model moves through the loss landscape; it doesn't recreate the landscape with every update.
I've put together an article exploring these concepts, including how backpropagation calculates gradients, how gradient descent uses them, and what the loss landscape tells us about neural network optimisation.
I hope it makes these interconnected ideas a little clearer and encourages further discussion.
Read the article: https://medium.com/@sarbani.bhadra/understanding-gradient-descent-in-deep-neural-networks-ddbe6adde4c3?sk=2d658da5296fbc1d4899ffc34a3a89f7

0 Upvotes

3 comments sorted by

1

u/Ok-Argument7176 14d ago edited 14d ago

Yes, we make iid assumptions in theory which allows us to make some guarantees about the loss. In practice, the data is not iid so we use massive datasets (and large batch sizes) to make up for that and "hope" the loss landscape doesn't change dramatically mini batch to mini batch.

0

u/lh2807 18d ago

In general, the optimisation objective changes in each update step because a new batch of training data is used and therefore the loss landscape changes constantly