1. Home
  2. Explore
  3. Computer Science
  4. Synthetic Gradients in Neural Networks

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Synthetic Gradients in Neural Networks

  • 51Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Backpropagation and Parallelism

In ordinary backpropagation, what happens during the forward phase?

51 questions

  1. 1

    In ordinary backpropagation, what happens during the forward phase?

    1. A

      Each layer predicts its own gradients and updates independently of the network output

    2. B

      Gradients pass backward through the layers to update parameters before the loss is computed

    3. C

      Inputs pass through the layers to produce outputs, which are compared with labels to compute the loss

    4. D

      The parameters are frozen while labels are propagated backward through the network

    Correct answer
    C

    Inputs pass through the layers to produce outputs, which are compared with labels to compute the loss

    Explanation

    The forward phase computes layer outputs from the inputs and parameters, then compares the network output with the labels to obtain the loss.

  2. 2

    In the backward phase of the described feedforward network, what is propagated backward?

    1. A

      The labels, beginning at the output layer

    2. B

      The updated parameters, beginning with the first hidden layer

    3. C

      The input examples, beginning at the output layer

    4. D

      Gradients of the loss, beginning with gradients with respect to the output-layer activations

    Correct answer
    D

    Gradients of the loss, beginning with gradients with respect to the output-layer activations

    Explanation

    Backpropagation starts with gradients of the loss with respect to the output activations and propagates those gradients backward through the network.

  3. 3

    What is the purpose of the gradient descent step following backpropagation?

    1. A

      To replace the forward computation with a gradient prediction

    2. B

      To calculate the labels that should be used for the next batch

    3. C

      To propagate the inputs from one GPU to another

    4. D

      To adjust parameters in a direction expected to reduce the loss

    Correct answer
    D

    To adjust parameters in a direction expected to reduce the loss

    Explanation

    The computed gradients are used to change the parameters in a direction that reduces the loss.

  4. 4

    What does model parallelism mean in the described setup?

    1. A

      Splitting one neural network into parts that run on different GPUs

    2. B

      Training separate networks on different portions of the labels

    3. C

      Assigning each GPU a different optimizer for the same layer

    4. D

      Replicating the entire network on several GPUs and assigning each a different batch

    Correct answer
    A

    Splitting one neural network into parts that run on different GPUs

    Explanation

    Model parallelism divides a network into parts and places those parts on separate GPUs.

  5. 5

    Why does ordinary backpropagation create a forward lock in a model-parallel network?

    1. A

      A layer must wait for the final gradients before computing its forward activations

    2. B

      A layer cannot process its batch until the preceding layer has produced its outputs

    3. C

      A GPU cannot receive inputs until all other GPUs have completed backpropagation

    4. D

      A layer cannot update its parameters until the next batch has been loaded

    Correct answer
    B

    A layer cannot process its batch until the preceding layer has produced its outputs

    Explanation

    The forward computation is sequential across the split network: each later GPU must wait for the previous part to finish producing that batch's activations.

  6. 6

    What is the update lock?

    1. A

      The need to wait until the loss is computed before updating parameters

    2. B

      The need to update every layer before beginning the backward pass

    3. C

      The need to wait until every GPU has copied its parameters to the CPU

    4. D

      The need to wait until the next batch is loaded before calculating activations

    Correct answer
    A

    The need to wait until the loss is computed before updating parameters

    Explanation

    Parameters cannot be updated until the loss has been computed, which creates the update lock.

  7. 7

    What is the backward lock in the described model-parallel setting?

    1. A

      The first GPU cannot start a batch until the last GPU has sent it gradients

    2. B

      The output layer cannot compute a loss until all parameters have been updated

    3. C

      A layer's parameters cannot be updated until the backward pass has reached that layer

    4. D

      A layer cannot compute its output until the backward pass is complete

    Correct answer
    C

    A layer's parameters cannot be updated until the backward pass has reached that layer

    Explanation

    A layer must wait for backward propagation to reach it before its true gradients can be used for an update.

  8. 8

    Why might splitting a network across three GPUs make ordinary backpropagation slower than using one GPU?

    1. A

      The GPUs spend substantial time waiting because the forward, update, and backward computations are locked together

    2. B

      The network requires three times as many training labels when divided across GPUs

    3. C

      Each GPU must train a separate copy of the network before combining parameters

    4. D

      Each GPU performs less computation, so gradient estimates become less accurate

    Correct answer
    A

    The GPUs spend substantial time waiting because the forward, update, and backward computations are locked together

    Explanation

    The locks cause GPUs to wait for other GPUs, reducing utilization enough that model-parallel training can be slower than training on one GPU.

  9. 9

    How does a synthetic gradient allow a hidden layer to update its parameters sooner?

    1. A

      It transfers the layer's parameters to the output layer for updating

    2. B

      It computes the loss directly from the layer's parameters without labels

    3. C

      It removes the need for the layer to compute its own output

    4. D

      It provides an estimated gradient so the layer can update without waiting for the true gradient

    Correct answer
    D

    It provides an estimated gradient so the layer can update without waiting for the true gradient

    Explanation

    A synthetic-gradient model predicts the gradient for a layer, allowing that layer to update before true gradients have propagated back.

  10. 10

    What does a decoupled neural interface (DNI) accomplish?

    1. A

      It combines all network layers into a single GPU operation

    2. B

      It replaces the network's loss function with a learned classifier

    3. C

      It prevents the network's parameters from changing during training

    4. D

      It allows a layer to update using predicted gradients without waiting for the rest of the network

    Correct answer
    D

    It allows a layer to update using predicted gradients without waiting for the rest of the network

    Explanation

    A DNI uses a synthetic-gradient model to decouple a layer's update from the ordinary backward pass through the rest of the network.

  11. 11

    In the described three-layer network, what is used to update the output layer's parameters?

    1. A

      The true gradients computed from the loss at the output

    2. B

      An approximation of the output-layer inputs from a synthetic input model

    3. C

      The gradients produced by the second hidden layer's synthetic-gradient model

    4. D

      A synthetic gradient predicted from the first hidden layer

    Correct answer
    A

    The true gradients computed from the loss at the output

    Explanation

    The example uses true gradients for the output layer, since the loss is available there, while synthetic gradients are used at earlier hidden layers.

  12. 12

    Why can synthetic gradients potentially make training faster even when no backward pass is performed for a particular update?

    1. A

      They allow layer parameters to be updated from the forward-pass activations and predicted gradients

    2. B

      They guarantee that every predicted gradient equals the true gradient

    3. C

      They make each forward pass unnecessary after the first batch

    4. D

      They eliminate the need to compute a loss for the output layer

    Correct answer
    A

    They allow layer parameters to be updated from the forward-pass activations and predicted gradients

    Explanation

    A layer can update using its activations and the synthetic-gradient model's estimate, without waiting for a full backward pass.

  13. 13

    When are synthetic-gradient models needed for the trained neural network's ordinary predictions?

    1. A

      Only after training; they are used to correct the final predictions

    2. B

      Only during training; the trained network can later use its learned parameters normally

    3. C

      During inference whenever the network processes a batch larger than one

    4. D

      During both training and inference because they replace the network's hidden layers

    Correct answer
    B

    Only during training; the trained network can later use its learned parameters normally

    Explanation

    The described synthetic-gradient models are training aids; after training, the network is used with its trained parameters as usual.

  14. 14

    How does synthetic-gradient training enable multiple GPUs to work on different batches at once?

    1. A

      The CPU computes gradients for every layer while GPUs load new labels

    2. B

      All GPUs independently calculate the entire network's predictions for the same batch

    3. C

      Each layer can proceed with a new batch using predicted gradients rather than waiting for other layers to finish the same batch

    4. D

      Each GPU is assigned a different network and the networks never exchange activations

    Correct answer
    C

    Each layer can proceed with a new batch using predicted gradients rather than waiting for other layers to finish the same batch

    Explanation

    Because a layer can update without waiting for true gradients, one layer can work on a later batch while another processes an earlier batch.

  15. 15

    What role does the CPU play in the described pipelined model-parallel arrangement?

    1. A

      It updates GPU parameters after each batch is completed

    2. B

      It computes synthetic gradients for all the hidden layers

    3. C

      It performs the forward pass for the output layer

    4. D

      It loads training instances and places them in a training queue

    Correct answer
    D

    It loads training instances and places them in a training queue

    Explanation

    The CPU loads training examples and pushes batches into the queue for the GPU-based network parts.

  16. 16

    Why can moving activations between GPUs offset the benefits of synthetic gradients?

    1. A

      GPU-to-GPU transfers force synthetic-gradient models to use true labels

    2. B

      Transferring large amounts of data between GPU cards can take substantial time

    3. C

      Moving activations makes the network's parameters incompatible across layers

    4. D

      The transfers require recomputing the loss on every GPU

    Correct answer
    B

    Transferring large amounts of data between GPU cards can take substantial time

    Explanation

    Data movement between GPU cards can be slow enough to outweigh the computational savings from reducing waiting.

  17. 17

    Why can splitting a deep network into a few large segments reduce the relative cost of GPU-to-GPU data transfers?

    1. A

      The GPUs can share parameters without sending any data

    2. B

      Large segments require no activations to be transferred between GPUs

    3. C

      A deeper network eliminates the need for synthetic-gradient models

    4. D

      The computation within each segment can be large compared with the time spent transferring data at the interfaces

    Correct answer
    D

    The computation within each segment can be large compared with the time spent transferring data at the interfaces

    Explanation

    With many layers per GPU segment, computation can dominate the transfer time at the segment boundaries, improving the potential benefit of model parallelism.

  18. 18

    How can a synthetic-gradient model itself be trained?

    1. A

      By maximizing the neural network's classification error

    2. B

      By freezing its parameters and copying the hidden layer's parameters

    3. C

      By minimizing the distance between the inputs and the labels

    4. D

      By minimizing a loss that measures the difference between predicted and target gradients

    Correct answer
    D

    By minimizing a loss that measures the difference between predicted and target gradients

    Explanation

    The synthetic-gradient model can be trained with ordinary backpropagation to minimize a loss between its predicted gradients and gradient targets.

  19. 19

    Which loss choices are specifically described for training a synthetic-gradient model?

    1. A

      The classification accuracy, or the number of hidden units

    2. B

      The magnitude of the layer parameters, or the output-layer loss alone

    3. C

      The distance between the layer inputs and labels, or its reciprocal

    4. D

      The distance between predicted and target gradients, or the square of that distance

    Correct answer
    D

    The distance between predicted and target gradients, or the square of that distance

    Explanation

    The content gives the distance between synthetic and target gradients, or the square of that distance, as example objectives.

  20. 20

    How can a lower layer obtain a target gradient for training its synthetic-gradient model without waiting for the final loss to backpropagate through the whole network?

    1. A

      Backpropagate the next layer's synthetic gradient through that next layer

    2. B

      Compute a new loss from the lower layer's inputs alone

    3. C

      Copy the output-layer parameters into the lower layer

    4. D

      Use the lower layer's activation as its own gradient target

    Correct answer
    A

    Backpropagate the next layer's synthetic gradient through that next layer

    Explanation

    The next layer's predicted gradient can be backpropagated through that layer to produce an approximation of the gradient for the layer below.

  21. 21

    Why can the output layer use a different target-generation approach when training a synthetic-gradient model?

    1. A

      The true gradient can be computed directly from the loss at the output

    2. B

      The output layer's activations are identical to its gradients

    3. C

      The output layer has no parameters to update

    4. D

      The next layer always supplies the output layer with labels

    Correct answer
    A

    The true gradient can be computed directly from the loss at the output

    Explanation

    At the output layer, the loss is available, so its true gradients can be computed and backpropagated directly.

  22. 22

    As synthetic-gradient models improve, what additional benefit do their predictions provide to lower layers?

    1. A

      They make the output layer's loss independent of its predictions

    2. B

      They remove the need for lower layers to calculate activations

    3. C

      They provide better gradient targets for training lower layers' synthetic-gradient models

    4. D

      They directly determine the labels for future training batches

    Correct answer
    C

    They provide better gradient targets for training lower layers' synthetic-gradient models

    Explanation

    More accurate predicted gradients can both improve parameter updates and provide better targets for training synthetic-gradient models in lower layers.

  23. 23

    What shape must a synthetic-gradient model's output have?

    1. A

      The same shape as the layer's parameter matrix

    2. B

      The same shape as the activations of the next layer

    3. C

      The same shape as the activations of the layer to which it is attached

    4. D

      The same shape as the labels, regardless of the layer's activations

    Correct answer
    C

    The same shape as the activations of the layer to which it is attached

    Explanation

    The predicted gradient has the same shape as the output of the layer whose gradient it estimates.

  24. 24

    For a convolutional layer with five feature maps, each of size 400×200400\times 200400×200, what shape should its synthetic-gradient model output?

    1. A

      A 3×400×2003\times 400\times 2003×400×200 array

    2. B

      A 5×55\times 55×5 array

    3. C

      A 400×200400\times 200400×200 array

    4. D

      A 5×400×2005\times 400\times 2005×400×200 array

    Correct answer
    D

    A 5×400×2005\times 400\times 2005×400×200 array

    Explanation

    The synthetic-gradient output must match the layer output, which in this example is an array with five feature maps of size 400×200400\times 200400×200.

  25. 25

    Which convolutional architecture is described as one way to preserve activation shape in a synthetic-gradient model?

    1. A

      A fully connected network that reduces every feature map to one value

    2. B

      A shallow convolutional network using zero padding and stride 111

    3. C

      A convolutional network that changes the number of feature maps at every layer

    4. D

      A deep network using no padding and stride 222

    Correct answer
    B

    A shallow convolutional network using zero padding and stride 111

    Explanation

    A couple of convolutional layers with zero padding and stride 111 can preserve the input shape.

  26. 26

    What additional input makes a DNI conditional, or cDNI?

    1. A

      The gradients of all earlier batches

    2. B

      The true future outputs of every later layer

    3. C

      Information such as the labels for the current batch

    4. D

      A second copy of the layer's parameters

    Correct answer
    C

    Information such as the labels for the current batch

    Explanation

    A conditional DNI provides extra information to the synthetic-gradient model; the current batch's labels are given as an example.

  27. 27

    What comparative finding about cDNI and regular DNI is reported in the described experiments?

    1. A

      The two methods had identical performance in every experiment

    2. B

      cDNI improved training speed but always reduced final performance

    3. C

      Regular DNI consistently performed better than cDNI

    4. D

      cDNI consistently performed better than regular DNI

    Correct answer
    D

    cDNI consistently performed better than regular DNI

    Explanation

    The described paper reports that conditional DNI consistently performs better than regular DNI.

  28. 28

    Which setup describes the fully connected MNIST network used in the reported experiments?

    1. A

      Three to six hidden layers with 1,024 neurons per layer, using no normalization or activation

    2. B

      Six output layers with 256 neurons per layer, using batch normalization and sigmoid

    3. C

      Three to six hidden layers with 256 neurons per layer, using batch normalization and ReLU

    4. D

      One to two hidden layers with 256 neurons per layer, using sigmoid and layer normalization

    Correct answer
    C

    Three to six hidden layers with 256 neurons per layer, using batch normalization and ReLU

    Explanation

    The experiments used fully connected networks with three to six hidden layers of 256 neurons each, with batch normalization and ReLU at each hidden layer.

  29. 29

    How did ordinary backpropagation perform in the described MNIST experiments as hidden layers were added?

    1. A

      It remained above 10%10\%10% test error, and performance worsened with more layers

    2. B

      It reached below 2%2\%2% test error only with three layers, then worsened with depth

    3. C

      It required synthetic-gradient models to reach any error below 2%2\%2%

    4. D

      It reached below 2%2\%2% test error, and performance improved with more layers

    Correct answer
    D

    It reached below 2%2\%2% test error, and performance improved with more layers

    Explanation

    The described results say regular backpropagation reached below 2%2\%2% test error, with better results as more layers were added.

  30. 30

    What pattern was reported for regular DNI across the tested MNIST network depths?

    1. A

      The three-layer network improved in final performance, but deeper networks performed worse and took longer to train

    2. B

      Every deeper network improved in final performance and trained faster than the shallower ones

    3. C

      The three-layer network performed worse, while deeper networks reached the best result fastest

    4. D

      All networks matched backpropagation's performance and training time

    Correct answer
    A

    The three-layer network improved in final performance, but deeper networks performed worse and took longer to train

    Explanation

    Regular DNI improved the final performance of the three-layer network but took longer overall; with more layers, performance decreased and training time increased.

  31. 31

    What architecture was described for each regular-DNI synthetic-gradient model in the MNIST experiment?

    1. A

      One hidden layer of 256 neurons and an output layer of 1,024 neurons

    2. B

      Two hidden layers of 1,024 neurons each and an output layer of 256 neurons

    3. C

      Three hidden layers of 256 neurons each and no output layer

    4. D

      Two hidden layers of 256 neurons each and an output layer of 1,024 neurons

    Correct answer
    B

    Two hidden layers of 1,024 neurons each and an output layer of 256 neurons

    Explanation

    Each regular-DNI synthetic-gradient model was described as having two hidden layers of 1,024 neurons and an output layer of 256 neurons, with batch normalization and ReLU in its hidden layers.

  32. 32

    What result was reported for conditional DNI on the tested MNIST task?

    1. A

      Adding layers reduced performance, and a three-layer network achieved the best overall performance

    2. B

      It reached its best performance with a single layer and no synthetic-gradient models

    3. C

      Adding layers improved performance, and a six-layer network achieved the best overall performance

    4. D

      It matched regular DNI but required more iterations to reach the same error

    Correct answer
    C

    Adding layers improved performance, and a six-layer network achieved the best overall performance

    Explanation

    For cDNI, the network improved as layers were added, and the six-layer network achieved the best overall performance.

  33. 33

    What combination of speed and accuracy was reported for the six-layer conditional-DNI network?

    1. A

      It reached below 2%2\%2% error in a few thousand iterations and had the best overall performance

    2. B

      It achieved the best error only when trained for longer than every other method

    3. C

      It reached below 2%2\%2% error only after more iterations than regular backpropagation

    4. D

      It trained fastest but never reached below 5%5\%5% error

    Correct answer
    A

    It reached below 2%2\%2% error in a few thousand iterations and had the best overall performance

    Explanation

    The six-layer cDNI network reportedly achieved the best performance and reached less than 2%2\%2% error in just a few thousand iterations.

  34. 34

    What caveat does the speaker raise when comparing the reported DNI and cDNI results?

    1. A

      The cDNI results did not use any hidden layers in the main network

    2. B

      The methods were tested on different datasets, so their results cannot be compared

    3. C

      The two methods used synthetic-gradient models of different complexity, making the comparison potentially uneven

    4. D

      The DNI results were measured in bits per character rather than classification error

    Correct answer
    C

    The two methods used synthetic-gradient models of different complexity, making the comparison potentially uneven

    Explanation

    The regular-DNI models had two hidden layers, while the cDNI synthetic-gradient models were described as having no hidden layers, prompting concern that the comparison was not like-for-like.

  35. 35

    What is truncated backpropagation through time (TBPTT) in the described RNN setup?

    1. A

      Predicting future outputs without computing a loss or gradients

    2. B

      Training a separate recurrent layer at each time step without sharing parameters

    3. C

      Unrolling the recurrent network for a limited number of time steps, computing loss, and backpropagating through that segment

    4. D

      Unrolling the recurrent network through every time step in the full dataset before updating

    Correct answer
    C

    Unrolling the recurrent network for a limited number of time steps, computing loss, and backpropagating through that segment

    Explanation

    TBPTT stops the unrolled RNN after a limited number of time steps, computes loss on the outputs so far, and performs backpropagation through that segment.

  36. 36

    What information does a recurrent layer use at time step ttt in the described RNN?

    1. A

      The current output hth_tht​ and the loss from every future time step

    2. B

      Only the previous output ht−1h_{t-1}ht−1​ and the final sequence label

    3. C

      The current input XtX_tXt​ and its previous output ht−1h_{t-1}ht−1​

    4. D

      The current input XtX_tXt​ and the next output ht+1h_{t+1}ht+1​

    Correct answer
    C

    The current input XtX_tXt​ and its previous output ht−1h_{t-1}ht−1​

    Explanation

    At each time step, the recurrent layer takes the current input and its own output from the preceding time step to produce the current output.

  37. 37

    Why does ordinary truncated backpropagation through time have difficulty learning long-term patterns?

    1. A

      The method requires future labels to be removed from the training data

    2. B

      The method computes gradients only for the input features, not the recurrent outputs

    3. C

      The loss is computed on only a limited number of outputs, so gradients from more distant future losses are unavailable

    4. D

      The recurrent layer uses a different set of parameters at every time step

    Correct answer
    C

    The loss is computed on only a limited number of outputs, so gradients from more distant future losses are unavailable

    Explanation

    Because TBPTT stops after a limited segment, it does not account for losses further in the future, limiting its ability to learn long-term patterns.

  38. 38

    How are synthetic gradients used to extend the effective temporal learning range of a truncated RNN?

    1. A

      The RNN is unrolled indefinitely, and a synthetic-gradient model computes the final loss

    2. B

      An extra unrolled time step is sent to a synthetic-gradient model, whose estimate is backpropagated through the preceding step

    3. C

      The first time step is given the true outputs from every future time step

    4. D

      The recurrent layer's parameters are reset after each truncated segment

    Correct answer
    B

    An extra unrolled time step is sent to a synthetic-gradient model, whose estimate is backpropagated through the preceding step

    Explanation

    The network can be unrolled one additional step, and a synthetic-gradient estimate for that step can be backpropagated to provide an estimate of the gradient for the preceding step.

  39. 39

    When synthetic gradients are used with an RNN segment, how are gradient signals combined?

    1. A

      Estimated future gradients are mixed with true gradients from the observed segment

    2. B

      True gradients are discarded whenever the RNN is unrolled for more than one step

    3. C

      Estimated gradients replace all true gradients, including those from observed losses

    4. D

      Gradients from separate time steps are averaged without regard to their source

    Correct answer
    A

    Estimated future gradients are mixed with true gradients from the observed segment

    Explanation

    The estimated future gradients are combined with true gradients from the segment so that backpropagation through time can use both.

  40. 40

    Why must the last unrolled RNN cell not be updated during the described procedure?

    1. A

      Updating it would change the labels for the current batch

    2. B

      Its gradients are always identical to the true gradients

    3. C

      Its output is needed later to train the synthetic-gradient model

    4. D

      It has no parameters that can be updated

    Correct answer
    C

    Its output is needed later to train the synthetic-gradient model

    Explanation

    The last cell's output is retained because it will be needed in the subsequent procedure for training the synthetic-gradient model.

  41. 41

    How is the synthetic-gradient model for the RNN trained in the described procedure?

    1. A

      Train it only from the current input, without running the RNN further in time

    2. B

      Copy the recurrent layer's parameters into it after each update

    3. C

      Use the synthetic-gradient model's own predictions as its only targets

    4. D

      Run the network on subsequent time steps, compute a loss, and use the resulting gradient estimate as a training target

    Correct answer
    D

    Run the network on subsequent time steps, compute a loss, and use the resulting gradient estimate as a training target

    Explanation

    The network is run forward over the next few time steps; after computing a loss, the resulting backpropagated estimate provides a target for training the synthetic-gradient model.

  42. 42

    What task and error measure are used in the described RNN comparison?

    1. A

      Penn Treebank language modeling, measured in bits per character

    2. B

      Image recognition, measured in top-1 accuracy

    3. C

      MNIST digit classification, measured in test error percentage

    4. D

      Machine translation, measured in word error rate

    Correct answer
    A

    Penn Treebank language modeling, measured in bits per character

    Explanation

    The comparison evaluates RNNs on the Penn Treebank language-modeling task and measures error in bits per character.

  43. 43

    What general tradeoff was reported when regular RNNs were unrolled for more time steps?

    1. A

      Training time stayed constant while the number of required labels increased

    2. B

      Training took longer and required more data, but eventual performance improved

    3. C

      Training became faster and required less data, but eventual performance worsened

    4. D

      Both training speed and eventual performance improved without additional data

    Correct answer
    B

    Training took longer and required more data, but eventual performance improved

    Explanation

    The reported comparison says longer unrolls took more time and data but eventually achieved better performance.

  44. 44

    How did the eight-step RNN with synthetic gradients compare with the regular RNNs unrolled for eight, twenty, or forty steps?

    1. A

      It matched the eight-step regular model but took twice as long and used more data

    2. B

      It reached lower error than the eight-step model but higher error than the forty-step model

    3. C

      It trained in half the time but required the same unroll length as the forty-step model

    4. D

      It reached the lowest error, even beating the forty-step model, while using roughly half the training time and data

    Correct answer
    D

    It reached the lowest error, even beating the forty-step model, while using roughly half the training time and data

    Explanation

    The described result shows an eight-step RNN using synthetic gradients achieving the lowest error, including better performance than the forty-step model, in roughly half the time and with half the data.

  45. 45

    What is the purpose of a synthetic input model in a decoupled neural interface?

    1. A

      It predicts a layer's inputs so that the layer can begin computing before the preceding layer finishes

    2. B

      It computes the final loss without running the output layer

    3. C

      It predicts a layer's gradients so that the preceding layer can update early

    4. D

      It replaces the training queue by storing future labels

    Correct answer
    A

    It predicts a layer's inputs so that the layer can begin computing before the preceding layer finishes

    Explanation

    A synthetic input model predicts the input to a layer, allowing that layer to proceed without waiting for the preceding layer's actual output.

  46. 46

    How does a synthetic input model break the forward lock in the example?

    1. A

      It computes all hidden layers simultaneously from the training labels

    2. B

      It skips the loss calculation and copies the preceding layer's parameters

    3. C

      It estimates the output-layer gradients, allowing hidden layers to update before the loss

    4. D

      It estimates the input to the output layer, allowing that layer to compute before hidden layers finish

    Correct answer
    D

    It estimates the input to the output layer, allowing that layer to compute before hidden layers finish

    Explanation

    The synthetic input model estimates the output of a preceding hidden layer, supplying an approximate input to the output layer before the actual activation arrives.

  47. 47

    How can a synthetic input model be trained once the actual preceding-layer output becomes available?

    1. A

      Use the actual output as the target for improving the model's predicted input

    2. B

      Use the output-layer loss as the only target for every layer's synthetic input model

    3. C

      Backpropagate the synthetic input model's prediction through the entire network

    4. D

      Replace its parameters with those of the preceding layer

    Correct answer
    A

    Use the actual output as the target for improving the model's predicted input

    Explanation

    When the actual preceding-layer output arrives, it can be used to train the synthetic input model to make better predictions.

  48. 48

    How can a previous layer's synthetic input model help train the next layer's synthetic input model?

    1. A

      Its predicted activation can provide an approximate input to the previous layer, yielding an approximate output for training the next model

    2. B

      It can supply the final labels without requiring a forward pass

    3. C

      It can update the next model's parameters using the output-layer loss alone

    4. D

      Its predicted gradient can be copied directly as the next model's input target

    Correct answer
    A

    Its predicted activation can provide an approximate input to the previous layer, yielding an approximate output for training the next model

    Explanation

    The same forward-prediction idea can be chained: an approximate input to one layer produces an approximate output that can help train the synthetic input model for the next layer.

  49. 49

    In the described fully decoupled interface, what does a hidden layer do with its output hih_ihi​?

    1. A

      It sends hih_ihi​ only to the CPU and waits for the true gradient

    2. B

      It sends hih_ihi​ to the synthetic input model of the previous layer only

    3. C

      It sends hih_ihi​ to both the next layer and its own synthetic-gradient model

    4. D

      It uses hih_ihi​ to replace the current batch's labels

    Correct answer
    C

    It sends hih_ihi​ to both the next layer and its own synthetic-gradient model

    Explanation

    The layer sends its output onward through the network and also to its own synthetic-gradient model.

  50. 50

    In the fully decoupled interface, what is done with the gradient estimated for layer iii?

    1. A

      It is discarded until the next training epoch

    2. B

      It is backpropagated through layer iii to approximate the preceding gradient, while the layer updates using its own predicted gradient

    3. C

      It is sent directly to the output layer and used to replace the loss

    4. D

      It is used only to train the synthetic input model

    Correct answer
    B

    It is backpropagated through layer iii to approximate the preceding gradient, while the layer updates using its own predicted gradient

    Explanation

    The estimated gradient is backpropagated through the hidden layer to approximate the gradient for the previous layer; the layer itself can update using its synthetic gradient.

  51. 51

    Which arriving signals are used to train the two auxiliary models in a fully decoupled interface?

    1. A

      The actual preceding-layer output trains the synthetic input model, and the received next-layer gradient trains the synthetic-gradient model

    2. B

      The current label trains the synthetic input model, and the next batch trains the synthetic-gradient model

    3. C

      The predicted activation trains the synthetic input model, and the layer parameters train the synthetic-gradient model

    4. D

      The output-layer loss trains both models without any additional signals

    Correct answer
    A

    The actual preceding-layer output trains the synthetic input model, and the received next-layer gradient trains the synthetic-gradient model

    Explanation

    The actual input from the preceding layer is used to train the synthetic input model, while the gradient arriving from the next layer is used to train the synthetic-gradient model.

Question 1 of 51
Question 1 of 51

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent