🔍 Read the full analysis: How A Neural Network Makes Sense Of A Handwritten Number on ThorstenMeyerAI.com
Get smart everyday buys delivered free with Prime
- Fast, free delivery on millions of items
- Prime Video, Amazon Music and more included
- Member-only deals all year
TL;DR
A handwritten-digit network turns pixel values into a prediction through layers of weighted sums, biases and activation functions. The explainer counts 109,386 parameters in one small digit-reader example and shows, with a separate XOR demonstration, how changing one bias can flip a network’s output.
A new explainer published by ThorstenMeyerAI.com on November 8 traces how a neural network turns a handwritten digit into a prediction, using a small arithmetic example to show how information moves through layers. It says a compact digit-reading network in the example has 109,386 parameters, while a separate nine-number XOR network illustrates how changing just one bias can change the function the network computes.
For a 28-by-28-pixel image, the explainer represents the image as a list of 784 pixel values. The input layer holds those values and passes them on; it does not transform them. In a dense layer, each unit multiplies inputs by weights, adds a bias, then applies an activation function. The resulting values become inputs to the next layer.
A digit classifier’s output layer can return 10 scores, one for each possible digit. The explainer says the model’s prediction is the digit with the highest score. Its count of 109,386 parameters refers to a particular small digit-reader design, not every neural network or every digit classifier. About 92% of its parameters are in the first layer, the post says, because each pixel connects to each of that layer’s 128 units.
To show how parameters affect behavior, the article builds a tiny network for XOR, which returns one when two input bits differ and zero when they match. It uses two hidden units and one output unit, with a step activation that returns one for a total of zero or more. The network has nine numbers in its weights and biases. Changing the output bias from −2 to −1 makes it return one for all four possible inputs, rather than only the two inputs whose bits differ.
Infographic 01 · One bias, two behaviors
A network you can run by hand
Two hidden neurons check "at least one bit is on" and "at most one bit is on". The output neuron needs both. Change its bias and it needs only one.
Move the output bias from −2 to −1 and the network stops computing XOR: it returns 1 for all four inputs.
The whole network
Hidden 1: step( x₁ + x₂ − 1 ) Hidden 2: step(−x₁ − x₂ + 1 ) Output: step( h₁ + h₂ − 2 )
step: 1 if the total is zero or greater, otherwise 0. Nine numbers in total: six in the hidden layer, three in the output neuron.
All four inputs
Hidden outputs and the final output with the original and the changed bias
| Input | At least one | At most one | Output, bias −2 | Output, bias −1 |
|---|---|---|---|---|
| 0, 0 | 0 | 1 | 0 | 1 |
| 0, 1 | 1 | 1 | 1 | 1 |
| 1, 0 | 1 | 1 | 1 | 1 |
| 1, 1 | 1 | 0 | 0 | 1 |
Sources: own arithmetic, checked with a script · the XOR example as in Goodfellow, Bengio, Courville: Deep Learning, ch. 6.
Powered by Thorsten Meyer AI
Why Individual Weights Matter
The examples make the distinction between a network’s architecture and its learned parameters concrete. Width and depth describe the number of units and layers; weights and biases are values that determine how those units respond. Training typically adjusts the parameters, while the architecture is chosen beforehand. Directly setting values, as in the XOR example, is another way to create a particular behavior.
That distinction also helps explain why inspecting a large model is difficult. The XOR behavior can be traced to a handful of values, but the explainer says behavior in a trained network is generally distributed across many parameters and layers. Knowing that a single value can flip a toy network does not mean one can identify or reliably change the cause of a complex model’s behavior with one edit.
The post connects this idea to a separate claim about AI systems editing other models. It says MIT CSAIL researchers reported that an AI model read and directly edited another network’s parameters. The post reports that one edit changed 0.016% of a language model’s weights and raised a math score from 7.9% to 48.1%. Those figures are attributed to the post’s account of the researchers’ work, not established by the arithmetic examples themselves.
Products Worth Considering

Dell XPS 14 Premium Laptop DA14250 – 14.5 Touch 3.2K OLED, Intel Core Ultra 7, Intel Arc Graphics, 32GB RAM, 1TB SSD, Backlit Keyboard with

Canon SELPHY CP1500 Wireless Photo Printer Bundle with KP-108IN Ink, Paper, and Slinger Bag

Samsung Odyssey G5 34-Inch Ultra-Wide Curved Gaming Monitor, 180Hz
As an affiliate, we earn on qualifying purchases.
From Pixels to Layered Arithmetic
The article focuses on a multilayer perceptron, or MLP: a feedforward network made from dense layers. In this design, a layer can be written as z = W x + b, followed by an activation that produces the layer’s output. Here, x is the incoming vector, W is the weight matrix and b is the bias vector. The activation’s output is passed to the next layer.
The XOR example is a teaching demonstration, not a description of the digit reader’s internal computation. Its two hidden units represent the conditions “at least one bit is on” and “at most one bit is on.” Both conditions are true when exactly one bit is on. The output unit combines them to produce the XOR result. The same architecture with a changed bias computes a different function.
The source also describes a video of about seven and a half minutes accompanying the explainer. It says the narration uses an AI voice clone of Thorsten Meyer. The article identifies its account of the model-editing research as based on a blog post with public logs, rather than a peer-reviewed paper.
“A neural network is arithmetic in layers.”
— Thorsten Meyer, ThorstenMeyerAI.com
Limits of the Model-Editing Claim
The explainer does not identify in the supplied material the specific language model, evaluation setup or math benchmark behind the reported change from 7.9% to 48.1%. It also does not provide enough detail here to assess how the score was measured, whether the result held across other tasks, or whether the edit had trade-offs elsewhere. The post characterizes the underlying material as a blog post with public logs, not a peer-reviewed paper.
The parameter count and 92% share apply to the particular digit-reader architecture described, but the supplied account does not specify every architectural detail needed to independently reproduce that count. The examples explain how a network can compute a prediction; they do not show the internal weights or activation patterns of a particular trained system recognizing a particular handwritten seven.
What Further Evidence Would Show
The next useful evidence for the model-editing claim would include the researchers’ underlying logs and evaluation details, including the model used, the math test, and results on additional tasks. That would help readers judge whether the reported score change reflects a narrowly targeted edit or a broader improvement, and whether any performance costs were measured.
For the handwritten-digit example, reproducing the stated network architecture and parameter count would clarify exactly how its 109,386 values are distributed. The explainer itself provides a conceptual walkthrough, but no new benchmark or independent test of a digit-recognition model is reported in the supplied material.
Key Questions
How does a neural network turn a handwritten image into a digit?
In the example, a 28-by-28 image becomes 784 pixel values. Layers calculate weighted sums, add biases and apply activation functions; the output layer produces scores for possible digits, and the highest score is the prediction.
What do weights and biases do?
Weights set how much each input contributes to a unit’s total. A bias shifts that total before the activation function determines the unit’s output.
Does the 109,386-parameter count apply to every digit reader?
No. The figure is for the small digit-reader design described in the explainer. Other architectures can use different numbers of layers, units and parameters.
What does the XOR example demonstrate?
It shows that one parameter can change a small network’s behavior. In the example, changing the output bias from −2 to −1 changes the result from XOR to an output of one for every possible input.
Is the reported AI model-editing result peer-reviewed?
The source describes the material as a blog post with public logs, not a peer-reviewed paper. The supplied account does not provide the full evaluation details needed to independently assess the reported math-score change.
Source: ThorstenMeyerAI.com
