Excellent Twitter thread by @goodside 🧵:

The wisdom that “LLMs just predict text” is true, but misleading in its incompleteness.

“As an AI language model trained by OpenAI…” is an astoundingly poor prediction of what a typical human would write.

Let’s resolve this contradiction — a thread: For widely used LLM products like ChatGPT, Bard, or Claude, the “text” the model aims to predict is itself written by other LLMs.

Those LLMs, in turn, do not aim to predict human text in general, but specifically text written by humans pretending they are LLMs. There is, at the start of this, a base LLM that works as popularly understood — a model that “just predicts text” scraped from the web.

This is tuned first to behave like a human role-playing an LLM, then again to imitate the “best” of that model’s output. Models that imitate humans pretending to be (more ideal) LLMs are known as “instruct models” — because, unlike base LLMs, they follow instructions. They’re also known as “SFT models” after the process that re-trains them, Supervised Fine-Tuning.

This describes GPT-3 in 2021.

SFT/instruct models work, but not well. To improve them, their output is graded by humans, so that their best responses can be used for further fine-tuning.

This is “modified SFT,” used in the GPT-3 version you may remember from 2022 (text-davinci-002). Eventually, enough examples of human grading are available that a new model, called a “preference model,” can be trained to grade responses automatically.

This is RLHF — Reinforcement Learning on Human Feedback. This process produced GPT-3.5 and ChatGPT. Some products, like Claude, go beyond RLHF and apply a further step where model output is corrected and rewritten using feedback from yet another model. The base model is tuned on these responses to yield the final LLM.

This is RLAIF — Reinforcement Learning with AI Feedback. OpenAI’s best known model, GPT-4, is likely trained using some other extension of RLHF, but nothing about this process is publicly known. There are likely many improvements to the base model as well, but we can only speculate what they are. So, do LLMs “just predict text”?

Yes, but perhaps without with the “just” — the text they predict is abstract, and only indirectly written by humans.

Humans sit at the base of a pyramid with several layers of AI above, and humans pretending to be AI somewhere in the middle. Added note:

My explanation of RLHF/RLAIF above is oversimplified. RL-tuned models are not literally tuned to predict highly-rated text as in modified SFT — rather, weights are updated via Proximal Policy Optimization (PPO) to maximize the reward given by the preference model. (Also, that last point does somewhat undermine the thesis of this thread, in that RL-tuned LLMs do not literally predict any text, human-written or otherwise. Pedantically, “LLMs just predict text” was true before RLHF, but is now a simplification.)

No comments yet!

Actually Useful AI

!auai@programming.dev

Create post

Welcome! 🤖

Our community focuses on programming-oriented, hype-free discussion of Artificial Intelligence (AI) topics. We aim to curate content that truly contributes to the understanding and practical application of AI, making it, as the name suggests, “actually useful” for developers and enthusiasts alike.

Be an active member! 🔔

We highly value participation in our community. Whether it’s asking questions, sharing insights, or sparking new discussions, your engagement helps us all grow.

What can I post? 📝

In general, anything related to AI is acceptable. However, we encourage you to strive for high-quality content.

What is not allowed? 🚫

  • 🔊 Sensationalism: “How I made $1000 in 30 minutes using ChatGPT - the answer will surprise you!”
  • ♻️ Recycled Content: “Ultimate ChatGPT Prompting Guide” that is the 10,000th variation on “As a (role), explain (thing) in (style)”
  • 🚮 Blogspam: Anything the mods consider crypto/AI bro success porn sigma grindset blogspam

General Rules 📜

Members are expected to engage in on-topic discussions, and exhibit mature, respectful behavior. Those who fail to uphold these standards may find their posts or comments removed, with repeat offenders potentially facing a permanent ban.

While we appreciate focus, a little humor and off-topic banter, when tasteful and relevant, can also add flavor to our discussions.

Related Communities 🌐

General

Chat

Image

Open Source

Please message @sisyphean@programming.dev if you would like us to add a community to this list.

Icon base by Lord Berandas under CC BY 3.0 with modifications to add a gradient

Community stats

  • 7

    Monthly active users

  • 50

    Posts

  • 15

    Comments