Give an example where backpropagation is linear in the number of edges in the neural…
- User
Give an example where backpropagation is linear in the number of edges in the neural network but quadratic in the number of units in the network
Assistant
A simple fully-connected network with a single hidden layer with 100 hidden units would have a complexity of O(n^2n^2), where n is the number of edges in the network (i.e. the number of weights). Backpropagation through such a network would be linear with respect to the number of edges, but quadratic with respect to the number of units.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.