Autonomous Agents, World Models, and Knowledge-Based Representation Systems
Administrative Guidelines and Exam Scope
Curriculum Structural Adjustments:
In , the course slides on adversarial search were officially divided into two distinct slide decks spanning lectures , , and . In previous course offerings, adversarial search was presented as a single deck of approximately pages encompassing all game algorithms, which presented comprehension difficulties for students.
The material covered across lectures through directly matches the adversarial search content from previous course iterations, with minor structural reorganizations regarding agents and world models.
Midterm Examination Parameters and Scope:
No mock test will be provided for the midterm exam.
A comprehensive review session analyzing past exam questions from and is scheduled to be delivered by Anna.
The scope for the midterm examination is restricted strictly to two specific topics:
Representation Encoding
Minimax Trees
Excluded Topics for Midterm Test: Game theory extensions, stochastic games, autonomous agents, and world models are explicitly excluded from the midterm examination, despite their inclusion in Week lecture decks.
Test Structure: The midterm exam comprises exactly primary questions, each containing multiple sub-questions.
Agent Architectures and Cognitive Loops
Definitional Clarification of Autonomous Agents:
In contemporary computer science, the term "agent" is frequently applied to Search Problem Solvers, Large Language Models (LLMs), Multimodal LLMs, or Evolving Agents. However, its foundational definition originates in classical Reinforcement Learning (RL).
An Agent is defined as an autonomous entity possessing three fundamental operational capabilities:
Perception: The capacity to observe and receive sensory inputs or percepts from its environment.
Deliberation (Planning/Reasoning): The internal process executed between receiving a sensory percept and selecting an action. Historically termed "deliberating," this phase corresponds to modern concepts of planning and reasoning.
Action: The capacity to execute motor commands or operations that alter, modify, or interact with the surrounding environment.
The Agent-Environment Interaction Loop:
The environment presents a sensory observation or percept to the agent.
The agent processes the observation through its internal state machine or knowledge base.
The agent selects and executes an action based on its current observation and internal state.
The executed action impacts the environment, updating its state and generating a new percept to repeat the cycle.
Failures and Limitations of Purely Reactive Agents:
Classical search algorithms assume a global view, wherein the agent possesses complete, uninhibited visibility over the entire state space, board configuration, and environmental rules.
A purely reactive agent maps sensory percepts directly to actions (). This reactive mechanism fails under three real-world constraints:
Partial Observability (Partial Sensors): Physical sensors rarely provide complete environmental visibility. Objects can be occluded (e.g., a table positioned behind another table, or a person hidden behind an obstacle), denying the agent a global view.
Indirect Sensory Clues: Sensations often provide indirect signals rather than explicit state updates (e.g., detecting an odor or a draft without seeing the source object directly).
Insufficiency of Instantaneous Percepts: Optimal decision-making frequently requires synthesizing sensory data collected across multiple spatial locations and temporal steps (e.g., combining observations from two distinct rooms) rather than reacting solely to the current percept.
World Models and Internal Representation
Conceptual Definition of World Models:
A World Model is an internal cognitive representation or "imagination" constructed by an agent to emulate physical reality, model environmental transition dynamics, and predict outcomes without executing real-world actions.
Formally, the agent maintains an internal state representing its belief about unobservable aspects of the world. This belief state is updated via a State Transition Function ():
Practical Motivation and Industry Applications:
Real-World Safety and Cost Constraints: Training autonomous agents (such as self-driving vehicles) directly in physical environments is prohibited by high financial costs and the risk of catastrophic destruction during failure states. World models allow agents to train inside internal simulated environments ("dreams").
Physical Emulation Example: A human holding an object (e.g., a water bottle) predicts that opening their hand will cause the bottle to drop to the floor. The human does not need to drop the object to verify the physical outcome, as an internal world model encodes physical gravitational laws.
OpenAI SORA: Video generation architectures like SORA are categorized as world models because they simulate physical interactions and object dynamics at the pixel level, developing an implicit understanding of physical geometry and motion.
Four Typologies: Scientific literature categorizes world models across four distinct definitions: video generation models, latent-space transition models, classical RL environment simulators, and symbolic belief transition networks.
Methodologies for State Representation
Overview:
To represent environmental states within an agent prior to deep neural network approximations, four classical representation frameworks are utilized.
The Vacuum World Benchmark Environment:
Environment setup: distinct rooms ( room and room ).
Room conditions: Each room is independently either or .
Available Agent actions: , , .
Total distinct system states:
1. Atomic Representation:
Encodes every environmental configuration as an indivisible scalar identifier or discrete state index (e.g., State , State , \dots, State ).
Example: State represents , , . Executing transitions to State ; executing transitions to State .
Limitations:
Opaque semantics: Scalar state indices (e.g., State ) convey no intrinsic information regarding agent location or cleanliness without consulting an external lookup table.
Graph complexity: State-transition graphs become highly congested with directed transition arcs.
Exponential expansion: Adding rooms causes an exponential explosion in state indices and directed transition arcs.
Application: Standard search algorithms (BFS, A*, Minimax) use atomic representations because search mechanics depend solely on state adjacency relationships rather than internal state semantics.
2. Factored Representation:
Decomposes each state into a structured vector of explicit, fixed attribute variables.
Variables for the Vacuum World ( variables):
( if Left room is dirty, if clean).
( if Right room is dirty, if clean).
(Current room location of the agent).
Example State Encoding: , , .
Advantages:
High interpretability: Direct inspection of feature vectors reveals exact world attributes without auxiliary mapping tables.
Compact transition definitions: Action effects are defined as variable updates rather than explicitly drawing full transition edges across graph nodes.
Limitations:
Lacks relational constraints: Feature vectors store raw variable values but fail to encode underlying causal dependencies or physical laws across variables.
Inability to represent unobserved variables: If an agent cannot observe an unvisited room, feature assignment fails without probabilistic or logical inference mechanisms.
3. Rule-Based / Constraint-Based Representation:
Augments variable representations with symbolic propositional logic, common-sense knowledge, and domain constraints to infer unobserved facts.
Inference Mechanism:
Observation: Agent identifies an object as a .
Domain Constraint / Rule: .
Derived Knowledge: The observed entity lives underwater.
4. Structured Representation:
Captures high-level relational schemas and object-oriented structural dynamics across multi-agent or multi-location environments.
Efficiency Gain: Instead of defining distinct operational rules for a -room vacuum environment, a structured representation defines a single generalized action rule:
Case Study: The Wumpus World
Environment Parameters and Rules:
Environment Type: Static grid world (non-adversarial, zero movement from external entities).
Hazards and Objectives:
Wumpus: Static monster that kills the agent upon co-occupying its cell.
Pit: Stationary trap that kills the agent upon entry.
Gold: Objective item to be located and retrieved.
Sensory Indicators (Perceived in orthogonally adjacent cells):
Stench: Generated in cells directly adjacent () to the Wumpus.
Breeze: Generated in cells directly adjacent () to a Pit.
Glitter: Generated strictly within the exact cell containing the Gold.
Formal Logical Foundations (Biconditional Logic):
Sensory indicators operate under biconditional equivalence ():
Significance of Biconditionality:
A single-way implication () states that an adjacent Wumpus causes a Stench, but it does not allow the agent to deduce that the absence of a Stench guarantees the absence of a Wumpus in adjacent cells.
The biconditional () enables bidirectional deduction: if a cell lacks a Stench, the agent logically guarantees that no adjacent cell contains the Wumpus.
Step-by-Step Execution and Deduction Walkthrough:
Grid Coordinates are expressed as where represents the column and represents the row.
Step 1: Initial State at Cell
Percept at : , .
Deduction: By biconditional rule, no adjacent cells contain hazards.
Marked Safe: Cells and are definitively safe.
Step 2: Exploration to Cell
Agent moves to .
Percept at : , .
Deduction: At least one adjacent cell—, , or —contains a Pit.
Since is confirmed safe, a Pit must reside in or .
Action Choice: Entering or carries a mortality risk. The agent backtracks to safe cell .
Step 3: Exploration to Cell and Multi-Cell Inference
Agent moves to .
Percept at : , .
Wumpus Location Derivation:
at indicates the Wumpus is at or .
If the Wumpus were at , cell would have registered a Stench during Step 2.
Because percept at had , cell cannot contain the Wumpus.
Conclusion: The Wumpus is definitively located at cell , deduced safely without entering .
Pit Location Derivation:
at guarantees no Pit resides in adjacent cell .
From Step 2, a Pit exists in either or . Since is cleared, the Pit is definitively located at cell .
Safety Determination: Cell has neither Wumpus nor Pit. Cell is marked safe ().
Step 4: Exploration to Cell
Agent moves to cell .
Percept at : , .
Deduction: Unvisited adjacent cells and are marked safe.
Step 5: Exploration to Cell and Goal Acquisition
Agent moves to cell .
Percept at : .
Outcome: Agent locates and retrieves the Gold, successfully finishing the task without triggering hazards.
Knowledge-Based Architecture and Belief Reduction
Belief State Elimination Dynamics:
Decision-making in unobserved environments acts as a process of continuous possibility elimination.
Prior to initial observation in a grid ( total cells), the potential configuration space of hazard placements is massive.
At each step, sensory inputs eliminate invalid physical configurations from the agent's internal belief state.
The agent does not require complete world observation; it merely needs to eliminate hazard configurations along a path to the goal state.
Dual Components of the Knowledge Base (KB):
An agent's World Model / Knowledge Base combines two distinct knowledge sources:
Offline / General Rules (Predefined Laws): Static environment rules programmatically defined prior to execution (e.g., physical laws, grid connectivity, biconditional sensory axioms).
Online / Experience Rules (Dynamic Observations): Sequential percepts gathered during physical interaction and navigation.
Operational Loop of a Knowledge-Based Agent:
Perceive: Ingest sensor data from current state.
Tell: Append sensory observations to the Knowledge Base.
Ask: Query the Knowledge Base using logical inference engines to derive unobserved cell safety and select optimal actions.
Act: Perform the selected action, alter the state, and iterate.