brainax

What is a neural network?

Short answer: a neural network is a program that learned from examples instead of following rules a person wrote. It is one powerful kind of machine learning, which in turn is part of AI. Language models like ChatGPT, Claude and Gemini are neural networks built for text: they were trained on huge amounts of text and write an answer piece by piece, each time picking the best-fitting continuation.

Free course on this topicAI basics: free courseStart the course →

AI, machine learning, neural networks, LLMs: nesting dolls

Think of four rings, each narrower than the one around it:

More in the lesson: AI, ML, neural nets: what's what

Rules vs examples

A regular program follows rules a person wrote, like "if the order is over $100, give a discount". Machine learning works the other way around: you give the model thousands of examples with the right answers, and it finds the rule itself. The trap: if the examples contain a mistake, the model learns that too.

ML isn't always the right tool. If a task can be described with a couple of clear rules, like "calculate tax at this rate", a hand-written rule is cheaper, easier to understand and never makes random mistakes. ML makes sense when you can't put the rule into words, you have lots of examples, and a rare mistake isn't a disaster.

More in the lesson: AI, ML, neural nets: what's what

Neural networks are already in your phone

Same recipe every time: lots of examples with labels (the right answers), a pattern found in them, then applied to new cases.

More in the lesson: AI, ML, neural nets: what's what

How a neural network like ChatGPT "thinks"

A language model writes an answer token by token. A token is a piece of text: a short word, part of a longer word or a punctuation mark. After "Bitcoin is often called digital…" the model is far more likely to pick "gold" than "pizza".

More in the lesson: How a neural network thinks

FAQ

What is a neural network in simple terms?

A program that learned a pattern from lots of examples with right answers, instead of following rules a person wrote. It then applies that pattern to new cases.

Is a neural network the same as AI?

No. AI is the widest ring: any program that does smart things, including simple hand-written rules. Neural networks are one way of doing machine learning inside it.

Is ChatGPT a neural network?

Yes. ChatGPT, Claude and Gemini are language models, meaning neural networks trained on a huge amount of text to guess which piece of text comes next.

Understand AI from the ground up

The free Brainax course «AI basics» has 23 short lessons with animations and quizzes: from what a neural network is to tokens, prompts, AI agents and how to check answers. Start the lesson

Free course on this topicAI basics: free courseStart the course →

Articles on this topic

Glossary