§15.4 Distributed representation
A distributed representation distributed representation Each input represented by many features, each feature involved in many possible inputs. defined in ch. 1 — open in glossary — composed of many elements that can be set separately from each other — is representation learning’s most important tool: features with values describe concepts. Networks with many hidden units and probabilistic models with many latent variables both use this strategy, and it is the natural match for §15.3’s program: each direction in representation space can correspond to a different underlying configuration variable.
Contrast the symbolic case: one symbol per input, expressible as a one-hot vector — mutually exclusive bits. That is the simplest non-distributed representation non-distributed representation A representation spending one parameter set (symbol, template, tree leaf, cluster) per region of input space — k-means, k-NN, decision trees, Gaussian mixtures, local-kernel machines, n-grams. n parameters carve only n regions, so generalization rests entirely on the smoothness prior. defined in ch. 15 — open in glossary , and it has plenty of company:
| How it partitions input space | Why not distributed | |
|---|---|---|
| Clustering / k-means | each input belongs to exactly one cluster | one active symbol; no separately-controllable attributes |
| k-nearest neighbors | one (or a few) templates answer for each input | with k > 1 there are multiple values, but they cannot be controlled separately |
| Decision trees | one root-to-leaf path activates per input | one region per leaf |
| Gaussian mixtures / mixtures of experts | templates with degrees of activation | activations exist but are not separately controllable |
| Kernel machine (Gaussian kernel) | continuous activation per support vector | same issue — local templates, not composable attributes |
| n-gram language models | a suffix-tree partition of contexts | separate parameters per leaf |
The geometric argument. Take the simplest distributed learner: binary features, each thresholding a linear function of the input. Each feature splits into two half-spaces, and their intersections carve the space into regions — each with its own unique code . Carve for yourself, then spend the same budget on prototypes:
Each of the n linear-threshold features answers one question ("which side of my line?"), and every REGION gets a unique binary code h — the intersections multiply, giving O(n²) regions in 2-D and O(n^d) in d dimensions from only O(n·d) parameters. (The counted number can fall below the bound when an intersection lands outside the visible box.) Note also: not every code is feasible — with parallel-ish lines some sign patterns never occur.
How many regions can n hyperplanes make? (eq 15.4)
| the number of hyperplanes — one per binary feature; a general result on hyperplane arrangements (Zaslavsky 1975; applied by Pascanu et al. 2014) | features | |
| the input dimension: growth is EXPONENTIAL in d and polynomial in n | dimension | |
| with only O(n·d) parameters — versus a non-distributed learner needing O(n^d) EXAMPLES to carve (and label) as many regions, since each region demands its own parameters | the punchline | |
| the general form: if a k-parameter transformation captures r regions with k ≪ r (and those features suit the task), generalization beats the O(r)-examples non-distributed route | beyond linear |
Worked example — six features vs six templates
In with : the distributed learner distinguishes up to regions; six prototypes distinguish exactly . At in , the bound is astronomically larger than — while the smoothness-only learner needs roughly one example per region it must distinguish (§5.11.2’s curse, revisited).
Generalization = shared attributes
As pure symbols, “cat” and “dog” are as distant as any two symbols. As distributed codes sharing entries like has_fur and number_of_legs, much of what is learned about cats transfers to dogs. Distributed representations induce a similarity space — semantically close concepts are close in distance — a property purely symbolic representations simply lack. (Non-distributed learners generalize only via the smoothness prior smoothness prior f(x) ≈ f(x+ε): the implicit prior of k-NN/local kernels/trees — needs O(k) examples for O(k) regions and can't extrapolate a checkerboard; DL's composition assumption gets O(2ᵏ). defined in ch. 5 — open in glossary : enough for nearby points, hopeless for a target function with more ups and downs than you have examples.)
Why capacity stays sane. Distinguishing regions sounds like an overfitting machine — but the VC dimension of a linear-threshold network is only in the number of weights (Sontag 1998). We can code exponentially many regions, yet cannot learn arbitrary functions from code space to labels with a linear classifier. That combination — powerful representation, weak classifier — expresses a prior: the classes are linearly separable as functions of the underlying factors . “All images of green objects” qualifies; XOR-style classes (“red cars and green trucks” vs “green cars and red trucks”) deliberately do not. A classifier learning person need not treat “woman with glasses” differently from “man without glasses” — which pushes to represent classes linearly-separably in the first place.
And it shows up in practice. Hidden units of deep vision networks are often interpretable, matching labels humans would assign (Zhou et al. 2015) — and a generative model of faces learns separate directions for separate factors, discovered with no attribute labels at all (Radford et al. 2015):
§15.5 Exponential gains from depth
§6.4.1 showed that some functions need exponentially smaller deep networks than shallow ones. The same style of result extends beyond deterministic functions. One-hidden-layer models — RBMs, deep belief networks — are universal approximators of probability distributions (Le Roux & Bengio 2008, 2010; Montúfar 2014)… but universality is silent about size. The sum-product network sum-product network (spn) A probabilistic model computing a distribution with a polynomial circuit of sums and products; certain distributions require a minimum SPN depth to avoid exponentially large models — the exponential advantage of depth, in probabilistic form. defined in ch. 15 — open in glossary supplies the probabilistic depth theorem: SPNs compute distributions with polynomial circuits, and there exist distributions requiring a minimum SPN depth — insufficient depth (2, or even instead of ) forces exponentially large models (Delalleau & Bengio 2011), with significant differences between every two finite depths and tractability constraints that themselves limit representational power (Martens & Medabalimi 2014). For convolution-related deep circuits, the exponential advantage holds even when the shallow circuit only needs to approximate the deep one’s function (Cohen et al. 2015) — earlier results required exact replication.
The face-arithmetic example closes the loop: it took a deep generative model to relate abstract factors (gender, glasses) to pixels — factors that can be chosen nearly independently of one another yet remain meaningful are typically high-level and highly nonlinear functions of the input. That demands deep distributed representations: higher-level features and causes obtained by composing many nonlinearities.
Next: the chapter’s closing synthesis — a catalog of the generic priors by which learners are pointed at underlying causes — providing clues to discover underlying causes.
Check yourself — distributed representations & depth
1.What is the raw combinatorial power of a distributed representation?
2.Predict the outcome — in the RegionCarveLab at n = 6, roughly what region counts do the two modes give (2-D input)?
3.Why do distributed representations generalize where symbolic ones cannot?
4.Despite carving O(n^d) regions, a linear-threshold network's VC dimension is only O(w log w). What prior does distributed-h + linear-classifier express?
5.What does fig 15.9's vector arithmetic (man-with-glasses − man + woman) demonstrate?
6.What do sum-product networks contribute to the depth story (§15.5)?