What it is used for

You use the results of deep learning every day without needing to know its name. It unlocks your phone with your face, turns speech into text, translates languages, recommends songs and videos, and filters photos in your camera. Large language models, the kind that power chatbots, are products of deep learning trained on very large amounts of text.

In the working world, the technique is used to examine medical scans, recognize pests in photos of leaves, read handwriting on forms, and help cars understand the road. The common thread is one: the task is recognizing patterns in raw, messy data such as images, sound, and text.

How to use it

Most people use deep learning through finished products, so using it means choosing trustworthy products and understanding their limits. For those who want to build, IBM outlines the path: gather example data that is already labeled with the correct answers, pick a framework such as PyTorch or TensorFlow, then train the network on a computer with a graphics card or on a cloud service.

The training process can be imagined like a student practicing exercises. The network looks at an example, makes a guess, and its error is measured. That error is used to adjust, little by little, the strength of the connections between the network's nodes, and the process repeats millions of times until the network's guesses are right often enough on new examples it has never seen.

Practitioner level

The building block is the artificial neuron, a simple computing unit that receives numbers, weighs them with weights, and passes the result on. A weight is a number expressing the strength of a connection, learned during training. The layers in the middle are called hidden layers, and most of the learning happens there.

Those layers learn in a hierarchy. In an image recognition network, early layers respond to edges and colors, the next layers recognize simple shapes, and the final layers recognize whole objects. Researchers call this representation learning: the network discovers the important features of the data by itself, replacing work that humans once had to design feature by feature.

Two algorithms made training large networks practical: backpropagation, a way of calculating how much each weight contributed to the error by working backward from the final output, and gradient descent, a way of changing the weights step by step in the direction that reduces the error. Advances in graphics cards, which can compute many things at once, made this training far faster and more practical.

Expert level

The shape of the network is matched to the type of data. Convolutional networks are designed for images because they excel at local patterns such as relationships between neighboring pixels. For sequences such as sentences, the transformer architecture now dominates and forms the basis of large language models. Each node uses a nonlinear activation function, and that curvature is what lets a network mimic complicated relationships that a simple straight line formula cannot capture.

In theory, neural networks are universal approximators: for any pattern of inputs and outputs, there is a network arrangement that can reproduce it. In practice, success depends on the choice of layer and node counts, the quality and amount of data, and techniques that keep the network from merely memorizing its training examples. Final judgment always uses test data that was not part of training.

Limits and risks

The best known weakness is the black box character. IBM emphasizes that there is often no easy to understand explanation for why a network gives a particular answer, because the reason is spread across millions of weights. For high impact decisions, such as diagnoses and credit, that lack of explanation is a serious problem.

Deep learning is also hungry for data and computing power. Training large models requires very large amounts of labeled data, expensive hardware, and a great deal of electricity. It also inherits bias from its training data, and it can answer with great confidence while being wrong, especially on things that rarely appear in the training data. For these reasons, deep learning results still need human oversight in important uses.