PROBLEMS AND GOALS
local graph
Chapter 7 — PROBLEMS AND GOALS
Section titled “Chapter 7 — PROBLEMS AND GOALS”7.1 INTELLIGENCE
Section titled “7.1 INTELLIGENCE”Many people insist on having some definition of “intelligence.”
CRITIC: How can we be sure that things like plants and stones, or storms and streams, are not intelligent in ways that we have not yet conceived?
It doesn’t seem a good idea to use the same word for different things, unless one has in mind important ways in which they are the same. Plants and streams don’t seem very good at solving the kinds of problems we regard as needing intelligence.
CRITIC: What’s so special about solving problems? And why don’t you define “intelligence” precisely, so that we can agree on what we’re discussing?
That isn’t a good idea, either. An author’s job is using words the ways other people do, not telling others how to use them. In the few places the word “intelligence” appears in this book, it merely means what people usually mean—the ability to solve hard problems.
CRITIC: Then you should define what you mean by a “hard” problem. We know it took a lot of human intelligence to build the pyramids—yet little coral reef animals build impressive structures on even larger scales. So don’t you have to consider them intelligent? Isn’t it hard to build gigantic coral reefs?
Yes, but it is only an illusion that animals can “solve” those problems! No individual bird discovers a way to fly. Instead, each bird exploits a solution that evolved from countless reptile years of evolution. Similarly, although a person might find it very hard to design an oriole’s nest or a beaver’s dam, no oriole or beaver ever figures out such things at all. Those animals don’t “solve” such problems themselves; they only exploit procedures available within their complicated gene-built brains.
CRITIC: Then wouldn’t you be forced to say that evolution itself must be intelligent, since it solved those problems of flying and building reefs and nests?
No, because people also use the word “intelligence” to emphasize swiftness and efficiency. Evolution’s time rate is so slow that we don’t see it as intelligent, even though it finally produces wonderful things we ourselves cannot yet make. Anyway, it isn’t wise to treat an old, vague word like “intelligence” as though it must define any definite thing. Instead of trying to say what such a word “means,” it is better simply to try to explain how we use it.
Our minds contain processes that enable us to solve problems we consider difficult. “Intelligence” is our name for whichever of those processes we don’t yet understand.
Some people dislike this “definition” because its meaning is doomed to keep changing as we learn more about psychology. But in my view that’s exactly how it ought to be, because the very concept of intelligence is like a stage magician’s trick. Like the concept of “the unexplored regions of Africa,” it disappears as soon as we discover it.
7.2 UNCOMMON SENSE
Section titled “7.2 UNCOMMON SENSE”We’ve all heard jokes about how stupid present-day computers are. They send us bills and checks for zero dollars and zero cents. They don’t mind working in endless loops, repeating the same thing a billion times. Their total lack of common sense is another reason people think that no machine could have a mind.
It is interesting to note that some of the earliest computer programs excelled at what people consider to be “expert” skills. A 1956 program solved hard problems in mathematical logic, and a 1961 program solved college-level problems in calculus. Yet not till the 1970s could we construct robot programs that could see and move well enough to arrange children’s building-blocks into simple towers and playhouses. Why could we make programs do grown-up things before we could make them do childish things? The answer may seem paradoxical: much of “expert” adult thinking is actually simpler than what is involved when ordinary children play! Why is it easier to program what experts do than what children do?
What people vaguely call common sense is actually more intricate than most of the technical expertise we admire. Neither that “expert” program for logic nor the one for calculus embodied more than a hundred or so “facts”—and most of them were rather similar to one another. Yet these were enough to solve college-level problems. In contrast, think of all the different kinds of things a child must know merely to build a house of blocks—a process that involves knowledge of shapes and colors, space and time, support and balance, and an ability to keep track of what one is doing.
To be considered an “expert,” one needs a large amount of knowledge of only a relatively few varieties. In contrast, an ordinary person’s “common sense” involves a much larger variety of different types of knowledge—and this requires more complicated management systems.
There is a simple reason why it is easier to acquire specialized knowledge than commonsense knowledge. Each type of knowledge needs some form of “representation” and a body of skills adapted to using that style of representation. Once that investment has been made, it is relatively easy for a specialist to accumulate further knowledge, provided the additional expertise is uniform enough to suit the same style of representation. A lawyer, doctor, architect, or composer who has learned to deal with a range of cases in some particular field finds it relatively easy to acquire more knowledge of a similar character. Think how much longer it would take a single person to learn to deal competently with a few diseases and several kinds of law cases and a small variety of architectural blueprints and a few orchestral scores. The greater variety of representations would make it much harder to acquire the “same amount” of knowledge. For each new domain, our novice would have to learn another type of representation and new skills for using it. It would be like learning many different languages, each with its own grammar, lexicon, and idioms. When seen this way, what children do seems all the more remarkable, since so many of their actions are based upon their own inventions and discoveries.
7.3 THE PUZZLE PRINCIPLE
Section titled “7.3 THE PUZZLE PRINCIPLE”Many people reason that machines do only what they’re programmed to do—and hence can never be creative or original. The trouble is that this argument presumes what it purports to show: that you can’t program a machine to be creative! In fact, it is surprisingly easy to program a computer so that it will proceed to do more different things than any programmer could imagine in advance. This is possible because of what we’ll call the “puzzle principle.”
Puzzle Principle: We can program a computer to solve any problem by trial and error, without knowing how to solve it in advance, provided only that we have a way to recognize when the problem is solved.
By “trial and error” we mean programming the machine systematically to generate all possible structures within some universe of possibilities. For example, suppose you wished to have a robot machine that could build a bridge across a stream. The most efficient program for this would simply execute a specific procedure, planned out in advance, to precisely place some boards and nails. Of course, you couldn’t write such a program unless you already knew how to build a bridge. But consider the alternative below, which is sometimes called the generate and test method. It consists of writing a two-part program.
Generate. The first process simply produces, one after another, every possible arrangement of the boards and nails. At first, you might expect such a program to be hard to write. But it turns out to be surprisingly easy, once you appreciate that there is no requirement for each arrangement to make any sense whatsoever!
Test. The second part of the process examines each arrangement to see whether the problem has been solved. If the goal were to build a dam, the test is simply whether it holds back the stream. If the goal were to build a bridge, the test is simply whether it spans the stream.
This possibility makes us reexamine all our old ideas about intelligence and creativity, since it means that, in principle, at least, we can make machines solve any problems whose solutions we can recognize. This is rarely practical, however. Consider that there must be a thousand ways to attach two boards, a million ways to connect three of them, and a billion ways to nail four boards together. It would take inconceivably long before the puzzle principle produced a workable bridge. But it does help, philosophically, to replace our feeling of mystery about creativity by more specific and concrete questions about the efficiency of processes. The main problem with our bridge-building machine is the lack of connection between its generator and its test. Without some notion of progress toward a goal, it is hard to do better than mindless chance.
7.4 PROBLEM SOLVING
Section titled “7.4 PROBLEM SOLVING”In principle, we can use the “generate and test” method—that is, trial and error—to solve any problem whose solution we can recognize. But in practice, it can take too long for even the most powerful computer to test enough possible solutions. Merely assembling a simple house from a dozen wooden blocks would require searching through more possibilities than a child could try in a lifetime. Here is one way to improve upon blind trial-and-error search.
The Progress Principle: Any process of exhaustive search can be greatly reduced if we possess some way to detect when “progress” has been made. Then we can trace a path toward a solution, just as a person can climb an unfamiliar hill in the dark—by feeling around, at every step, to find the direction of steepest ascent.
Many easy problems can be solved this way, but for a hard problem, it may be almost as difficult to recognize “progress” as to solve the problem itself. Without a larger overview, that “hill climber” may get stuck forever on some minor peak and never find the mountaintop. There is no foolproof way to avoid this.
Goals and Subgoals. The most powerful way we know for discovering how to solve a hard problem is to find a method that splits it into several simpler ones, each of which can be solved separately.
Much research in the field called Artificial Intelligence has been concerned with finding methods machines can use for splitting a problem into smaller subproblems and then, if necessary, dividing these into yet smaller ones. In the next few sections we’ll see how this can be done by formulating our problems in terms of “goals.”
Using Knowledge. The most efficient way to solve a problem is to already know how to solve it. Then one can avoid search entirely.
Accordingly, another branch of Artificial Intelligence research has sought to find ways to embody knowledge in machines. But this problem itself has several parts: we must discover how to acquire the knowledge we need, we must learn how to represent it, and, finally, we must develop processes that can exploit our knowledge effectively. To accomplish all that, our memories must represent, in preference to vast amounts of small details, only those relationships that may help us reach our goals. This research has led to many practical “knowledge-based” problem-solving systems. Some of these are often called “expert systems” because they’re based on imitating the methods of particular human practitioners.
A curious phenomenon emerged from this research. It often turned out easier to program machines to solve specialized problems that educated people considered hard—such as playing chess or proving theorems about logic or geometry—than to make machines do things that most people considered easy—such as building toy houses with children’s blocks. This is why I’ve emphasized so many “easy” problems in this book.
7.5 LEARNING AND MEMORY
Section titled “7.5 LEARNING AND MEMORY”There is an old and popular idea that we learn only what we are rewarded for. Some psychologists have claimed that human learning is based entirely on “reinforcement” by reward: that even when we train ourselves with no external inducements, we are still learning from reward—only now in the form of signals from inside ourselves. But we cannot trust an argument that assumes what it purports to prove, and in any case, when we try to use this idea to explain how people learn to solve hard problems, we encounter a deadly circularity. You first must be able to do something before you can be rewarded for doing it!
This circularity was no great problem when Ivan Pavlov studied conditioned reflexes nearly a century ago, because in his experiments the animals never needed to produce new kinds of behavior; they only had to link new stimuli to old behaviors. Decades later, Pavlov’s research was extended by the Harvard psychologist B. F. Skinner, who recognized that higher animals did indeed sometimes exhibit new forms of behavior, which he called “operants.” Skinner’s experiments confirmed that when a certain operant is followed by a reward, it is likely to reappear more frequently on later occasions. He also discovered that this kind of learning has much larger effects if the animal cannot predict when it will be rewarded. Under names like “operant conditioning” and “behavior modification,” Skinner’s discoveries had a wide influence in psychology and education, but never led to explaining how brains produce new operants. Furthermore, few of these animal experiments shed much light on how humans learn to form and carry out their complex plans; the trouble is that other animals can scarcely learn such things at all. Those twin ideas—reward/success and punish/failure—do not explain enough about how people learn to produce the new ideas that enable them to solve difficult problems that could not otherwise be solved without many lifetimes of ineffectual trial and error.
The answer must lie in learning better ways to learn. In order to discuss these things, we’ll have to start by using many ordinary words like goal, reward, learning, thinking, recognizing, liking, wanting, imagining, and remembering—all based on old and vague ideas. We’ll find that most such words must be replaced by new distinctions and ideas. Still, there’s something common to them all: in order to solve any hard problem, we must use various kinds of memories. At each moment, we must keep track of what we’ve just done—or else we might repeat the same steps over and over again. Also, we must somehow maintain our goals—or we’ll end up doing pointless things. Finally, once our problem is solved, we need access to records of how it was done, for use when similar problems arise in the future.
Much of this book will be concerned with memory—that is, with records of the mental past. Why, how, and when should such records be made? When the human brain solves a hard problem, many millions of agents and processes are involved. Which agents could be wise enough to guess what changes should then be made? The high-level agents can’t know such things; they scarcely know which lower-level processes exist. Nor can lower-level agents know which of their actions helped us to reach our high-level goals; they scarcely know that higher-level goals exist. The agencies that move our legs aren’t concerned with whether we are walking toward home or toward work—nor do the agents involved with such destinations know anything of controlling individual muscle units. Where in the mind are judgments made about which agents merit praise or blame?
7.6 REINFORCEMENT AND REWARD
Section titled “7.6 REINFORCEMENT AND REWARD”For learning to take place, each play of the game must yield much more information. This is achieved by breaking the problem into components. The unit of success is the goal. If a goal is achieved, its subgoals are reinforced; if not, they are inhibited. —ALLEN NEWELL
One thing is sure: we always find it easier to do things we’ve done before. What happens in our minds to make that possible? Here’s one idea: In the course of solving some problem, certain agents must have aroused certain other agents. So let’s take “reward” to mean that if agent A has been involved in arousing agent B, the effect of reward is, somehow, to make it easier for A to arouse B in the future and also, perhaps, to make it harder for A to arouse other agents. At one time, I was so taken with this idea that I designed a machine called the Snarc, which learned according to this principle; it was composed of forty agents, each connected to several others, more or less at random, through a “reward” system that, when activated after each success, made each agent more likely to rearouse the same recipients at later times.
We presented this machine with problems like learning to find a path through a maze while avoiding a hostile predator. It quickly learned to solve easy problems but never could learn to solve hard problems like building towers or playing chess. It became clear that, in order to solve complicated problems, any machine of limited size must be able to reuse its agents in different ways in different contexts—as See must do when involved in two concurrent tasks. But when the Snarc tried to learn its way through a complicated maze, a typical agent might suggest a good direction to move in at one moment, then suggest a bad direction at another moment. Later, when we rewarded it for doing something we liked, both those decisions became more likely—and all those “goods” and “bads” tended to cancel one another out!
This poses a dilemma in designing machines that learn by “reinforcing” the connections between agents. In the course of solving a hard problem, one will usually try several bad moves before finding a good one—for this is virtually what we mean by calling a problem “hard.” To avoid learning those bad moves, we could design a machine to reinforce only what happened in the last few moments before success. But such a machine would be able to learn only to solve problems whose solutions require just a few steps. Alternatively, we could design the reward to work over longer spans of time; however, that would not only reward the bad decisions along with the good but would also erase other things that it had previously learned to do. We cannot learn to solve hard problems by indiscriminately reinforcing agents or their connections. Why is it that among all the animals, only the great-brained relatives of man can learn to solve problems that require many steps or involve using the same agencies for different purposes? We’ll seek the answer in the policies our agencies use for accomplishing goals.
You might argue that a beaver goes through many steps to build a dam, as does a colony of termites when it builds its complex castle nest. However, these wonderful animals do not learn such accomplishments as individuals but use the procedures that have become encoded in their species’ genes over millions of years of evolution. You cannot train a beaver to build a termite nest or teach termites to build beaver dams.
7.7 LOCAL RESPONSIBILITY
Section titled “7.7 LOCAL RESPONSIBILITY”Suppose that Alice, who owns a wholesale store, asks the manager, Bill, to increase sales. Bill instructs the salesman, Charles, to sell more radios. Charles secures a large order, on profitable terms. But then the firm can’t actually deliver those radios, because they are in short supply. Who is to blame? Alice would be justified in punishing Bill, whose job it was to verify the inventory. The question is, should Charles be rewarded? From Alice’s viewpoint, Charles’s actions have only disgraced the firm. But from Bill’s viewpoint, Charles succeeded in his mission to get sales, and it wasn’t his fault that this failed to accomplish his supervisor’s goal. Consider this example from two perspectives—call them “local reward” and “global reward.”
The Local scheme rewards each agent that helps accomplish its supervisor’s goal. So Bill rewards Charles, even though Charles’s action served no higher-level goal.
The Global scheme rewards only agents that help accomplish top-level goals. So Charles gets no reward at all.
It is easy to invent machinery to embody local learning policies, since each assignment of credit depends only on the relation between an agent and its supervisor. It is harder to implement a global learning scheme because this requires machinery to find out which agents are connected all the way to the original goal by unbroken chains of accomplished subgoals. The local scheme is relatively generous to Charles by rewarding him whenever he accomplishes what is asked of him. The global scheme is much more parsimonious. It dispenses no credit whatever to Charles, even though he does as his supervisor requests, unless his action also contributes to the top-level enterprise. In such a scheme, agents will often learn nothing at all from their experiences. Accordingly, global policies lead to learning more slowly.
Both schemes have various advantages. The cautiousness of the global policy is appropriate when mistakes are very dangerous or when the system has plenty of time. This can lead to more “responsible” behavior—since it could make Charles learn, in time, to check the inventory for himself instead of slavishly obeying Bill. The global policy does not permit one to justify a bad action with “I was only obeying the orders of my superior.” On the other side, the local policy can lead to learning many more different things at once, since each agent can constantly improve its ability to achieve its local goals, regardless of how they relate to those of other portions of the mind. Surely our agencies have several such options. Which ones they use may depend, from moment to moment, upon the states of other agencies whose job it is to learn, themselves, which learning strategies to use, depending on the circumstances.
The global scheme requires some way to distinguish not only which agents’ activities have helped to solve a problem, but also which agents helped with which subproblems. For example, in the course of building a tower, you might find it useful to push a certain block aside to make room for another one. Then you’d want to remember that pushing can help in building a tower—but if you were to conclude that pushing is a generally useful thing to do, you’d never get another tower built. When we solve a hard problem, it usually is not enough to say that what a certain agent did was “good” or “bad” for the entire enterprise; one must make such judgments depend, to some extent, on the local circumstances—that is, on how the work of each agent helped or hindered the work of related agents. The effect of rewarding an agent must be to make that agent react in ways that help to accomplish some specific goal—without too much interference with other, more important goals. All this is simple common sense, but in order to pursue it further, we’ll have to clarify our language. We have all experienced the pursuit of goals, but experience is not the same as understanding. What is a goal, and how can a machine have one?
7.8 DIFFERENCE-ENGINES
Section titled “7.8 DIFFERENCE-ENGINES”Whenever we talk about a “goal,” we mix a thousand meanings in one word. Goals are linked to all the unknown agencies that are engaged whenever we try to change ourselves or the outside world. If “goal” involves so many things, why tie them all to a single word? Here’s some of what we usually expect when we think that someone has a goal:
A “goal-driven” system does not seem to react directly to the stimuli or situations it encounters. Instead, it treats the things it finds as objects to exploit, avoid, or ignore, as though it were concerned with something else that doesn’t yet exist. When any disturbance or obstacle diverts a goal-directed system from its course, that system seems to try to remove the interference, go around it, or turn it to some advantage.
What kind of process inside a machine could give the impression of having a goal—of purpose, persistence, and directedness? There is indeed a certain particular type of machine that appears to have those qualities; it is built according to the principles below, which were first studied in the late 1950s by Allen Newell, C. J. Shaw, and Herbert A. Simon. Originally, these systems were called general problem solvers, but I’ll simply call them difference-engines.
A difference-engine must contain a description of a “desired” situation.
It must have subagents that are aroused by various differences between the desired situation and the actual situation.
Each subagent must act in a way that tends to diminish the difference that aroused it.
At first, this may seem both too simple and too complicated. Psychologically, a difference-engine might appear to be too primitive to represent the complex of ambitions, frustrations, satisfactions, and disappointments involved in the pursuit of a human goal. But these aren’t really aspects of our goals themselves but emerge from the interactions among the many agencies that become engaged in pursuit of those goals. On the other side, one might wonder whether the notion of a goal really needs to engage such a complicated four-way relationship among agents, situations, descriptions, and differences. Presently we’ll see that this is actually simpler than it seems, because most agents are already concerned with differences.
7.9 INTENTIONS
Section titled “7.9 INTENTIONS”When we watch a ball roll down a slope, we notice it seems to try to get around obstacles that lie in its path. If we didn’t know about gravity, we might be tempted to think that the ball has the goal of moving down. But we know that the ball isn’t “trying” to do anything; the impression of intention is only in the watcher’s mind.
When we experiment with Builder we also get the sense that it has a goal. Whenever you take its blocks away, it reaches out and takes them back. Whenever you knock its tower down, it rebuilds it. It seems to want a tower there, and it perseveres until the tower is done. Certainly Builder seems smarter than the rolling ball because it overcomes more complicated obstacles. But once we know how Builder works, we see that it’s not so different from that ball: all it does is keep on finding blocks and putting them on top of other blocks. Does Builder really have a goal?
One ingredient of having a goal is persistence. We wouldn’t say that Builder wants a tower, if it didn’t keep persisting in attempts to build one. But persistence alone is not enough—and neither Builder nor that rolling ball have any sense of where they want to go. The other critical ingredient of goal is to have some image or description of a wanted or desired state. Before we’d agree that Builder wants a tower, we’d have to make sure that it contains something like an image or a description of a tower. The idea of a difference-engine embodies both elements: a representation of some outcome and a mechanism to make it persist until that outcome is achieved.
Do difference-engines “really” want? It is futile to ask that kind of question because it seeks a distinction where none exists—except in some observer’s mind. We can think of a ball as a perfectly passive object that merely reacts to external forces. But the eighteenth-century physicist Jean Le Rond d’Alembert showed that one can also perfectly predict the behavior of a rolling ball by describing it as a difference-engine whose goal is to reduce its own energy. We need not force ourselves to decide questions like whether machines can have goals or not. Words should be our servants, not our masters. The notion of goal makes it easy to describe certain aspects of what people and machines can do; it offers us the opportunity to use simple descriptions in terms of active purposes instead of using unmanageably cumbersome descriptions of machinery.
To be sure, this doesn’t capture everything that people mean by “having goals.” We humans have so many ways of wanting things that no one scheme can embrace them all. Nevertheless, this idea has already led to many important developments both in Artificial Intelligence and in psychology. The difference-engine scheme remains the most useful conception of goal, purpose, or intention yet discovered.
7.10 GENIUS
Section titled “7.10 GENIUS”We naturally admire our Einsteins, Shakespeares, and Beethovens—and we wonder if machines could ever create such wondrous theories, plays, and symphonies. Most people think that accomplishments like these require “talents” or “gifts” that cannot be explained. If so, then it follows that computers can’t create such things—since anything machines do can be explained. But why assume that what our greatest artists do is very different from what ordinary people do—when we know so little about what ordinary people do! Surely it is premature to ask how great composers write great symphonies before we know how ordinary people think of ordinary tunes. I don’t believe there is much difference between normal and “creative” thought. Right now, if asked which seems the more mysterious, I’d have to say the ordinary kind.
We shouldn’t let our envy of distinguished masters of the arts distract us from the wonder of how each of us gets new ideas. Perhaps we hold on to our superstitions about creativity in order to make our own deficiencies seem more excusable. For when we tell ourselves that masterful abilities are simply unexplainable, we’re also comforting ourselves by saying that those superheroes come endowed with all the qualities we don’t possess. Our failures are therefore no fault of our own, nor are those heroes’ virtues to their credit, either. If it isn’t learned, it isn’t earned.
When we actually meet the heroes whom our culture views as great, we don’t find any singular propensities—only combinations of ingredients quite common in themselves. Most of these heroes are intensely motivated, but so are many other people. They’re usually very proficient in some field—but in itself we simply call this craftsmanship or expertise. They often have enough self-confidence to stand up to the scorn of peers—but in itself, we might just call that stubbornness. They surely think of things in some novel ways, but so does everyone from time to time. And as for what we call “intelligence,” my view is that each person who can speak coherently already has the better part of what our heroes have. Then what makes genius appear to stand apart, if we each have most of what it takes?
I suspect that genius needs one thing more: in order to accumulate outstanding qualities, one needs unusually effective ways to learn. It’s not enough to learn a lot; one also has to manage what one learns. Those masters have, beneath the surface of their mastery, some special knacks of “higher-order” expertise, which help them organize and apply the things they learn. It is those hidden tricks of mental management that produce the systems that create those works of genius. Why do certain people learn so many more and better skills? These all-important differences could begin with early accidents. One child works out clever ways to arrange some blocks in rows and stacks; a second child plays at rearranging how it thinks. Everyone can praise the first child’s castles and towers, but no one can see what the second child has done, and one may even get the false impression of a lack of industry. But if the second child persists in seeking better ways to learn, this can lead to silent growth in which some better ways to learn may lead to better ways to learn to learn. Then, later, we’ll observe an awesome, qualitative change, with no apparent cause—and give to it some empty name like talent, aptitude, or gift.
Finally, an awful thought: perhaps what we call genius is rare because our evolution works without respect for individuals. Could any tribe or culture endure in which each individual discovered novel ways to think? If not, how sad, since the genes for genius might then lead not to nurturing, but only to frequent weeding-out.