Let's solve this step by step. The main concept here is Nesterov Accelerated Gradient (NAG). The trick is that NAG calculates the gradient at a look-ahead position, not at the current weight.
| Parameter | Value |
|---|---|
| Input | 0.5 |
| True output | 1 |
| Initial weight | 5 |
| Initial bias | -5 |
| Momentum | 0.9 |
| Learning rate | 0.1 |
| Current velocity | 0.8 |
| Current weight | 2.5 |
| Current bias | 0 |
We need to calculate:
NAG uses two equations:
Velocity update:
Weight update:
Notice something important:
NAG first looks ahead using:
Then calculates the gradient at that position.
We are given:
Using:
Substitute:
Similarly:
Substitute:
Now we have our look-ahead position:
Weight = 1.78
Bias = -0.72
Remember the sigmoid formula:
Where:
Substitute the look-ahead values:
Now apply sigmoid:
This is the most important step.
For a sigmoid neuron with the given MSE loss:
We know:
Substitute:
Solve each part:
Final answer: −0.057 ≈ −0.056
The entire question follows just these 4 steps:
| Step | What to do |
|---|---|
| 1 | Look-ahead weight: |
| 2 | Look-ahead bias: |
| 3 | Calculate sigmoid output using look-ahead values |
| 4 | Calculate gradient using |
Important exam trick:
Don't confuse these two:
Normal Gradient Descent: Calculate gradient at the current weight.
Nesterov (NAG): Calculate gradient at the look-ahead weight.
And one more thing: The question asks for the gradient of the look-ahead value, NOT the next updated weight. Therefore, you don't need to calculate the final velocity or update the weight using learning rate
Let's modify the original question so that instead of asking for the gradient of the look-ahead value, it asks for the next weight and bias after the NAG update.
A sigmoid neuron has a single input
The model uses Nesterov Accelerated Gradient Descent (NAG) with momentum parameter
After 10 iterations (starting from iteration zero), the parameter values at iteration
Calculate the next updated weight and bias after one NAG iteration.
NAG formula:
First calculate:
Apply sigmoid:
For sigmoid with MSE:
Substitute:
Updated weight
Updated bias
| If question asks for... | Stop at... |
|---|---|
| Gradient of look-ahead value | Step 4 |
| New velocity | Step 5 |
| Updated weight | Step 6 |
| Updated weight and bias | Step 7 |
One important correction: In the original question, the look-ahead bias was calculated using the same velocity
Also, the given answer