दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Artificial intelligence

Artificial Intelligence: A Modern Approach

Stuart Russell and Peter Norvig · 1995 · Prentice Hall

More by Stuart Russell on this shelf · 2 books →

The field's textbook. Intelligence as rational agents.

About the book

Stuart Russell of Berkeley and Peter Norvig, later director of research at Google, published this textbook in 1995. It became the standard AI textbook, used in many universities around the world, and has been revised in 2003, 2009 and 2020. The book unifies the field around one idea: intelligence as the design of rational agents that act to achieve the best expected outcome given what they perceive. Its parts cover problem solving by search, knowledge and logical reasoning, planning, reasoning under uncertainty with probability, decision making, learning, and communicating, perceiving and acting. It closes with philosophical foundations and the future of AI. Each chapter ends with historical notes.

Key ideas

  • AI is best defined as building rational agents. An agent perceives its environment and acts, and a rational agent chooses actions that maximise expected performance given its knowledge.
  • Environments differ in ways that shape design: fully or partly observable, deterministic or random, static or changing, single or multiple agents. The right agent architecture depends on these properties.
  • Many problems can be solved by search through states. Informed search methods such as A-star use heuristics to reach good solutions without examining every possibility.
  • Logic gives agents a way to represent knowledge and draw conclusions, while probability lets them reason when knowledge is uncertain. Both are needed, and the book treats them together.
  • Decision theory combines probabilities and utilities, so agents choose actions by expected value. Extending this to sequences of decisions leads to Markov decision processes and to reinforcement learning.
  • Learning lets agents improve from experience. The book covers supervised learning, statistical methods, neural networks and reinforcement learning as ways to build agents that adapt.

Why it is on this shelf

It is the map of the whole field. Anyone who builds with AI tools needs the vocabulary of agents, search, probability and learning, and this book gives it in one place with the history attached. The newest edition also covers deep learning and the problem of specifying objectives.

How to start reading it

Read the first two chapters on the foundations and on intelligent agents. Then read the search chapters and the probability chapters. Use the rest as reference. Use the most recent edition you can get.

About this book

Artificial Intelligence: A Modern Approach is a university textbook. Stuart Russell and Peter Norvig published the first edition with Prentice Hall in 1995. Revised editions followed in 2003, 2009 and 2020, and the book became the standard text for introductory and graduate courses in artificial intelligence across the world. Many students meet the field for the first time through its pages, and many working researchers keep a copy within reach as a reference. Its size is part of its reputation: later editions run well past a thousand pages.

To see why the book mattered, it helps to recall the state of the field in the early 1990s. Artificial intelligence had split into camps that rarely spoke to one another. Some researchers worked on logic and theorem proving. Others built expert systems from hand-written rules. Others worked on search and game playing, on vision, on robotics, on natural language, on neural networks, or on probability. Each camp had its own vocabulary and its own textbooks. A student could finish a course on one of them and have little idea how it related to the rest. The commercial boom in expert systems had ended in disappointment in the late 1980s, and the field had a reputation for promises it had not kept.

Russell and Norvig set out to answer a simple but demanding question. Is there one idea that can hold all of these pieces together, so that a student can see AI as a single discipline rather than a bag of tricks? Their answer was the rational agent. An agent is anything that perceives its environment and acts upon it. A rational agent is one that chooses, at each moment, the action expected to do best by some measure of performance, given what it has perceived and what it knows. Search, logic, planning, probability, decision theory and learning then appear as different tools for building such agents in different kinds of environment.

The book was written for undergraduates and beginning graduate students in computer science, but it was also written for the field itself. By organising everything around one design problem, the authors made a claim about what AI is. It is not chiefly the imitation of human beings, and it is not chiefly the study of thought. It is the engineering of systems that act well. This framing was not wholly new, but no previous textbook had carried it through so completely, from the first chapter to the last.

The book also did something quieter that has lasted. It treated probability and statistics as central to AI at a time when many introductory texts still put them at the edge. Russell and Norvig gave reasoning under uncertainty the same weight as logical reasoning, and they presented learning as a core capacity of agents rather than as a separate subject. In this they anticipated the direction the field would take over the following decades.

Each chapter ends with bibliographical and historical notes that trace where the ideas came from and who developed them. Those notes are one of the book's hidden strengths. Taken together they form a compact history of the field, and they teach the reader that every technique has a past, a set of motivating problems, and a list of people who argued about it.

The authors

Stuart Russell

Stuart Russell was born in England in 1962. He studied physics at Oxford and took his doctorate in computer science at Stanford. He joined the faculty of the University of California, Berkeley in the mid-1980s and has spent his career there. His research has covered a wide range: the use of prior knowledge in learning, reasoning with limited computational resources, probabilistic programming languages that combine logic and probability, and the monitoring of nuclear test ban treaties using probabilistic models of seismic signals. The breadth of his own work shows in the book, which moves easily between logic and statistics.

In later years Russell became one of the most prominent voices on the long-term risks of advanced AI. He argued that the standard way of building intelligent systems, in which a machine is given a fixed objective and pursues it, becomes dangerous as machines grow more capable, because no one can write down an objective that captures everything people care about. He set out this argument for a general audience in Human Compatible, published in 2019, which sits in the same bay as this book. The fourth edition of the textbook, published in 2020, carries the same concern into its foundations.

Peter Norvig

Peter Norvig was born in the United States in 1956. He took his doctorate in computer science at Berkeley, where he worked on natural language understanding. He taught at the University of Southern California, worked at Sun Microsystems, and later led the computational sciences division at NASA's Ames Research Center, where his group worked on autonomous systems for spacecraft. He then joined Google, where he served as director of research and director of search quality for many years. Before this book he wrote Paradigms of Artificial Intelligence Programming, a respected study of classic AI programs written in the Lisp language.

Norvig brought to the partnership a programmer's sense of what works and a practitioner's interest in data. At Google he saw at first hand what large amounts of data could do for problems such as spelling correction, translation and search, and he became known for arguing that simple models trained on very large data often beat clever models trained on little. That outlook pushed later editions of the book further toward learning from data. He has also been a long-standing advocate of open teaching; with Sebastian Thrun he taught one of the first very large free online courses in AI in 2011, which drew enrolment in the hundreds of thousands.

The partnership

The two authors complement each other. Russell is the theorist with a taste for clean formal foundations and a concern with what the field is ultimately for. Norvig is the engineer with a taste for working code and a concern with what actually performs. The book carries both temperaments. Its definitions are careful and its algorithms are given in pseudocode that a student can turn into a program. An official repository of code accompanies the book in several programming languages, so that readers can run the algorithms rather than only read about them.

The shape of the argument

The book is built like a ladder of agent designs. It begins with the question of what an agent is and what makes one rational. It then climbs, step by step, toward agents that can cope with more difficult worlds. Each rung adds a capacity that the previous rung lacked, and each capacity is introduced because a certain kind of environment demands it.

The lowest rung is the agent that reacts to what it sees with fixed rules. Above it is the agent that keeps an internal picture of the world, then the agent that has goals and can search for sequences of actions that reach them, then the agent that weighs outcomes by how much it prefers them, and finally the agent that learns and improves. The book's major parts follow a similar logic. Problem solving by search comes first, because it is the simplest way to act toward a goal in a world that is fully known. Knowledge and logical reasoning come next, for worlds that must be described in general terms. Planning combines the two. Then comes uncertainty, where the agent cannot be sure what is true and must use probability. Decision making follows, where the agent must choose under that uncertainty. Learning follows, where the agent improves its own models and behaviour from experience. The book then turns outward to communication, perception and robotics, where agents meet language, images and physical bodies. It ends with philosophy, ethics and the future.

Two threads run through every part. The first is the contrast between knowing and not knowing. In the early chapters the agent is assumed to know the rules of its world and the state it is in. Gradually those assumptions are removed. The world becomes partially observable, then random, then unknown in its very rules. The second thread is the contrast between representation and inference. At every stage the book asks how the agent should represent what it knows, whether as atomic states, as structured facts, or as probabilities, and what methods it can use to draw useful conclusions from that representation.

The book also carries an implicit argument about method. It favours approaches that come with guarantees: algorithms that are proven complete or optimal under stated conditions, inference that is sound, decisions that maximise a well-defined expectation. Where heuristics and approximations are needed, as they almost always are, the book tries to explain what is being given up. A reader who works through it learns not just techniques but a habit of asking what each technique promises and at what cost.

Across the editions, the balance of the book shifted. The first edition already gave probability a central place. Later editions expanded the treatment of probabilistic reasoning, machine learning and robotics, and the fourth edition added extended material on deep learning, reinforcement learning, and the problem of how to give machines objectives that truly reflect human wishes. The framing, however, stayed the same. Everything is still presented as part of the design of rational agents.

Idea one: intelligence as rational action

The opening chapters lay out four ways people have defined artificial intelligence. One aims at machines that think like humans, which leads to cognitive science and the modelling of human mental processes. One aims at machines that act like humans, which leads to Alan Turing's imitation test, in which a machine succeeds if an interrogator cannot tell it from a person in conversation. One aims at machines that think rationally, which leads to the tradition of logic and correct inference. The fourth aims at machines that act rationally, which means doing the right thing given what one knows. The book chooses the fourth.

The reasons for this choice are worth understanding. Human behaviour is a poor standard for engineering, because humans make systematic errors and because copying the human mind requires knowing how it works, which we largely do not. Correct thinking is too narrow a standard, because much good action does not involve explicit reasoning at all. A person who pulls a hand away from a hot stove acts well without deducing anything. And correct inference alone does not tell an agent what to do when it is uncertain. Rational action includes correct reasoning where reasoning helps, but it is broader and it is well defined mathematically.

Rationality in this sense is not omniscience. A rational agent is judged by what it could reasonably have expected, given what it perceived and knew, not by how things actually turned out. A driver who crosses an empty road and is struck by a falling piece of debris has not acted irrationally. Nor is rationality the same as success in a single case. It is a property of the policy by which an agent chooses, assessed over the range of situations it may face. This makes rationality a standard one can design for.

An everyday analogy helps. A good doctor does not cure every patient. She chooses tests and treatments that are best on average given the symptoms in front of her and what medicine knows. If a rare condition slips past her despite a sensible process, we do not call her irrational. If she ignores obvious symptoms, we do. The book asks AI systems to be good doctors in this sense: to make the best bet available, not to be lucky.

The idea is often confused with rationality in the narrow economic sense of selfishness, or with cold calculation. Neither is implied. The performance measure that defines what counts as good action is supplied from outside the agent, and it can encode anything: safety, fairness, the welfare of others. Rationality says only that the agent should pursue that measure as well as it can. This is also the idea's weak point, and the fourth edition recognises it. If the measure is wrong, a highly capable rational agent will pursue the wrong thing very effectively.

The book adds an important refinement. Perfect rationality is usually impossible, because computing the best action takes time and the world does not wait. Real agents must practise what is sometimes called bounded or limited rationality, doing the best they can with finite computation. Much of the book is about clever ways to approximate ideal behaviour within limits on time and memory. Herbert Simon's The Sciences of the Artificial, in the same bay, is the classic source for the idea that real decision makers seek answers that are good enough rather than best.

Idea two: agents and their environments

Once the goal of rational action is set, the book makes a second move that shapes everything after it. The right design for an agent depends on the kind of world it lives in. To make this precise, the authors offer a way to describe any task by four things: the performance measure, the environment, the actuators through which the agent acts, and the sensors through which it perceives. An automated taxi, for example, is judged by safety, speed, legality and passenger comfort; its environment is roads, traffic and pedestrians; it acts through steering, accelerator, brake and horn; and it perceives through cameras, speedometer, satellite positioning and other sensors. Writing these four things down is the first step in any serious design.

Environments then differ along several dimensions. An environment is fully observable if the agent's sensors give it the complete relevant state at each moment, and partially observable if they do not. Chess is fully observable; poker is not, because the opponents' cards are hidden. An environment is deterministic if the next state is fixed by the current state and the agent's action, and stochastic if chance plays a part. It is episodic if each decision stands alone, as in sorting parts on a conveyor belt, and sequential if present choices affect future ones, as in almost every interesting task. It is static if it does not change while the agent deliberates, and dynamic if it does. It may be discrete or continuous, known or unknown in its rules, and it may contain one agent or many, cooperating or competing.

The hardest case combines all the difficult properties: partially observable, stochastic, sequential, dynamic, continuous, unknown and full of other agents. Driving in a busy city is close to this case. Much of human life is too. The easy case, a fully observable, deterministic, static, discrete, single-agent puzzle, is where the book starts, because the techniques that work there are clean and teachable, and because they become building blocks for harder cases.

Corresponding to the range of environments, the book describes a range of agent programs. A simple reflex agent maps each percept directly to an action through rules, which works only when the right action depends on the present percept alone. A model-based agent keeps track of the parts of the world it cannot currently see. A goal-based agent considers the future consequences of actions and chooses those that reach a goal. A utility-based agent goes further and compares outcomes by how desirable they are, which matters when goals conflict or when success is uncertain. Any of these can be made into a learning agent, which contains a component that criticises its own performance and changes its behaviour.

This framework is easy to underrate because it looks like a list of definitions. Its value is practical. When a system fails, the first question a designer should ask is whether its architecture matches its environment. A reflex controller placed in a partially observable world will be fooled by anything it cannot see. A goal-based system placed in a world full of trade-offs will be unable to say which success is better. Many failures of deployed AI systems can be read as mismatches of this kind.

The framework also clarifies what is often confused. Intelligence is not one quantity that a system has more or less of. It is a fit between a design and a world. A thermostat is a perfectly good agent for its environment and a hopeless one for any other. The question to ask of any system is not how intelligent it is in the abstract, but how well its way of perceiving, representing and choosing matches the structure of the tasks it faces.

Idea three: search and the power of heuristics

The first family of techniques the book develops is search. Many problems can be framed as finding a path through a space of states. There is an initial state, a set of actions available in each state, a description of what each action does, a test for whether a goal has been reached, and a cost attached to each step. Finding a route between cities, solving a sliding-tile puzzle, assembling parts in a factory and planning the moves of a robot arm can all be put in this form. Once they are, a general algorithm can solve all of them.

Uninformed search methods explore the space without any knowledge of where the goal lies. Breadth-first search examines all states one step away, then all states two steps away, and so on. Depth-first search follows one path as far as it can before backing up. Uniform-cost search always expands the cheapest path found so far. Iterative deepening combines the memory economy of depth-first search with the completeness of breadth-first search by running depth-limited searches with steadily increasing limits. The book compares these methods by whether they are guaranteed to find a solution, whether that solution is the best one, and how much time and memory they need. The comparison teaches a lesson that recurs throughout computing: the size of a search space grows exponentially with the length of the solution, so brute force soon becomes hopeless.

The escape from this explosion is knowledge, expressed as a heuristic. A heuristic is an estimate of how far a given state is from the goal. For route finding, the straight-line distance to the destination is a natural one. The A-star algorithm expands states in order of the cost so far plus the estimated cost remaining. If the heuristic never overestimates the true remaining cost, a property called admissibility, then A-star is guaranteed to find an optimal solution, and it will usually examine far fewer states than an uninformed method. The better the heuristic, the fewer states are examined.

A useful way to think of a heuristic is as a hint from a simpler world. Straight-line distance is the exact cost of travel in a world without roads, where one can fly directly. Many good heuristics are found in exactly this way, by relaxing the rules of the problem until it becomes easy, solving the relaxed version exactly, and using that answer as an estimate for the real one. In the sliding-tile puzzle, one relaxed version lets tiles move through each other, and the resulting estimate is the sum of the distances of each tile from its home square. This method of inventing heuristics by relaxation is one of the most transferable ideas in the book.

The search chapters also cover local search, which keeps only a current state and tries to improve it step by step. Hill climbing moves to a better neighbour until none exists; simulated annealing sometimes accepts worse moves to escape local peaks; genetic algorithms keep a population of candidates and combine them. These methods give up guarantees of optimality in exchange for the ability to handle enormous spaces, and they are the ancestors of many optimisation methods used in practice today, including the gradient-based training of neural networks, which is itself a kind of local search over a continuous space.

Constraint satisfaction gets its own treatment. In problems such as scheduling or map colouring, the goal is not a path but an assignment of values to variables that satisfies a set of constraints. Here the structure of the problem can be exploited directly: assigning one variable narrows the options for its neighbours, and reasoning about these narrowings can cut away huge parts of the search before they are explored. The general lesson is that the more structure an agent can see in its problem, the less blind search it needs.

Search is often mistaken for a dated technique, belonging to an older AI that has been replaced by learning. This is a misunderstanding. Modern systems combine the two. A learned function can serve as a heuristic for search, and search can refine the output of a learned function. The famous game-playing programs of the last decade did exactly this, and route planners, logistics software and compilers rely on search every day.

Idea four: games and adversaries

When another agent is working against you, the search problem changes. In a two-player game such as chess, the agent cannot simply find a path to a winning position, because the opponent chooses half the moves. The book presents the minimax principle for such games. The agent assumes that its opponent will always choose the move that is worst for the agent, and it chooses its own moves to make the best of that assumption. In principle this defines optimal play for any finite game of perfect information.

In practice the game tree is far too large to explore fully, so two refinements are essential. Alpha-beta pruning skips branches that cannot affect the final decision, because the agent has already found a better alternative elsewhere. With good move ordering this roughly doubles the depth that can be searched in the same time. And an evaluation function estimates how good a position is without searching to the end of the game, so that the search can stop at a fixed depth and judge the positions it reaches. Chess programs built on these ideas, running on special hardware, defeated the world champion in 1997.

The book also treats games with chance, such as backgammon, where dice rolls introduce uncertainty, and games with hidden information, such as card games, where each player sees only part of the state. Each requires modifying the basic principle: averaging over chance outcomes in the first case, reasoning about what the opponent might know in the second. Later editions add Monte Carlo tree search, which estimates the value of positions by playing out many random or guided games to the end and gradually focusing effort on the most promising lines. This method, combined with learned evaluation, lay behind the program that defeated a top professional at Go in 2016.

Why should a general reader care about board games? Because they are clean models of a common situation. Any time we act in a world containing others whose aims differ from ours, in negotiation, in markets, in security, we face the adversarial problem. The minimax idea is a formal version of the advice to plan for the strongest reply rather than the most convenient one. The book also connects this material to game theory, where many agents choose at once and where the idea of an equilibrium replaces the idea of an optimal move.

A common confusion is to think that game-playing success shows general intelligence. The book's framework explains why it does not. Chess is fully observable, deterministic, discrete and has rules known in advance. Those are exactly the properties that make an environment easy for search. A program that masters such a game has shown mastery of one well-structured corner of the space of environments, not of the whole.

Idea five: knowledge, logic and planning

Search treats states as black boxes. The agent knows only whether a state is the goal and what actions lead from it. For many tasks this is too little. An agent that is to reason about the world in general terms needs a way to represent facts with internal structure: that this object is on that one, that every person has a mother, that if it rains the ground gets wet. The book's middle parts develop logic as the language for such knowledge.

Propositional logic represents facts as simple true or false statements combined with and, or, not and implication. It is enough for small worlds, and the book uses it to build an agent that explores a dangerous cave and infers where hazards lie from clues it perceives. First-order logic adds objects, relations and quantifiers, so that one can state general laws that apply to every object of a kind. This is far more expressive and far closer to how people describe the world, but inference in it is harder.

The central technical idea is that of sound and complete inference. A sound procedure derives only conclusions that truly follow from what is known. A complete procedure can derive every conclusion that follows. The book presents methods such as forward chaining, which starts from known facts and applies rules to derive new ones, backward chaining, which starts from a question and works back to the facts that would answer it, and resolution, a single general rule of inference that can be used to prove any conclusion that follows in first-order logic. These methods are the basis of logic programming languages and of the automated theorem provers used today to verify software and hardware.

Knowledge representation raises its own problems, and the book treats them honestly. How should an agent represent categories, time, events, beliefs and the changing state of the world? How can it avoid having to state, for every action, all the things that the action does not change? This last puzzle, known as the frame problem, shows how hard it is to write down common sense. The history of large hand-built knowledge bases, which aimed to encode everyday knowledge in logic, is part of this story, and the book is candid about how much effort they required.

Planning brings search and logic together. A planning agent describes actions by their preconditions and effects, using a structured language, and searches for a sequence of actions that turns the current state into one that satisfies the goal. Because the representation is structured, the planner can reason about which actions are relevant, which goals interfere, and which steps can be ordered freely. Planning systems of this kind have scheduled spacecraft operations, organised logistics and controlled factory processes. They show the benefit of structure: a planner can handle problems with astronomically many states because it never has to list them.

Logic is now often regarded as old-fashioned in AI, overtaken by statistical learning. The book's treatment shows why this is too quick. Learned models are powerful at recognising patterns, but they struggle to guarantee correctness, to combine facts reliably, and to explain their reasoning. Logic does these things well. Much current research aims to combine the two, and the book's insistence that both belong to the same project now looks prescient.

Idea six: reasoning under uncertainty

Logic deals in certainties. Real agents almost never have them. A doctor does not know whether a patient's cough means a cold or something worse; a robot does not know exactly where it is; a spam filter does not know whether a message is wanted. The book makes probability theory the language of uncertain knowledge and argues that it is not an optional extra but the correct way for a rational agent to hold beliefs that fall short of certainty. One argument for this is that an agent whose degrees of belief violate the rules of probability can be offered a set of bets, each of which looks fair to it, that together guarantee a loss.

The basic tool is Bayes' rule, which tells an agent how to update its belief in a hypothesis when it observes evidence. Suppose a test for a rare disease is quite accurate, and a patient tests positive. Intuition says the patient probably has the disease. Bayes' rule says that if the disease is rare enough, most positive results come from the many healthy people tested, and the probability of disease may still be small. The rule forces the agent to combine how likely the evidence is under each hypothesis with how likely each hypothesis was to begin with. This one piece of arithmetic corrects a large class of human errors.

The difficulty is scale. A full table of probabilities over many variables grows exponentially with their number. The book's answer is the Bayesian network, developed largely by Judea Pearl in the 1980s, whose Probabilistic Reasoning in Intelligent Systems sits in the same bay. A Bayesian network is a graph in which each variable is linked to the variables that directly influence it. Each variable then needs only a small table of probabilities given its direct influences. The graph captures which variables are independent of which others, and this independence is what makes the representation compact and the inference tractable. A medical network might link a disease to its symptoms and to its risk factors, and from any set of observations compute the probability of each possible diagnosis.

The book extends these ideas to time. Hidden Markov models track a hidden state, such as the word a person is saying, from a sequence of noisy observations, such as sounds. Kalman filters track continuous quantities such as a vehicle's position and velocity. Dynamic Bayesian networks generalise both. Particle filters approximate beliefs by a cloud of sampled possibilities that are moved, weighted and resampled as evidence arrives. These methods are in daily use in speech recognition, navigation, robotics and tracking.

The idea most often confused here is the difference between correlation and causation. A Bayesian network can be built to represent mere statistical association, and inference in it can answer questions about what is likely given what is seen. It cannot by itself answer questions about what would happen if one intervened. Pearl's later Causality, also in this bay, develops the extra machinery needed for that, and later editions of this textbook acknowledge the distinction. A reader should come away knowing that probability is necessary for rational belief but not sufficient for reasoning about action and its effects.

Idea seven: utilities, decisions and sequential choice

Beliefs alone do not tell an agent what to do. It must also know what it wants, and how much. The book brings in utility theory, the mathematical account of preference developed by John von Neumann and Oskar Morgenstern in the 1940s. A utility function assigns a number to each possible outcome, representing how desirable it is. If an agent's preferences obey a few reasonable rules, such as being consistent and not cycling, then they can be represented by such a function, and the agent should choose the action whose expected utility, averaged over the possible outcomes weighted by their probabilities, is highest.

This principle of maximum expected utility is the formal heart of the rational agent idea. It ties together everything that comes before. Search and logic help the agent work out what actions are possible and what they lead to. Probability tells it how likely each outcome is. Utility tells it how much each outcome matters. The best action is found by combining all three. Decision networks extend Bayesian networks with nodes for choices and for utilities, so that the whole calculation can be represented and computed in one structure.

An example makes the principle concrete. Suppose a farmer must decide whether to plant early. Early planting gives a large harvest if the rains come on time and a poor one if they are late. Late planting gives a moderate harvest either way. The right choice depends on the probability of timely rain and on how much the farmer values a large harvest compared with the cost of a poor one. If a poor harvest would be ruinous, the farmer's utility for it is very low, and the safer choice may win even if early rain is likely. The same expected value in money can carry different utilities, which is how the theory accounts for caution.

The book also asks when information is worth acquiring. The value of information is the expected improvement in decision quality that a new observation would bring. A test is worth doing only if its result could change what one would do, and only if the expected gain exceeds its cost. This idea guides how a medical system should choose tests, how a robot should decide where to look, and how anyone should decide whether to gather more data before acting.

When decisions come in sequences, the problem becomes a Markov decision process. The agent moves through states, choosing an action in each, receiving rewards along the way, and the world moves to a new state according to probabilities that depend only on the current state and action. The solution is not a single plan but a policy, a rule that says what to do in every state. Value iteration and policy iteration compute optimal policies by repeatedly improving estimates of how good each state is. When the agent cannot observe the state directly, the problem becomes a partially observable Markov decision process, in which the agent must act on beliefs about the state rather than the state itself. These problems are much harder, and exact solutions are rare outside small cases.

Markov decision processes are the bridge to reinforcement learning, in which the agent does not know the probabilities or rewards in advance and must learn them, or learn good behaviour directly, from experience. The book gives an introduction, and Sutton and Barto's Reinforcement Learning, in the same bay, gives the full treatment. A reader who has understood this chapter of Russell and Norvig is well prepared for that book.

A frequent confusion is to treat expected utility as a description of how people actually decide. It is not; experimental psychology has documented many systematic departures. The book uses it as a normative standard, a description of how an ideal agent should decide, and as an engineering specification. Whether humans meet it is a separate question, and the gap between the two is an important subject in its own right.

Idea eight: learning from experience

An agent whose designer must specify everything is limited by the designer's knowledge and patience. A learning agent can improve on its starting point. The book presents learning as a component of agents rather than as a separate discipline, and it organises the subject by what kind of feedback is available. In supervised learning the agent is shown examples paired with correct answers and must find a function that predicts the answer for new examples. In unsupervised learning it is shown examples without answers and must find structure in them. In reinforcement learning it receives only rewards and penalties and must work out which actions earned them.

The central problem of supervised learning is generalisation. Any finite set of examples is consistent with many different functions. A learner that simply memorises its examples will fit them perfectly and fail on new cases. A learner that is too simple will miss real patterns. The book explains the balance through ideas such as overfitting, the use of separate validation data to estimate performance on unseen cases, and regularisation, which penalises complexity. A short form of this lesson, often attributed to the medieval principle of Ockham's razor, is that among hypotheses that fit the data equally well, simpler ones are more likely to generalise.

The book covers a wide range of learning methods: decision trees, which ask a sequence of questions about the features of an example; linear models, which weigh features and add them; nearest-neighbour methods, which predict by comparison with similar stored cases; support vector machines; ensembles, which combine many weak learners into a strong one; and Bayesian methods, which treat learning as updating a probability distribution over hypotheses. It also gives a short account of the theory that explains when learning from a limited sample can be trusted, showing how the number of examples needed grows with the richness of the hypothesis space.

Neural networks appear in every edition, but their place grew. Early editions treated them as one learning method among several, explaining how layered networks of simple units can be trained by propagating errors backward through the layers. The fourth edition gives deep learning its own extended treatment, covering convolutional networks for images, recurrent networks and transformers for sequences, and the practical techniques that make very large networks trainable. The Parallel Distributed Processing volumes, in the same bay, record the earlier revival of neural network research in the 1980s; Bishop's Pattern Recognition and Machine Learning and Hastie, Tibshirani and Friedman's The Elements of Statistical Learning give fuller technical treatments of the statistical side.

A useful analogy for learning is apprenticeship. An apprentice watches a master, tries tasks, is corrected, and gradually forms a sense of how the work should go. The apprentice does not memorise every case seen; the aim is to handle new cases well. Supervised learning is apprenticeship with a patient master who gives the right answer every time. Reinforcement learning is apprenticeship with a master who only says, at the end of the day, whether the work went well. Unsupervised learning is the apprentice studying the workshop alone and noticing which tools are used together.

Learning is often confused with the whole of AI, especially now that learned systems dominate public attention. The book's framework resists this. Learning is how an agent acquires or improves its models, its heuristics and its policies. It still needs a way to represent what it learns, a way to reason or search with it, and an objective to pursue. The most capable current systems combine learning with search, with probabilistic inference and sometimes with logic, which is exactly the integration the book was built to teach.

Idea nine: the standard model and its limits

Through its first three editions the book took for granted what its fourth edition calls the standard model. In this model the designer supplies a fixed objective, whether a goal, a utility function, a reward signal or a loss to be minimised, and the machine's job is to optimise it. Almost all of AI, and much of control theory, economics and operations research, works this way. The fourth edition argues that the standard model is flawed at its root once machines become capable.

The problem is that we cannot specify objectives completely and correctly. Any objective we write down leaves things out. A cleaning robot told to minimise visible mess might hide the mess. A recommendation system told to maximise time spent on a site might learn to promote whatever keeps people scrolling, regardless of their wellbeing. A weak system pursuing a flawed objective does limited damage. A strong system pursuing a flawed objective can do a great deal, and it may resist correction, because being switched off would prevent it from achieving its objective.

The alternative the fourth edition sketches is a machine that is uncertain about the human objective and treats human behaviour as evidence about it. Such a machine has reason to ask before acting drastically, to defer to human correction, and to allow itself to be switched off, because the human's wish to switch it off is information that it may be doing something wrong. This is the approach Russell develops at length in Human Compatible. Brian Christian's The Alignment Problem, also in this bay, describes the practical research that grew around these concerns.

This chapter of the argument is the most philosophical and the most recent, and it changes how the rest of the book should be read. Every technique in the earlier parts optimises something. The fourth edition asks the reader to keep in mind, at every step, where the objective comes from and what happens if it is wrong. That question is not a technical footnote. It is arguably the central question for the field in the coming decades.

The tradition around it

Artificial intelligence as a named field began at a summer workshop at Dartmouth College in 1956, organised by John McCarthy, Marvin Minsky, Claude Shannon and Nathaniel Rochester. The early decades produced programs for proving theorems, playing checkers and chess, solving algebra problems and understanding simple English. Pamela McCorduck's Machines Who Think, in this bay, tells that story from the inside. Herbert Simon and Allen Newell, whose influence runs through the book's treatment of search and problem solving, are central figures; Simon's The Sciences of the Artificial gives the philosophical background to treating intelligence as design.

The field also had its sceptics. Minsky and Papert's Perceptrons, in this bay, showed sharp limits of single-layer neural networks and contributed to a long pause in that line of research. Hubert Dreyfus's What Computers Can't Do argued that human expertise depends on embodied, intuitive skill that rule-based systems could not capture. Joseph Weizenbaum's Computer Power and Human Reason argued that some decisions should not be handed to machines at all, whatever their ability. Russell and Norvig's book answers these critics in part by its very structure. It treats rule-based reasoning as one tool among several, it gives learning and probability central roles, and its closing chapters discuss the philosophical objections directly.

Before this book, the leading AI textbooks included works by Patrick Winston, by Elaine Rich, by Nils Nilsson, and by Eugene Charniak and Drew McDermott. Each was valuable, but each reflected a particular school. This book's achievement was synthesis. It drew together the logical tradition, the probabilistic revolution associated with Pearl, the decision-theoretic tradition from economics and statistics, and the learning research that was gaining strength. Its success made the rational agent framing the default language of the field.

Several books in this bay go deeper into parts that this one surveys. For probability and graphical models, Pearl's two books. For learning, Bishop's, MacKay's Information Theory, Inference, and Learning Algorithms, and The Elements of Statistical Learning. For reinforcement learning, Sutton and Barto. For the question of minds and machines, Hofstadter's Godel, Escher, Bach, and the speculative futures of Moravec's Mind Children, Kurzweil's The Age of Spiritual Machines, Hawkins's On Intelligence, Bostrom's Superintelligence and Tegmark's Life 3.0. Of all of these, Russell and Norvig is the one that maps the territory as a whole, so it is the natural centre of the bay.

Questions and criticisms

The most common complaint about the book is its size and breadth. It covers so much that some topics receive only a few pages, and a reader can come away knowing the name of a method without being able to use it. This is a fair point about any survey. The book's defence is that it gives the map and the references, and that its historical notes point to the deeper sources. A reader should use it as a guide to what exists and how the parts relate, and then go to specialised texts for depth.

A second criticism is that the rational agent framing is too neat. Some researchers argue that intelligence in humans and animals is not well described as the maximisation of anything, and that embodiment, development and social life matter in ways the framework flattens. Dreyfus's line of criticism continues in this form. The authors would reply that the framework is a specification for engineering, not a theory of human nature. Still, a reader should notice how much the framework assumes: that there is a well-defined performance measure, that the environment can be described in the terms the book uses, and that rationality is the right target.

A third criticism concerns balance over time. In the years after the third edition, deep learning transformed the field so quickly that parts of the book looked dated. Some readers felt that classic methods such as logical inference and planning received more space than their practical weight justified. The fourth edition responded by expanding the material on deep learning, but any textbook lags a fast-moving field. A reader in the present should supplement the learning chapters with more recent material on large neural networks, especially on language models, which have changed what AI systems can do since the fourth edition appeared.

What has held up is the framework itself. The vocabulary of agents, environments, performance measures, search, belief, utility and policy remains the clearest way to analyse any AI system, including systems the authors did not foresee. A large language model used as an assistant can be described as an agent, its environment as a conversation and a set of tools, its performance measure as a mixture of human ratings and other signals, and many of its failures as mismatches between what it optimises and what its users want. The book's late turn to the problem of objectives has, if anything, become more relevant.

One more point deserves mention. The book's commitment to formal guarantees sometimes sits uneasily with the empirical, trial-and-error character of much modern machine learning, where methods work well before anyone can prove why. The book itself notes this tension. A careful reader will hold both attitudes: respect for what can be proved, and openness to what can only be measured.

Why it is on this shelf

This is the shelf's reference map of artificial intelligence. Most books in the bay argue a position: that machines will surpass us, that they cannot think, that they must be controlled, that the brain works one way or another. This one lays out the tools and the concepts on which all those arguments depend. When another book makes a claim about what AI can or cannot do, this is where we check what the methods actually are.

For a reader who comes to the shelf from Vedanta, the book is useful for its clarity about what it does not claim. It defines intelligence as rational action, a matter of behaviour, and it sets aside the question of experience. The Vedantic distinction between the knower and the known, between consciousness and the contents of mind, maps onto this division in an instructive way. The book studies the contents, the processing of percepts into actions. It leaves the witness untouched, and its closing philosophical chapter is candid that the question of machine consciousness remains open. Reading it with that distinction in mind helps one avoid both the error of thinking that computation explains awareness and the error of thinking that, because it does not, computation explains nothing.

For a reader of Jyotish, the treatment of probability is directly relevant. Jyotish is, among other things, a system for reasoning about uncertain futures from signs. The book's account of how evidence should change belief, of the role of prior probability, and of the difference between correlation and cause gives a disciplined vocabulary for thinking about any predictive practice, including that one.

For economics, the chapters on utility, decision theory, game theory and mechanism design connect AI directly to the theory of rational choice that economists use. For technology, the book is simply indispensable. Anyone building with AI tools today works with agents, objectives, search, uncertainty and learning, whether or not they use these names. We keep the book because it gives those names and shows how they fit together.

How to read it

Do not try to read this book from cover to cover on a first pass. It is a textbook of more than a thousand pages, and much of it is reference. Use the most recent edition you can obtain; the fourth edition is the one that reflects the field's current shape and the authors' revised view of objectives.

First pass, about four to six weeks

  • Read the first two chapters slowly: the introduction with its four definitions of AI and its history, and the chapter on intelligent agents. Write out the performance measure, environment, actuators and sensors for three systems you use, such as a navigation app, a spam filter and a voice assistant.
  • Read the chapters on uninformed and informed search. Work through A-star by hand on a small map of five or six towns with made-up distances. This exercise, done once with a pencil, fixes the idea of a heuristic for good.
  • Read the chapter on adversarial search far enough to understand minimax and alpha-beta pruning.
  • Skip most of the logic and planning chapters on this pass. Read only their opening sections to understand what problems they address.
  • Read the chapters on quantifying uncertainty and on probabilistic reasoning with Bayesian networks. Work Bayes' rule on a medical testing example of your own until it feels obvious.
  • Read the chapters on making simple and complex decisions, through Markov decision processes.
  • Read the first learning chapter, on learning from examples, and the chapter on deep learning.
  • Read the final chapters on philosophy, ethics and the future of AI.

Second pass

Return to the logic, knowledge representation and planning chapters with a specific purpose: to see how structured representations let an agent reason about worlds too large to enumerate. Read the reinforcement learning chapter and then move to Sutton and Barto. Read the chapters on natural language, perception and robotics according to your interests. Throughout, read the historical notes at the end of each chapter; they are short and they place each idea in its story.

Working method

Keep a notebook. For each major technique, write down in one or two sentences what problem it solves, what it assumes about the environment, and what guarantee it offers. Try at least a few of the end-of-chapter exercises in each part you read. If you program, run the official code for search and for a simple Bayesian network and change the inputs to see what happens. A pace of one chapter every two or three days is realistic for a careful first pass.

What to read next from this shelf

For learning from reward, Sutton and Barto's Reinforcement Learning. For probability and cause, Pearl's Probabilistic Reasoning in Intelligent Systems and then Causality. For statistical learning, Bishop or The Elements of Statistical Learning. For the problem of objectives, Russell's own Human Compatible and Christian's The Alignment Problem. For the human side of the debate, Dreyfus's What Computers Can't Do and Weizenbaum's Computer Power and Human Reason. For the design view of intelligence, Simon's The Sciences of the Artificial.

Questions to carry

  • What exactly is the performance measure of a system you use every day, and who chose it?
  • For a task you care about, which properties of its environment make it hard: partial observability, chance, other agents, continuous change, unknown rules?
  • Where in your own reasoning do you rely on a heuristic, and is it admissible, or does it sometimes overestimate?
  • When is it rational to stop thinking and act, given that thinking itself costs time?
  • How should a system behave when it is uncertain about what its user actually wants?
  • What would change in the design of a system if its builders took seriously that their objective might be wrong?
  • Is rational action, as the book defines it, a complete account of intelligence, or only of one part of it?
  • How would you tell, from outside, whether a system is reasoning or only matching patterns, and does the difference matter for what it can do safely?
  • What is the difference between a system that predicts well and one that understands causes, and when does that difference matter?
  • Which of your own decisions would be better if you calculated the value of information before gathering more?
  • Why did logic and probability spend decades in separate camps, and what was gained by joining them?
  • If a machine acts rationally in every situation it meets, does it matter whether it is aware of anything?
  • What should a designer do when maximising expected utility for one user harms others who are not part of the objective?

Words to know

  • Agent: anything that perceives its environment through sensors and acts upon it through actuators.
  • Rational agent: an agent that selects, for each sequence of percepts, the action expected to maximise its performance measure given its knowledge.
  • Performance measure: the external standard by which an agent's behaviour is judged as better or worse.
  • Environment properties: the dimensions along which task worlds differ, such as observability, determinism, dynamism and the number of agents.
  • State space: the set of all situations a problem can be in, connected by the actions that lead from one to another.
  • Heuristic: an estimate of the cost from a given state to the goal, used to guide search.
  • Admissible heuristic: a heuristic that never overestimates the true remaining cost; it lets A-star guarantee an optimal answer.
  • A-star: a search algorithm that expands states in order of cost so far plus estimated remaining cost.
  • Minimax: a rule for two-player games that chooses moves assuming the opponent always replies as well as possible.
  • Alpha-beta pruning: a technique that skips parts of a game tree that cannot affect the final choice.
  • Constraint satisfaction problem: a problem of assigning values to variables so that a set of constraints is met.
  • First-order logic: a formal language for facts about objects and relations, with quantifiers such as for all and there exists.
  • Soundness and completeness: properties of an inference procedure; sound means it derives only true consequences, complete means it can derive all of them.
  • Frame problem: the difficulty of representing what an action does not change, without listing every unchanged fact.
  • Bayes' rule: the formula for updating the probability of a hypothesis in the light of new evidence.
  • Bayesian network: a graph of variables in which each depends directly only on its parents, allowing compact representation of a joint probability distribution.
  • Utility: a number expressing how much an agent prefers an outcome.
  • Maximum expected utility: the principle that a rational agent chooses the action with the highest probability-weighted average utility.
  • Value of information: the expected improvement in decisions that a new observation would bring.
  • Markov decision process: a model of sequential choice in which outcomes are random and depend only on the current state and action.
  • Policy: a rule specifying which action to take in each state.
  • Overfitting: fitting the training examples so closely that performance on new cases suffers.
  • Standard model: the fourth edition's name for the practice of building machines that optimise a fixed objective supplied by their designers.

A note on this edition

This is a study edition written for this shelf in our own words. It is a companion and commentary, not a substitute for the book. Artificial Intelligence: A Modern Approach is in copyright, and none of its text, figures, algorithms or exercises is reproduced here. The book itself, with its full explanations, pseudocode, exercises and historical notes, is worth getting from a library or a bookshop, and reading slowly with a pencil at hand.

Terms from this book with their own page: Heuristic, Standard model

More from “Artificial intelligence”

The whole section →