Intro to Large Language Models

Building a shared mental model of what Large Language Models actually are, and what they are not.

Why This Module Matters

Before asking teachers to use AI for data analysis and sensemaking, it is important to slow down and build a shared mental model of what Large Language Models (LLMs) actually are - and what they are not.

This matters because how we understand these tools directly shapes:

Particulary since the use case in this course is to make sense of science data, we need to develop some understanding, to some extent, of how they produce their responses.

Without a clear mental model, it is easy to overestimate what LLMs can do or to misuse them in ways that undermine sensemaking rather than support it. Specifically, whatever the LLMs generate, are they grounded in the data we provide? Does the output help us better develop understanding of the phenomenon of interest?

Finally, and this is core to data sensemking, does the LLM help us create reliable ideas of reality from the observed data?

What Is a Large Language Model (LLM)?

Large Language Models (LLMs) are a type of Artificial Intelligence (AI) designed to work with human language. They are trained on massive collections of text and learn statistical patterns in language, enabling them to generate new text that sounds coherent and contextually appropriate.

In practical terms, LLMs can:

Common examples of LLMs include:

Most LLM models teachers encounter are general-purpose models. This means they are designed to perform reasonably well across many tasks, rather than being experts in a single discipline such as statistics or data science.

Fig 1. A simplified view of how a prompt guides a Large Language Model to generate a response by predicting likely next words rather than reasoning from data.

LLMs Are Pattern-Based

This is one of the most important ideas in this module.

LLMs do not understand data, concepts, or scientific phenomena in the way humans do. Instead, they generate responses by predicting what words are most likely to come next based on patterns learned during training.

When an LLM provides a convincing explanation of a graph or trend, it is not reasoning from first principles. It is drawing on patterns it has encountered in similar explanations across its training data.

This is why LLM outputs can:

Understanding this limitation is essential for using LLMs productively in science education.

Below is a visualization of how an LLM is checking through all possible words that should follow “work”. The word with similar/close “numeric value” will be assigned as the next word.

Fig 2. LLMs seeking patterns to match work with the next possible word 2.

How Do LLMs Learn?

Teachers do not need all the technical details—but they do need intuition. Understanding how these models are trained helps us interact with them more critically and productively.

Training at a High Level

LLMs are trained in three main stages.

Stage 1: Data Collection and Preprocessing

The model is first exposed to enormous amounts of text from sources such as:

This data is cleaned and filtered to remove low-quality or duplicate content. While this process is extensive, it is imperfect—meaning biases and gaps can remain.

Educational implication:
What the model “knows” depends entirely on what it has encountered in text form.

Stage 2: Pretraining (Learning Language Patterns)

During pretraining, the model learns general patterns in language by predicting missing or next words across billions (or trillions) of words.

For example, an earlier version of ChatGPT (GPT-3.5) was trained on approximately 45 TB of compressed text before filtering, and about 570 GB after filtering (Brown et al., 2020), representing hundreds of billions to trillions of words. Training on such broad and diverse text sources results in general-purpose models rather than deep expertise in any single discipline.

For instance, if given the prompt:

“When the temperature increases, the solubility of most solids in water…”

The model learns that phrases like “also increases” are statistically likely to follow.

This stage creates a model that can respond across many topics, but without disciplinary understanding.

Large Language Models generate responses by predicting the most probable next tokens based on patterns learned during training, not by reasoning from first principles.

Stage 3: Fine-Tuning (Specialization)

After pretraining, models can be fine-tuned using smaller, more focused datasets or human feedback.

Fine-tuning means adjusting a pretrained model so it performs better on specific types of tasks (e.g., education, coding, or scientific explanation). This process often relies on transfer learning—using general language knowledge as a foundation rather than learning from scratch.

Plain-language definition:
Transfer learning means starting with a broadly trained model and refining it for a specific purpose.

Educational implication:
Even “education-focused” AI tools still rely on general language patterns, not deep disciplinary understanding.

Prompting and Prompt Engineering

What Is a Prompt?

A prompt is the input we give an LLM—usually text—that describes:

Example prompt:

“Explain the trend shown in this graph to a 7th-grade student using evidence from the data.”

What Is Prompt Engineering?

Prompt engineering is the intentional design and refinement of prompts to:

In education, prompt engineering is less about “hacking” the model and more about pedagogical precision.

I think of prompt engineering as lesson design for an AI collaborator.

We will discuss Prompt Engineering more in Module 2.

Why LLMs Can Be Helpful for Science Data Sensemaking

Despite their limitations, LLMs can be powerful sensemaking supports when used carefully.

They are especially useful for:

What they cannot do reliably is:

Major Risks Teachers Need to Be Aware Of

To use LLMs responsibly, we need to be explicit about the risks.

Attributing Human-Like Reasoning

Fluent language can easily be mistaken for genuine understanding, hence attributing human-level reasoning to it. This may lead to overconfidence in explanations that are not grounded in the data.

Uncritical Trust in Outputs

Repeated “good enough” responses can create a false sense of reliability. Without verification, incorrect interpretations may go unnoticed.

Invisible Influence on Thinking

LLMs do not just answer questions—they frame problems. Their suggestions can subtly shape how data is interpreted or narrow the range of explanations considered.

Displacement of Collaborative Sensemaking

Over-reliance on AI can reduce opportunities for productive struggle, discussion, and collaborative reasoning, all of which are essential in science learning.

Erosion of Analytical Judgment

When teachers or students defer too often to AI-generated interpretations, their ability to independently evaluate evidence and detect errors may weaken over time.

Closing Reflection

The goal of this module is not to convince you that LLMs are good or bad. Rather, it is to help you see these tools clearly—as powerful language-based systems that can support science data sensemaking only when humans remain firmly in the loop.

This understanding sets the foundation for the next module, where we move from what LLMs are to how we design prompts that support meaningful data analysis in classrooms.

Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • On Conducting Interviews: A guide for UX and HAI Researchers
  • What AI Sycophancy Means for K-12 Students
  • Prompting Techniques for Science Data Analysis and Sensemaking
  • Prompt Engineering Framework for Data Sensemaking
  • Frame the Problem