Data defines the model's boundaries
Foundation-model quality begins with the corpus. English dominates web data, so models perform worse in underrepresented languages, while tokenisation can make an equivalent request more expensive. Translating into English is no complete remedy: meaning and cultural context may be lost, and scarce data weakens translation itself. The same limit applies to domains. Public topics come from the internet, but medical images, internal documents, and other restricted data require a specialised dataset, fine-tuning, or inference-time context.
Multimodality creates another choice: how to represent the problem. In one example, classifying a website from a screenshot was more accurate than analysing extracted text with the same model. Teams should compare text, image, and combined inputs rather than assume text is superior. Synthetic data can extend a scarce corpus but creates a closed-loop risk. If uncontrolled machine output returns to training, volume can grow faster than quality and later model generations may deteriorate.
From sequence-to-sequence to post-training
Recurrent sequence-to-sequence models processed input serially, compressed it into a hidden state, and generated output in order, losing detail and parallelism. A transformer processes tokens in parallel, while attention weights context through query, key, and value. Each block combines attention with a feed-forward MLP; depth, hidden-state size, vocabulary, and context length shape capability and cost. Competing architectures must overcome years of optimisation across transformer software and hardware.
Model scale must match training data and compute: adding parameters without enough tokens does not guarantee improvement, while size affects memory and inference cost. Pre-training chiefly teaches text continuation. Supervised fine-tuning turns that capability into instruction-following, and preference training shapes useful behaviour. Those examples are expensive and inherit annotators' expertise and culture. Comparing responses is usually easier than writing a perfect one, making ranking an important feedback mechanism.
Sampling controls variation, not truth
At generation time, the model converts logits over its vocabulary into a probability distribution. Temperature sharpens or flattens it: low values favour repeatability, high values favour diversity. Top-k keeps a fixed number of candidates, while top-p builds a dynamic set to a probability threshold, adapting to narrow and open questions. Generating several candidates and selecting the best helps only when model variability and evaluator reliability justify the expense.
Constrained decoding can enforce structure, while format choice affects reliability: in one production example, switching from JSON to YAML reduced failures from truncated responses. Neither technique nor low temperature eliminates hallucinations. A wrong assumption can snowball into persuasive false reasoning, while preference tuning may trade factual accuracy for appeal. Settings must follow error cost: creative products can welcome variation; medical, financial, and legal systems require constraints, verification, and accountable human oversight.
What to take away
- 01Language and domain coverage in training data shape answer quality, token cost, and the boundary of what an application can do reliably.
- 02Transformers combine parallel processing with attention, while their practical advantage is reinforced by an optimised hardware and software ecosystem.
- 03Post-training turns a text completer into a useful assistant but also imports annotators' preferences, constraints, and errors.
- 04Temperature and sampling strategies control diversity and generation cost; factual reliability still requires context, evaluation, and verification.
Sources
- Local snapshot of Russian YouTube automatic captions
- Episode recording on YouTube