Class 14 (English 197 – Winter 2025)

This is the main course website. There is also a course Canvas site for uploading assignments.

Class Business

For Thurday (May 27) — Class on Thursday will be over Zoom due to a scheduled internet outage in South Hall)

Word Embedding (continued)

Using Word Embedding (continued from last class)

Neural Networks & Large Language Models

Epigraphs to Frame the Discussion

Nicholas Thompson & Geoffrey Hinton (An AI Pioneer Explains the Evolution of Neural Networks,” 2019)

Nicholas Thompson: Explain what neural networks are. Explain the original insight.

Geoffrey Hinton: You have relatively simple processing elements that are very loosely models of neurons. They have connections coming in, each connection has a weight on it, and that weight can be changed through learning. And what a neuron does is take the activities on the connections times the weights, adds them all up, and then decides whether to send an output. If it gets a big enough sum, it sends an output. If the sum is negative, it doesn’t send anything. That’s about it. And all you have to do is just wire up a gazillion of those with a gazillion squared weights, and just figure out how to change the weights, and it’ll do anything. It’s just a question of how you change the weights.

NT: When did you come to understand that this was an approximate representation of how the brain works?

GH: Oh, it was always designed as that. It was designed to be like how the brain works.

Fleuron icon (small)

Emily M. Bender, et al., “On the Dangers of Stochastic Parrots: Can Language Models Be Too Big?” (2021)

Contrary to how it may seem when we observe its output, an LM is a system for haphazardly stitching together sequences of linguistic forms it has observed in its vast training data, according to probabilistic information about how they combine, but without any reference to meaning: a stochastic parrot. (¶ 6.1)

Fleuron icon (small)

Albert Einstein (responding in 1926 to quantum mechanics)

The theory produces a good deal but hardly brings us closer to the secret of the Old One. I am at all events convinced that He [God] does not play dice.

Grant Sanderson’s videos on neural networks and large language models on his 3Blue1Brown YouTube channel

Arrow down (red)

From Word Embedding to Sentence Embedding

Fleuron icon (small)

AI Large Language Models (LLMs)

Manicule Feed Forward

Visualization of neural network learning to recognize the handwritten number
Visualization of neural network learning to recognize the handwritten number “9” from the MNIST dataset (from Grant Sanderson’s video, “But What Is a Neural Network?”

Fleuron icon (small)

Manicule Application to word and sentence embeddings:

Visualization of word embeddings being learned in neural networks (from Grant Sanderson's video, “Transformers (How LLMs Work) Explained Visually” width=

Fleuron icon (small)

Manicule Backpropagation & Gradient Descent

Visualization of backpropagation through a neural network (from Grant Sanderson's video, “Backpropagation, Step-by-Step
Visualization of backpropagation through a neural network (from Grant Sanderson’s video, “Backpropagation, Step-by-Step”
Visualiation of gradient descent from Grant Sanderson's video, “Gradient Descent: How Neural Networks Learn”
Visualiation of gradient descent from Grant Sanderson’s video, “Gradient Descent: How Neural Networks Learn”

Fleuron icon (small)

Manicule Transformers (“Attention” after BERT)

Visualiation of a large language model predicting the next work after a sequence of text from Grant Sanderson's video, “Inside an LLM”
Visualiation of a large language model predicting the next work after a sequence of text from Grant Sanderson’s video, “Inside an LLM”
Visualiation of the attention block in a large language model (from Grant Sanderson's video, Visualizing Attention, a Transformer's Heart)
Visualiation of the “attention block” in a large language model from Grant Sanderson’s video, “Visualizing Attention, a Transformer’s Heart”
Visualiation of how transformers in a large language model pay attention to both near and far contexts of words (from Grant Sanderson's video, Visualizing Attention, a Transformer's Heart)
Visualiation of how transformers in a large language model pay “attention” to both near and far contexts of words (from Grant Sanderson’s video, “Visualizing Attention, a Transformer’s Heart”)
Visualiation of how an attention block in a large language model adjusts word embeddings (from Grant Sanderson's video, Visualizing Attention, a Transformer's Heart)
Visualiation of how an “attention block” in a large language model adjusts word embeddings, from Grant Sanderson’s video, “Visualizing Attention, a Transformer’s Heart”

Fleuron icon (small)

Manicule “Fine-tuning” Large Language Models

Text-to-Image Large Models (LLMs)

The word "face" in a word embedding space as shown in the Tensorflow Embedding Projector using the Word2Vec 10K database and a PCS projection (https://projector.tensorflow.org/).
The word “face” in a word embedding space as shown in the Tensorflow Embedding Projector using the Word2Vec 10K database and a PCS projection (https://projector.tensorflow.org/).

Visualization bh OkResearch6289 “showcasing how to interactively explore the outputs of a Stable Diffusion model via CLIP embeddings”
Visualization bh OkResearch6289 “showcasing how to interactively explore the outputs of a Stable Diffusion model via CLIP embeddings” (see Reddit post).

What Kind of Knowledge and Learning is This Compared to the Way Humans Know and Learn?

How Good is Such Knowledge (Beyond “Bot or Not?”)

Minh Hua and Rita Raley, “Playing With Unicorns: AI Dungeon and Citizen NLP” (2020)

If a complete mode of understanding is as-yet unachievable, then evaluation is the next best thing…. (link)

In this endeavor, the General Language Understanding Evaluation benchmark (GLUE), a widely-adopted collection of nine datasets designed to assess a language model’s skills on elementary language operations, remains the standard for the evaluation of GPT-2 and similar transfer learning models…. Especially striking, and central to our analysis, are two points: a model’s performance on GLUE is binary (it either succeeds in the task or it does not)…. But if the training corpus is not univocal — if there is no single voice or style, which is to say no single benchmark — because of its massive size, it is as yet unclear how best to score the model. (link)

Our research questions, then, are these: by what means, with what critical toolbox or with which metrics, can AID [AI Dungeon], as a paradigmatic computational artifact, be qualitatively assessed, and which communities of evaluators ought to be involved in the process? (link)


AID, as an experiment with GPT-2, provides a model for how humanists might more meaningfully and synergistically contribute to the project of qualitative assessment going forward…. (link)

Our presupposition … is that it is not by itself sufficient to bring to bear on the textual output of a machine learning system the apparatus of critical judgment as it has been honed over centuries in relation to language art as a putatively human practice. What is striking even now is the extent to which humanistic evaluation in the domain of language generation is situated as a Turing decision: bot or not.  (link)

  • Turing Test
Visualization of the Turing test (Wikipedia)
Visualization of the Turing test (Wikipedia)

Fleuron icon (small)

This is the main course website. There is also a course Canvas site for uploading assignments.
css.php