---
title: What Is Unsupervised Learning? | Large Programs
description: Unsupervised learning finds patterns in data that has no labels. How it differs from supervised learning, and why it matters for large language models.
canonical: https://www.largeprograms.com/what-is-unsupervised-learning/
---

[Home](/) / [How LLMs Work](/category/how-llms-work/)

How LLMs Work

# What Is Unsupervised Learning?

Unsupervised learning finds patterns in data that has no labels. How it differs from supervised learning, and why it matters for large language models.

27 November 2026 · 2 min read

In [supervised learning](/what-is-supervised-learning/) the computer is given examples with answers. In **unsupervised learning** there are no answers. The source says the algorithms learn patterns **exclusively from unlabeled data**.

![Labelled cat and dog dots versus unlabelled dots grouped by the computer.](/img/sup-vs-unsup.svg)

## Sorting without labels

Imagine a pile of mixed buttons and nobody tells you the groups. You might sort them by colour or size anyway. A clustering algorithm does something like this with data. The source names clustering (such as k-means), dimensionality reduction (such as principal component analysis), Boltzmann machines and autoencoders as examples of methods designed for unsupervised learning.

## How NIST defines it

NIST's glossary, quoting its report AI 100-2e2025, defines unsupervised learning as a type of machine learning in which a model learns based on patterns in unlabeled data, such as learning a function to cluster or group data points.

## Why it is cheaper

The source notes that the data for unsupervised learning is typically collected cheaply "in the wild", for example a huge amount of text gathered from the web, with only minor filtering. For supervised learning the dataset, such as ImageNet, is usually built by hand, which is much more expensive. Read [ImageNet](/imagenet-the-photo-library-that-taught-ai-to-see/).

## Where language models come in

The source says that after the rise of deep learning, most large-scale unsupervised learning has been done by training general-purpose neural networks with gradient descent. An example it gives is generative pretraining: a model is trained to generate a text dataset, and then fine-tuned for other jobs such as text classification. Read [what is fine-tuning](/what-is-fine-tuning/) and [how do LLMs learn](/how-do-llms-learn/).

## In between

Between the two ends there are semi-supervised learning, where a small part of the data has labels, and self-supervised learning. The source says some researchers see self-supervised learning as a form of unsupervised learning.

## Sources

- [https://en.wikipedia.org/wiki/Unsupervised_learning](https://en.wikipedia.org/wiki/Unsupervised_learning)
- [https://csrc.nist.gov/glossary/term/unsupervised_learning](https://csrc.nist.gov/glossary/term/unsupervised_learning)

[Read this page as Markdown (.md)](/what-is-unsupervised-learning.md)

## Keep reading

[![](/img/hero/art-ai-art-and-music-basics.svg)](/ai-art-and-music-basics/)

How LLMs Work

### [How AI Makes Music: A Beginner's Look](/ai-art-and-music-basics/)

Models can generate melodies and songs by learning patterns in sound. What that means for musicians.

[![](/img/hero/art-backpropagation-how-neural-networks-learn-from-mistakes.svg)](/backpropagation-how-neural-networks-learn-from-mistakes/)

How LLMs Work

### [Backpropagation: How a Network Learns From Its Mistakes](/backpropagation-how-neural-networks-learn-from-mistakes/)

Backpropagation is the method that works out how to adjust each weight in a neural network after it makes an error. A simple explanation with a team analogy.

[![](/img/hero/art-chain-of-thought-prompting-showing-your-working.svg)](/chain-of-thought-prompting-showing-your-working/)

How LLMs Work

### [Chain-of-Thought Prompting: Showing the Steps](/chain-of-thought-prompting-showing-your-working/)

Asking a language model to show intermediate steps can improve its answers to hard problems. What the research found and how it is like showing your working in maths.
