Artificial Intelligence · Approaches to AI
Turing Test and Rational Agents
Overview
The Turing Test is a behavioural criterion for machine intelligence: a machine passes if a human interrogator cannot distinguish its text responses from a human’s.
The rational-agent approach instead defines intelligence by an agent’s ability to choose actions that maximise expected performance in its environment.
These approaches answer different questions—one asks whether a system behaves indistinguishably from a human, the other asks whether a system acts rationally under uncertainty.
The topic also requires the standard vocabulary of agents, PEAS descriptions, agent architectures, and task-environment properties because those ideas decide which agent design is appropriate.
Before studying this lesson, know the basic notion of an agent as a system that perceives and acts.
Key concepts
- Turing Test (Alan Turing): a machine passes if a human interrogator cannot reliably tell whether the responder is a human or a machine in a text-only conversation.
The interrogator is the human judge who asks questions and makes the identification. - Standard Turing Test: text-only; it deliberately avoids direct physical interaction. Total Turing Test: adds video/audio perception and motor behaviour, so physical skills can be tested.
The test evaluates behaviour, not internal reasoning. - Rational agent: for each possible percept sequence, it selects the action expected to maximise its performance measure, given its percept history and built-in knowledge.
Rationality is not omniscience: a rational agent can fail because it cannot know the actual future outcome. - Performance measure: the external criterion of success. It must reward the intended outcome; if it rewards a proxy such as “number of cleaning actions”, the agent may exploit it by re-cleaning clean rooms.
- PEAS: Performance measure, Environment, Actuators, Sensors. These are the four components of a well-defined task environment.
- Agent architectures: simple reflex agent uses condition-action rules; model-based reflex agent keeps internal state to track unobserved parts; goal-based agent uses goals and search/planning; utility-based agent uses a utility function and expected utility; learning agent improves behaviour from experience.
- Learning agent components: performance element selects actions; learning element improves the performance element; critic gives feedback; problem generator suggests exploratory actions.
- Task environment properties: fully or partially observable; deterministic or stochastic; episodic or sequential; static, dynamic, or semi-dynamic; discrete or continuous; single-agent or multi-agent; known or unknown.
An uncertain environment is one that is not fully observable or not deterministic. - Semi-dynamic environment: the environment itself does not change with the passage of time, but the agent’s performance score does.
- Standard planning algorithms assume the environment is both deterministic and fully observable.
How it works
Turing Test procedure
- The interrogator communicates by text with two hidden entities.
- One entity is a human; the other is the machine under test.
- The interrogator asks questions and receives text replies.
- If the interrogator cannot reliably identify the machine, the machine passes the standard test.
- The standard test avoids physical interaction; the total test includes perceptual and motor behaviour.
Rational-agent decision cycle
- Perceive the environment through sensors.
- Update internal state or knowledge from the percept sequence.
- Generate candidate actions.
- Predict possible outcomes and their probabilities.
- Compute the expected utility of each action.
- Select the action with maximum expected utility, using a fixed tie-breaking rule if needed.
- Execute the action through actuators.
- Receive the next percept and repeat.
Drawing the diagram…
Formulas
-
Expected utility of action :
-
where is a possible outcome, is the probability of given , and is the utility of .
-
Rational choice:
-
where is the set of available actions.
-
For two outcomes:
-
Tie-breaking: if , a fixed rule such as “choose the lowest-index action” decides.
Worked examples
Example 1 — Turing Test role. An interrogator asks questions by text and must decide which hidden responder is the machine. If the interrogator cannot reliably distinguish, the machine passes the standard Turing Test.
The standard test avoids physical interaction; the total Turing Test adds perception and motor behaviour. Final answer: the interrogator is the human judge, and the standard test is text-only.
Example 2 — PEAS for a robot vacuum.
| Component | Description |
|---|---|
| Performance measure | rooms cleaned per hour, low battery use |
| Environment | rooms, dirt, obstacles |
| Actuators | wheels, vacuum, brush |
| Sensors | dirt sensor, bump sensor, camera |
Final answer: PEAS = Performance measure, Environment, Actuators, Sensors.
Example 3 — Expected utility.
Action A: utility with probability , utility with probability .
.
Action B: utility with probability , utility with probability .
.
Choose A because . Final answer: A.
Example 4 — Threshold probability.
Stop gives utility for sure. Explore gives utility with probability and with probability .
.
Explore is rational if , so .
At , , so explore. At , , so stop.
Example 5 — Matching agent types.
A. Simple reflex agent — condition-action rules.
B. Model-based reflex agent — internal state.
C. Goal-based agent — goals and search/planning.
D. Utility-based agent — utility function and expected utility.
E. Learning agent — improves from experience.
Final answer: A-condition-action, B-internal state, C-goals, D-utility, E-experience.
Comparison
Turing Test vs rational-agent approach
| Point | Turing Test | Rational-agent approach |
|---|---|---|
| Question asked | Can a machine imitate a human? | Does the agent act rationally? |
| Criterion | Behaviour indistinguishable to interrogator | Maximises expected performance measure |
| Focus | External behaviour | Decision rule and outcomes |
| Uncertainty | Not central | Central through expected utility |
| Failure | Can be tricked by imitation | Can fail despite rationality due to unlucky outcomes |
Agent architectures
| Agent type | Decision basis | Internal state | Handles partial observability | Handles trade-offs/uncertainty |
|---|---|---|---|---|
| Simple reflex | condition-action rules | No | Generally no | No |
| Model-based reflex | internal state + rules | Yes | Yes | Limited |
| Goal-based | goals + search/planning | Yes | Can | No explicit probabilities |
| Utility-based | utility function + expected utility | Yes | Yes | Yes |
| Learning | performance element + learning element | Yes | Can | Can improve over time |
Environment properties
| Property | Meaning |
|---|---|
| Fully observable | sensors give access to the complete state |
| Partially observable | sensors do not give the complete state |
| Deterministic | next state is completely fixed by current state and action |
| Stochastic / non-deterministic | next state is not completely fixed |
| Episodic | episodes are independent |
| Sequential | current action affects future decisions |
| Static | environment does not change while the agent deliberates |
| Dynamic | environment changes while the agent deliberates |
| Semi-dynamic | environment does not change while deliberating, but performance score does |
| Discrete / continuous | states, actions, percepts are discrete or continuous |
| Single-agent / multi-agent | one agent or several interacting agents |
| Known / unknown | agent knows the laws/outcomes or does not |
| Uncertain | not fully observable or not deterministic |
Standard vs total Turing Test
| Test | What it includes |
|---|---|
| Standard Turing Test | text-only conversation; avoids physical interaction |
| Total Turing Test | adds video/audio perception and motor behaviour |
Revision summary
- Turing Test: behaviour, not internal reasoning; interrogator is the human judge.
- Standard Turing Test is text-only; total test adds perception and motor behaviour.
- Rational agent maximises expected performance measure, not guaranteed actual success.
- PEAS = Performance measure, Environment, Actuators, Sensors.
- Simple reflex: condition-action; model-based: internal state; goal-based: goals/search; utility-based: expected utility; learning: experience.
- Fully observable = complete state via sensors; deterministic = next state fixed by current state and action.
- Uncertain environment = not fully observable or not deterministic.
- Semi-dynamic = environment does not change while deliberating, but performance score does.
- Standard planning assumes deterministic and fully observable.
- Expected utility: ; choose maximum.
- Rationality is not omniscience.
- Learning agent components: performance element, learning element, critic, problem generator.
Previous-year exam insights
- Direct concept questions ask for the definition of the Turing Test, the role of the interrogator, or the difference between standard and total tests.
- Statement I/II/III questions test whether the standard test avoids physical interaction, whether a rational agent always succeeds, and whether a learning agent can improve performance.
- Match List-I with List-II questions map agent architectures to decision bases or PEAS components to descriptions.
- Assertion-Reason questions test rationality versus hindsight: a rational action may still produce a poor outcome because rationality is judged by expected performance.
- Numeric questions compute expected utility, choose the maximum, apply a tie-breaking rule, or find a threshold probability.
- Environment-classification questions ask whether an environment is uncertain, semi-dynamic, dynamic, or static; check the exact definitions first.
- Traps: confusing rationality with omniscience; using AND instead of OR for uncertain environments; forgetting that standard planning assumes deterministic and fully observable; confusing performance measure with utility function.
- Check first: identify whether the question is about the Turing Test, an agent type, an environment property, or an expected-utility calculation.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- Define the standard Turing Test and state the role of the interrogator.
- Distinguish the standard Turing Test from the total Turing Test.
- Write a PEAS description for a given agent.
- Classify an environment as fully/partially observable, deterministic/stochastic, static/dynamic/semi-dynamic, episodic/sequential, discrete/continuous, single/multi-agent, and known/unknown.
- Explain why an uncertain environment is not fully observable or not deterministic.
- Match agent architectures with their decision bases.
- Compute expected utility for two or three actions and select the rational choice.
- Apply a tie-breaking rule when expected utilities are equal.
- Explain rationality versus omniscience and why a rational agent can fail.
- Identify the four components of a learning agent and explain how learning improves performance.
Attempt the sub-topic test first, then the subject test.