Tired of ads? Enjoy an ad-free experience by signing up.
  • Insights
    This article was written by a TIA community member. Insights pieces undergo the same rigorous editorial process that newsroom-produced articles have.
Sau Sheong Chang · · 9 min read

Your guide to how ChatGPT actually works

The internet is awash with excitement and anxiety about ChatGPT, but I haven’t seen many explainers on how it actually works. There are technical papers out there, but they can be daunting for the layperson.

This article attempts to demystify the chatbot and some of the jargon surrounding it. First things first, let’s start with the basics.

Image created by Chang Sau Sheong using Midjourney

ChatGPT is a chatbot, a computer program that can simulate conversations with human users. Chatbots use natural language processing (NLP) to understand what the user types and then generate a relevant response.

ChatGPT uses Generative Pre-trained Transformer (GPT), a large language model created by OpenAI. Besides ChatGPT, there are other similar chatbots, including Bard by Google and Claude by Anthropic.

Large language models

Large language models (LLMs) are AI models that learn and generate human language. LLMs are a core part of NLP and include GPT by OpenAI and Language Model for Dialogue Applications (LaMDA) by Google.

These models learn from a large amount of text data and then use what they’ve learned to generate or understand new text. Basically, LLMs predict the next word in a sequence using the words that came before it.

For example, if you have this sequence of words:

The quick brown fox jumps over the lazy

The LLM will predict the next word:

The quick brown fox jumps over the lazy dog

The model does this using an AI technique called machine learning.

Machine learning

Machine learning is a family of AI algorithms that involves ingesting large amounts of data, which is then used to train an AI model to make decisions.

Let’s say you teach a child what a dog looks like by showing them pictures of different dogs. After seeing enough pictures, the child starts to understand the general characteristics of a dog: It has four legs and a tail; its size varies, but there’s a common facial structure; and so on. When a child finally sees it in real life, they can tell it’s a dog because of the patterns they’ve learned.

Neural network

Transformers

Tokens

How ChatGPT learns

Fine-tuning

Different types of models

ChatGPT training

Stay ahead in Asia’s tech landscape

You've reached your 2 free content limit for the month. Sign up for free to read the full story.

🏄 For casual readers / 👶 Free

Basic

US$0

Free forever

Get instant access to this article and more every month

0 premium content

Unlimited news briefs

5

5 articles

Ad-free reading experience

Just US$0 per day

⌛Sign up in 20s. No payment details needed.

📖 For learners / 👍 Starter

Lite

US$4.92/month

Billed annually at US$59/year

Get instant access to this article and more every month

4

4 premium content

Unlimited news briefs & articles

Ad-free reading experience

Just US$0.17 per day

Cancel anytime

Our subscriber community includes professionals from these companies:

Stay updated on the go with our mobile app.

Get latest insights with smoother, more personalized experience through TIA mobile app.

Community Writer

Sau Sheong Chang

I write, code.