AI Dictionary of Terms

LLM (Large Language Model)

A type of artificial intelligence model designed to understand, generate, and manipulate human language, trained on massive amounts of text data using deep learning architectures (typically Transformers) to predict and generate coherent sequences of words.

The Simple Version

Imagine an autocomplete feature on your phone, but instead of just suggesting the next word in a text message, it has read almost every book, article, and website on the internet.

When you ask it a question or give it a task, it doesn’t “think” or “know” things the way a human does. Instead, it uses its vast memory of how words are typically put together to predict the most likely, coherent response. It’s like a super-powered, highly educated parrot that can write essays, code, and answer questions by recognizing patterns in language.

Detailed Explanation

Large Language Models (LLMs) are a specific class of foundation models focused primarily on natural language processing (NLP). They are characterized by their massive scale, both in terms of the number of parameters (often billions or trillions) and the volume of training data (trillions of tokens).

How They Work:

  1. Pre-training: The model is trained on a vast corpus of text using self-supervised learning, typically by predicting the next token in a sequence (causal language modeling) or filling in masked tokens.
  2. Architecture: Modern LLMs almost exclusively use the Transformer architecture, specifically the “decoder-only” variant, which excels at autoregressive text generation.
  3. Fine-tuning / Alignment: After pre-training, models are often fine-tuned on instruction-following datasets and aligned using techniques like RLHF (Reinforcement Learning from Human Feedback) to make them helpful, harmless, and honest.
  4. Inference: When given a prompt, the model processes the input tokens and generates output tokens one by one, conditioning each new token on all previously generated tokens.

Scale and Parameters:

Key Characteristics

Business Context

LLMs are the central engine of the current generative AI revolution, transforming how enterprises operate:

Enterprise Applications:

Strategic Considerations:

Real-World Analogy

A brilliant, well-read research assistant who has memorized millions of documents. If you ask them to write a summary of a topic, they can produce a highly coherent, well-structured draft in seconds by drawing on patterns they’ve seen before. However, if you ask them a highly specific, obscure fact they haven’t seen, they might confidently “hallucinate” a plausible-sounding but incorrect answer.

Code Example

# Interacting with an LLM via the OpenAI API
from openai import OpenAI

# Initialize the client (requires OPENAI_API_KEY in environment)
client = OpenAI()

# Define the prompt
prompt = "Explain the concept of an LLM to a 10-year-old in two sentences."

# Call the LLM
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "system", "content": "You are a helpful and concise assistant."},
        {"role": "user", "content": prompt}
    ],
    temperature=0.7,
    max_tokens=100
)

# Print the generated text
print(response.choices[0].message.content)

Common Misconceptions

Sources & Further Reading