PromptItIn logoPromptItIn
AI glossary · Models

Neural Network

A computational model loosely inspired by the brain, made of interconnected layers of weighted nodes.

PromptItIn team

A bookshelf with one card pulled out

What it means

A neural network is a machine learning model composed of layers of interconnected nodes (neurons), each performing a weighted sum of inputs followed by a nonlinear activation function. During training, the weights are adjusted via backpropagation and gradient descent to minimise a loss function on a labelled dataset.

Deep neural networks (DNNs) stack many layers, allowing them to learn hierarchical representations — edges → shapes → objects in vision; characters → words → syntax → semantics in language. Modern LLMs are transformer-based deep neural networks with billions of parameters.

Understanding neural network fundamentals is prerequisite knowledge for understanding why LLMs behave as they do.

Examples

  • A three-layer feedforward network learning to classify handwritten digits (MNIST) with 98% accuracy.
  • A transformer neural network learning to predict the next word in a sentence by adjusting 175 billion weights over trillions of training examples.

Transformer

The neural network architecture that underpins all modern large language models, based on self-attention.

Attention Mechanism

The core transformer operation that weighs the relevance of each token to every other token in a sequence.

Embedding

A dense numerical vector that represents a token, sentence, or document in a continuous semantic space.

Put this into practice

PromptItIn applies techniques like neural network for you: describe what you want and it builds the prompt.

Try PromptItIn freeAdd to Chrome, free

You might also like

Fine-Tuning AI Models Explained →How to Use Role in AI Prompts →Stable Diffusion →Poe →Write a Business Plan →Llama Prompt Generator →
← Browse the AI prompt glossary