Synthetic Gradients - what's the practical benefit? I can see two motives to use Synthetic Gradients in RNN:


To speed up training, by imediately correcting each layer with predicted gradient
To be able to learn longer sequences


I see problems with both of them. Please note, I really like Synthetic Gradients and would like to implement them. But I need to understand where my trail of thought is incorrect.
I will now show why Point 1 and Point 2 don't seem to be beneficial, and I need you to correct me, if they are actually beneficial:

Point 1:
Synthetic Gradients tell us we can rely on another &quot;mini-helper-network&quot; (called DNI) to advise our current layer about what gradients will arrive from above, even during fwd prop.
However, such gradients will only come several operations later. Same amount of Backprop will have to be done as without DNI, except that now we also need to train our DNI.
Adding this Asyncronisity shouldn't not make layers train faster than during the traditional &quot;locked&quot; full fwdprop -&gt; full back prop sequence, because same number of computations must be done by the device. It's just that the computations will be slid in time

This makes me think Point 1) will not work. Simply adding SG between each layer
shouldn't improve training speed.

Point 2:
Ok, how about adding SG only on the last layer to predict &quot;gradient from future&quot; and only if it's the final timestep during forward prop.
This way, even though our LSTM has to stop predicting and must backpropagate, it can still predict the future-gradient it would have received (with the help of DNI sitting on the last timestep).

Consider several training sessions (session A, session B):

fwdprop timestep_1A ---&gt; fwdprop timestep_2A ---&gt; fwdprop timestep_3A
----&gt; stop and bkprop!
fwdprop timestep_1B ---&gt; fwdprop timestep_2B ---&gt; fwdprop timestep_3B
----&gt; stop and bkprop!

We've just forced our network to &quot;parse&quot; 6 timesteps in two halves: 3 timesteps, then 3 remaining timesteps again.


Notice, we have our DNI sitting at the very end of &quot;Session A&quot; and predicting &quot;what gradient I would get flowing from the beginning of Session B (from future)&quot;.
Because of that, timestep_3A will be equipped with gradient &quot;that would have come from timestep_1B&quot;, so indeed, corrections done during A will be more reliable.
But, hey! These predicted &quot;synthetic gradients&quot; will be very small (negligible) anyway - after all, that's why we start a new backprop session B. Weren't they too small, we would just parse all 6 timesteps in a single long bkprop &quot;session A&quot;.

Therefore I think Point 2) shouldn't give benefit either. Adding SG on the last
timestep of fwdprop allows to effectively train longer sequences, but
vanishing gradients didn't go anywhere.


Ok. Maybe we can get the benefit of training &quot;session A&quot;, &quot;session B&quot; etc on separate machines? But then how is this different to simply training with the usual minibatches in parallel? Keep in mind, was mentioned in point 2: things are worsened by sessionA predicting gradients which are vanishing anyway.
Question:
Please help me understand the benefit of Synthetic Gradient, because the 2 points above don't seem to be beneficial
But, hey! These predicted "synthetic gradients" will be very small (negligible) anyway - after all, that's why we start a new backprop session B. Weren't they too small, we would just parse all 6 timesteps in a single long bkprop "session A".


-That's not necessarily correct. We typically truncate and start a new backprop because of hardware constraints, such as memory or computational speed. Vanishing-gradient can be improved by other means, such as Gradient Normalization - scaling-up the gradient vector if it gets too small beyond certain layers, or scaling-down if it's about to explode. Or even using Batch Normalization



It's important to understand how to update any DNI module. To clear things up, consider an example of network with several layers and 3 DNI modules:

 input
   |
   V
Layer_0 &amp; DNI_0
Layer_1
Layer_2
Layer_3 &amp; DNI_3
Layer_4
Layer_5 &amp; DNI_5
Layer_6
Layer_7
   | 
   V
output



  The DNI_0 is always trained with a synthetic gradient arriving from DNI_3 (flowing through Layer_2, and Layer_1 of course), siting several layers further. 
  
  Likewise, the DNI_3 is always trained with a synthetic gradient arriving from DNI_5
  
  DNI_0 or DNI_3 will never get to see the true gradient, because true grad is only delivered to DNI_5, and not earlier.
  
  For anyone still struggling to understand them, read this awesome blogpost, part 3


Earlier layers will have to be content with synthetic gradients, because they or their DNI will never witness the "true gradient".



Regarding training in parallel with minibatches instead of Parallelizing via Synthetic Grads:

Longer sequences are more precise than minibatches, however minibatches add a regulization effect. But, given some technique to prevent gradient from exploding or vanishing, training longer sequences can provide a lot better insight into context of the problem. That's because network infers output after considering a longer sequence of input, so the outcome is more rational.

For the comparison of benefits granted by SG refer to the diagrams page 6 of the Paper, mainly being able to solve longer sequences, which I feel is most beneficial (we can already parallelize via Minibatches anyway, and thus SG shouldn't speed up the process when performed on the same machine - even if we indeed only propagate up to the next DNI). 



However, the more DNI modules we have, the noisier the signal should
 be. So it might be worth-while to train the layers and DNI all by the legacy backprop, and only after some epochs have elapsed we start using the DNI-bootstrapping discussed above. 

That way, the earliest DNI will acquire at least some sense of what to expect at the start of the training.  That's because the following DNIs are themselves unsure of what the true gradient actually looks like, when the training begins, so initially, they will be advising "garbage" gradient to anyone sitting earlier than them.

Don't forget that authors also experimented with predicting the actual  inputs for every layer.



If your layers have expensive backprop (perhaps you have Batch-Normalization or some fancy activation functions), correcting with DNI might be a lot cheaper, once it's sufficiently well-trained.  Just remember that DNI is not free - it requires matrix multiplication and probably won't provide much speed-up on a simple dense layer.



Minibatches gives us speedup (via parallelization) and also give us the  regularization.
Synthetic Gradients allow us to infer better by working with longer sequences and (potentially) less-expensive gradient. All together this is a very powerful system.