Close Menu
TechCentralTechCentral

    Subscribe to the newsletter

    Get the best South African technology news and analysis delivered to your e-mail inbox every morning.

    Facebook X (Twitter) YouTube LinkedIn
    WhatsApp Facebook X (Twitter) LinkedIn YouTube
    TechCentralTechCentral
    • News
      Meta's smart glasses are officially coming to South Africa - Mark Zuckerberg

      Meta’s smart glasses are officially coming to South Africa

      2 October 2026
      Eskom has a R1.20/kWh offer for bitcoin miners

      Eskom has a R1.20/kWh offer for bitcoin miners

      2 October 2026
      Usaasa consults on universal access as its abolition stalls

      Usaasa consults on universal access as its abolition stalls

      2 October 2026
      Frogfoot plots acquisitions as Octotel and MetroFibre weigh a merger - Shane Chorley

      Frogfoot plots acquisitions as Octotel and MetroFibre weigh a merger

      2 October 2026
      Home affairs pulls the plug on the green ID book - Leon Schreiber

      Home affairs pulls the plug on the green ID book

      1 October 2026
    • World
      BMW restructuring plan bets on AI and new models

      BMW restructuring plan bets on AI and new models

      1 October 2026
      OpenAI's rogue agent problem keeps getting bigger - Sam Altman

      OpenAI’s rogue agent problem keeps getting bigger

      28 September 2026
      The new battle over the desktop

      The new battle over the desktop

      23 September 2026
      AMD is now worth a trillion dollars - Lisa Su

      AMD is now worth a trillion dollars

      22 September 2026
      Anthropic weighs new model launch to blunt OpenAI's Astra surge - Anthropic CEO Dario Amodei and OpenAI CEO Sam Altman

      Anthropic weighs new model launch to blunt OpenAI’s Astra surge

      21 September 2026
    • In-depth

      10 days that changed the course of AI

      21 September 2026
      Meta to the AI industry: slow down without us - Mark Zuckerberg

      Meta to the AI industry: slow down without us

      16 September 2026
      Google DeepMind CEO Demis Hassabis. Image: John Sears

      The plan to stop AI from breaking the world

      16 July 2026
      The internet has a Strait of Hormuz problem

      The internet has a Strait of Hormuz problem

      15 July 2026
      AI boom sparks rally, frenzy and fear

      AI boom sparks rally, frenzy and fear

      11 June 2026
    • TCS
      Lexi Novitske, general partner at Norrsken22, on the TechCentral Show

      TCS | Norrsken22’s Lexi Novitske on how China is winning African tech

      1 October 2026
      TCS | Dominic White and Adam Ely on AI agents going rogue

      TCS | Dominic White and Adam Ely on AI agents going rogue

      29 September 2026
      TCS | Octotel's Trevor van Zyl on the fibre merger question

      TCS | Octotel’s Trevor van Zyl on the MetroFibre merger question

      16 September 2026
      Meet the CIO | Shoprite's Chris Shortt on what a supermarket becomes

      Meet the CIO | Shoprite’s Chris Shortt on what a supermarket becomes

      9 September 2026
      Rubicon's EV charging network is profitable - and growing fast - Watts & Wheels

      W&W | Rubicon’s EV charging network is profitable – and growing fast

      8 September 2026
    • Opinion
      South Africa's next energy crisis is in the accounts department - Craig Holmes

      South Africa’s next energy crisis is in the accounts department

      29 September 2026
      The steam engine lesson AI doomsayers keep missing - Sam Clarke

      The steam engine lesson AI doomsayers keep missing

      28 September 2026
      Regulating AI: apply the laws we have first - Dirk de Vos

      Regulating AI: apply the laws we have first

      21 September 2026
      What Revolut can and cannot take from South Africa's banks - Pambos Soteriades

      What Revolut can and cannot take from South Africa’s banks

      15 September 2026
      The end is nigh, and the shares go on sale in October - Duncan McLeod

      The end is nigh, and the shares go on sale in October

      14 September 2026
    • Company Hubs
      • 1Stream
      • Africa Data Centres
      • AfriGIS
      • Altron Digital Business
      • Altron Document Solutions
      • Altron Group
      • Arctic Wolf
      • Ascent Technology
      • AvertITD
      • BBD
      • Braintree
      • CallMiner
      • CambriLearn
      • CM.com
      • Contactable
      • CYBER1 Solutions
      • Digicloud Africa
      • Digimune
      • Domains.co.za
      • ESET
      • Euphoria Telecom
      • HOSTAFRICA
      • Incredible Business
      • iONLINE
      • IQbusiness
      • Iris Network Systems
      • Kaspersky
      • LSD Open
      • Mitel
      • NEC XON
      • Netstar
      • Network Platforms
      • Next DLP
      • Ovations
      • Paracon
      • Paratus
      • Publishared
      • Q-KON
      • SevenC
      • SkyWire
      • Solid8 Technologies
      • Telit Cinterion
      • Telviva
      • Tenable
      • Vertiv
      • Videri Digital
      • Vodacom Business
      • Vox
      • Wipro
      • Workday
      • XLink
    • Sections
      • AI and machine learning
      • Banking
      • Broadcasting and Media
      • Cloud services
      • Contact centres and CX
      • Cryptocurrencies
      • Education and skills
      • Electronics and hardware
      • Energy and sustainability
      • Enterprise software
      • Financial services
      • HealthTech
      • Information security
      • Internet and connectivity
      • Internet of Things
      • Investment
      • IT services
      • Lifestyle
      • Policy and regulation
      • Public sector
      • Retail and e-commerce
      • Satellite communications
      • Science
      • SMEs and start-ups
      • Social media
      • Talent and leadership
      • Telecoms
      • Watts & Wheels
    • Events
    • Advertise
    TechCentralTechCentral
    Home » Sections » AI and machine learning » How the AI behind ChatGPT actually works

    How the AI behind ChatGPT actually works

    The language models powering modern AI tools have a much longer history than most people realise.
    By The Conversation16 December 2024
    Twitter LinkedIn Facebook WhatsApp Email Telegram Copy Link
    Get breaking news on WhatsApp

    How the AI behind the likes of ChatGPT actually worksThe arrival of AI systems called large language models (LLMs), like OpenAI’s ChatGPT chatbot, has been heralded as the start of a new technological era. And they may indeed have significant impacts on how we live and work in future.

    But they haven’t appeared from nowhere and have a much longer history than most people realise. In fact, most of us have already been using the approaches they are based on for years in our existing technology.

    LLMs are a particular type of language model, which is a mathematical representation of language based on probabilities. If you’ve ever used predictive text on a mobile phone or asked a smart speaker a question, then you have almost certainly already used a language model. But what do they actually do and what does it take to make one?

    Language models are designed to estimate how likely it would be to see a particular sequence of words

    Language models are designed to estimate how likely it would be to see a particular sequence of words. This is where probabilities come in. For example, a good language model for English would assign a high probability to a well=formed sentence like “the old black cat slept soundly” and a low probability to a random sequence of words such as “library a or the quantum some”.

    Most language models can also reverse this process to generate plausible-looking text. The predictive text in your smartphone uses language models to anticipate how you might want to complete text as you are typing.

    The earliest method for creating language models was described in 1951 by Claude Shannon, a researcher working for IBM. His approach was based on sequences of words known as n-grams – say, “old black” or “cat slept soundly”. The probability of n-grams occurring within text was estimated by looking for examples in existing documents. These mathematical probabilities were then combined to calculate the overall probability of longer sequences of words, such as complete sentences.

    Neural networks

    Estimating probabilities for n-grams becomes much more difficult as the n-gram gets longer, so it is much harder to estimate accurate probabilities for 4-grams (sequences of four words) than for bi-grams (sequences of two words). Consequently, early language models of this type were often based on short n-grams.

    However, this meant that they often struggled to represent the connection between words that occurred far apart. This could result in the start and end of a sentence not matching up when the language model was used to generate a sentence.

    Read: iOS 18.2 update is rolling out, adding ChatGPT to iPhones

    To avoid this problem, researchers created language models based on neural networks – AI systems that are modelled on the way the human brain works. These language models are able to represent connections between words that may not be close together. Neural networks rely on large numbers of numerical values (known as parameters) to help understand these connections between words. These parameters must be set correctly for the model to work well.

    The neural network learns the appropriate values for these parameters by looking at large numbers of example documents, in a similar way that n-gram probabilities are learned by n-gram language models. During this “training” process, the neural network looks through the training documents and learns to predict the next word based on the ones that have come before.

    These models work well but have some disadvantages. Although in theory, the neural network is able to represent connections between words that occur far apart, in practice more importance is placed on those that are closer.

    More importantly, words in the training documents have to be processed in sequence to learn appropriate values for the network’s parameters. This limits how quickly the network can be trained.

    The dawn of transformers

    A new type of neural network, called a transformer, was introduced in 2017 and avoided these problems by processing all the words in the input at the same time. This allowed them to be trained in parallel, meaning that the calculations required can be spread across multiple computers to be carried out at the same time.

    A side effect of this change is that it allowed transformers to be trained on vastly more documents than was possible for previous approaches, producing larger language models.

    Transformers also learn from examples of text but can be trained to solve a wider range of problems than only predicting the next word. One is a kind of “fill in the blanks” problem where some words in the training text have been removed. The goal here is to guess which words are missing.

    The use of transformers has allowed the development of modern large language models

    Another problem is where the transformer is given a pair of sentences and asked to decide whether the second should follow the first. Training on problems like these has made transformers more flexible and powerful than previous language models.

    The use of transformers has allowed the development of modern large language models. They are in part referred to as large because they are trained using vastly more text examples than previous models.

    Some of these AI models are trained on over a trillion words. It would take an adult reading at average speed more than 7 600 years to read that much. These models are also based on very large neural networks, some with more than 100 billion parameters.

    In the last few years, an extra component has been added to large language models that allows users to interact with them using prompts. These prompts can be questions or instructions.

    Reinforcement learning

    This has enabled the development of generative AI systems such as ChatGPT, Google’s Gemini and Meta’s Llama. Models learn to respond to the prompts using a process called reinforcement learning, which is similar to the way computers are taught to play games like chess.

    Humans provide the language model with prompts, and the humans’ feedback on the replies produced by the AI model is used by the model’s learning algorithm to guide further output. Generating all these questions and rating the replies requires a lot of human input, which can be expensive to obtain.

    One way of reducing this cost is to create examples using a language model in order to simulate human-AI interaction. This AI-generated feedback is then used to train the system.

    Creating a large language model is still an expensive undertaking, though. The cost of training some recent models has been estimated to run into hundreds of millions of dollars. There is also an environmental cost, with the carbon dioxide emissions associated with creating LLMs estimated to be equivalent to multiple transatlantic flights.

    These are things that we will need to find solutions to amid an AI revolution that, for now, shows no sign of slowing down.The Conversation

    • The author, Mark Stevenson, is senior lecturer, University of Sheffield
    • This article is republished from The Conversation under a Creative Commons licence. Read the original article

    Get breaking news from TechCentral on WhatsApp. Sign up here

    Don’t miss:

    Google rolls out faster Gemini AI model to power agents

    Add TechCentral as a preferred source on GoogleFollow TechCentral on Google NewsGet breaking news on WhatsApp


    ChatGPT OpenAI
    WhatsApp YouTube
    Share. Facebook Twitter LinkedIn WhatsApp Telegram Email Copy Link
    Previous ArticleThe US lost its lead in semiconductors. It may never regain it
    Next Article Broadcom joins the trillion-dollar club

    Related Posts

    Google scraps Gemini 3.5 Pro and turns to Gemini 4

    After falling behind in AI race, Google turns to Gemini 4

    1 October 2026
    OpenAI launches always-on dots agents to take on Meta

    OpenAI launches always-on dots agents to take on Meta

    30 September 2026
    TCS | Dominic White and Adam Ely on AI agents going rogue

    TCS | Dominic White and Adam Ely on AI agents going rogue

    29 September 2026
    Company News
    Huawei sets out its vision for intelligent government at GovTech 2026

    Huawei sets out its vision for intelligent government at GovTech 2026

    2 October 2026
    A simple guide to modern laptop processors for small businesses - Incredible

    A simple guide to modern laptop processors for small businesses

    2 October 2026
    Cloud and AI won't deliver value on their own, executives warn

    Cloud and AI won’t deliver value on their own, executives warn

    1 October 2026
    Opinion
    South Africa's next energy crisis is in the accounts department - Craig Holmes

    South Africa’s next energy crisis is in the accounts department

    29 September 2026
    The steam engine lesson AI doomsayers keep missing - Sam Clarke

    The steam engine lesson AI doomsayers keep missing

    28 September 2026
    Regulating AI: apply the laws we have first - Dirk de Vos

    Regulating AI: apply the laws we have first

    21 September 2026

    Subscribe to Updates

    Get the best South African technology news and analysis delivered to your e-mail inbox every morning.

    Latest Posts
    Meta's smart glasses are officially coming to South Africa - Mark Zuckerberg

    Meta’s smart glasses are officially coming to South Africa

    2 October 2026
    Eskom has a R1.20/kWh offer for bitcoin miners

    Eskom has a R1.20/kWh offer for bitcoin miners

    2 October 2026
    Usaasa consults on universal access as its abolition stalls

    Usaasa consults on universal access as its abolition stalls

    2 October 2026
    Frogfoot plots acquisitions as Octotel and MetroFibre weigh a merger - Shane Chorley

    Frogfoot plots acquisitions as Octotel and MetroFibre weigh a merger

    2 October 2026
    © 2009 - 2026 NewsCentral Media
    Built and maintained by Chronon
    • Cookie policy (ZA)
    • TechCentral – privacy and Popia

    Type above and press Enter to search. Press Esc to cancel.

    Manage consent

    TechCentral uses cookies to enhance its offerings. Consenting to these technologies allows us to serve you better. Not consenting or withdrawing consent may adversely affect certain features and functions of the website.

    Functional Always active
    The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
    Preferences
    The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
    Statistics
    The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
    Marketing
    The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
    • Manage options
    • Manage services
    • Manage {vendor_count} vendors
    • Read more about these purposes
    View preferences
    • {title}
    • {title}
    • {title}
    🇿🇦 Sign up to the TechCentral newsletter