Home
Explore
Exams
Login
Get started
Home
5 Ch. 6.5
5 Ch. 6.5
0.0
(0)
Rate it
Studied by 0 people
Call Kai
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Knowt Play
Card Sorting
1/45
There's no tags or description
Looks like no tags are added yet.
46 Terms
View all (46)
Star these 46
1
New cards
What is backpropagation?
An efficient algorithm for computing gradients through a computational graph using the chain rule.
2
New cards
What does backpropagation compute?
Derivatives of a scalar output, usually a loss, with respect to intermediate values and parameters.
3
New cards
Is backpropagation itself an optimization algorithm?
No; it computes gradients that an optimizer uses.
4
New cards
What is a computational graph?
A directed graph whose nodes are variables or operations and whose edges carry values.
5
New cards
What is the forward pass?
Evaluating graph operations from inputs to the final output.
6
New cards
What is the backward pass?
Propagating derivatives from the output toward inputs and parameters.
7
New cards
What is the scalar chain rule?
If y=f(u) and u=g(x), then dy/dx=(dy/du)(du/dx).
8
New cards
How does the chain rule extend to multiple paths?
Gradient contributions from all paths are summed.
9
New cards
Why are derivatives added at a node with several children?
The node influences the output through each outgoing path.
10
New cards
What is reverse-mode automatic differentiation?
Computing derivatives of one scalar output with respect to many inputs by traversing the graph backward.
11
New cards
Why is reverse mode well suited to neural networks?
Training has one scalar loss and many parameters.
12
New cards
What is forward-mode automatic differentiation best suited for?
Functions with few inputs and many outputs.
13
New cards
What is an upstream gradient?
The derivative of the final loss with respect to an operation's output.
14
New cards
What is a local derivative?
The derivative of an operation's output with respect to one of its direct inputs.
15
New cards
How is a gradient passed through an operation?
Multiply the upstream gradient by the local derivative, with proper Jacobian products.
16
New cards
What gradient rule applies to addition z=x+y?
dL/dx=dL/dz and dL/dy=dL/dz.
17
New cards
What gradient rule applies to multiplication z=xy?
dL/dx=(dL/dz)y and dL/dy=(dL/dz)x.
18
New cards
What is the gradient through z=Wx with respect to x?
W^T times the upstream gradient, under the usual column-vector convention.
19
New cards
What is the gradient through z=Wx with respect to W?
The outer product of the upstream gradient and x.
20
New cards
Why must forward values often be stored?
Local derivatives in the backward pass depend on those values.
21
New cards
What is the memory cost of ordinary backpropagation?
It stores many intermediate activations until their gradients are computed.
22
New cards
What is a topological order?
An ordering where each graph node appears after all nodes that feed into it.
23
New cards
In what order is the forward graph evaluated?
Topological order.
24
New cards
In what order is the backward graph evaluated?
Reverse topological order.
25
New cards
What is the base derivative at the scalar loss?
dL/dL=1.
26
New cards
What must happen when a variable is reused in multiple operations?
All resulting gradient contributions must be accumulated.
27
New cards
What is the backpropagation recurrence for a node?
Its gradient is the sum over children of child gradient times the child's local derivative with respect to the node.
28
New cards
Why is dynamic programming relevant to backpropagation?
Shared subexpressions are differentiated once and their results reused.
29
New cards
What would naive symbolic differentiation risk?
Duplicating common subexpressions and causing exponential expression growth.
30
New cards
How does backpropagation handle elementwise nonlinearities?
Multiply upstream gradients elementwise by activation derivatives.
31
New cards
What is the ReLU backward rule?
Pass the upstream gradient where preactivation is positive and zero it where negative.
32
New cards
What is the sigmoid derivative?
sigma(z)(1-sigma(z)).
33
New cards
What is the tanh derivative?
1-tanh(z)^2.
34
New cards
What is the gradient of a bias addition?
Sum the upstream gradients across examples or broadcasted dimensions.
35
New cards
What is backpropagation through a fully connected layer?
Compute parameter, bias, and input gradients from the layer's upstream gradient.
36
New cards
Why are tensor shapes important in backpropagation?
Each Jacobian-vector product and accumulated gradient must match its variable's shape.
37
New cards
What is an in-place operation risk during autodiff?
It may overwrite a forward value needed to compute gradients.
38
New cards
What is gradient checking?
Comparing analytical backpropagation gradients with numerical finite-difference estimates.
39
New cards
What is the centered finite-difference approximation?
[f(theta+epsilon)-f(theta-epsilon)]/(2 epsilon).
40
New cards
Why is gradient checking usually done on small models?
Numerical differentiation is computationally expensive.
41
New cards
What can make numerical gradient checking unreliable?
An epsilon that is too large or too small, nondifferentiable points, and floating-point error.
42
New cards
What is checkpointing in backpropagation?
Saving only selected activations and recomputing others to trade computation for memory.
43
New cards
What is automatic differentiation?
Programmatically applying derivative rules to operations in a computation.
44
New cards
How does automatic differentiation differ from numerical differentiation?
It computes chain-rule derivatives rather than approximating them by perturbations.
45
New cards
How does automatic differentiation differ from symbolic differentiation?
It evaluates derivatives on a graph without necessarily constructing a large symbolic formula.
46
New cards