liveBook · Manning

Model architecture

As explained in Math and Architectures of Deep Learning

The chosen arrangement of neurons and their connections in a neural network.

Model architecture is the chosen form of a parameterized function used to approximate an unknown transformation from inputs to outputs. It fixes what can be adjusted during training, but not the eventual values of those adjustable parameters. In the simplest case, the architecture is a weighted sum of inputs plus a bias. section 1.1 section 1.2

Architecture selection comes before training. First choose a function suited to the problem; then estimate its weights from input-output training pairs. After training determines those weights, the completed function can process new inputs during inferencing. Success depends both on an appropriate architecture and on training-data quality and quantity. section 1.2 section 1.3.5

A threat-score model

For inputs such as hardness and sharpness, a three-parameter architecture computes a threat score using two input weights and a constant bias. The weights scale the inputs; the bias is not multiplied by either input. Training later adjusts all three parameters so predicted threat scores approach known target values. section 1.3.4 section 1.3.5

y(hardness, sharpness) = w0 × hardness + w1 × sharpness + b

This weighted-sum form makes the separation clear: the equation specifies the architecture, while training supplies numerical values for its weights and bias. section 1.1

In neural networks, architecture specifically includes the number of neurons and the connections among them. Along with connection weights, these choices determine the network’s ability to represent functions: increasing neurons and connections increases expressive power. Architecture is usually selected for the nature of the problem, often by reusing a design known to work for similar problems. section 7.1

How Math and Architectures of Deep Learning covers it

How deep it goes
Defines linear architectures and relates neural-network neurons and connections to expressive power, while deferring popular architectures.
Examples
Uses a cat threat-score function with hardness, sharpness, two weights, and a bias.
What it assumes
Introduces the idea from input-output functions and real-valued weights without assuming prior machine-learning knowledge.
What you can do after
Evaluate/understand how architecture choice differs from weight estimation and affects a network’s representational capacity.
How it connects
Connects function approximation with weights, bias, model training, inferencing, supervised learning, and expressive power.

Also explained in

Compare how 13 books explain model architecture →

Related concepts

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