Key takeaway
- ChatGPT is a Transformer language model fine-tuned with human feedback. Learn how it works, how it differs from GPT, where it fails and how agents differ.
ChatGPT is a conversational AI assistant from OpenAI, built by fine-tuning a large language model with human feedback so that it answers in dialogue. OpenAI announced it on 30 November 2022 as a free research preview, and describes it as fine-tuned from a model in the GPT-3.5 series. Under the surface it is a Transformer neural network that predicts the next token of text.
This guide is for business and technology leaders who want to understand how ChatGPT works, how it differs from the GPT models behind it, where it goes wrong, and how it relates to AI agents. It also explains why model names and sizes quoted in older articles should not be treated as current.
How does ChatGPT work?
Three building blocks sit behind it. The first is the Transformer. The paper Attention Is All You Need introduced it as "a new simple network architecture" based solely on attention mechanisms, "dispensing with recurrence and convolutions entirely". Attention lets the model weigh how much each token in the input matters to every other token. The second is large-scale pre-training: a model learns to predict the next token from a very large body of text, which is how it picks up grammar, facts and patterns of reasoning. The third is training with human feedback, which turns a text predictor into an assistant that follows instructions.
At run time the flow is simple. Your message is split into tokens, which can be words or parts of words. The model reads them through many attention layers, predicts the next token, appends it, and repeats until it reaches a stopping point. The tokens are then converted back to readable text.
How is ChatGPT trained with human feedback?
OpenAI's ChatGPT announcement says the model was trained using Reinforcement Learning from Human Feedback (RLHF).
| Stage | What happens | Source |
|---|---|---|
| Pre-training | A base language model learns from large amounts of text to predict the next token | GPT-3 paper |
| Supervised fine-tuning | Human trainers write conversations playing both the user and the AI assistant, and the model is fine-tuned on them | OpenAI ChatGPT announcement |
| Reward model | Trainers rank several alternative responses, and those rankings train a reward model | OpenAI ChatGPT announcement |
| Reinforcement learning | The reward model guides further fine-tuning with Proximal Policy Optimization | OpenAI ChatGPT announcement |
The research behind this is the paper Training language models to follow instructions with human feedback. It reports that in human evaluations, outputs from the 1.3 billion parameter InstructGPT were preferred over those from the 175 billion parameter GPT-3, despite having about 100 times fewer parameters, with improvements in truthfulness and fewer toxic outputs. Its authors also note that InstructGPT still makes simple mistakes.
What is the difference between ChatGPT, GPT and a Transformer?
| Term | What it is | Example from the sources |
|---|---|---|
| Transformer | A neural network architecture built on attention | Introduced in the 2017 paper Attention Is All You Need |
| GPT model | A language model that generates text one token at a time | GPT-3 is described as an autoregressive language model with 175 billion parameters |
| InstructGPT | A GPT model fine-tuned with human feedback to follow instructions | 1.3 billion parameter version preferred by evaluators over 175 billion parameter GPT-3 |
| ChatGPT | The conversational product and its fine-tuned model, a sibling to InstructGPT | Fine-tuned from a GPT-3.5 series model |
So the common mix-up has a clear answer: GPT is a family of models, and ChatGPT is an assistant built on top of one. The GPT-3 paper, Language Models are Few-Shot Learners, is the source for the 175 billion parameter figure.
Which ChatGPT models are current?
Older articles list particular GPT versions, parameter counts and who could use them. That information changes often and should not be relied on. In particular, the 1.3 billion parameter figure belongs to the InstructGPT result above, not to a GPT-3.5 model, and access terms for newer models have moved on. For the current model line-up, sizes and plans, check OpenAI's own model documentation. For your own applications, record which model version you use and test again when it changes: see prompt engineering techniques.
What are the limits of ChatGPT?
OpenAI's announcement is direct about this: "ChatGPT sometimes writes plausible-sounding but incorrect or nonsensical answers." It gives three reasons this is hard to fix: reinforcement learning has no reliable source of truth during training, training the model to be more cautious makes it refuse questions it could answer, and supervised training can mislead the model because the ideal answer depends on what the model knows rather than what the human demonstrator knows. For enterprises this means answers need checking against trusted data, especially for regulated or customer-facing use. The guidance in artificial intelligence adoption best practices applies here.
Where is ChatGPT used in business?
Typical uses include drafting content, answering customer questions, acting as a virtual assistant, and translation. See generative AI in the contact centre, the enterprise AI chatbot platform guide and enabling AI in the retail industry. For advertising teams, see generative AI solutions for advertising agencies, and for connecting ChatGPT to enterprise systems, ChatGPT custom plugin development services.
How do AI agents go beyond a chat assistant?
A chat assistant answers and waits. An AI agent uses a model like this to plan steps, call tools and act on systems, which raises the stakes on accuracy, access and auditability. ElixirClaw, the AI agents computing platform, is for building and running such agents, and the context an agent relies on needs the same checking that you would apply to any assistant's answer.
What should you do first?
- Choose one use case and define what a correct answer looks like.
- Decide which trusted data the assistant may use, and which it must not.
- Test with real questions, including ones it should refuse or hand to a person.
- Record the model version and review results when it changes.
- Add human review before any answer drives an action.
To map one decision your agents make from a model answer, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
Is ChatGPT the same as GPT?
No. GPT is a family of language models, and ChatGPT is an assistant built by fine-tuning one of them with human feedback so it can hold a conversation.
How was ChatGPT trained?
OpenAI says it used Reinforcement Learning from Human Feedback: supervised fine-tuning on trainer-written conversations, a reward model built from ranked responses, and further tuning with Proximal Policy Optimization.
What is a Transformer?
It is a neural network architecture based on attention mechanisms, introduced in the 2017 paper Attention Is All You Need, that does not use recurrence or convolutions.
Why does ChatGPT sometimes give wrong answers?
OpenAI states that it sometimes writes plausible-sounding but incorrect or nonsensical answers, so important outputs should be checked against trusted sources.
Which ChatGPT model should a business use?
Check OpenAI's current model documentation, test candidate models on your own questions, and record the version you deploy.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE