← All questions
Question 1 · Required for everyone · Due Friday, 20 November 2026, 11:59 pm IST

The Transformer, from scratch

Explain the transformer architecture from first principles, as if your audience has never heard of it. Draw every block yourself and show how the blocks connect: tokens, embeddings, positions, attention, the MLP, residual connections, normalisation, and how the next token is predicted. The more depth, the better.

New to this topic? That is completely fine. It is completely fine if you have never studied some of these topics before. We want to see how fast you can learn something new, grasp it, and teach it from first principles.

This page is a quick primer, not a script. Use it to get your bearings, then read the links below and anything else you find: other blogs, papers, videos, code. We are judging the story you build, your examples and metaphors, your first-principles thinking, and any experiments you run yourself.

A quick primer

Almost every modern language model, from GPT to Llama to DeepSeek, is built on one idea from 2017: the transformer. Here is the shape of it, so you can find your bearings. Your job is to teach it far better than this page does.

"The cat sat on the"Token embedding + position× N blocksMasked self-attentionadd & normMLP (feed-forward)add & normresidualresidualLinear → softmaxnext token: "mat" (p = 0.41)tokens talkto each othereach tokenthinks alone
A decoder-only transformer, the kind used in GPT-style models. Text becomes vectors, flows up through N identical blocks, and comes out as a probability for every possible next token.

The pieces to explain

The0.05cat0.62sat0.12on0.03the0.04mat0.14"it"softmax(q·k / √d) decides how much of each word's value flows in
Attention in one picture: when the model processes "it", it looks back at every earlier word and mixes in their information, weighted by relevance.
Attention(Q,K,V)=softmax ⁣(QK⊤dk)V\mathrm{Attention}(Q,K,V) = \mathrm{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right)V

Can you explain why we divide by dk\sqrt{d_k}? Why the mask? Why many heads instead of one? Those are the questions that separate a good lesson from a great one.

Read

Watch

Go beyond this list. These are starting points. The best submissions usually bring in something we did not link: an experiment, a paper, a story of their own.

Any doubts or questions?

Just email us. We read every message and are happy to help.

rajatdandekar@vizuara.com