Start studying
Free while in beta

Study any tech concept in five lines.

Five Lines is a free learning site that explains technical concepts in five lines of simple English. A track is one whole field worked out in order: broken into modules, every concept in reading order, a graded test at the end of each module. The AI and machine learning track is written and free to read now. Web Development, Cybersecurity, Data Science and Systems are next.

5Tracks
356Concepts
21Graded tests
430Questions
One concept, as it ships
Module 5  ·  Card 1 / 19beginner

Attention

Attention lets a model decide which parts of the input matter for each output.

Instead of one fixed summary it computes a weighted blend of all positions.

Positions that are relevant get a high weight, the rest get a low one.

This removed the fixed-vector bottleneck of old seq2seq models.

It is the single idea the entire transformer architecture is built around.

Fifteen more lines underneath Read the page →
Why this exists

The order is the product.

Most material fails in one of two directions: it drowns you before you know what a loss function is, or it hand-waves so hard you finish unable to say what a transformer changed. A track is the third option: the whole field, in the order the ideas actually depend on each other.

01

A whole field, not a playlist

A track is every concept in its field, ordered so each one stands on the last. AI / ML is 356 of them across 17 modules, from what a dataset is to reproducing a research paper. Name a term anywhere on the site and there is a card that teaches it. The build fails otherwise.

02

Nothing is overwhelming

Five lines per concept, read in under a minute. You are never handed a forty-page chapter and asked to work out which paragraph mattered.

03

You find out where you stand

Every module ends in a graded test and every answer is explained, right or wrong. The report names the modules you actually know rather than the ones you have read. It is per track, so finishing one tells you nothing about the next.

The tracks

One field at a time, worked out in full.

A track is a whole technical field broken into modules, each module a list of concepts, each concept five lines. AI / ML is written and free to read now; the rest are in the same format and are not written yet.

01

AI / ML

From what a dataset is to reproducing research papers.

356 concepts · 17 modules
02

Web Development

The browser, the server, and everything that has to agree between them.

planned
03

Cybersecurity

How systems are attacked, and what actually stops it.

planned
04

Data Science

Getting a defensible answer out of messy data.

planned
05

Systems

What the machine is really doing underneath the language you write in.

planned
What a track looks like

AI / ML in full: 17 modules in the order they make sense.

This is one track, free and unlocked, end to end. Every module ends in a graded test; three cumulative checkpoints and a final sit across all of them. Every track that follows is built to this shape.

Foundations 2 modules
01

Machine Learning

55 concepts

How machines learn from data, the main algorithm families, and how to measure whether any of it worked.

02

Deep Learning

25 concepts

Neural networks from a single neuron up to the training tricks that make deep models actually converge.

Perception 2 modules
03

Computer Vision

22 concepts

Getting machines to read images: convolution, CNN architectures, detection, segmentation and vision transformers.

04

NLP

20 concepts

Turning language into numbers, and the recurrent architectures that handled sequences before transformers arrived.

Transformer Era 3 modules
05

Transformers

19 concepts

The attention mechanism piece by piece, and how the encoder, decoder and decoder-only stacks are assembled from it.

06

LLMs

22 concepts

What a large language model actually does at each step, and the sampling knobs that shape what comes out.

07

Prompt Engineering

17 concepts

Structuring what you send a model so the output is reliable, parseable and hard to hijack.

Knowledge & Retrieval 3 modules
08

Embeddings & Search

17 concepts

Representing meaning as vectors, and the index structures that find the nearest ones fast enough to matter.

09

RAG

19 concepts

Grounding a model in your own documents: the full pipeline from raw files through to a cited answer.

10

Fine-Tuning

15 concepts

Changing the weights rather than the prompt, and knowing when that is actually the right lever.

Systems & Safety 5 modules
11

AI Agents

17 concepts

Models that take actions in a loop: tools, planning, memory, and knowing when to hand control back to a person.

12

Generative AI

18 concepts

Models that create rather than classify: autoencoders, GANs, diffusion, and the multimodal systems built on them.

13

AI Evaluation

18 concepts

Deciding whether the thing you built actually works, especially when there is no single correct answer.

14

MLOps / LLMOps

22 concepts

Everything between a working notebook and a service other people depend on: shipping, tracking, watching and paying for it.

15

AI Security

16 concepts

How AI systems get attacked through their inputs, their data and their tools, and what actually stops it.

Frontier 2 modules
16

Advanced AI

23 concepts

Reinforcement learning through to RLHF, plus the compression and systems tricks that make frontier models runnable.

17

Research Level

11 concepts

Moving from consuming the literature to producing it: reading, reproducing, experimenting and publishing.

Three ways through it

Pick a depth, not a paywall.

Every card carries a level, and the picker in the app narrows both the deck and the tests to match. It is a filter you can change at any time. All three are free, and the advanced cards are not held back for anybody.

Beginner169of 356 cards

The high-level basics. Read only these, end to end, and you still come away with a correct mental model of the whole field.

Core311of 356 cards

Adds how things actually work and the trade-offs you meet in practice. This is the one most people want.

Complete356every card

Everything, including internals, optimisation, failure modes and the research-level material. Plus the cumulative checkpoint tests.

The honest bit

What this is, and what it is not.

What it is

It is free, and the account is optional.
All 356 concepts are readable signed out, five lines each and then fifteen, and no trial ends. Signing in is there for the paid tier that is coming. None of the 356 concepts will be behind it.
Your progress stays in your browser.
It is written to local storage on this device and never sent anywhere, signed in or not. Clearing site data clears it, and it does not follow you to your phone.
Concepts, not code.
This teaches you what things are and how they fit together. It will not teach you to write PyTorch, and it is not a substitute for building something.

What it is not, yet

One track exists today.
AI / ML. Web Development, Cybersecurity, Data Science, Systems are planned in the same format, and none of them are written yet. The track list says which is which.
Pro is not built.
A paid tier of deep dives and visual explainers is planned. Nothing on this page depends on it, and every one of the 356 concepts stays free to read.

Start at card one.

Five lines, then the next five. Read a handful and you will know within a few minutes whether this suits how you learn. Nothing asks you to sign in to find out.

↑↓ move↵ openesc close