DeepLLM Quiz
Deep Learning

The Jacobian: how sensitive is a network's output to its inputs?

10 questions on the Jacobian matrix, input sensitivity, error propagation, modular networks and how the Jacobian is computed and checked.

  • 10 questions
  • Stopwatch
  • Instant feedback

Shown publicly with your score. Don’t use your full real name.

Sample questions

Play now ↑

Answers stay hidden. Start the quiz to play them.

  1. Sample 1

    One input measurement is off by 0.01, and the Jacobian entry linking that input to an output is 50. What is the estimated error in that output?

    • 0.5
    • 5,000
    • 0.0002

How it works

  • One question per screen. An answer is final once sent.
  • You see right away whether you were right, with a short explanation.
  • The stopwatch runs: on equal scores, the faster player ranks first.
  • Only your best attempt counts, so replaying is never risky.

About this quiz

A weather model takes in temperature, pressure and humidity readings, and it outputs a forecast of rainfall. A natural question for an engineer is: how much will the forecast change if the pressure sensor is off by a small amount? The gradient with respect to the weights, which the rest of the training machinery cares about, says nothing on this. What answers it is a different table of derivatives, one that measures how each output responds to each input, with everything else held still. That table is the Jacobian matrix.

The Jacobian is a quiet workhorse. It tells you how sensitive a trained model is to each input, so it turns a measurement error into an estimate of the error in the answer. It is also what lets several differentiable modules be chained into a larger system and trained together, because the error signal arriving at the end of the chain has to be passed through each module on its way back, and the Jacobian is the thing that does the passing. This quiz covers both uses.

The questions are practical and use small numbers. How big is the table for a network with a given number of inputs and outputs? If a sensor error is known, what output error does the table predict, and how far can that estimate be trusted? Why does the table change from one input to the next? How many backward passes does it take to fill in the whole table, and how many forward passes does it take to check it against a numerical estimate?

Typical confusions include mixing it up with the gradient of the error with respect to the weights, which has a different shape and a different purpose, and assuming that the Jacobian of a nonlinear network is a fixed set of numbers. In fact it depends on where you evaluate it, and the linear estimate it provides holds only for small changes. It also helps to know that the procedure for computing it is a close cousin of the backpropagation procedure for weights. There is a broader lesson in the topic. A neural network is not just a machine for producing predictions, it is a differentiable function, and that single property opens up many uses beyond training. Sensitivity analysis, error propagation and the joint training of several components all rest on the ability to differentiate through the model with respect to something other than its weights. Once you see the Jacobian as the natural partner of the weight gradient, the two stop looking like separate topics and start looking like two views of the same chain rule.

The quiz suits learners who know the basics of backpropagation and want to see what else it can do, and practitioners who combine neural modules into larger systems. It asks for nothing beyond multiplication and counting. There are 10 questions, each with an explanation, and it takes about four minutes.

Questions and answers

›How long does the quiz take?

About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. An explanation follows each answer, including the small calculations.

›Do I need to know matrix algebra?

No. A matrix here is just a table of numbers with one row per output and one column per input. You will be asked to count its entries and to multiply a couple of numbers together, nothing more.

›What is the Jacobian matrix?

It is the table of first derivatives of every output of a function with respect to every input. Each entry answers the question of how much one particular output changes, to first order, for a small change in one particular input while the other inputs stay fixed. For a network with several inputs and several outputs, the table has one row per output and one column per input.

›How is it different from the gradient used in training?

The training gradient is the derivative of a single number, the error, with respect to the weights. The Jacobian is a table of derivatives of the network's outputs with respect to its inputs. They are related through the chain rule, but they answer different questions: which weights to change, and how sensitive the answer is to the data.

›Why is the Jacobian useful in systems made of several modules?

When differentiable modules are connected in a chain, the error at the end has to be turned into signals for the parameters of earlier modules. The chain rule does this by multiplying through the Jacobian of each module that lies in between. As long as every module is differentiable, whether it is learnable or fixed, error signals can flow backwards through the whole system.

›Can it be used to estimate the effect of input errors?

Yes, and it is one of the main reasons for computing it. Known inaccuracies in the inputs, such as the tolerance of a sensor, can be carried through the table to estimate how much they disturb each output. The method is a first-order tool, so it describes small perturbations well and large ones poorly. In safety-minded applications this kind of sensitivity analysis is often the first check made on a trained model, long before more elaborate tests are tried.

›How is the Jacobian computed in practice?

A forward pass is run for the input of interest. Then, for each output unit, a backward pass is made through the network, using a recursion similar to the one used for the weights, which fills in one row of the table. Alternatively, a forward version of the calculation exists, and the two can be checked against numerical estimates made with small input changes.

More quizzes