Level 1 · Module 3 · 10 minutes
Neural networks and large language models
- Describe how a neural network turns inputs into an output.
- Explain what happens to the weights during training.
- Explain in simple terms how a large language model generates text.
A neural network is a large set of simple units joined by numbers called weights. It does not look like a brain. The name is only loosely inspired by nerve cells. Inside, numbers go in, get multiplied and combined layer by layer, and a result comes out.
How the network is trained
At first, the weights are guesses, so the output is poor. During training, the network sees an example, produces an output, and compares it with the correct answer. The difference is turned into an error signal, and the weights are nudged slightly to reduce that error. This repeats over many examples. The weights settle into values that make useful predictions on similar cases. After training, the weights are fixed until someone trains the model again.
What a large language model does
A large language model is a neural network trained on a very large amount of text to predict the next token. A token is a small piece of text, roughly a word or part of a word. Given your input, the model calculates a spread of likely next tokens, chooses one, then repeats the process with the growing text.
That explains both its strength and its weakness. Repeating a likely-token prediction produces fluent paragraphs. But the model is predicting likely text, not looking up facts in a database. Large means it has many learned weights, not that it understands everything. Some apps add search or tools; the model by itself is not a fact-checker. The model has no single place where a fact is stored; knowledge is spread across its weights, which is why it can blend details from different sources.
Why answers differ
The model's reply depends on the exact wording you use. It also does not keep a secret memory of earlier chats; the app sends the conversation back so the model can use it. That limit is one reason a long chat can drift or forget an earlier instruction.
Common misconception
A language model looks up each answer in a stored database. In fact, it predicts likely next tokens from learned patterns; some apps add search tools, but the model itself is not a database.
Guided practice
Write a short sentence and cover the last word. Ask a person to guess the missing word, then ask a chat assistant if you have one. Compare the guesses. Then explain in two sentences why context, not fact checking, drove the answers.
Knowledge check
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