Neural Network Pattern Recognition
- 69Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why are neural networks useful for recognizing patterns such as solid images, vertical lines, diagonal lines, and horizontal lines?
69 questions
- 1
Why are neural networks useful for recognizing patterns such as solid images, vertical lines, diagonal lines, and horizontal lines?
Model answer
Neural networks can learn complex combinations of input values that are difficult to express with simple rules about individual pixel brightness.
Explanation
Different images can represent the same pattern even when their individual bright and dark pixels differ, so fixed pixel-by-pixel rules are insufficient.
- 2
How are the four pixels in the example represented as inputs to a neural network?
Model answer
Each pixel is represented by an input neuron whose value corresponds to the pixel's brightness.
Explanation
The four pixels are separated into four input neurons so that the network can process each pixel numerically.
- 3
What numerical values represent an all-white, gray, and all-black pixel in the example?
Model answer
An all-white pixel is represented by +1, gray by 0, and an all-black pixel by −1.
Explanation
The numerical scale converts black-and-white brightness into values the network can calculate with.
- 4
What is an input vector or input array?
Model answer
An input vector or array is a list of numbers representing the current input values, such as the brightness values of the pixels.
Explanation
The input neurons collectively hold the numerical representation of the image.
- 5
What is the receptive field of a neuron?
Model answer
A neuron's receptive field is the set of inputs that makes the neuron's value as high as possible.
Explanation
For an input neuron, the receptive field is simply the pixel associated with that neuron.
- 6
What is the receptive field of an input neuron in the pixel example?
Model answer
Its receptive field is the single pixel connected to it, and the neuron is maximized when that pixel is all white.
Explanation
Other pixels do not affect the input neuron's value.
- 7
What do pixels outside an input neuron's receptive field do to that neuron's value?
Model answer
They have no effect on the input neuron's value.
Explanation
Each input neuron is associated with only one pixel, so other pixels are irrelevant to it.
- 8
Why can simple rules based only on which pixels are bright fail to identify horizontal lines?
Model answer
Different pixel arrangements can both represent horizontal lines, so a single fixed rule for which pixels must be bright or dark may not capture the pattern.
Explanation
The pattern depends on relationships among pixels rather than on one unchanging brightness assignment.
- 9
What are the main computational steps performed by a basic neuron in the example?
Model answer
The neuron computes a weighted sum of its inputs and then applies an activation or squashing function to that sum.
Explanation
This weighted-sum-and-activation operation defines the behavior of the example neuron.
- 10
What does it mean for a connection in a neural network to have a weight?
Model answer
The input traveling through the connection is multiplied by the weight before being added to the neuron's total.
Explanation
Weights determine how strongly and in which direction each input influences the neuron.
- 11
What is the effect of a weight of −1, a weight of 0, and a positive weight?
Model answer
A weight of −1 reverses the input's sign, a weight of 0 effectively ignores the input, and a positive weight contributes in the input's original direction.
Explanation
The sign and magnitude of a weight determine the direction and strength of an input's contribution.
- 12
How are weights represented graphically in the example?
Model answer
White links represent positive weights, black links represent negative weights, and thicker lines indicate larger weight magnitudes.
Explanation
The graphic uses color and thickness to show the sign and approximate size of each connection.
- 13
What does a sigmoid squashing function do to a neuron's weighted sum?
Model answer
It maps the weighted sum through an S-shaped function whose output increases as the input increases but eventually changes more slowly.
Explanation
The sigmoid compresses large positive and negative inputs rather than allowing the output to grow without bound.
- 14
What happens to a sigmoid's output as its input becomes very large or very negative?
Model answer
For very large positive inputs, the output approaches but remains below +1; for very negative inputs, it approaches but remains above −1.
Explanation
The sigmoid bounds the output within the range from −1 to +1.
- 15
Why is bounding neuron values useful in a neural network?
Model answer
Bounding neuron values keeps computations within a limited range, which helps make the network stable.
Explanation
The sigmoid prevents values from becoming arbitrarily large or negative.
- 16
What numerical output did the example neuron produce after applying its squashing function?
Model answer
The example neuron produced an output of approximately 0.746.
Explanation
This value was obtained after summing the weighted inputs and applying the sigmoid function.
- 17
How does a layer containing many neurons differ from a single neuron?
Model answer
A layer contains multiple neurons that each compute their own weighted sum and activation from the preceding inputs.
Explanation
The number of neurons in a layer can range from a few to millions.
- 18
In the simplified diagram, what weight values are assumed for connections?
Model answer
The simplified diagram assumes weights of +1, −1, or 0; zero-weight connections are omitted from the drawing.
Explanation
Actual networks generally use many values between −1 and +1, even when the diagram simplifies them.
- 19
How are neurons in one layer connected to the preceding layer in the general case?
Model answer
Each neuron is connected to all neurons in the preceding layer, with each connection having a weight between −1 and +1 in the example.
Explanation
The diagram may hide connections whose weights are zero or very small, but they generally exist.
- 20
How do receptive fields change in the first hidden layer?
Model answer
They become combinations of multiple input pixels rather than individual pixels.
Explanation
A first-layer neuron can respond to a particular arrangement of bright and dark pixels determined by its weights.
- 21
How does a neuron with positive weights on two pixels respond to those pixels?
Model answer
It is activated by the combined values of those two pixels, reaching a high value when both contribute positively.
Explanation
Its receptive field consists of the two pixels because both have positive influence.
- 22
How does a neuron with a weight of −1 on a pixel respond to that pixel?
Model answer
It is most active when that pixel is black or has a low numerical value, because the negative weight reverses the pixel's contribution.
Explanation
A negative connection makes darkness support a higher activation relative to brightness.
- 23
How does one layer become the input to the next layer?
Model answer
The output values of one layer are passed forward as the input values for the next layer.
Explanation
This process can be repeated to construct networks with many layers.
- 24
What happens to receptive fields as additional layers are added?
Model answer
They become increasingly complex because later neurons combine patterns detected by earlier neurons.
Explanation
After enough layers, receptive fields can cover all pixels and represent more specialized arrangements.
- 25
Why can deeper layers recognize more complex image patterns than the input layer?
Model answer
Each deeper layer combines representations from the previous layer, allowing it to detect increasingly complex arrangements of pixels.
Explanation
The network builds complex features from simpler patterns detected earlier.
- 26
What is a rectified linear unit, or ReLU?
Model answer
A ReLU outputs 0 when its input is negative and keeps the input unchanged when the input is positive.
Explanation
It applies the rule that the output is the input if the input is positive and zero otherwise.
- 27
How does a ReLU differ from a sigmoid activation?
Model answer
A sigmoid squashes values into a bounded range, whereas a ReLU sets negative values to zero and leaves positive values unchanged.
Explanation
The two activation functions transform weighted sums in different ways.
- 28
Why are ReLUs useful in neural networks?
Model answer
They are easy to compute and provide useful stability properties in practice.
Explanation
Their simple piecewise behavior makes them computationally convenient.
- 29
What happens to receptive fields when positive and negative weights connect to ReLU units?
Model answer
The network can represent both particular patterns and their opposites.
Explanation
Positive and negative connections cause different arrangements to produce positive activations or be suppressed.
- 30
What four categories are represented by the output layer in the image-classification example?
Model answer
The outputs represent solid, vertical, diagonal, and horizontal images.
Explanation
The network uses one output for each pattern category.
- 31
How are pixel values propagated through the network for a black-on-top and white-on-bottom image?
Model answer
The image's dark and light pixel values are placed in the input layer and then transformed by successive weighted connections and activation functions.
Explanation
Each layer produces a new representation that is passed to the following layer.
- 32
Why does combining a dark pixel valued at −1 with a light pixel valued at +1 using positive weights produce 0?
Model answer
The contributions cancel because −1+1=0.
Explanation
The resulting zero corresponds to a gray or neutral activation in the simplified example.
- 33
Why can combining a dark pixel valued at −1 with a light pixel valued at +1 using a negative weight produce −1?
Model answer
The negatively weighted light pixel contributes −1, so the two contributions combine to a negative value in the example.
Explanation
The negative weight reverses the light pixel's contribution, producing a pattern that disagrees with the neuron's receptive field.
- 34
What does it mean when an input pattern is the inverse of a neuron's receptive field?
Model answer
It means the input has the opposite bright-and-dark arrangement from the pattern that maximizes that neuron, so the neuron receives a strongly negative response.
Explanation
The example assigns a low value such as −1 when the input reverses the neuron's preferred pattern.
- 35
What happens to negative values when they pass through a ReLU?
Model answer
They become 0.
Explanation
This rectification can remove negative activations as the signal moves through the network.
- 36
How did the example network classify the input image?
Model answer
The horizontal output was positive while the other outputs were zero, so the network classified the image as horizontal.
Explanation
The largest or only positive output indicated the predicted category.
- 37
What is the truth vector for an image that is horizontal but not solid, vertical, or diagonal?
Model answer
Its truth vector has 0 for solid, vertical, and diagonal, and 1 for horizontal.
Explanation
The truth vector records the correct category labels for the input image.
- 38
Why might a neural network's output differ from the truth vector?
Model answer
An arbitrary or insufficiently trained network may produce values that are slightly or substantially different from the correct labels.
Explanation
The network must adjust its weights through training to approximate the truth more accurately.
- 39
How is the error for one output defined in the example?
Model answer
The error is the magnitude of the difference between the true value and the network's output.
Explanation
The error measures how far a prediction is from the desired answer.
- 40
How can total network error be calculated from the output errors?
Model answer
The individual output errors can be added together to obtain the total error.
Explanation
The total summarizes the network's disagreement with the truth across its outputs.
- 41
What is the central goal of neural-network training?
Model answer
The goal is to adjust the weights so that the network's error becomes as small as possible.
Explanation
Training changes the network so that its outputs more closely match the correct answers.
- 42
What basic procedure would be used to adjust weights if computational cost were not a problem?
Model answer
Compute the error, test how changing each weight affects the error, and adjust each weight in the direction that reduces the error.
Explanation
This requires repeatedly recalculating the network's behavior for individual weight changes.
- 43
Why is independently testing every weight adjustment impractical for a large neural network?
Model answer
It requires recalculating the network and its error repeatedly for every weight, which becomes prohibitively expensive as the number of weights grows.
Explanation
A large network has many dimensions, one for each weight, making direct search extremely costly.
- 44
What geometric analogy describes the process of minimizing neural-network error?
Model answer
It is like moving downhill toward a low point in a valley, except the valley has many dimensions corresponding to the network's weights.
Explanation
The low point represents a set of weights with relatively small error.
- 45
What is the slope used in neural-network training?
Model answer
It is the relationship between a change in a weight and the resulting change in error, written as dWdE​.
Explanation
The slope indicates how error responds when a particular weight changes.
- 46
How does the sign of dWdE​ help determine a weight adjustment?
Model answer
It indicates which direction the weight should be changed to reduce the error, while its magnitude indicates how strongly the error responds.
Explanation
A slope of −2, for example, means that increasing the weight by 1 changes the error by −2 in the local relationship.
- 47
If increasing a weight by 1 changes the error by −2, what is the slope?
Model answer
The slope is −2.
Explanation
The slope is the change in error divided by the change in weight, so it is 1−2​=−2.
- 48
For the error function E=W2, what is the derivative of error with respect to the weight?
Model answer
The derivative is dWdE​=2W.
Explanation
Differentiating the square of the weight gives twice the weight.
- 49
For E=W2 at W=−1, what is dWdE​?
Model answer
The derivative is dWdE​=2(−1)=−2.
Explanation
Substituting the current weight into the derivative gives the local slope.
- 50
What insight makes calculating gradients practical in deep neural networks?
Model answer
If the network is designed appropriately, the gradient can be calculated directly by combining the slopes of individual operations rather than recomputing the whole network for every weight.
Explanation
This direct calculation is the basis of efficient back propagation.
- 51
What is the chain rule in the context of neural networks?
Model answer
It calculates the slope through a sequence of operations by multiplying the derivative of each operation in the chain.
Explanation
The product of local derivatives gives the derivative of the full chain.
- 52
In the simple network where Y=XW1​, what is dW1​dY​?
Model answer
The derivative is dW1​dY​=X.
Explanation
Changing W1​ changes Y in proportion to the input X.
- 53
In the simple network where E=YW2​, what is dYdE​?
Model answer
The derivative is dYdE​=W2​.
Explanation
The downstream weight determines how a change in Y affects E.
- 54
For the chain E=XW1​W2​, what is dW1​dE​?
Model answer
The derivative is dW1​dE​=XW2​.
Explanation
This result is obtained by multiplying the local derivatives dW1​dY​=X and dYdE​=W2​.
- 55
How does back propagation determine the effect of changing a deep weight on the final error?
Model answer
It computes the derivative of each operation from that weight forward to the error and multiplies those derivatives together.
Explanation
The chain of local derivatives provides the full gradient for the selected weight.
- 56
Why is chaining computationally cheaper than recalculating the error for every weight?
Model answer
Chaining reuses local derivative calculations instead of running a complete error recalculation separately for every weight.
Explanation
This makes gradient computation practical for networks with many layers and weights.
- 57
For a weighted connection B=AW, if dBdE​ is known, what local derivative is needed to back-propagate toward A?
Model answer
The needed local derivative is dAdB​=W.
Explanation
The weight determines how a change in A changes B.
- 58
What is the local derivative for a sum when back-propagating toward one of its inputs?
Model answer
The derivative of the sum with respect to any one input is 1.
Explanation
Increasing one input by one increases the total sum by one.
- 59
What is the derivative of a sigmoid output with respect to its input?
Model answer
If the sigmoid output is denoted by σ, its derivative can be calculated as σ(1−σ).
Explanation
The sigmoid has the useful property that its derivative can be expressed using the sigmoid's own output.
- 60
What is the derivative of a ReLU with respect to its input?
Model answer
The derivative is 1 when the input is positive and 0 when the input is negative.
Explanation
This follows from the ReLU being the identity function for positive inputs and constant zero for negative inputs.
- 61
What does back propagation make possible for each weight?
Model answer
It makes it possible to calculate how changing that weight affects the error for a particular input.
Explanation
The resulting gradient tells the training process how to adjust the weight.
- 62
How are weights initialized when training begins in the described procedure?
Model answer
The network starts fully connected, and its weights are assigned random values.
Explanation
This creates an initially arbitrary neural network before learning begins.
- 63
What is required of an input used during supervised training?
Model answer
The correct answer for the input must be known so that the truth and the network's error can be calculated.
Explanation
For the image example, the known category is solid, vertical, diagonal, or horizontal.
- 64
What steps are repeated during neural-network training?
Model answer
The network processes a labeled input, calculates the error, uses back propagation to adjust the weights slightly, and repeats the process with additional inputs.
Explanation
Repeated small updates gradually improve the network's predictions.
- 65
Why are training updates usually made in small increments?
Model answer
Small adjustments gradually move the weights in a direction that reduces error without making an excessively large change.
Explanation
Repeated small changes allow the weights to move toward a low-error region.
- 66
What happens to the weights after training on many examples?
Model answer
They tend to move toward a region of weight space with relatively low error and good performance on most images.
Explanation
This movement is compared with rolling down a many-dimensional valley.
- 67
What kind of result might occur if training is especially successful?
Model answer
The network may develop understandable receptive fields and a relatively sparse representation in which most weights are small or near zero.
Explanation
This desirable structure is possible but is not guaranteed.
- 68
What is meant by a sparse representation in the trained network?
Model answer
It is a representation in which most of the network's weights are small or close to zero.
Explanation
Small weights indicate that many connections contribute little to the representation.
- 69
What is training not guaranteed to produce?
Model answer
It is not guaranteed to produce intuitively understandable receptive fields or the best possible representation, although it seeks weights that perform as well as possible on the inputs.
Explanation
The network can find a good low-error solution without producing an easily interpretable internal structure.

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