Concepts / Overview of Large Language Models

Overview of Large Language Models

The transformer architecture is a specific design from which Large Language Models are derived.

  • Programming

Asking Where LLMs Come From

When people talk about Large Language Models, they usually focus on what the models can do. They can answer questions, summarize text, or write code. A natural next question is where these models come from in terms of design. This article begins that story with one fact that the course establishes early: Large Language Models are derived from a specific design called the transformer architecture.

The aim of this article is not to describe how a transformer works inside. The available material does not describe its internal parts. The aim is to understand the relationship: which thing is the starting point, which thing is built from it, and what that relationship does and does not tell you.

Tracing the Direction of Derivation

What do you think happens?

In the statement that LLMs are derived from the transformer architecture, which one is the starting point?

  • The transformer architecture

  • Large Language Models

Reveal answer
Answer:

The transformer architecture is the starting point.

The direction of the relationship runs from the base architecture to the derived LLMs, not the reverse. The architecture is the more general design, and LLMs are what get derived from it.

Read the relationship from top to bottom. The transformer architecture sits at the base, and an arrow shows that LLMs are derived from it. The diagram names only the two things the source establishes. Because the direction is fixed, the arrow always points away from the architecture and toward the LLMs built on it.

Transformerarchitecturebase designLarge Language Modelsderived from the baseLLMs are derived from
Which system is the base design, and which system is derived from it? The base sits at the bottom, and the LLMs are derived from it.

The Transformer Architecture as a Base Design

Definition

The transformer architecture is a specific design from which Large Language Models are derived.

The key word in this definition is design. The transformer architecture is a design, not a single trained model. It is the general pattern that LLMs are built on top of. This makes the architecture the more general of the two things, and LLMs the more specific systems that come out of it.

Understanding the architecture is therefore one of the routes to understanding LLMs. If you know what the base design is, you have a starting point from which the derived systems make more sense. The course establishes this relationship at the level of derivation only, and that is the level this article keeps to.

Architecture Versus a Trained Model

A common confusion is to treat the architecture and a trained model as the same thing. The source says they are different. The architecture is the design. A Large Language Model is built on top of that design. The two are related by derivation, but they are not interchangeable.

Transformerarchitecturea designStarting pointthe general patternLarge LanguageModelbuilt on the designDerived systemthe more specific systemderives
How does the general transformer design differ from a Large Language Model built on it? One column names the design, the other names the derived system.

A Template Analogy for Derivation

A useful way to reason about a base design is to imagine it as a template that several products are built from. The template is not any one product. Each product starts from the same template and then takes its own shape. This analogy is an illustration of the relationship, not a description of how transformers are built internally.

Worked example

Reasoning About a Shared Template

A design called Template T is used as the starting point for two products, Product A and Product B. Product A is one finished item. Product B is another finished item. Which statements follow from the relationship alone?

  1. 1
    Identify the base

    Template T is the base design. It is the starting point, so it is the more general thing.

  2. 2
    Identify the derived items

    Product A and Product B are both built from Template T. They are the more specific items that come out of it.

  3. 3
    Check the direction

    The relationship runs from Template T to each product. It does not run from Product A to Template T.

  4. 4
    Check what is not established

    The relationship does not tell us that Product A and Product B are identical, or that Template T is the same thing as Product A. Those claims would go beyond the derivation relationship.

Result

Template T is the base design, Product A and Product B are both derived from it, and the arrow points from the template to each product. The relationship does not establish that the products are identical or that the template is one particular product.

Mistakes About Direction and Scope

  • Common mistake

    Reversing the direction of the relationship

    What it looks like

    Saying that the transformer architecture is derived from Large Language Models.

    Why it fails

    The source states that the direction runs from the base architecture to the derived LLMs, not the reverse.

    Do this instead

    Say that LLMs are derived from the transformer architecture.

  • Common mistake

    Treating the architecture as a trained model

    What it looks like

    Saying that the transformer architecture is a single LLM that you can use.

    Why it fails

    The architecture is a design. The source states that it is not a single trained model, and that LLMs are built on top of it.

    Do this instead

    Say that the architecture is the design, and that an LLM is a system built on that design.

  • Common mistake

    Assuming every LLM is built in exactly the same way

    What it looks like

    Concluding that all LLMs share the same internal construction because they share a base architecture.

    Why it fails

    The available material establishes only the derivation relationship. It does not establish how each LLM is built internally.

    Do this instead

    Keep the statement at the level it was made: LLMs are derived from the transformer architecture.

What the Source Does Not Establish

It is easy to fill a gap with guesses. The material supports the derivation relationship, and nothing more. It does not list the internal parts of the transformer architecture, and it does not describe how an LLM is trained or how one LLM differs from another. Any answer to those questions would need a different source.

Checking the Relationship

EASY

Without looking back, state the relationship between the transformer architecture and Large Language Models in one sentence. Then say which of the two is the base design and which is derived from it.

Hints
  • Look for the word derived in the definition.
  • The base design is the starting point, not the result.
  • Check that your sentence does not claim the architecture is a single trained model.
MEDIUM

A classmate says: Since LLMs come from the transformer architecture, every LLM must work in exactly the same internal way. Explain what the source does establish and what it does not.

Hints
  • Separate the derivation relationship from claims about internal construction.
  • The source gives no internal details of the architecture.

Key Takeaways

  • Large Language Models are derived from a specific design called the transformer architecture.
  • The direction of the relationship runs from the base architecture to the derived LLMs, not the reverse.
  • The transformer architecture is a design, not a single trained model, and LLMs are built on top of it.
  • The available material establishes only the derivation relationship and does not describe the architecture's internal parts.

Related concepts

More concepts starting with O