AI‐Homework‐04 - TheEvergreenStateCollege/upper-division-cs-23-24 GitHub Wiki
Homework 04
3Blue1Brown Chapter 3: Backpropagation
After reading the chapter, attempt an answer to these questions in a dev diary entry.

-
Symbols
A.
$\sigma$ B.
$w_i$ C.
$a_i$ D.
$b$ -
Meanings
i. Activations from previous layer
ii. Bias of this neuron, or threshold for firing
iii. Sigmoid, or squishing function, to smooth outputs to the 0.0 to 1.0 range?
iv. Weights from the previous layer to this neuron
Calculate the cost of this "trash" output of a neural network and our desired label of the digit "3"
Suppose we are feeding this image forward through our neural network and want to increase the classification of it as the digit "2"

Answer this question about decreasing the cost of the "output-2" node firing

What does the phrase "neurons that fire together wire together" mean in the context
of increasing weights in layer

The following image shows which of the following:

- changes to the weights of all the neurons "requested" by each training data
- changes to the biases of all the neurons "requested" by each training data
- changes to the activations of the previous layer
- changes to the activation of the output layer
In addition to the answer you chose above, what other choices are changes that backpropagation can actually make to the neural network?
In the reading, calculating the cost function delta
- a cautious person calculating how to get down a hill
- a drunk stumbling quickly down a hill
- a cat leaping gracefully down a hill
- a bunch of rocks tumbling down a hill
What is the closest analogy to calculating the best update changes
- passing laws by electing a new president and waiting for an entire election's paper ballots to be completely counted
- asking a single pundit on a television show what laws should be changed
- asking a random-sized group of people to make a small chance to any law in the country, repeated
$n$ times, allowing a person the possibility to be chosen multiple times - making a small change to one law at a time chosen by random groups of
$n$ people, until everyone in the country has been asked at least once
If each row in this image is a mini-batch, what is the mini-batch size?

Remember in our MNIST train.py
in last week's lab, the mini-batch size was 10.
3Blue1Brown Chapter 4: Backpropagation Calculus
For our neural network with layers of [784, 100, 10], what is the size (number of elements) of the

Answer the question again for this smaller neural network


-
Symbols
A.
$a^{(L-1)}$ B.
$\sigma$ C.
$b^{L}$ D.
$w^{L}$ E.
$a^{(L)}$ -
Meanings
i. Activations from the previous layer
ii. Bias of the current layer
iii. Activations of the current layer
iv. Sigmoid, or squishing function, to smooth outputs to the 0.0 to 1.0 range
v. Weights from the previous layer to this neuron
In this tree diagram, we see how calculating the final cost function at the first training image 0

What is the relationship of this second, extended diagram to the first one?

Choices (choose all that apply)
- There is no relationship
- The bottom half of the second diagram is the same as the first diagram
- The second diagram extends backward into the neural network, showing a previous layer
$L-2$ whose outputs the layer$L-1$ depends on. - The second diagram can be extended further back to layer
$L-3$ , all the way to the first layer$L$ - The first diagram is an improved version of the second diagram with fewer dependencies
- Drawing a path between two quantities in either diagram will show you which partial derivatives to "chain together" in calculating
$\nabla C$
Make progress on the AI Lab 04 on Voice Cloning before attempting this writing exercise. (You don't have to complete it first).
Use the questions below to choose a topic about AI ethics.
- Consider the Warren Buffett voice cloning demonstration.
- How does this compare to the unjust enrichment lawsuit against the estate of the actor Peter Cushing in the Week 01 reading?
- $25million lost in AI-generated video call fraud
- What safeguards if any should govern the right to voice clone actors or public figures from freely available recordings on the internet?
- What thoughts or feelings do you have right now, before hearing your synthesized voice?
- Should you have the right to synthesize your own voice? What are possible advantages or misuses of it?
- Photographs, video and audio recordings are technologies that changed the way we remember loved ones who have died.
- Should family members have the right to create AI simulated personalities of the deceased?
- If generative AI allows us another ay to interact with a personality of a person in the past, how does this compare with historical re-enactors, or movies depicting fictional events with real people?
Write your response as a dev diary entry wiki page, linked to from your personal dev diary.