VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How Artificial Intelligence AI Works | How AI Learns From Examples

Did you know? A computer does not have to be given a separate instruction for every cat photograph, unusual email or spoken accent. Many AI systems learn patterns from examples. The surprising part is that the computer is not simply keeping a scrapbook: training changes numerical parameters so the model becomes better at a task.

Quick answer: give a model examples, compare its predictions with a learning signal, adjust the parameters, repeat the process, then test it on new examples. In machine learning, learning means an optimisation procedure, not a human-like experience of studying.

Think about learning to identify fruit. After seeing several apples, oranges and bananas, a child begins to notice shape, colour and texture. AI learning is not identical to a child’s learning, but it raises a useful question: will the learner recognise an apple it has never seen before? That is what a good test is trying to discover.

The 30-second explanation

  • Training data: examples or experience used to adjust a model’s parameters.
  • Model: a mathematical system that maps inputs to predictions, labels, scores or other outputs.
  • Loss or learning objective: a numerical signal of how well the model is meeting its training task.
  • Validation: held-out examples used while choosing designs and settings.
  • Testing: a separate final check of how well the selected model works on data it was not tuned to.

Different AI methods learn differently. Supervised learning uses labelled examples, such as photos marked “cat” or “dog.” Unsupervised learning looks for structure without those same task labels. Other approaches learn through self-supervised prediction objectives or feedback from interaction. There is no single recipe for every AI system.

Step 1: Decide what the model should learn

Before collecting data, state the actual job. Is the goal to classify pictures, estimate travel time, recognise speech or predict which lesson might help a student? The answer determines what an input looks like and what counts as a successful output.

Suppose our fictional project is to tell apart pictures of apples and oranges. Each training example consists of an image and the correct fruit label. The model can only learn from the information represented in the examples and the way the task is framed. If a project instead predicts tomorrow’s rainfall, it may need historical weather measurements and a clearly defined future target.

Step 2: Prepare examples that represent real life

One of the most important lessons in AI is that data quality is part of model quality. A fruit classifier trained only on perfectly lit studio photographs may perform poorly on a dim kitchen counter. Similarly, a speech recogniser trained on a narrow set of speakers can struggle with new accents or recording conditions.

Researchers and developers check for duplicates, faulty labels, missing values and examples collected under conditions unlike those expected after deployment. They should also consider permissions, consent and privacy. More examples are not automatically better if the added data are misleading or inappropriate.

Step 3: Let the model predict, measure error and adjust

Imagine a training image whose correct label is “orange.” The model gives its output, the learning process computes a loss that reflects the error, and an optimisation method changes some parameters to reduce expected future loss. With many neural networks, gradient-based optimisation drives these adjustments.

The process usually repeats over many batches of training examples. A model might improve rapidly at first and more slowly later. It is not enough to memorise the answer to each training image; the goal is to develop patterns useful for unfamiliar images.

Training success answers “How well did the model learn these examples?” Real usefulness asks “How well does it perform on the next unfamiliar case?”

Step 4: Keep a separate validation set

An easy mistake is to celebrate a training score as if it measured real-world ability. Instead, developers reserve examples that are not used to fit the model directly. They can compare different settings and model designs using validation data.

For a simple illustration—not a prescription for every project—imagine 1,000 independent labelled examples. One plan could reserve 700 for training, 150 for validation and 150 for testing. The exact proportions depend on the dataset and task. If examples come from the same person, household, device or future time period, a naive random split can create misleading overlap.

The important idea is separation, not a magic percentage. Data observed after the moment of prediction should never sneak into the model’s earlier inputs. Related examples that create an unfair shortcut may also need to be kept together.

Step 5: Use the test set as a genuine final check

Once the development choices are fixed, the test set provides an independent estimate of performance on held-out data. If developers repeatedly tune the model after reading its test score, the test set gradually turns into another development set, weakening the final check.

A test result also needs context. Ninety per cent accuracy on a fictional balanced fruit dataset might be useful for a classroom demonstration, but the same score could be unacceptable in a task where mistakes create serious harm. Always ask what the model predicts, which examples were tested and what errors matter.

Why an AI model can become too good at its homework

There is a word for one particularly common problem: overfitting. A model can learn peculiar details of training examples without learning a reliable general pattern. It may perform extremely well on those examples and disappoint when it sees new ones.

Imagine every apple photograph was taken on a blue tablecloth and every orange photograph on a wooden table. The model might learn to recognise backgrounds rather than fruit. When you put an orange on a blue tablecloth, the shortcut breaks. A simple change of setting reveals whether the model learned the intended concept.

Developers can investigate overfitting through better dataset design, simpler models when appropriate, regularisation, additional representative examples and careful evaluation. No technique replaces checking performance under the conditions that matter.

Is all AI trained with correct answers?

No. Supervised learning is especially easy to explain because the answers are visible in the dataset. In self-supervised learning, a system creates a learning signal from the structure of its inputs—for instance by predicting missing or next pieces of text. In reinforcement learning, an agent can learn from rewards linked to actions and consequences. These techniques can be combined.

One more distinction matters: training is not the same as inference. Training is the resource-intensive process that adjusts model parameters. Inference is the use of a trained model to make a prediction or generate an answer for a new input. A regular question to a chatbot usually invokes inference, not a complete retraining run.

Try it: a paper experiment that exposes a hidden shortcut

Draw eight simple fruit pictures on paper. Make four apples on blue backgrounds and four oranges on yellow backgrounds. Ask a friend to guess the fruit from a small set of examples, then change the backgrounds of two new drawings. Were their guesses guided by the fruit shapes or by the background colour?

This is a metaphor for a real model evaluation, not a test of a person’s intelligence. The lesson is that prediction can appear to work for the wrong reason. A good AI evaluation deliberately changes irrelevant conditions and asks whether the outcome still holds.

Frequently asked questions

Does AI learn the way a student learns?

Not literally. Machine-learning algorithms adjust numerical representations using training signals; people also use understanding, experience, emotions, social learning and personal goals. The classroom analogy is useful only up to a point.

Does more data always make a better model?

No. Additional examples may help when they add relevant variety and reliable information. Poor labels, duplicates, privacy problems or unrepresentative patterns can make performance worse or more misleading.

Why do models sometimes fail after doing well in tests?

Real conditions can change. A test may not adequately represent new users, times, devices or environments. Deployment requires continued monitoring and careful re-evaluation.

Can AI remember everything it saw in training?

Models can sometimes memorise particular examples, but their ordinary operation depends on learned parameters rather than an exact document-by-document lookup. Memorisation risks are one reason data governance and privacy safeguards matter.

Your one-minute takeaway

  • Choose a task and collect relevant, responsibly obtained examples.
  • Use training to adjust parameters, validation to guide design and testing to check the result independently.
  • Ask whether performance transfers to unfamiliar real-world cases, not merely whether a training score looks impressive.

Further reading and connected chapters

Discover more from eduKate Singapore

Subscribe now to keep reading and get access to the full archive.

Continue reading