Concept
Generative AI and Large Language Models Explained
What generative AI is, how large language models work at a high level, what they are good at, and where they fail.
CraftVoy · Learning programs led by Vijay Gurunathan, Founder & CEO of Researchsyn · Published
What generative AI means
Generative AI refers to models that produce new content such as text, code, images or audio from an instruction. Large language models, or LLMs, are the generative models for text and code.
How an LLM works, at a high level
An LLM is trained on large amounts of text to predict the next token, a small piece of a word, given the tokens before it. Repeating that prediction one token at a time produces sentences, code and structured output.
The model does not look facts up. It generates what is statistically likely given its training and the prompt, which is why it can sound confident and still be wrong.
- Prompt
- Tokenize
- Model predicts next token
- Repeat until done
- Response
What they do well
Summarizing, drafting, translating, extracting structured fields from text, answering questions over supplied documents and assisting with code.
Known limitations
Techniques such as retrieval-augmented generation, careful prompting and evaluation exist to manage these limits.
- Hallucination: plausible but incorrect statements.
- Knowledge cutoff: no awareness of events after training unless you supply the information.
- Context limits: only a bounded amount of text can be processed at once.
- Non-determinism: the same prompt can yield different answers.