TechnologyAI and machine learning

Neural network explained simply: what it is, how it learns and how it differs from AI

A neural network is a program that learns from examples: it is shown lots of data and tunes its own internal settings until its answers come out right. Nobody writes rules like "if A, then B" into it. That is where both its strength and its oddities come from.

By TASE TeamPublished 6 min read

Neural network: glass layers of golden nodes joined by cyan lines and a golden ring with a blue iris on a dark background
On this page
  1. What a neural network is
  2. One neuron: arithmetic on your fingers
  3. Layers: how neurons become a network
  4. How a neural network learns
  5. Neural networks, machine learning and AI: what is what
  6. What kinds of neural networks exist
  7. What a neural network can do
  8. What a neural network cannot do
  9. How to use a neural network wisely
  10. Related reading
  11. Where TASE fits
  12. What to do today
  13. Frequently asked questions

What a neural network is

Picture a cook who was never given a recipe. Instead, the cook got a hundred dishes and the guests' ratings. He tries, looks at the ratings and changes the salt, the pepper and the stove time a little each round. After a thousand attempts the dish comes out right almost every time. The cook still does not know the recipe, but knows what works. That, roughly, is how a neural network learns.

In dry terms, a neural network is a mathematical model built from layers of simple computing units called neurons. It does not follow rules written in advance; it finds patterns in examples. Show it a million emails, some labeled as spam, and it learns to tell them apart.

You will see other names for the same thing: neural net, artificial neural network. The name comes from the brain, but the likeness is mostly an idea. It is not a copy of a brain, it is math running on a computer.

One neuron: arithmetic on your fingers

An artificial neuron is much simpler than it sounds. It receives a few numbers (inputs), multiplies each by its own weight, adds them up, adds a correction (a bias) and checks whether the total passes a threshold.

Suppose the inputs are 0.8 and 0.3, the weights are 0.5 and 1.2, and the bias is minus 0.1. The calculation: 0.8 x 0.5 + 0.3 x 1.2 - 0.1 = 0.4 + 0.36 - 0.1 = 0.66. With a threshold of 0.5, the 0.66 passes it, so the neuron "fires" and passes a one onward.

The weight shows how important an input is. A large weight means "this matters", a small one means "hardly matters". The whole point of training is to find those weights.

Layers: how neurons become a network

One neuron can do very little. Line them up in layers, though, and you have a network. The first layer takes in data (say, the brightness of an image's pixels), the last gives an answer (say, "cat" or "not a cat"), and the hidden layers between them do the real work.

A network's size is easy to measure by the number of adjustable numbers, its parameters. A small network: 10 inputs, a hidden layer of 8 neurons and 2 outputs. It has 10 x 8 + 8 x 2 = 96 weights, plus 8 + 2 = 10 biases, for 106 parameters in total. Large modern models have billions of parameters, and the principle is the same, only the scale differs.

Neural network diagram: an input layer, two hidden layers and an output layer of neurons joined by connections
Data flows from the input layer through hidden layers to the output, and training tunes the strength of every connection.

How a neural network learns

At first the weights are random, and the network answers at random. Then a loop starts: show an example, the network gives an answer, measure how wrong it was, and adjust the weights so the error shrinks a little. This runs over millions of examples.

The method for adjusting weights that became standard is called backpropagation. It was described in a well-known 1986 paper (Rumelhart, Hinton and Williams), although similar ideas had appeared earlier. The network looks at which weights are most to blame for the error and changes those the most.

There is a trap, too: overfitting. If a network studies the same examples for too long, it may simply memorize them and get lost on new ones. Like a student who crammed the exam questions but does not understand the subject. That is why some examples are always held back for testing.

The quality of examples matters more than their number. If every message from a stranger in the training emails was accidentally labeled "spam", the network will learn exactly that and start sending normal mail to the spam folder. Garbage in, garbage out: everyone in machine learning knows that saying. That is why preparing data usually takes longer than the network's training itself.

Neural networks, machine learning and AI: what is what

These words are often mixed up, though the relationship is simple, like nesting dolls.

  • Artificial intelligence. The broadest idea: any program that solves tasks that normally take human intelligence.
  • Machine learning. An approach within AI: the program learns from data instead of following written rules.
  • Neural networks. One way of doing machine learning, the most visible one today.
  • Deep learning. Neural networks with many hidden layers.

Smart chat helpers, image generators, speech recognition: almost all of it is neural networks. But AI is wider: it also includes simpler methods that are not neural networks.

What kinds of neural networks exist

They are divided by task and structure.

  • Convolutional. Good with images: they notice edges and shapes first, then whole objects.
  • Recurrent. Designed for sequences such as speech and text word by word. Today they have largely given way to other designs.
  • Transformers. A 2017 architecture behind most modern language models: it can track how words relate to each other at any distance.
  • Diffusion models. They learn to remove noise and draw pictures from a description that way. More in the article on creating images with AI.

The borders between kinds are blurry: one system often combines several.

What a neural network can do

The list is long and growing: recognizing faces and objects in photos, translating, answering questions, writing and editing text, turning speech into text, recommending movies, drawing. How speech becomes text has its own article on transcription.

Much of this has long been in your pocket: opening the phone with your face, keyboard suggestions, the spam filter in your mail, voice dialing.

All these skills share one thing: a neural network is good where there are plenty of examples and it is possible to judge whether an answer is right.

What a neural network cannot do

It does not understand the world like a person. It predicts a likely continuation, so it can produce a smooth but wrong answer and sound confident doing it. Such inventions are called hallucinations. It depends on data: if the examples were skewed, the answers will be skewed too. And it does not know what was not in its training or in your request.

From this comes a practical rule: the costlier the mistake, the more careful the check. Numbers, dates, names and links should be verified against the original source. How to doubt usefully is described in the article on critical thinking.

How to use a neural network wisely

  1. State the task precisely: who you are, what you need, in what form and for whom. How that is done is covered in the guide to writing prompts.
  2. Do not upload personal or private data to services whose terms you have not read.
  3. Check anything important against an independent source.
  4. Ask it to show its reasoning and assumptions: a weak spot is easier to notice that way.
  5. Remember the answer depends on the request: rephrase if the result is not what you wanted.

When a neural network does not just answer but acts on your behalf, it becomes an AI agent. What AI does to the job market is in the article on future professions, and the noise around companies is in the piece on the AI bubble. If AI in search gets in the way, see how to turn it off.

Where TASE fits

Neural networks and machine learning also sit at the base of modern trading systems. TASE is an automated trading system: it runs on its own algorithms and machine learning, and an independent AI module checks the signals. It trades futures on Binance, Bybit, OKX and BingX around the clock; the API key can trade but cannot withdraw funds. Accounts start from $10,000, and every position is visible in your dashboard. Details are on the technology page. Exchange availability depends on your country, so check the terms before registering.

What to do today

Take any neural network and ask it a question whose answer you know for certain. Compare its answer with the truth and find where it slipped or made something up. Nothing shows faster how far it can be trusted.

One experiment like that beats ten explanations.

This article is educational. Numbers in the examples are illustrative and the terms are simplified.

Frequently asked questions

What is a neural network in simple terms?

It is a program made of layers of simple computing units, neurons, that learns from examples instead of following written rules. It is shown lots of data, tunes internal settings called weights, and over time gives more accurate answers. Other names: neural net, artificial neural network.

How does a neural network work?

Data passes through layers of neurons. Each neuron multiplies its inputs by weights, adds them up, adds a bias and passes the result on, and the last layer produces the answer. How good the answer is depends on how well the weights were tuned during training on examples.

How do neural networks learn?

The weights start out random. The network answers an example, the error is measured, and the weights are changed slightly so the error gets smaller. The loop repeats over millions of examples. The network must be tested on examples it has not seen, or it will just memorize the training data and stumble in real work.

What is the difference between a neural network and artificial intelligence?

Artificial intelligence is the broadest idea, any program for tasks that take intelligence. Machine learning is one approach within AI, and neural networks are one kind of machine learning. So every neural network is part of AI, but not all AI is made of neural networks.

What types of neural networks are there?

Convolutional networks work well with images, recurrent ones were designed for sequences, transformers sit behind most modern language models, and diffusion models draw pictures by removing noise. Real systems often combine several kinds, so the borders are loose and the choice depends on the task.

Why can a neural network make mistakes?

A neural network predicts a likely answer and does not check facts, so it can produce smooth but wrong text, called a hallucination. Skewed training data can also cause errors. Check important numbers, dates, names and sources yourself against the original.

About the author

TASE Team · Editorial team

The TASE team builds an automated crypto trading system with its own algorithms and machine learning. We write about what we know from engineering and risk work, and we label opinion as opinion.

Educational content, not investment advice. Trading crypto and derivatives carries a high risk of losing all invested capital.

Explore TASE