What is along the gradient and againt gradient mean
| Context | Along gradient | Against gradient |
|---|---|---|
| Diffusion | Molecules move high → low concentration (passive, no energy needed) | Molecules move low → high concentration (active transport, needs energy) |
| Electric field | Positive charge moves with the field | Negative charge moves against the field |
| Neural networks | Gradient ascent (maximize a function) | Gradient descent (minimize loss) |