SHRDLU and the blocks world

Why:You’ll learn what SHRDLU could do, a program that around 1970 understood ordinary sentences about blocks, and why that success never got past the edge of its table. Afterwards you’ll be able to spot the “blocks world” in today’s AI demos and ask what lies past its edge.

Part 1, lesson 4 · 20 minutes

SHRDLU was a program by Terry Winograd (MIT, 1968–1970) that understood English sentences about a world of blocks on a screen and carried out orders in it.

Talking to a table

In the late 1960s, at the MIT Artificial Intelligence Laboratory, a graduate student named Terry Winograd wrote a program you could talk to. The screen showed a table with blocks and pyramids of different colors, a box and a robot hand. A person typed sentences in ordinary English, and the program answered and moved things around.

The program was called SHRDLU. The name comes from “ETAOIN SHRDLU,” the order of letters on the keyboards of old typesetting machines, which were arranged by frequency. Winograd wrote it from about 1968 to 1970. He submitted his dissertation on it in 1970; it came out as a lab report in 1971 and as a book in 1972.

It was written in Lisp and in Micro-Planner, a language for reasoning about actions that Winograd built with colleagues. A PDP-6, the lab’s computer, drew the picture.

Check yourself: where does the program’s odd name come from?

From “ETAOIN SHRDLU”: the letters in order of frequency on a typesetting machine’s keyboard.

What it could do

SHRDLU did things nobody expected of a machine then. You could tell it, “Pick up a big red block.” It found the block, and if something was on top, it moved that out of the way first. Asked “What is in the box?”, it looked at its model of the world and answered. If two objects fit a description, it asked which one you meant.

It remembered what it had done and why. Asked why it had picked something up, it could name the goal: for example, to clear a block it had been asked to move. You could teach it a new word: in the published conversation it is taught what a “steeple” is, and then builds one on request.

What mattered about SHRDLU wasn’t one clever trick but how it all connected: parsing a sentence, working out what it meant, and reasoning about the world worked together. It understood “it” by looking at which object had just been mentioned.

Try it yourself. This isn’t SHRDLU, just a simple model of the same principle: a few ready requests to a table of blocks.

A table of blocks
blueredgreenyellow

Pick a request.

Check yourself: how could SHRDLU explain why it had done something?

It remembered its plans and actions, so it could say which goal it had picked an object up for.

Why it worked

SHRDLU’s secret was the size of its world. There were a handful of objects, each with a color, a shape and a place. There were a handful of actions too: pick up, put down, put in the box. Physics came down to a couple of rules: nothing sits on a pyramid, and you can only pick up something with nothing on top. Every word could be tied to something in this small world, and Winograd wrote everything there was to know about it into the program himself.

A world like that is called a microworld. At the time it was a deliberate strategy: start with a small world, understand it completely, then expand. The next step seemed to be just more objects and more words.

Check yourself: what is a microworld?

A small world described completely by a program. Every object, property and possible action in it is known in advance.

The edge of the table

Expanding didn’t work. The ordinary world is nothing like a table of blocks: it holds endlessly many objects, words and circumstances, and knowing about each one drags in knowledge about others. To understand “she put the money in the bank,” you need to know more about money, banks and people than any hand-written program can hold.

As early as 1972, the British mathematician James Lighthill, in his report on the state of AI, called Winograd’s thesis exceptionally good, and in the same breath doubted that its methods would carry over from the “table-top world” to a wider one: the combinatorial explosion, he wrote, would oppose that violently.

The most valuable testimony came from the author himself. In a 1991 interview for the Charles Babbage Institute, Winograd said he had worked through the famous conversation very carefully, line by line. If you sat down and asked a question that wasn’t in it, there was only some probability the program would answer; a question close to one of the tested ones in form and content, he said, it would probably get. Researchers were expected to produce something you could demo, and, in his words, AI built a lot of “Potemkin villages”: things that look good in the demo, with not enough structure behind them to keep working beyond it. Winograd later moved away from the symbolic approach: in a 1986 book written with Fernando Flores, he argues against the very idea that understanding comes down to rules.

Check yourself: what did Winograd say about the famous conversation?

That he worked through it line by line, and the program answered other questions only with some probability.

The blocks world today

AI demos still often show their own table of blocks. An agent books a table at one restaurant, an assistant sorts out one prepared spreadsheet, a robot folds one T-shirt. That’s not a trick: what’s shown really works. The question is what happens past the edge.

Today’s models are built the other way round, though. SHRDLU knew its world completely and nothing beyond it. A language model knows a little about anything, and it has no sharp edge: it won’t say “I don’t know that word,” it will say something plausible. So finding the edge of the table is up to you.

When you’re shown an AI that “can already do it,” ask:

  1. Which world is shown? What data, which requests, and who chose them.
  2. What’s past the edge? Another restaurant, another spreadsheet, an awkward request.
  3. Who tested it without preparation? A demo by its makers and a check by an outsider are different things.

Do it now

  1. Think of the last AI demo that impressed you. Write down what its “table of blocks” was.
  2. Ask a chatbot to do a task it has already done well for you, but with an unusual condition. Note where it coped and where it started making things up.
  3. Press “Finish the lesson” so the cards go into Review.

Test

Question 1 of 5

What could SHRDLU do in its world?

Several answers

Cards

These cards go into your review once you finish the lesson.

  • What was SHRDLU?

    Answer

    A program by Terry Winograd (MIT, 1968–1970). It understood English sentences about a world of blocks, moved them with a drawn hand and answered questions about them.

  • What is a microworld in AI?

    Answer

    A small world described completely by a program: every object, property and possible action is known in advance.

  • Why didn’t SHRDLU’s success scale?

    Answer

    Everything in the blocks world was written by hand. The ordinary world is too big to describe the same way, and the program was lost past the edge of its table.

  • What should you ask a polished AI demo?

    Answer

    What happens past the edge of the world it shows: with other data, other requests and no preparation.

Sources

Next

Next in the course: Expert systems: knowledge as a product

The course’s contents