Skip to main contentSkip to navigationSkip to footer
DigiTransact AI Education Centre Start Learning

Level 3 · Module 13 · 10 minutes

Training: how weights are adjusted

What you will learn
  • Describe the repeating loop used to train a network.
  • Explain in plain words what backpropagation does.
  • Distinguish training from inference.

Training is the process that turns a network of random numbers into a useful model. The network has weights, and at the start those weights are not meaningful. Training adjusts them with examples until the network's answers match known answers well enough.

A loop with four steps

  1. Give the network an example from the training data.
  2. Run a forward pass to get the network's answer.
  3. Compare that answer with the correct answer and calculate an error score, often called the loss.
  4. Adjust the weights slightly in the direction that makes the error smaller.

Then the process repeats with another example, and again, for many rounds over the whole training data. Each round is a small change, but a very large number of small changes can add up to weights that produce useful answers. The result is a trained network, not a store of the examples it saw.

Working backwards

The adjustment step needs to know which weights contributed to the error. A method called backpropagation works backwards from the output layer to the input layer, sharing out the blame. Weights that pushed the answer further from the target can be changed more. The details involve mathematics, but the idea is simple: reduce the error by nudging the connections that caused it.

Training and inference are different

Training is slow and expensive, and it happens before the model is offered to people. Inference is the everyday use of the frozen model, and it is much cheaper. A commercial model is usually trained in advance by its builders, then used many times without its weights changing. This is why the model cannot learn your preferences just because you asked a question, unless a separate system stores and reuses that information.

Training also does not guarantee understanding. It produces weights that fit patterns in the examples. If the examples are narrow or unfair, the trained weights carry those limits into every later answer.

A teaching picture, not a commercial system

Lesson descriptions show the training loop in a few simple steps. That view is simplified. Real training uses very large data sets, special hardware and careful checks, but the basic loop of prediction, error and adjustment is the same.

Deepen Your Understanding

Reinforce what you have learned with recommended video tutorials from trusted educational creators.

Google's short explanation of gradient descent, the idea used in the neural-network and training lessons.

Source: Google for Developers on YouTube · checked 2026-11-27. The lesson is complete without the video.

Common misconception

A model improves every time it answers a question, even during ordinary use. Ordinary use is inference, and inference does not change the weights. Improvement needs a separate training process with examples and deliberate updates, usually run by the model's builders or by a team with the right data and tools.

Guided practice

On paper, write two examples for a tiny message classifier with their correct labels. Decide one weight to adjust after seeing the first result, and explain how the second example would change it again. State that you are simulating the training loop and that no model is trained.

Knowledge check

1. What is the goal of training?

2. What does backpropagation help with?

3. Which statement separates training from inference?

Independent practice

Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.

Last reviewed: · Report a problem

Last updated: