MDN
A neural network whose output layer is a mixture model, predicting a full conditional distribution per input.
22 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 36.2K
- Operations
- 22
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- 1994, Aston Publications Explorer (Aston University)
- Paper
- Mixture density networks
- Cited by
- 1,232 (as of 4 October 2026)
- Authors
- Chris Bishop
- Source
- torch 2.6.0
- License
- BSD-3-Clause
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m1643
- Graph hash
- 5747759c8a2713b83ec01848edfad32efc77031224f177fc2a8ea45cb8c99869
- Skeleton hash
- 96af5c5c34b4b4fc71381cba45a4baa64c1eb2a2a432ce27201a27048f3ef86b
- Architecture hash
- 4270fff9057b81b0798c887c52688156028d0986ca551dd9e5f5fedfbcc3602a
- Diagram SHA-256
- 130500c3d83235d952eb9772123b2b6c934b480e09b9a83a0470964762cdafa0
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
A Mixture Density Network, or MDN, is an ordinary neural network whose output layer parameterises a mixture model, so that for each input it predicts a whole conditional probability distribution over the target rather than a single value.
The motivation is that a network trained with a sum-of-squares or cross-entropy error only learns the conditional average of the targets. For continuous targets that average is a thin description, and when the mapping is multi-valued, as in inverse problems, the average of several correct answers may not itself be a correct answer. Bishop's technical report argues that a complete description means modelling the conditional probability distribution of the target data given the input.
The claim for the construction is that it can in principle represent arbitrary conditional probability distributions, just as a conventional network can represent arbitrary functions. The report demonstrates the idea on a toy problem and on robot inverse kinematics.
Key idea. The key contribution is combining a conventional neural network with a mixture density model so the network outputs a full conditional distribution instead of a conditional average.
- mixture density network
- MDN
- Bishop
- conditional probability distribution
- mixture model output
- inverse problems
- robot inverse kinematics
- MDN-RNN
- mdn_rnn
AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.
Cite the paper
@article{mdn1994,
title = {Mixture density networks},
author = {Chris Bishop},
year = {1994},
journal = {Aston Publications Explorer (Aston University)}
}