Showing posts with label understanding. Show all posts
Showing posts with label understanding. Show all posts

Tuesday, October 27, 2026

Smart Understanding

A robot instructor stands at a white board, which has two things
  written on it: a computer program and a description of that program as a flow diagram.
  The program, in a block-structured language, initializes a variable S to zero, 
  enters a loop with a variable i that ranges from 1 to N.
  Within the loop, there is a test of whether A(i) is greater than 0,
  and if it is, then the variable S is augmented by the value of A(i).
  By contrast flow diagram has four boxes that feed each other in a sort of pipe.
  The boxes are labeled 'Enumerate 1..N', 'Generate A(i)', 'Filter positive', and 'Sum'.
  The instructor has drawn a dotted line showing the correspondence between the initialization
  of a loop and the 'Enumerate' box in the flow diagram.

Setting the stage

In the early 1980s, after graduating from MIT, I worked at the MIT AI Lab on a project called the Programmer's Apprentice.

Looking back, although the details differ because we were using technology over 40 years younger than what's available today, the vision behind it wasn't that much different.

We programmed in a language called Lisp that continues in use today, but at the time was one of the most common languages used in AI research. Machines called Lisp Machines had hardware support for the language, and the Zmacs text editor of the time was very much like the Emacs text editor is today. The Programmer's Apprentice was written in Lisp.

To go with that, we wanted to have an AI-style assistant that could see the programs we were writing, understand them, and take abstract instructions in English about how to modify them, and would make those edits for us. Pretty much the same model as an agentic “AI” programmer might be today.

Under the covers

The broad architecture of the Knowledge-Based Editor (KBE), or KBEmacs as it later came to be called, was very much like the way Large Language Models (LLMs) work today. Commands (similar to today's “prompts”) were issued to the KBE via an input box, the program itself would be digested into an internal representation, some transformations would be made to the program while it was in the internal representation, and then the result would be coded back up in Lisp (or whatever other language might be selected). At the time, Ada and PL/I were other languages that might be used.

A robot instructor stands at a white board, which has two things
  written on it: a computer program and a description of that program as a flow diagram.
  The program, in a block-structured language, initializes a variable S to zero, 
  enters a loop with a variable i that ranges from 1 to N.
  Within the loop, there is a test of whether A(i) is greater than 0,
  and if it is, then the variable S is augmented by the value of A(i).
  By contrast flow diagram has four boxes that feed each other in a sort of pipe.
  The boxes are labeled 'Enumerate 1..N', 'Generate A(i)', 'Filter positive', and 'Sum'.
  The instructor has drawn a dotted line showing the correspondence between the initialization
  of a loop and the 'Enumerate' box in the flow diagram.

What interested me at the time, though it seems routine now, was the idea of interacting asynchronously with another entity. Nowadays, people take agentic interactions for granted and there's been lots of intervening work on how to manage it all. At the time, we had the ability to spin off background processes and we had locking tools, but the rest of the mailboxing and coordination had to be spelled out by hand.

It was fun, actually. Charting the unknown. Something with the new “AI” people are unlikely to do any more. Now you just ask that it be done. That's convenient, but also a little intellectually sad.

Programmers bow to units of packaging called libraries. An apt metaphor in fact, because I think they often represent the packaged death of thought in the same way that great philosophy texts can represent as much the death of thought as the birth of it. Grand thoughts once having been thought, need not be revisited. Any goal of—much less right to—the simple joy of discovery is outright poo-pooed.
 —Kent Pitman, Whither Original Thought

A routine demonstration

Periodically, people would show up to see what we were cooking up. We had a well-practiced script that we felt illustrated the main ideas we were working with.

I was particularly interested in the interactions with the people funding us. They would watch everything carefully. I would watch them with equal interest.

Unlike some for whom we did demonstrations, it seemed obvious that they felt their role was to be a little bit skeptical. My sense was that they would watch as our interactions with the apprentice, directing it in English-like language to put a program together, and think “This is just form filling.” Form filling would not have been interesting. You could get that for cheap. They wanted to be wowed.

So they would watch with apparent boredom as the demonstration proceeded. I watched their faces. I could hear their minds. “Yeah, yeah. Bunch of forms being filled. Yep. Yep. More form stuff. Probably a garden variety template thing.” Their bored silence spoke volumes.

A less-routine response

Then an unusual command is issued. “Document the program.” That doesn't result in either a regurgitation of what has been said or a transliteration of the program into text. The documentation speaks at a high level about the structure of what the program is doing.

The funder is now alert to something unusual. They do a double-take. They pause and say, “Oh. It's smart.”

I am pretty sure I saw this effect more than once in different people. It really stuck with me. And I pondered why always in that moment. And why “smart”?

I came to believe that “not smart” meant a single representation being used in the ordinary way. A form to fill out. A function to graph. A program to execute.

“Smart,” I inferred after some thought, meant that the entity in question had different ways to approach a problem and could shift representation in order to accommodate the need of the moment.

A long-held idea

It wasn't a scientific proof, just an intuitive hunch, but it's been decades now that I have carried this in my head, watching the world to see what people think intelligence is. I have not found any strong reason to think that this is a terrible way to understand what we mean by “smart.”

When we know how to do something, we think of that as a method, an algorithm, a tool. But when we don't know how to do something, we have to improvise, to build something out of spare parts. Those parts have to fit together, and often they were not designed to go together. Correspondences have to be found that will let them align, communicate, and function as a kind of ad hoc machine of the moment.

Intelligence, it seems to me, is not the machine. It's the ability to cobble it together on the fly. It's why we have trouble looking at the ability to answer standardized tests as a true Turing test. Once the questions are known, there is no cobbling together. There is just executing of a known pattern.

Surprise is essential to testing intelligence. And that's why these funders were pleased. The outcome caught them by surprise. They trusted us not to have just wired up the answer, and so what they saw were signs of a toolbox of different models being seamed together dynamically. To them, it seemed to me, and still does, it was the earmark of intelligence.

 


Author’s Notes:

If you got value from this post, please “Share” it.

This is memoir, not autobiography. I did my best to piece together old memories. Although there is a recent project of mine to make a public archive of some of the artifacts. The sources to the KBE are available now at github as part of my history project. Jeff Shrager then took what I had restored and created code that runs again, with the help of an LLM, as part of his Executable Archaeology project.

The image was generated with help from abacus.ai's ChatLLM (Claude Opus 4.8 and GPT Image 2.5), with light post-processing by me in Gimp to reduce the resulting image in size for faster web download.

Saturday, March 21, 2009

Intuition and Knowledge

I wrote a post recently, Knowledge and Intuition, in which I created some minor confusion. [Yang and Yin: Intuition and Knowledge] This follow-up post doesn't make any really major new points, it just clarifies my previous intent so that, hopefully, I can build upon it another day.

It's ok to stop reading now if that's not your cup of tea. But if you haven't read the other one, you should read this first and then the other. It will make more sense that way.

My previous remarks were intended not to capture the mechanism of intuition as much as to attach a name to the goals, attitudes, expectations, hopes and even fears we have starting out in life.

And when I speak of children, I mean it in the most general and encompassing sense: people who have not yet been tested by life. People who have lived in the protective shell provided by their parents and society, and who have never had to fend for themselves in the world as it really is, with the responsibilities that society is prepared to place on them as first-class individuals.

For want of a better word, I refer to our starting image of the world as our “intuition.” It is a guided intuition, but it is an intuition nonetheless. Unlike the other animals, nature has equipped our minds to allow some of our intuitions to be downloaded from our parents. But what we teach children about civics is only intuitions compared to the reality of what it is to try to get what you need from a real-world government. What we teach people about having a job (or not having one), or about having a family, is just an intuition compared to the experience of actually doing. For purposes of this discussion, that quality which cannot be downloaded in advance and which is the tangible texture of life played out, I call “knowledge.”

Those words have other meanings in other contexts, and I'm not trying to co-opt or limit their meanings. I'm just trying to establish a window into my mind so you can see how I think about these things using the words I prefer.

And so, having been educated as children in our youth, we develop an expectation of how the world will play out. We imagine what the world will be. We have our intuitions. But the world is not, in fact, what we imagine. It cannot play out simply in the ways we imagine. What we come to know of the world will be at odds with those intuitions.

For some, life is a struggle between people and the world around them. How much can a person affect the world and how much does it affect them. It's easy for knowledge to wear down intuition; it's important to remember to constantly refresh one's intuitions so that we can make the world more like we'd like it to be, not just make ourselves more like the world wants us to be.

I may use these terms again, so I wanted to at least clarify my intent. And it may also make some of my meaning in the original post clearer.


Author's Notes:

If you got value from this post, please “Share” it.

Public domain yin/yang symbol obtained from Wikipedia.
Text and composed artwork copyright © 2009 by Kent M. Pitman.

This post is a sequel to my earlier post:
Knowledge and Intuition

Originally published March 21, 2009 at Open Salon, where I wrote under my own name, Kent Pitman.

Tags (from Open Salon): politics, knowledge, intuition, balance, understanding, contentment, war, peace, hunger, suffering, child, children, adults, adulthood, yin, yang, life, life lesson, philosophy, teacher, student, talk, listen

Thursday, March 19, 2009

Knowledge and Intuition

Note to the Reader: When first published, this article confused some readers by my use of the term “intuition.” I am not attempting here to define any general concept of intuition. Rather, I am noting that knowledge fills a gap that represents a preconception about what we expect to learn, or what we think about the world before we are given more mature or better accepted knowledge. We assume our preconceptions, what I here call “intuitions,” are not as good as the “knowledge” that seeks the replace them, but the reality is occasionally more complex. This article is about that surprise complexity.

If this post oversimplifies things, that's probably good. It will make my point more clear. The point is not technical anyway, it is intuitional. It can only be injured by adding technical clarity.

[Yin and Yang: Knowledge and Intuition]

Knowledge and intuition are Yin and Yang, complementary opposites.

We begin our lives with intuitions about what we expect the world to be. Through our growth, we acquire knowledge. Often at the expense of our early intuitions. We spend a lot of our time learning why the world cannot be what we hoped it would be.

It is the rare person who succeeds in acquiring knowledge without losing his vision of why he wanted that knowledge, of what justified the expense of acquiring that knowledge.

Our early instruction of children emphasizes simple truths, sometimes oversimplifying, but offering echos of what we wish the world really were. Or sometimes even what we used to wish what the world was before we forgot that wishes were of value.

Children know how they want the world. They want it free of guns, of violence, of war. They want no one denied health care or left starving.

We explain why these are not goals, why they never could be. Soon enough, they forget they even wanted them. Then we smile approvingly and call them adults.

Computer novices ask for computers to be smart. But we explain to them about how to articulate their problems well enough that they can Google for workarounds. Soon enough, they are so proud of their own ability to overcome computer stupidity they've forgotten it would be better if they didn't have to. Then we smile again approvingly and call them computer literate.

Knowledge wears down intuition.

We bring children into the world in part to remind ourselves as a society of what we started out to be. Not having yet become jaded, they ask anew the hard questions we'd forgotten we used to ask. All too quickly, the reflexive temptation is to answer them, rather than to hear their inquiries as an opportunity for reflection: Are we going in the direction we set out to? Are we sure there was no other way?

They often try to find that better way. Sometimes they learn, as we did, that it's elusive. But sometimes they do better than those that came before them. In many ways, the virtue is in the trying.

If you're an expert who speaks routinely with others who know less about your area of expertise, always remember that they may have something that you may have lost—that in offering your knowledge, perhaps, if you also listen, you'll be lucky enough to recover some of the intuition you lost in acquiring that knowledge.


Author's Notes:

If you got value from this post, please “Share” it.

There is a sequel to this point, Intuition and Knowledge, which adds some clarifications and additional thoughts.

Public domain yin/yang symbol obtained from Wikipedia.
Text and composed artwork copyright © 2009 by Kent M. Pitman.

Originally published March 19, 2009 at Open Salon, where I wrote under my own name, Kent Pitman.

Tags (from Open Salon): politics, knowledge, intuition, balance, understanding, contentment, war, peace, hunger, suffering, child, children, adults, adulthood, yin, yang, life, life lesson, philosophy, teacher, student, talk, listen