Skip to content
AI360Xpert
Glossary
Definition

Jacobian Matrix

The matrix of all first partial derivatives of a function with several inputs and several outputs.

For a function taking nn inputs to mm outputs, the Jacobian is an m×nm \times n matrix whose entry at row ii, column jj is outi/inj\partial \text{out}_i / \partial \text{in}_j. A gradient is the special case where there is one output, so the Jacobian collapses to a single row.

It is the object the chain rule actually composes for multi-output functions: the Jacobian of a composition is the product of the individual Jacobians. That is what backpropagation is doing at every layer.

The practical detail is that these matrices are never built. A layer mapping 4,096 inputs to 4,096 outputs has a Jacobian with nearly 17 million entries, and storing one per layer is out of the question. Autodiff frameworks instead compute a vector-Jacobian product — the result of multiplying a vector by the Jacobian, obtained directly without forming the matrix. That single optimisation is what makes reverse-mode differentiation practical.