liveBook · Manning

Structural prior

As explained in Inside Deep Learning: Math, Algorithms, Models

An assumption about the organization of the data or task that is built into the model architecture before seeing data.

A structural prior is an assumption about how data or a task is organized, built into a model architecture before training. Neural networks become especially useful when their design encodes structure such as spatial correlation in images or sequential relationships in time-varying data. section 3.1

Choose an architecture that matches the structure you believe the data has:

  • Use fully connected layers for columnar data when feature order carries no special meaning. section 3.1
  • Use convolutional neural networks for images because nearby pixels are expected to be related. section 3.1

FashionMNIST baseline comparison

Represent 28×28 images as tensors and compare a flattened fully connected model with a CNN built from Conv2d and MaxPool2d layers. Train both with cross-entropy loss and compare accuracy; the CNN performs much better because its layers preserve and exploit image structure. section 6.0

How Inside Deep Learning: Math, Algorithms, Models covers it

How deep it goes
Defines structural priors and demonstrates CNN encoding through image tensors and model comparisons, but defers broader encoding methods.
Examples
Demonstrates image locality through pixel shuffling and compares fully connected and CNN FashionMNIST classifiers.
What it assumes
Assumes basic neural-network construction and training, while introducing image tensors, pixel structure, and CNN rationale.
What you can do after
Build architecture-matched PyTorch baselines and evaluate whether CNN structure improves image classification over fully connected layers.
How it connects
Connects structural priors to convolutional neural networks, fully connected layers, spatial correlation, sequential relationships, and transfer learning.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Inside Deep Learning: Math, Algorithms, Models. The section links point to the parts of the book it draws on.