Articles / AI · Part 8

Rationality and the Concept of a Rational Agent.

Understand rationality in Artificial Intelligence and how rational agents select actions using performance measures, percept sequences, built-in knowledge, and available information.

Rationality and the Concept of a Rational Agent.

In the previous article, we explored different types of intelligent agents and how they select actions. But an important question remains: How do we decide whether an agent has made a good decision?

Consider a self-driving car approaching a traffic signal. It detects that the light has turned yellow. Depending on its speed, distance from the signal, road conditions, and surrounding traffic, it must decide whether to stop or continue.

The best decision is not always the same. It depends on the information available and the situation in which the agent operates.

In Artificial Intelligence, this idea is studied through the concepts of rationality and rational agents.

1. What Is Rationality in Artificial Intelligence?

In AI, rationality refers to selecting an action that is expected to produce the best possible result, based on the information available to the agent and the situation in which it operates.

A rational agent does not necessarily make a perfect decision every time. Instead, it chooses an action that is expected to perform well according to its objectives and available information.

For example, a navigation system may recommend a route based on distance, traffic, and estimated travel time. If unexpected traffic develops after the route is selected, the original recommendation may no longer be the best option.

The decision can still have been rational when it was made, because it was based on the information available at that time.

This distinction is important: rationality is about making the best expected decision with available information, not guaranteeing a perfect outcome.

2. What Is a Rational Agent?

A rational agent is an agent that selects actions expected to maximise its performance measure, based on its percept sequence, built-in knowledge, and available actions.

In simpler words, a rational agent chooses the action that is most likely to help it achieve its objective.

For example, consider a cleaning robot whose objective is to keep a room clean while using as little energy as possible.

It may need to decide whether to clean a dirty area, move to another location, or return to its charging station.

A rational decision depends on its objective, current information, and available actions.

The agent does not simply act randomly. It selects actions according to what it expects will produce a better result.

3. What Determines Rational Behaviour?

Several factors influence whether an agent’s action can be considered rational.

3.1 Performance Measure

A performance measure defines how the success of an agent is evaluated.

It provides the criteria used to judge whether the agent is performing its task effectively.

For example, a self-driving car may be evaluated using factors such as:

  • Safety of passengers and other road users.
  • Reaching the correct destination.
  • Following traffic rules.
  • Travel time.
  • Fuel or energy efficiency.

A cleaning robot may be evaluated based on cleanliness, time taken, and energy consumption.

The performance measure is important because an agent cannot make meaningful decisions without some way of defining what counts as success.

3.2 Percept Sequence

A percept sequence is the complete history of information an agent has received from its environment.

A rational agent uses its percept sequence to understand the situation and select an appropriate action.

For example, a self-driving car may use recent observations to estimate whether another vehicle is slowing down or changing lanes.

Considering previous observations can help the agent make better decisions than relying only on a single moment.

3.3 Built-in Knowledge

An agent may have some initial knowledge before it begins interacting with its environment.

This knowledge can include predefined rules, information about the environment, or an understanding of how certain actions affect the world.

For example, a navigation system may already contain road maps and traffic rules before receiving a user’s destination.

This built-in knowledge helps the agent interpret its percepts and make decisions.

3.4 Available Actions

A rational agent can only choose from the actions available to it.

For example, a cleaning robot may be able to move forward, turn, stop, or clean. It cannot perform an action that its hardware or software does not support.

The available actions therefore influence what decisions the agent can make.

4. Rationality Does Not Mean Omniscience

An important distinction in AI is the difference between rationality and omniscience.

Omniscience means having complete knowledge of everything, including the actual outcomes of all possible actions.

A rational agent does not need to be omniscient.

It makes decisions using the information available to it, but it cannot always know what will happen in the future.

Consider a navigation system that recommends the fastest route based on current traffic information. A sudden road closure may occur after the recommendation.

The system could not have known about that unexpected event when it made the original decision.

Its decision may still have been rational because it used the best available information.

Therefore:

  • Rationality: Selecting the action expected to produce the best result using available information.
  • Omniscience: Knowing the actual outcome of every possible action.

A rational agent can make a reasonable decision and still receive an unexpected result.

5. Rationality Does Not Guarantee Success

A rational action does not always produce the desired outcome.

The environment may contain uncertainty, incomplete information, or unexpected changes.

For example, a robot may choose a safe route based on its sensors, but an unexpected obstacle may appear after it starts moving.

The original action may have been rational, even though the robot did not reach its destination as planned.

This is why we evaluate an agent based on the quality of its decision-making process and performance over time, rather than judging every action only by its final result.

6. Rationality and Learning

A rational agent can improve its decision-making by learning from experience.

Learning helps an agent update its knowledge, recognise patterns, and make better predictions about future situations.

For example, a recommendation system may initially suggest products based on limited information. As it receives more feedback about user preferences, it can improve its recommendations.

Learning is particularly useful when the environment changes or when the agent does not have complete knowledge from the beginning.

However, learning alone does not guarantee rational behaviour. The agent still needs suitable objectives, reliable information, and an appropriate way to evaluate its actions.

7. Rationality and Autonomy

Autonomy refers to the extent to which an agent’s behaviour is determined by its own experience rather than relying entirely on built-in knowledge supplied by its designer.

A highly autonomous agent can learn from its environment and use that experience to guide its future actions.

For example, a robot that initially follows predefined movement rules may gradually improve its navigation by learning from its surroundings.

An agent with very little autonomy depends heavily on the knowledge and rules provided before it begins operating.

A rational agent should be able to use its experience appropriately, especially when operating in unfamiliar or changing environments.

8. Example: A Rational Cleaning Agent

Let’s consider a cleaning robot that operates in a room.

Its objective is to clean the room while minimising the time and energy required.

The agent may receive information about:

  • Whether its current location is clean or dirty.
  • The presence of obstacles.
  • Its battery level.
  • The areas it has already visited.

Based on this information, it can select actions such as:

  • Clean the current location.
  • Move to another area.
  • Avoid an obstacle.
  • Return to its charging station.

Suppose the robot detects a dirty area nearby but has very little battery remaining.

Cleaning immediately may not be the best decision if it risks running out of power before returning to its charging station.

A rational agent considers the available information and chooses an action that best supports its overall objective.

This example shows that rational behaviour is not simply about performing an individual task. It involves selecting actions that support the agent’s performance measure.

9. Rational Agent vs. Intelligent Agent

The terms intelligent agent and rational agent are related, but they highlight different ideas.

An intelligent agent is a system that perceives its environment and takes actions. A rational agent focuses on selecting actions expected to maximise its performance measure.

Intelligent Agent Rational Agent
Perceives and acts upon its environment Selects actions to maximise expected performance
Describes an agent’s ability to interact with its environment Emphasises the quality of its decisions
May use rules, models, goals, or learning Uses available information to choose appropriate actions

A rational agent is a particular way of designing and evaluating an intelligent agent.

Conclusion

Rationality is a fundamental concept in Artificial Intelligence because it helps explain how an agent should select its actions.

A rational agent chooses actions expected to maximise its performance measure using its percept sequence, built-in knowledge, and available actions.

We also learned that rationality does not mean omniscience or guaranteed success. An agent can make a rational decision and still experience an unexpected outcome.

Understanding rationality prepares us to study how AI agents evaluate their surroundings, make decisions, and perform tasks effectively.

In the next article, we will explore the Turing Test and Measuring Intelligence, examining how researchers have approached the question of whether a machine can demonstrate intelligent behaviour.

Quick quiz

5 questions
What does rationality mean in Artificial Intelligence?
What is the purpose of a performance measure?
Is a rational agent necessarily omniscient?
Can a rational action produce an unexpected result?
What does autonomy mean in an intelligent agent?

Keep a copy

Read offline as a printout or PDF.

farhanpaal.com

Keep reading

AI · Part 30

Architecture and Components of Expert Systems

Explore the architecture of expert systems and understand how the Knowledge Base, Inference Engine, Working Memory, User Interface, Explanation Facility, and Knowledge…

8 min read
AI · Part 25

Game Playing in Artificial Intelligence

Explore how Artificial Intelligence plays competitive games using search, game trees, evaluation functions, and adversarial reasoning. Learn about game types, important algorithms,…

9 min read

Ask Farhan

Ask anything about Farhan