what are large language models actually doing? i read the 2025...

instead of teaching a model to solve one task with labeled data (like classifying tweets), we train it on massive unlabeled text and let it "figure out" language patterns by itself.
this is called self-supervised learning.
→ unsupervised: models learn patterns without any labels
→ supervised: models learn from labeled tasks
→ self-supervised: models generate their own labels from unlabeled data (e.g., predicting masked words)
LLMs use the third one. it's the most powerful.
→ encoder-only (BERT): reads and understands text
→ decoder-only (GPT): generates the next word
→ encoder-decoder (T5, BART): reads input, generates output
each has strengths. for example:
• GPT is great at generation
• BERT is great at classification
• T5 can do both via a "text-to-text" framework
looks at the full sentence at once, masks random tokens, and tries to reconstruct them.
this is masked language modeling, and it allows bidirectional context the model uses both left and right of the [MASK].
better for tasks like sentence classification.
original: "the early bird catches the worm"
masked: "the [MASK] bird catches the [MASK]"
the model learns to predict "early" and "worm" using all surrounding context.
it's like learning to read by guessing missing words in a book.
we can either:
→ fine-tune: train the model further on labeled task-specific data
→ prompt: write smart inputs to steer the model
prompting is the reason LLMs feel magical. let's talk about that next.
example:
"i love this movie. sentiment:"
the model will likely complete: “positive”.
add a few examples before the input, and the model learns the pattern.
this is in-context learning.
it's not magic. it's scale.
how?
→ supervised fine-tuning (SFT): teach the model on human-written responses
→ RLHF (reinforcement learning from human feedback): train a reward model to prefer good outputs
this is how ChatGPT was aligned.
newer methods like Direct Preference Optimization (DPO) avoid the instability of RL and are becoming more popular.
the goal is the same: steer models toward helpful, harmless, honest responses.
how do you actually run these massive models efficiently?
→ use smart decoding (top-k, nucleus sampling)
→ cache previous results
→ batch multiple requests
→ scale context with better memory and position interpolation
this is how you get fast, low-latency responses.
LLMs work because they:
1. learn from massive text via self-supervision
2. use Transformers to model token sequences
3. can be prompted/fine-tuned for any task
4. are aligned with human preferences
5. are optimized for fast inference
they're general-purpose text reasoning machines.
"Foundations of Large Language Models" by Tong Xiao and Jingbo Zhu (NiuTrans Research Lab)
arxiv: arxiv.org/abs/2501.09223…
highly recommend it if you're serious about understanding LLMs deeply.
→ Unlimited prompts: $15/month
→ Starter pack: $3.99/month
→ Pro bundle: $9.99/month
Grab it before it's gone ↓
godofprompt.ai/pricing
Follow me @alex_prompter for more.
Like/Repost the quote below if you can:
x.com/16573859545947…




