ElemedexA pocket encyclopedia of AI architectures

Glossary (TM) › Architectural parts

TM110

Weight sharing

Also: parameter sharing, tied weights

In Spanish: Pesos compartidos

Using the same parameters in several places in a network: the same filter at every position of an image, the same matrix at every step of a sequence.

Sharing weights means forcing several connections in a network to always hold the same value. During training, the gradient for that single weight combines the gradients from all its uses; Rumelhart et al. (1986) already handled this by averaging those derivatives and moving all the copies together (1986, p. 535).

Where it appears.

Why it works. Fewer parameters mean less data is needed, but the deeper reason is another: what the network learns in one place becomes available everywhere. Sharing weights is declaring a symmetry, stating in advance that two places in the input deserve the same treatment. It is an explicit inductive bias. LeCun and colleagues called translation invariance "a priori knowledge of the task," and Gary Marcus held it up as covert nativism; Buckner (2024) replies that it is a domain-general assumption, which saves resources where the world satisfies it and may get in the way where it does not (2024, pp. 20–21, 130) (see empiricism and nativism).

Sources