liveBook · Manning

Shared weight

Weight sharing is a neural-network design in which the same learned parameters are reused across multiple input positions, contexts, or computation steps.

How 2 Manning books explain it

Inside Deep Learning: Math, Algorithms, Models

A convolutional-network technique that reuses the same parameters at multiple input positions instead of learning separate parameters for each position.

How it is used
Deploys one learned transformation across spatial positions, hidden layers, or sequence time steps.
How deep it goes
Explains reuse mathematically and in PyTorch, then stops short of deriving the full convolution or recurrent optimization equations.
Examples
Uses sliding one-dimensional windows, repeated hidden layers, MNIST accuracy comparisons, RNN time steps, and shared autoencoder decoder layers.
What you can do after
Apply it via PyTorch by reusing one module object across compatible spatial, layer, or temporal positions.

Read how Inside Deep Learning: Math, Algorithms, Models explains shared weight →

Natural Language Processing in Action, Second Edition

Weight sharing is the reuse of the same learned parameters across multiple inputs, positions, or computation steps.

How it is used
Uses one parameter set across sequence positions so recurrent networks can process tokens step by step.
How deep it goes
Explains repeated matrix use and serial gradient propagation, but does not provide implementation code or parameter-count analysis.
Examples
Uses an unrolled RNN processing text tokens and propagating errors backward through repeated weight-matrix multiplications.
What you can do after
Understand how recurrent models reuse parameters and why their training must process sequence errors backward one token at a time.

Read how Natural Language Processing in Action, Second Edition explains shared weight →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.