Section 19.3 builds XOR from two hidden units that answer AND and OR, and section 19.4 says that a composition of linear maps is a linear map. Replace both hidden step functions by the identity, keep the nine weights of the construction, and keep the output step. The hidden answers then equal their weighted sums.
Show that for any nine weights the output pre-activation is an affine function of the input, and give and in terms of the weights. Evaluate and for the weights of section 19.3 and list the four outputs. Then explain why no choice of the nine weights can produce XOR once the two hidden nonlinearities are removed.
This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.
Worked solution
With the identity replacing both hidden steps, the two hidden answers are The output unit forms So with and as stated. The output is , which is one linear threshold function of the input. Two hidden units that each compute an affine function have added no new shape to the boundary; they have only described the same plane in other coordinates.
For the weights of section 19.3, , , , , , and . The coefficients are and the constant is The pre-activation is the constant on every row, so the output step answers on all four rows. The labels are , so the rows and are wrong and the network makes two errors. The two hidden units still form the weighted sums that fed AND and OR, but the output weights cancel their varying parts and leave only the constant.
No choice of the nine weights can repair this. Whatever the weights, is affine in , and is a single straight boundary. Section 19.2 proves that XOR has no single straight boundary: its four inequalities contradict one another. The bend in section 19.3 came from the two hidden steps, not from the count of units. Remove the steps and the layer stops being a layer.