Hypothetical scenario. Maya asks whether Northwind's model stores a separate answer for every possible support question. A small neural-network calculation offers a better starting point: the model applies learned numerical transformations to the input it receives.
One unit transforms some numbers
A basic artificial neuron receives numerical inputs, multiplies each by a weight, adds the results and includes a bias. It then applies an activation function. The word “neuron” names a computational unit here; it does not establish that the system learns, remembers or reasons in the same way as a biological brain.
Weights determine how input coordinates contribute to the weighted sum. The bias supplies an offset independent of the current input values. These are parameters: numbers that a training process can change. An input is data for this particular calculation. Keeping inputs and parameters separate helps distinguish answering a new question from updating the model.
An activation function changes the weighted sum before passing it onward. ReLU, short for rectified linear unit, returns its input when the value is positive and zero otherwise. It is one common example, not the only choice. Different model components use different transformations, and this small unit is a teaching model rather than a complete transformer.
Calculate a weighted sum by hand
Illustrative calculation. Choose input values (0.5, −1), weights (2, 1) and bias 0.5. Multiply the first pair: 0.5 × 2 = 1. Multiply the second pair: −1 × 1 = −1. Add both contributions and the bias: 1 + (−1) + 0.5 = 0.5. ReLU(0.5) = 0.5, so the positive value passes through.
Now change only the second input from −1 to −2. The weighted sum becomes (0.5 × 2) + (−2 × 1) + 0.5 = 1 − 2 + 0.5 = −0.5. ReLU(−0.5) = 0. The same weights and bias produced a different activation because the input changed; no learning step occurred between the two calculations.
If training later changes the first weight from 2 to 3 while restoring the original inputs, the sum becomes (0.5 × 3) − 1 + 0.5 = 1. That is a parameter change. It must be judged against a training objective and data, rather than assumed useful because a particular output became larger.
Layers compose transformations
A layer groups multiple units that transform an input representation into another representation. Later layers receive results from earlier ones. This composition allows the model to build intermediate features rather than rely only on the original coordinates. The number of coordinates can change between layers, so write down which outputs feed which inputs.
Without a nonlinear step, composing affine transformations remains an affine transformation. If one layer computes y = Ax + b and another computes z = Cy + d, substitution gives z = CAx + Cb + d. More layers have changed the combined matrix and bias but have not created a nonlinear mapping. Nonlinear activations change what that composition can represent.
The matrices in that explanation are compact notation for repeated weighted sums. A beginner can trace a single unit first and then understand a layer as many related calculations. Large parameter counts mean there are many such adjustable numbers, not that each number corresponds to one independently stored fact.
What a demonstration can show
In the wild. Michael Nielsen's opening chapter explains neural networks through handwritten-digit recognition, connecting weights, biases and training examples. The example demonstrates a learned mapping from inputs to outputs. It is useful precisely because a classification result can be inspected without pretending the network contains an explicit dictionary of every possible image.
Language models use more elaborate architectures, but the distinction between learned parameters and current activations carries over. Attention, normalization and other components organize information flow in ways this tiny example omits. Understanding one weighted unit does not license a claim that a complete model's internal reasoning has been explained.
A network is not a row per question
Misconception: neural networks store knowledge exactly like database rows. Parameters can encode useful statistical regularities, and models can sometimes reproduce training content, but there is not generally a clean row to inspect or update for every proposition. A current price change is therefore usually an application-state problem, not a reason to edit one imagined “price neuron.”
A second misconception is that a larger activation means greater truth. The activation in the toy unit is simply the output of the selected formula. Its interpretation depends on the architecture, training objective and later computations. A high value does not authenticate the input or authorize an action.
Use the weighted-sum view when learning model shapes and parameter updates, or when distinguishing a changed prompt from a changed model. Twenty minutes is an orientation to the mechanism, not a promise of mastering neural-network design. The next chapter makes one parameter update visible through a loss and gradient, with arithmetic small enough to check.
Check yourself
With the original input and weights, what does the unit output?
The sum is 0.5 × 2 − 1 × 1 + 0.5 = 0.5, and ReLU preserves that positive value.
The input changed and the activation changed. Did the network necessarily learn?
No. Fixed parameters can produce different activations for different inputs. Learning requires a parameter-update process under a declared objective.
Why not obtain every nonlinear mapping by stacking only affine layers?
Their composition is still affine: substitution combines the matrices and offsets. A nonlinear operation changes that representational limitation.
Go deeper
- Video — watch first: But what is a neural network? — Grant Sanderson. Watch first for a visual explanation of weights, activations and layers.
- Book chapter: Neural Networks and Deep Learning — chapter 1, Using neural nets to recognize handwritten digits — Michael Nielsen. Connects a numerical network with a concrete classification problem.
- Primary document: CS50 AI: Neural Networks notes — Brian Yu. Introduces activation functions and the role of learned weights.